Technical DebtOct 24, 2024
Technical Debt in Agile and Scrum: How to Manage It
What technical debt means in Agile and Scrum, who owns it, how much sprint capacity to budget, and 8 practices that keep debt visible and paid without a debt sprint.
Hire
Hire by role
Hire Front-end developers
Hire Back-end developers
Hire Full-stack developers
Hire Android developers
Hire iOS developers
Hire Mobile developers
Hire AI engineers
Hire by skill
Hire JavaScript developers
Hire React Native developers
Hire React.js developers
Hire .NET developers
Hire TypeScript developers
Hire Flutter developers
Hire Golang developers
Hire by country
Devs in Ukraine
Expirienced engineers with strong product focus and fast integration.
Devs in Poland
EU-based developers with reliable delivery and high standards.
Devs in Argentina
Senior engineers with strong technical depth and timezone alignment.
Technical debt is the extra work you owe because an earlier decision — deliberate or not — traded long-term maintainability for short-term speed. If you need the full definition, causes and business impact, start with our guide on what technical debt is and how it affects your business. This article is about recognising it: what technical debt looks like in a real codebase, which types exist, what it cost companies that ignored it, and what to do about each kind.
Technical debt examples, in short: hardcoded configuration, duplicated code, a "god class" nobody dares to touch, skipped or flaky tests, outdated libraries with known vulnerabilities, manual deployments, undocumented modules that only one engineer understands, and architecture that no longer matches how the product is used. Each of these belongs to one of nine types of technical debt, and each has a different fix.
Engineers tend to say "tech debt" about everything from a messy function to a ten-year-old database. Splitting it into types matters because the symptoms, the owners and the remedies differ. Here is the map we use in technical debt assessments at Devico.
Code debt is the most visible type: it lives in the files developers open every day. Classic examples are duplicated code copied across modules, functions with dozens of branches, variables named data2, magic numbers, commented-out blocks and hardcoded credentials or URLs.
Code debt is rarely dramatic on its own, but it compounds. CodeScene's analysis of 39 commercial codebases found that developers spend twice as long on changes in low-quality code and produce up to 15 times more defects there than in healthy code. That is the "interest" in the technical debt metaphor.
Fix: refactor the parts that change most often first (hotspots), protect every refactoring with tests, and enforce quality gates on new code so the debt stops growing. The step-by-step approach is in our guide on how to reduce technical debt.
Design debt is code that works but is structured around the wrong abstractions. A typical example: a "User" class that also handles payments, notifications and reporting, because every feature was bolted onto the nearest object. Another one is business logic spread across controllers, database triggers and front-end components, so the same rule is implemented three times — and changed in two.
Fix: draw the boundaries you wish you had, then move code towards them one feature at a time. Design debt is where code review and a shared style guide pay off most, because it is far cheaper to reject a wrong abstraction in a pull request than to unpick it a year later.
Architectural debt is the most expensive type to fix because it constrains everything built on top of it. Examples: a monolith that can only be deployed as a whole, a single database shared by six services, a message queue chosen for a workload that no longer exists, or a framework whose vendor ended support in 2021.
The failure mode is usually scale. Systems designed for 10,000 users quietly accumulate workarounds until a peak day — Black Friday, a winter storm, a product launch — exposes them. Southwest Airlines' December 2022 meltdown (below) is the canonical example.
Fix: avoid the "big rewrite" trap. Netscape spent three years rewriting Navigator from scratch and lost the browser market while doing so. Prefer the strangler pattern: route new functionality to a new component, migrate old functionality piece by piece, retire the legacy system when it is empty.
Testing debt is the gap between the tests you have and the tests you need to change the system safely. Examples: 70% line coverage that misses the payment flow entirely, integration tests that were disabled "temporarily" eighteen months ago, a regression suite that only QA can run manually, and flaky tests everyone re-runs until they pass.
Testing debt is dangerous precisely because it hides. A codebase with testing debt looks fine until someone makes a change that nothing catches. TSB Bank's 2018 migration (below) is the textbook case of insufficient testing before a go-live.
Fix: measure coverage on changed code rather than the whole repo, build a test pyramid (many unit tests, fewer integration tests, a handful of end-to-end tests), quarantine flaky tests instead of ignoring them, and make "tests written" part of the Definition of Done.
Automation debt is every step that a human performs because nobody built the pipeline. Examples: deployments from a developer's laptop, environments configured by hand and drifting apart, release checklists in a Word document, database migrations run manually in production.
Knight Capital's 2012 collapse (below) started with a manual deployment that reached seven of eight servers. The eighth kept running old code.
Fix: CI/CD with automated tests as a gate, infrastructure as code, identical environments, feature flags for gradual rollout and a rollback that takes one command.
Documentation debt is knowledge that exists only in people's heads. Examples: no record of why the architecture is the way it is, a README that describes a setup from three versions ago, API contracts that live in Postman collections on someone's machine.
The cost shows up in onboarding time and in repeated decisions: teams re-investigate problems that were solved and forgotten. In Stripe's developer survey, engineers reported spending 42% of their week on maintenance and dealing with bad code rather than building, and missing documentation is a large share of that time.
Fix: keep documentation next to the code (Markdown in the repo, not a wiki nobody updates), write short architecture decision records for every significant choice, and treat a pull request without documentation changes the same way as one without tests.
Defect debt is the backlog of known bugs you have decided not to fix. Examples: a "known issues" page in the help center, workarounds that support agents explain to customers, exceptions that are caught and silently logged.
Every known bug left open is a decision to pay interest: support time, customer churn and the engineering time spent re-diagnosing the same issue.
Fix: triage the bug backlog quarterly. Each item is either fixed, scheduled with an owner, or closed with a documented reason. A backlog of 600 unprioritized bugs is not a backlog; it is a landfill.
Security debt is the type most likely to produce headlines. Examples: dependencies with published CVEs that nobody updated, admin interfaces without multi-factor authentication, personal data stored without a retention policy, audit logs that cannot answer "who changed this".
Dependency debt deserves a special mention. When the Log4Shell vulnerability (CVE-2021-44228) was disclosed in December 2021, many organisations spent the first days simply discovering where Log4j was used in their stack — the debt was not just the outdated library, but the absence of an inventory. Equifax's 2017 breach (below) came from a single unpatched framework.
Fix: automated dependency scanning with a patch SLA (critical vulnerabilities fixed within days, not quarters), a software bill of materials, and security requirements in the Definition of Done rather than in an annual audit.
The least discussed type and often the most expensive. Examples: a payments module only one engineer understands, a team that has shrunk below the size needed to maintain its systems, contractors who left with the knowledge of how the integration works.
Fix: measure the bus factor per critical component, use pair programming and rotation to spread knowledge, and document before people leave — not after.
Types describe
Martin Fowler's technical debt quadrant adds a second axis — reckless versus prudent — and the combination tells you how to treat each item.
The only acceptable quadrant is prudent and deliberate: debt you take knowingly, with a plan to repay it. Everything else is a process failure, not an engineering trade-off.
The cases below are documented in regulatory filings, court records and official reports. Each maps to one of the types above.
On 1 August 2012, Knight Capital deployed new trading code to its servers by hand. One server was missed. It still contained an old, unused function called Power Peg, which a repurposed flag in the new code reactivated. In 45 minutes the system executed more than four million orders, and Knight lost about USD 440M — more than its market capitalisation. According to the SEC order, Knight had no automated deployment checks and no kill switch. Dead code, manual releases and missing safeguards: three debts, one morning.
The Apache Struts vulnerability behind the Equifax breach was disclosed and patched in March 2017. Equifax's scan missed the affected system, and attackers used it from May to July. The breach exposed data of about 147 million people and led to a settlement with the FTC worth up to USD 700M. Security debt is the only type where the interest rate is set by someone who wants to hurt you.
In April 2018, TSB migrated 1.9 million customers to a new banking platform over a weekend. The platform had not been tested at full scale; customers lost access to accounts, saw other people's data and could not make payments for weeks. The migration cost TSB over GBP 330M, and in December 2022 the FCA and PRA fined the bank GBP 48.65M for operational-resilience failings. The independent review commissioned by TSB's board concluded that the testing had been insufficient for a migration of this size.
Southwest's December 2022 collapse began with a storm but was prolonged by its crew-scheduling software, which could not reassign crews fast enough once the disruption exceeded what the system was designed for. The airline cancelled about 16,900 flights, reported a USD 1.2B impact on its results, and in December 2023 the Department of Transportation imposed a USD 140M penalty. Southwest's own pilots' union had warned about the scheduling system for years.
Y2K: deliberate debt that outlived its horizon
Storing years as two digits was a reasonable decision when memory cost thousands of dollars per kilobyte. The debt was intentional, prudent — and never repaid, because the programs ran for thirty years longer than anyone expected. The US Department of Commerce estimated American remediation spending at roughly USD 100B. The lesson is not "never take debt" but "write down when it is due".
Most technical debt is not a headline. It is the sum of small things that make every sprint a little slower. If you want a quick audit, search your codebase for these:
None of these is an emergency. Together they explain why a two-day feature takes two weeks. The 8 technical debt metrics we use turn this list into numbers you can track.
Preventing debt is cheaper than paying it. The practices below are what separates teams that keep debt manageable from teams that rediscover the vicious cycle every year.
Most unintentional debt enters through a loophole: a story is "done" when the feature works. Make it done when the feature works, is tested, is documented and has been reviewed. Everything else is debt wearing a different name.
Requiring a legacy codebase to meet modern standards is a recipe for giving up. Instead, apply a quality gate to new and changed code only: no new blocker issues, no decrease in coverage on changed lines, no new duplication. SonarQube calls this "clean as you code", and it is the single most effective way to stop the bleeding without a refactoring programme.
Coding standards work when nobody has to remember them. Linters, formatters and static analysis in CI enforce the style guide; code review is then free to focus on design, not semicolons. Google's published style guides are a good model: specific, versioned and backed by tooling.
Automated tests are what make refactoring safe. Aim for fast unit tests on business logic, a smaller set of integration tests on boundaries, and a handful of end-to-end tests on critical journeys. Test-driven development is worth it for domain logic; it is rarely worth it for glue code. The goal is confidence to change, not a coverage percentage.
Enable automated dependency updates (Dependabot or Renovate), maintain a software bill of materials, and set a patch SLA: critical CVEs within 72 hours, high within two weeks. Equifax's breach came from a single library that had been fixed two months earlier.
If a team decides to ship a shortcut, it should create a ticket with the shortcut, the reason, the owner and the date by which it must be repaid — a technical debt register. Debt that is written down gets repaid; debt that lives in someone's memory becomes legacy debt the moment they change teams.
Teams that keep debt under control typically spend 15–20% of each sprint on it, continuously, rather than scheduling a "tech debt sprint" once a year that gets cancelled when a deadline looms. The details are in our guide to technical debt in Agile.
A specific form of debt — technical implementation debt — is created in the last weeks before launch, when teams skip load testing, disable checks "temporarily", deploy by hand and promise to fix things after release. Knight Capital and TSB both show how expensive those weeks can be. Before any major release: automated deployment to all environments, a tested rollback, feature flags for gradual exposure, a load test at expected peak and an explicit list of what was deferred.
Prevention stops the growth; it does not remove what is already there. The sequence that works:
Common examples are duplicated code, hardcoded configuration, oversized classes that appear in every pull request, skipped or flaky tests, outdated dependencies with known vulnerabilities, manual deployments, undocumented modules that only one engineer understands, and architecture that cannot handle current load. Large-scale examples include Knight Capital's 2012 trading loss, Equifax's 2017 breach and Southwest Airlines' 2022 scheduling collapse.
The nine commonly distinguished types are code debt, design debt, architectural debt, testing debt, automation debt, documentation debt, defect debt, compliance and security debt, and people or resource debt. A separate classification splits debt by origin into intentional, unintentional and legacy debt.
Code debt is one type of technical debt: shortcuts and low quality inside the source code itself. Technical debt is the broader term and also covers architecture, tests, documentation, infrastructure, security and team knowledge.
No. Deliberate, prudent debt — a conscious shortcut with a plan to repay it — is a legitimate tool for shipping faster. Debt becomes a problem when it is unintentional, unrecorded or never repaid, so the interest compounds.
The main causes are deadline pressure, unclear or changing requirements, missing coding standards and reviews, insufficient testing, poor documentation, outdated technology that was never upgraded, and knowledge concentrated in a few people.
Include tests, documentation and review in the Definition of Done; enforce quality gates on new code in CI; automate coding standards; keep dependencies updated with a patch SLA; record every deliberate shortcut with an owner and due date; reserve 15–20% of sprint capacity for debt; and never skip load testing and rollback planning before a go-live.
Still have a question?
Talk to us