Sub topic 8
Timeboxes and Effort Budgets
This chapter assumes you can already state a quality bar and write acceptance criteria for a task. It covers how to put a limit on the effort a task gets, and how that limit works with the bar you set earlier.
Why a bar alone is not enough
A quality bar says what "good enough" looks like. It does not say how much time you are willing to pay to reach it. Without that second number, a task expands to fill whatever time is available. Extra effort then goes into polish that no reviewer asked for.
An effort budget is the amount of time you decide a task deserves before you start. A timebox is that budget turned into a fixed block of time with an end point. The two ideas are close. The budget is the decision ("this is worth about 30 minutes"). The timebox is the mechanism ("work until 11:30, then stop and decide").
Setting the budget
Two inputs from earlier chapters set the budget: stakes and reversibility. The third input is diminishing returns, the point where each extra hour improves the result less than the one before.
- Classify the task by stakes and reversibility. A low-stakes, reversible task gets a small budget. A high-stakes, irreversible task gets a large one, with room for review.
- Estimate how long a version that meets your acceptance criteria would take. Be honest and include checking time.
- Set the budget close to that estimate, not far above it. A budget with a lot of slack invites extra polish.
- Write the budget into your definition of done, next to the stopping condition.
The effort_level function from this tutorial's decision rule can feed this step. It maps stakes and reversibility to a level of effort. You then attach a time figure to each level.
def effort_level(stakes: str, reversible: bool) -> str:
if stakes == "high" and not reversible:
return "thorough"
if stakes == "high" or not reversible:
return "careful"
return "light"
# Minutes you are willing to spend per effort level for one typical task.
BUDGET_MINUTES = {"light": 30, "careful": 90, "thorough": 240}
def budget_for(stakes: str, reversible: bool) -> int:
return BUDGET_MINUTES[effort_level(stakes, reversible)]
print(budget_for("low", True))
print(budget_for("high", False))The numbers in BUDGET_MINUTES are examples. Replace them with figures from your own work. The useful part is that the budget comes from a rule you set in advance, not from how the task feels halfway through.
Running a timebox
A timebox has a start, an end, and a planned action at the end. The action matters more than the clock.
- Check the definition of done at the end of the box. If every must-have item is checked, stop.
- If items remain, decide on purpose. Either extend the box by a stated amount, or cut a requirement, or hand the work over with the gaps named.
- Do not extend silently. A silent extension is how a 30-minute task becomes a three-hour one.
Many people also add a midpoint check. Halfway through the box, ask whether you are on track to meet the must-haves. A midpoint check catches a bad estimate while you can still change the plan.
Common errors
| Error | What happens | Fix |
|---|---|---|
| Budget set after the work starts | The budget matches whatever you already spent | Write it down before you begin |
| Budget with no stopping action | The box ends and work continues anyway | Decide the action at the end in advance |
| Estimate ignores checking time | You finish drafting but have no time to verify | Include review and testing in the estimate |
| Same budget for every task | Low-stakes work is overpolished and high-stakes work is rushed | Set the budget from stakes and reversibility |
Worked example
You need to write a weekly status report. Stakes are low and the report can be corrected, so the effort level is light. You set a 30-minute box, the same figure as in the definition-of-done example. At the 15-minute mark you have the progress section done and no risk entry yet. That is on track. At 30 minutes the numbers still do not match the tracker. The must-have "numbers match the tracker" is unchecked, so you extend by 10 minutes, fix the numbers, and ship. You skip the chart because the definition of done lists charts as not required.
Exercise
A task is high stakes but fully reversible. Using the effort_level rule above, which level does it get, and what happens at the end of its timebox if one must-have item is still unchecked?
Show answer
High stakes with reversibility gives "careful", because the rule returns "careful" when stakes are high or the work is not reversible, but not both. If a must-have is unchecked at the end of the box, you decide on purpose: extend by a stated amount, cut a requirement, or hand over with the gap named. You do not keep working silently.
Exercise
Your 90-minute budget is half used and you have finished only a quarter of the must-haves. What should the midpoint check lead you to do?
Show answer
Treat it as a signal that the estimate was wrong while there is still time to act. Re-plan: cut or defer lower-priority requirements, ask whether the bar can be renegotiated with the reviewer, or request more time with a stated figure. Do not wait until the box ends to notice.