Technical Debt Register Template (Cost of Delay, DORA, AI Code Debt)
Debt register with Fowler quadrant, AI-generated code debt, interest and cost-of-delay method, priority score, fitness function and DORA instability links, budget, cadence
How to use: Use it to record, price and pay down technical debt for a product or team. Agree the interest estimation method and the capacity budget first, then link each entry to a fitness function or delivery metric. The main pitfall is a register without a repayment budget or evidence, which becomes a list nobody acts on.
Preview
Technical Debt Register: [Product, system or team]
Register for recording, prioritising and paying down technical debt: a shared taxonomy (Martin Fowler's technical debt quadrant plus location categories, including debt from AI-generated code), a method for estimating interest and cost of delay, the register itself with a risk-weighted priority score, links to architecture fitness functions and to the DORA instability metrics (change fail rate and deployment rework rate, as defined in the DORA metrics guide at dora.dev, updated January 2026), the triage process, the capacity budget for repayment, the review cadence and reporting. Based on common engineering practice. Replace every
[bracketed]value and every row marked Example.
Document control
| Field | Value |
|---|---|
| Document ID | [TDR-PRODUCT] |
| Version | [1.0] |
| Status | [Draft / Active / Under review] |
| Owner | [@tech-lead] |
| Approvers/reviewers | [@engineering-manager], [@architect], [@product-manager] |
| Last updated | YYYY-MM-DD |
| Classification | [Internal] |
| Scope | [Systems, repositories or services covered] |
| Contributors | [Teams] |
| Review cadence | [e.g. Every two weeks in backlog refinement; quarterly summary] (section 8) |
| Last reviewed | YYYY-MM-DD |
| Payoff horizon | Example: 12 months |
| Related | [Architecture description], [Fitness functions catalogue], [Risk register], [Delivery performance report] |
Approvals
| Role | Name | Decision | Date |
|---|---|---|---|
| Engineering manager (budget) | [@name] | [Approve / Approve with conditions / Reject] | YYYY-MM-DD |
| Architect (taxonomy, links to fitness functions) | [@name] | [Decision] | YYYY-MM-DD |
| Product manager (capacity share) | [@name] | [Decision] | YYYY-MM-DD |
Revision history
| Version | Date | Author | Change summary |
|---|---|---|---|
| 0.1 | YYYY-MM-DD | [@name] | First draft |
| 1.0 | YYYY-MM-DD | [@name] | Example: Approved with a 20% capacity share |
| 2.0 | 2026-10-24 | [@name] | Updated to full weight: document control, AI-generated code debt category, interest and cost-of-delay method, links to fitness functions and DORA instability metrics, review cadence |
Contents
1. Purpose and definitions
Technical debt is any design or implementation choice that makes future change slower, riskier or more expensive than it needs to be, compared with a reasonable alternative. Defects with user-visible impact go to the bug tracker; missing features go to the product backlog. A debt entry may reference either when they are a symptom.
The register exists to make debt visible, comparable and funded. It supports three decisions: what to repay next, what to accept knowingly, and whether the team's overall debt load is rising or falling.
| Term | Meaning in this register |
|---|---|
| Principal | Effort to remove the debt, in engineer-hours |
| Interest | Recurring extra cost the debt causes, in engineer-hours per month (slower changes, incidents, manual work, workarounds), estimated with section 3.4 |
| Cost of delay | Extra cost of fixing later rather than now, including interest and any step increase at a deadline such as an end-of-support date |
| Risk factor | Multiplier from 1 to 3 for security, compliance or outage exposure not captured by interest |
| Payoff horizon | Period over which interest is counted when prioritising; Example: 12 months |
2. Debt taxonomy
2.1 Technical debt quadrant
Martin Fowler's quadrant classifies debt by intent (deliberate or inadvertent) and by judgement (prudent or reckless). The descriptions below are written for this template.
| Deliberate | Inadvertent | |
|---|---|---|
| Reckless | The team knowingly skipped good practice with no plan to repay; example: no tests to hit a demo date and no follow-up ticket | The team did not know a better practice existed; example: hand-built SQL strings because nobody knew about parameterised queries |
| Prudent | The team chose a shortcut consciously, recorded it and planned repayment; example: single-region launch with a ticket to add a second region before scale-up | The team learned later what the design should have been; example: the domain model only became clear after a year in production |
Use the quadrant in retrospectives: reckless entries point to process or skills gaps; prudent-inadvertent entries are a normal result of learning.
2.2 Categories
| Code | Category | Typical examples |
|---|---|---|
| ARC | Architecture | Tight coupling between services, shared database, missing boundaries |
| COD | Code | Duplication, very large classes, dead code, poor naming |
| TST | Test | Missing or flaky tests, slow suites, no contract tests |
| INF | Infrastructure | Manual provisioning, unpatched base images, snowflake servers |
| DEP | Dependencies | End-of-life frameworks, unmaintained libraries, pinned old versions |
| DOC | Documentation | Missing runbooks, outdated diagrams, undocumented APIs |
| SEC | Security | Hard-coded secrets, weak crypto, missing audit logging |
| DAT | Data | Unclear ownership, missing constraints, inconsistent schemas |
| PIP | Delivery pipeline | Manual release steps, slow or flaky pipelines, missing rollback |
| AIG | AI-generated code | Assistant-written code merged without full understanding, tests or review (section 2.3) |
2.3 AI-generated code debt
DORA's State of AI-assisted Software Development 2025 describes AI as an amplifier of an organisation's existing strengths and weaknesses. In debt terms, a team with weak tests, reviews or architecture boundaries will accumulate debt faster when assistants increase the volume of change. Record AIG debt when you see these patterns:
| Pattern | Signal | Typical repayment |
|---|---|---|
| Duplicated logic | Similar functions generated in several places instead of reusing a shared module | Extract and reuse; add a duplication check to CI |
| Untested generated code | Coverage drops in files with large assistant-written changes | Add behaviour tests before further change |
| Unverified dependencies | Packages added by suggestion without intake review, including names that do not exist or are typo variants | Apply the dependency intake process; pin and review |
| Inconsistent patterns | Several error handling or logging styles in one service | Agree one pattern, document it, refactor |
| Unowned code | Nobody on the team can explain how a generated component works | Pair review and document; rewrite where needed |
| Prompt-shaped design | Architecture decisions made implicitly by generated scaffolding | Write an ADR and align the code to it |
Controls that slow AIG accumulation: require the author to understand and be able to explain every line they submit, keep pull requests small, apply the same review and test gates to generated code, and track the share of AIG entries in the quarterly report (section 6).
3. Register
3.1 Priority score
Priority compares the interest paid over the payoff horizon with the cost of fixing, adjusted for risk:
where is interest in engineer-hours per month (section 3.4), is the payoff horizon in months, is principal in engineer-hours and is the risk factor (1 to 3). means fixing the item is expected to pay back within the horizon. Rank by , then by due dates imposed by compliance or end-of-life events.
Example for TD-001 with : .
| Risk factor | Use when |
|---|---|
| 1.0 | No security, compliance or availability exposure beyond the interest |
| 1.5 | Contributes to failed deployments, incidents or a fitness function breach |
| 2.0 | End-of-support component, or a known path to a security or data issue |
| 3.0 | Exploitable vulnerability, regulatory non-conformity or credential exposure |
3.2 Register table
| ID | Description | Location | Quadrant / category | Impact | Signals | Interest (h/month) | Principal (h) | Priority | Owner | Status | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| TD-001 | Example: Order and invoice services share one database schema; every schema change needs both teams | orders-db, services order-svc, invoice-svc | Prudent-inadvertent / ARC | Releases blocked twice a month | FF-02 failing; CFR 15% on order-svc | 16 | 80 | 1.5 | 3.6 | [@team-orders] | In progress |
| TD-002 | Example: Reporting module duplicates tax calculation logic | reporting/tax.py | Reckless-inadvertent / COD | Divergent totals found twice a year | None automated | 4 | 120 | 1.0 | 0.4 | [@team-finance] | Accepted (not now) |
| TD-003 | Example: Payment SDK version reaches end of support in 5 months | payments/ | Prudent-deliberate / DEP | No security patches after end of support | FF-04 will fail at end of support | 10 | 40 | 2.0 | 6.0 | [@team-payments] | Planned for sprint 42 |
| TD-004 | Example: Database password in a deployment script | deploy/legacy.sh | Reckless-deliberate / SEC | Credential exposure | Secret scanner finding | 2 | 16 | 3.0 | 4.5 | [@platform] | Open |
| TD-005 | Example: Input validation generated separately in six API handlers, with three different behaviours | api/handlers/ | Reckless-inadvertent / AIG | Fixes must be applied six times; one handler missed a fix | Rework deployments for validation bugs | 6 | 30 | 1.5 | 3.6 | [@team-api] | Planned |
| [TD-nnn] | [What and why it hurts] | [Path, service, component] | [Quadrant / code] | [Effect] | [FF-nn, CFR, rework, alerts] | [h] | [h] | [1-3] | [P] | [@name] | [Open / Planned / In progress / Accepted / Closed] |
Arithmetic check for the examples: TD-002 ; TD-003 ; TD-004 ; TD-005 .
3.3 Status definitions
| Status | Meaning |
|---|---|
| Open | Recorded and estimated, not yet triaged |
| Planned | Accepted for repayment in a named iteration or quarter |
| In progress | Work has started; link the ticket |
| Accepted | Consciously left in place; review date set; reason recorded |
| Closed | Repaid or the affected code was retired; date and evidence recorded |
3.4 Interest and cost-of-delay estimation
Estimate interest as the sum of four monthly components, each in engineer-hours:
| Component | How to estimate | Data source |
|---|---|---|
| Change friction | Extra hours per change caused by the debt multiplied by changes per month in the affected area | Pull requests touching the area; ask two engineers for extra time per change and take the midpoint |
| Failure cost | Incidents, failed deployments and rework deployments per month linked to the debt multiplied by average hours spent on each | Incident records, change fail rate and deployment rework rate (section 7) |
| Toil | Manual steps or workarounds per month multiplied by their duration | Runbooks, on-call logs |
| Coordination | Extra meetings or cross-team approvals caused by the debt | Calendar sample or team estimate |
Example for TD-001 (shared database): change friction 3 h per change x 4 changes per month = 12 h; failure cost 2 failed deployments per month (6 in Q1, section 7.2) x 2 h = 4 h; toil 0 h; coordination 0 h (already counted in change friction). h per month, matching the register.
Example for TD-005 (AI-generated duplication): change friction 1.5 h per change x 4 changes per month = 6 h; failure cost and toil not yet measured, so recorded as 0 with a note. h per month.
Cost of delay with a deadline. When a date changes the cost step wise, such as an end-of-support date, a contract renewal or a regulatory application date, add the step to the comparison instead of relying on alone. Cost of delay over the horizon is:
where is the expected extra cost if the deadline passes before repayment. Example for TD-003: h; after end of support the team would need emergency patching and an unplanned migration under time pressure, estimated at h, so h against a principal of 40 h. The item is planned regardless of because the deadline falls inside the horizon (section 4 triggers).
Sequencing by cost of delay divided by duration. When several items compete for the same people, divide cost of delay by the time the fix takes (in weeks) and do the highest ratio first. Example: TD-003 with CoD 180 h and duration 1 week scores 180; TD-001 with CoD h and duration 3 weeks scores 64; so TD-003 goes first even though TD-001 has the larger total cost of delay.
Record a confidence level (High, Medium, Low) beside each estimate in the ticket. Items with Low confidence and near 1 are measured for one more cycle before a decision.
4. Triage process
- Capture. Anyone adds an entry with a description, location and rough impact. Shortcuts taken deliberately during delivery are logged in the same pull request that introduces them.
- Estimate. The owning team estimates interest (section 3.4) and principal at the next refinement session. Use ranges when unsure and record the midpoint.
- Score. Compute and set the risk factor. Security and compliance items with are escalated to [@security-lead].
- Link. Add the fitness function, delivery metric or alert that shows the debt (section 7), or record that none exists yet.
- Decide. At the review, each item becomes Planned, Accepted with a review date, or is merged with another entry.
- Verify. When closed, record the evidence (merged change, metric improvement, removed component, fitness function now passing).
| Trigger | Action |
|---|---|
| New item with | Review within 5 working days |
| Item with open for more than one quarter | Escalate to engineering manager |
| End-of-life date within 6 months | Plan regardless of |
| Fitness function failing for two consecutive reviews | Create or update a debt entry and set |
| Change fail rate or rework rate for a service above its target for a quarter | Review debt entries for that service at the next review |
5. Budget allocation
| Item | Value |
|---|---|
| Capacity share for debt repayment | Example: 20% of each iteration's planned capacity |
| Capacity this quarter | Example: 6 engineers x 60 days x 6 h x 20% = 432 engineer-hours |
| Allocation rule | Example: Highest first; at least one item with per iteration |
| Exceptions | Example: Budget may be lent to a release for at most one iteration and is repaid in the next |
| Approver for changes | [@engineering-manager] |
Planned use this quarter: [list the items and hours]. Example: TD-003 (40 h), TD-004 (16 h), TD-001 (80 h) and TD-005 (30 h), a total of 166 h, leaving 432 - 166 = 266 h for items raised during the quarter.
When debt grows faster than the budget repays it for two quarters in a row (items added exceed items closed and total interest rises), the engineering manager proposes a higher share or a dedicated repayment iteration to the product owner, with the cost-of-delay figures from section 3.4 as evidence.
6. Reporting
| Metric | Definition | Last quarter | This quarter | Trend |
|---|---|---|---|---|
| Open items | Count of Open, Planned and In progress | Example: 34 | 29 | Improving |
| Total monthly interest | Sum of over open items | 142 h | 118 h | Improving |
| Items added / closed | New entries versus closures | 9 / 6 | 7 / 12 | Improving |
| Budget used | Hours spent on repayment / hours allocated | 380 / 432 | 410 / 432 | Stable |
| High-risk items open | Count with | 3 | 1 | Improving |
| AIG share | AIG items / all open items | 2 / 34 | 4 / 29 | Worsening |
| Fitness functions failing | Count of failing functions linked to open debt | 4 | 2 | Improving |
| [Metric] | [Definition] | [ ] | [ ] | [ ] |
Narrative: [Two or three sentences for leadership on the effect of
repayment.] Example: Splitting the shared order database (TD-001)
removed the most frequent release blocker; lead time for order changes
dropped from 6 to 3 days and the change fail rate for order-svc fell
from 15% to 4.4% (section 7.2). AI-generated duplication is a growing
share of new debt, so the team added a duplication check to CI.
7. Links to fitness functions and delivery metrics
7.1 Fitness functions
Architecture fitness functions are automated or manual checks that
measure how well the system meets an architectural characteristic. Use
the Architecture Fitness Functions Catalogue
(architecture/fitness-functions) as the source of IDs and thresholds.
| Fitness function | Characteristic | Debt it detects | Linked entries |
|---|---|---|---|
| FF-02 (Example) | Modularity: no cycles between modules | Coupling and shared schemas | TD-001 |
| FF-04 (Example) | Security: no dependency with a known critical vulnerability or past its end-of-support date | End-of-support and vulnerable dependencies | TD-003 |
| FF-07 (Example) | Deployability: lead time from merge to production | Manual release steps, slow pipelines | [TD-nnn] |
| [FF-nn] | [Characteristic] | [Debt type] | [TD-nnn] |
Rules: a new fitness function that fails on day one creates debt entries for each violation rather than a waiver; a waiver in the fitness functions catalogue must reference the debt entry that will remove it.
7.2 DORA instability metrics
The DORA metrics guide (dora.dev, page updated 2026-01-05) groups five
software delivery metrics into throughput (change lead time, deployment
frequency, failed deployment recovery time) and instability (change
fail rate, deployment rework rate). Debt usually shows up first in the
instability metrics. Definitions are paraphrased here; use the
measurement method in the Delivery Performance Report
(dev/delivery-performance-report) so numbers are consistent.
| Metric | Paraphrased definition | Formula used here |
|---|---|---|
| Change fail rate | Share of deployments that need immediate intervention afterwards, typically a rollback or hotfix | Deployments needing immediate intervention / total deployments |
| Deployment rework rate | Share of deployments that were not planned and happened because of an incident in production | Unplanned deployments caused by production incidents / total deployments |
Example for order-svc, before and after repaying TD-001:
| Quarter | Deployments | Needing immediate intervention | Change fail rate | Unplanned, incident-driven | Deployment rework rate |
|---|---|---|---|---|---|
| Before (Q1) | 40 | 6 | 6 / 40 = 15.0% | 5 | 5 / 40 = 12.5% |
| After (Q3) | 45 | 2 | 2 / 45 = 4.4% | 2 | 2 / 45 = 4.4% |
Read the metrics at service level and as trends. One quarter of data from a small number of deployments is a signal to investigate, not proof. Never set a debt team's individual targets on these metrics; they describe the delivery system, not people.
8. Review cadence and governance
| Forum | Cadence (Example) | Participants | Inputs | Decisions |
|---|---|---|---|---|
| Backlog refinement | Every 2 weeks | Owning team, tech lead | New entries, estimate updates | Estimates, risk factors, Planned items for the next iteration |
| Architecture review | Monthly | Architect, tech leads | Failing fitness functions, ARC and AIG entries | Cross-team debt, ADRs for repayment design |
| Quarterly debt review | Quarterly | Engineering manager, product manager, tech leads | Section 6 report, DORA instability metrics, DevEx survey themes | Budget share, escalations, Accepted items to revisit |
| Annual reset | Yearly | Engineering director | Register trends, engineering strategy | Payoff horizon, risk factor scale, taxonomy changes |
Governance rules:
- Every open entry has a named owner and a status; entries without an owner after one review are assigned by the tech lead.
- Accepted entries carry a review date no more than [two] quarters ahead and the reason for acceptance.
- Changes to the method in section 3 or the budget in section 5 are recorded in the revision history with the approver.
- Debt raised in postmortems (
dev/postmortem) is entered within 5 working days of the postmortem review, with the incident ID. - The register is visible to everyone in engineering and product.
9. Glossary and references
| Term | Meaning in this register |
|---|---|
| Principal () | Effort to remove the debt, in engineer-hours |
| Interest () | Recurring monthly cost of keeping the debt, in engineer-hours |
| Cost of delay (CoD) | Interest over the horizon plus any deadline step cost |
| Priority () | Risk-weighted ratio of interest over the horizon to principal |
| Fitness function | Check that measures an architectural characteristic objectively |
| Change fail rate | DORA instability metric: share of deployments needing immediate intervention |
| Deployment rework rate | DORA instability metric: share of deployments that are unplanned and caused by a production incident |
| AIG debt | Debt mainly caused by AI-generated code accepted without adequate understanding, tests or review |
References:
- Martin Fowler, "Technical Debt Quadrant", martinfowler.com, 14 October 2009: https://martinfowler.com/bliki/TechnicalDebtQuadrant.html
- DORA, "DORA's software delivery performance metrics" guide (updated 2026-01-05), CC BY 4.0: https://dora.dev/guides/dora-metrics/
- DORA, State of AI-assisted Software Development 2025: https://dora.dev/research/2025/dora-report/
- N. Ford, R. Parsons, P. Kua, Building Evolutionary Architectures (O'Reilly), for the fitness function concept (inspiration only).
- D. Reinertsen, The Principles of Product Development Flow, for the cost of delay concept (inspiration only).
- Related templates: Architecture Fitness Functions Catalogue
(
architecture/fitness-functions), Delivery Performance Report (dev/delivery-performance-report), Developer Experience Survey (dev/developer-experience-survey), Engineering Strategy (dev/engineering-strategy), CI/CD Pipeline Design (dev/ci-cd-pipeline-design).
Standard and licence note
Based on common engineering practice for technical debt management. The technical debt quadrant is a concept by Martin Fowler ("Technical Debt Quadrant", martinfowler.com, 2009), described here in original words. The DORA metric names and definitions are paraphrased from the DORA metrics guide at dora.dev, content licensed by Google LLC under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); the amplifier finding is cited from the DORA State of AI-assisted Software Development 2025. Fitness functions and cost of delay are cited as concepts from the books listed in section 9; no text from them is reproduced. Check the current DORA definitions at dora.dev before relying on this register, as the guide is updated periodically. Original text written for this collection; examples are illustrative. Template licence: MIT.
Related templates
Application Portfolio Rationalization Template (TIME Model)
Inventory, weighted business value and technical health rubric, run cost, risks, TIME quadrant, dispositions, roadmap, decommissioning, benefits
ArchitectureSoftware Architecture Document Template (4+1 Views)
SAD with Kruchten 4+1 views – goals and constraints, scenarios, logical, process, development, physical views, sizing, view mapping
ArchitectureArchitecture Roadmap and Transition Architectures Template (TOGAF E, F)
Consolidated gaps, work packages, Transition Architectures, dependencies, value and risk per increment, migration plan, costs, Phase G hand-off