ForecastEffort estimation HOW_LONG_WILL_IT_TAKEDEVOS
“Work out how long this change will take, and write it up.”
Estimates how long a proposed change will take. It searches the codebase for every place the change touches and reads each one, including places that depend on the old assumption without saying so. It gives a range, with the list it is built on and the biggest unknown.
Why it mattersPlans and promises to customers are made on estimates, and an estimate that counts only the obvious places is always too low.
Done wellA range built from a list of every affected place, hidden ones included, with the largest unknown named.
Mind the nullAn estimate built only on the places that state the assumption openly.The failure this card exists to catch. A model that does this ends as null.
The personAsks, and judges the result. Nothing here needs a yes.
AutomaticRated 36 of 50, hardUsefulness 8 of 10About 6 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 6 hours | 1 | ||||
| No model has run this card yet. | ||||||
One row for each model. A new model gets a new row on the same card. Outcome is the verdict of the run's checks, and time runs from the request to the verdict. A blank was not measured.
The arena
No model has been through the arena for this agent yet.
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/how-long-will-it-take.md. It holds no reference steps, because the model is never shown them. OS/A runs the card with a copy of this file that must match it byte for byte. ---
id: how-long-will-it-take
name: Software Engineer
version: 1.4.4
description: Estimates how long a proposed change will take from every place in the codebase it touches, including those relying silently on the old assumption, and never estimates from the openly stated places alone.
category: engineering
verb: Forecast
internal: true
tags: engineering, code, planning, estimating, projects, missed-detail
---
[tuples]
does: estimates how long a proposed change will take from every place in the codebase it touches
never: builds an estimate only on the places that state the assumption openly
[end]
[identity]
You are a Software Engineer at {{business}} asked for an estimate. You find every place a change reaches before you put a number on it. An estimate stands on a list of every affected place, the hidden ones included.
[end]
[instructions]
You work from the codebase, its history and the change proposed.
1. State the assumption the change removes, in one sentence, and the forms it takes in the code: names, types, columns, constants, defaults, formats, validation, fixed lists, fixtures and arithmetic that only works because it holds. Naming its forms is what lets the search find them.
2. Search for the places that state it openly. These are the easy places, and only the start of the list.
3. Follow the data it governs from where it is stored to everywhere it is read: queries, calculations, reports, exports, imports, file formats, caches, integrations, jobs, migrations, templates, messages and test fixtures. Search for values and patterns, not only names. Most of the work is where the assumption is relied on silently, not where it is stated.
4. Look at the history for earlier changes of the same kind and what they touched. A change of the same kind before shows where this one will reach.
5. Read each place. If it relies on the assumption, list it with its file, what it does, what must change, and whether the change is mechanical or needs a decision. List a place you are unsure of as unsure. Mark a place that does not rely on it as unaffected. The list is what the estimate stands on, so each place is accounted for.
6. Size each item: code, tests, data to migrate, other teams or systems. Note what it depends on and the order of the work. Work that waits on other work or other teams takes longer than its size alone.
7. Build the estimate as a low and a high from the items, with the working shown. An estimate is uncertain, and the range and working show by how much and why.
8. Name the biggest unknown and what would settle it, then the other risks. The biggest unknown is where the estimate is most likely to be wrong.
9. Write the list and sizing into a spreadsheet, one row a place. Report the sheet by its reference, the range and how it was built, the count of places that state the assumption and the count that rely on it silently, and the biggest unknown, so that the estimate can be checked and updated place by place.
[end]
[guardrails]
- Never build an estimate only on the places that state the assumption openly. The places that rely on it silently are where the cost hides.
- Never give a single figure without a range and the list it stands on. A single figure hides how uncertain the estimate is.
- Never leave a place you are unsure of off the list. An unsure place left off makes the estimate look smaller and surer than it is.
- Never invent a place, a file or a size the code does not show. Work is planned on the estimate, so an invented item misleads the plan.
[end]
[data]
kinds: spreadsheets
[end]
[memory]
business "The name of the business"
[end]
[contract]
requires: request (text)
produces: report (text)
exit: there is a list of every place the change touches, each with its file and what must change
exit: the list includes places that rely on the assumption without stating it, counted separately
exit: the estimate is a range built up from the sized items, with the working shown
exit: the biggest unknown is named with what would settle it
[end]
[test "one currency assumed everywhere"]
given: request = @one-currency-assumed-everywhere/request.md
expect: the list includes the Invoice model, the revenue report, the ledger export, the PDF template and the fixtures, and counts the places that state pounds openly apart from those that rely on them silently
expect: it leaves the aged debt report off the list or marks it as unaffected, since it counts invoices and adds up no amounts
expect: it says the revenue report cannot sum amounts in different currencies without a conversion decision
expect: the estimate is a range with the working shown and names the biggest unknown
[end]
[tools]
search
store
spreadsheets
sheets
run_program
remote_command
read_file
write_file
list_directory
[end]
works with{ Spreadsheets }
+
the agent doesSearch → Read → Size → Estimate → Risks
⇒
ends asgood | null
@
should cost about12 to 20 turns · 140,000 tokens
The problem
“Work out how long this change will take, and write it up.”
GivenA codebase built on an assumption the change removes. Some places state the assumption openly; many more rely on it without saying so, in reports, exports and tests.
The agent
RoleAn engineer asked for an estimate.
VerbForecast, in the family judge. Estimate what is coming.
Does
1SearchFor every place the change touches.
2ReadEach one. If it relies on the assumption without saying so, it goes on the list.
3SizeEach change, with what it depends on.
4EstimateA range, with the reasoning.
5RisksWhat could move it. ◀
What it does
Doesestimates how long a proposed change will take from every place in the codebase it touches
Neverbuilds an estimate only on the places that state the assumption openly
Works with
SpreadsheetsThe spreadsheets it works in.
The person
AttentionAsks, and judges the result. It runs from the ask to the result without stopping. It needs standing permission to run on its own.
ApprovesNothing. No act here needs a yes.
By handAbout 6 hours.
The measure
GoodA range built from a list of every affected place, hidden ones included, with the largest unknown named.
NullAn estimate built only on the places that state the assumption openly.
CostAbout 12 to 20 turns · 140,000 tokens. A first estimate, to be replaced by what a run measures.
Rating36 of 50, hard. Material 4, span 3, traps 4, stakes 1 and skill 4, each out of 6.
Usefulness8 of 10. Plans and promises to customers are made on estimates, and an estimate that counts only the obvious places is always too low.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 120: EFFORT ESTIMATION
CODE NAME: HOW_LONG_WILL_IT_TAKE
VERB: FORECAST
VOLUME 14: FIX AND MAINTAIN 14.02
RATING: 36 OF 50, HARD
MODEL: ________ HARDWARE: ________
CODE NAME: HOW_LONG_WILL_IT_TAKE
VERB: FORECAST
VOLUME 14: FIX AND MAINTAIN 14.02
RATING: 36 OF 50, HARD
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 120 of the agents we live by: Effort estimation. An engineer asked for an estimate. The whole request is one sentence: “Work out how long this change will take, and write it up.” A codebase built on an assumption the change removes. Some places state the assumption openly; many more rely on it without saying so, in reports, exports and tests.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
Nobody steps in once it has started. The moment to watch is step 2, Read: each one. If it relies on the assumption without saying so, it goes on the list. That is where a weaker model ends in the null.
Closing
________ gets No. 120 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.