Framework:
- Classify debt: critical (blocking delivery) / high (causing pain) / low (cosmetic)
- Quantify debt in business terms: incidents/month, hours of debugging, MTTR impact
- Allocate fixed capacity (15–20% per sprint), non-negotiable
- Boy Scout Rule — leave code better than you found it in every PR
- Track debt items on the backlog with business-impact labels, reviewed quarterly
Sample narrative: “I use a 20% rule: every sprint, 20% of capacity goes to tech debt, non-negotiable. I classify debt into critical/high/low, fix critical immediately, schedule high items into sprints, and handle low-priority items opportunistically. I quantify the cost for stakeholders in terms they care about: ‘This debt causes 2 production incidents a month and 4 hours of debugging each’ — not ‘the code is messy.’ The key is making tech debt visible through metrics non-technical stakeholders already track: deployment frequency, incident rate, developer velocity.”
Q: How do you manage technical debt in a long-running program?
Technical debt isn’t inherently bad — it’s a deliberate, conscious trade-off when taken knowingly and paid back deliberately. The problem is when it’s invisible or unplanned. Make it visible every sprint via code-quality metrics (SonarQube), manual architecture review, and team sentiment. Treat significant debt items as first-class backlog items with a business case attached, not just “refactoring.” Negotiate 15–20% of every sprint for technical health, framed as risk management rather than aesthetics. For large programs, include a dedicated hardening sprint every 4–6 sprints.