Sub topic 13
Making room for technical debt, spikes, and engineering priorities
This chapter assumes you already know how a sprint runs, how the product backlog is ordered, and how your team estimates and measures capacity. It covers the work that engineers raise and you did not request: technical debt, spikes, and maintenance. It also covers how to give that work a place in the plan without losing sight of product outcomes.
Why this work competes with features
Engineers see costs that product managers cannot see in a demo. Slow builds, fragile modules, outdated libraries, and missing tests all slow future delivery. None of them produces a visible feature, so they lose to feature requests unless you decide on purpose to fund them.
Technical debt is the future cost created by choosing a quick or incomplete technical solution now. Like financial debt, it accrues interest. Each new change in the affected area takes longer or carries more risk. Some debt is a reasonable trade-off, such as shipping a prototype quickly to learn from customers. The problem starts when no one tracks the debt or repays it.
A spike is a short, time-boxed investigation that produces knowledge and not shippable functionality. Teams use spikes to answer a question such as "Can the payment provider's API handle partial refunds?" or "Which of these two approaches is feasible?"
Engineering-driven work is the broader category. It includes debt repayment, security patches, dependency upgrades, performance work, observability, and test automation.
Your role: decide with engineers, not for them
You own the ordering of the product backlog. The developers own how the work is built and are best placed to judge the technical risk. The two meet at a single question: what is the cost of not doing this work?
Your job is to ask for that cost in terms you can weigh against product outcomes. "The checkout module is messy" is hard to prioritize. "Every change to checkout takes about three extra days because of missing tests, and two of the last four releases had regressions there" is something you can compare to a feature.
Good questions to ask:
- What breaks, slows down, or becomes risky if we leave this for another quarter?
- Which upcoming roadmap items touch this area?
- Is there a smaller step that gives most of the benefit?
- How will we know the work paid off?
Making debt visible
You cannot prioritize what you cannot see. Keep engineering items in the same product backlog as features, written so that their value is clear. A plain title like "Refactor auth" tells you little. Compare these two:
| Weak item | Stronger item |
|---|---|
| Refactor auth | Split session handling out of the login service so login changes no longer need a full regression pass (currently about 2 days per change) |
| Upgrade framework | Upgrade the web framework before its security support ends on the stated date, to keep receiving patches |
| Add tests | Add automated tests for the refund flow, which caused two production incidents this quarter |
Each stronger item names the problem, the affected area, and the evidence. Ask engineers to attach a rough size and a reason for urgency during backlog refinement.
Three ways to fund the work
Teams use a few common patterns. None is universally right.
- A capacity allocation. Reserve a fixed share of each sprint, for example 15 to 20 percent, for engineering-driven work. It is simple and predictable. The risk is that the number becomes a habit and stops reflecting real need.
- Items ranked in the backlog. Debt items compete directly with features, ordered by value and urgency. This is transparent, but features often win unless you make the cost of delay explicit.
- Work alongside features. Engineers improve the area they are already changing. This keeps changes small and relevant, but it can hide effort and enlarge feature estimates, so the team should say so openly.
Many teams combine the first and third patterns and rank large items in the backlog. Whichever you choose, record the decision so it survives changes of staff and pressure from deadlines.
Planning spikes well
A spike is only useful if it ends. Without limits it becomes open-ended research.
A good spike has:
- A specific question to answer, written down before it starts.
- A time box, usually one to three days. The spike stops when the time runs out, even if the answer is "we still do not know."
- A defined output, such as a short written recommendation, a prototype that is thrown away, or a comparison of options.
- A decision it informs, so the result changes what the team does next.
Do not give spikes story points that count toward velocity as delivered value, because nothing shippable results. Many teams give them a time box and count the time against capacity instead. Whatever you pick, apply it consistently.
An example of a spike written for the backlog:
Spike: Partial refunds with the payment provider
Question: Can the provider's API refund part of an order, and does it support multiple partial refunds on one order?
Time box: 2 days, one engineer
Output: A one-page summary with the API limits found and a rough size for the refund story
Decision it informs: Whether partial refunds go in the next sprint or need a different provider approachProtecting the sprint goal
Engineering work should support the sprint goal where it can. If the goal is guest checkout, a performance fix on the payment step belongs with it. A cleanup in the reporting module does not, and it should stay in the flexible part of the sprint or wait.
When you plan, separate three kinds of engineering work:
- Needed for the goal: treat it as must-have, like any other story.
- Urgent for safety or stability: security patches or production risks can justify changing scope. Handle them as you would any mid-sprint change, and talk with the team first.
- Valuable but not urgent: schedule it through the allocation or the backlog ranking.
Common mistakes
- Treating debt as the engineers' hobby. If engineers must sneak the work in, estimates inflate and trust drops. Ask for it openly.
- Saying yes to everything. Unlimited debt work can starve product outcomes. Ask for cost and evidence every time.
- Saying no to everything. Delaying maintenance until a crisis forces it costs more than steady investment.
- Rewriting from scratch. Large rewrites are hard to estimate and deliver no value until the end. Prefer small, incremental steps that ship.
- Never revisiting deferrals. A deferred item with no revisit date is a silent rejection.
- Letting spikes grow. Enforce the time box and require a written output.
Communicating the trade-off
Stakeholders may ask why a sprint delivered fewer visible features. Explain engineering work in the terms they care about: delivery speed, reliability, risk, and cost. For example: "We spent a fifth of this sprint on test coverage for refunds. Refund changes should now take days and not weeks, which supports the Q3 plan." Share what changed and what it enables, not the technical details.
Exercise
A senior engineer says, "We need to rewrite the notifications service." You have no estimate and a feature that touches notifications is planned in two sprints. Describe the steps you would take to decide what goes into the next sprint.
Show answer
Ask the engineer for the cost of leaving it, such as slower changes, incidents, or risk, with evidence. Because the approach and size are unknown, propose a time-boxed spike (for example 2 days) with a written question, an output, and the decision it informs. Check whether the upcoming feature depends on the result, and use the spike's findings to prefer an incremental improvement over a full rewrite. Then rank the resulting items in the backlog, refine them with the team, and either pull them into a sprint next to the feature or defer them with a stated revisit date.
Exercise
Your team reserves 20 percent of each sprint for engineering work. In the last three sprints the engineers used it only for small cleanups, while a flaky test suite that delays every release keeps getting skipped. What would you change?
Show answer
Keep the allocation but have the team agree on how to use it. Write the flaky test suite as a backlog item with its cost (for example, hours lost per release), rank it against other engineering and feature items, and commit to it first in the allocated capacity. Review in the retrospective whether the allocation is being used for the highest-value work.