Every engineering team has tech debt, and almost every team has tried to get time to fix it with some version of: "We need a refactor sprint." It rarely works. Not because leaders don't care about code quality, but because the request doesn't tell them what they're buying.
The framing that works treats debt the way finance does: as a portfolio, where each item has a principal and an interest rate .
Principal and interest
Principal is what it would cost to fix: engineer-weeks, risk, coordination.
Interest is what it costs you every week you don't : slower delivery, incidents, on-call load, onboarding time, blocked features.
Ugly code with no interest β a messy module nobody touches β isn't urgent, however much it offends you.β¦