SteelReed

Search

Search posts, questions…

8. Senior Skills

Estimating and breaking down work when AI writes the first draft: ranges, PERT, spikes and scope negotiation

Why software estimates miss, and why AI writing code faster doesn't make the project faster by the same amount: vertical slices and the walking skeleton, ranges instead of a single number, PERT, reference classes, story points or days, spikes, buffers and scope negotiation, with a VNPay integration example.

18 Nov 20267 min readSenior

–

1. The problem

An agent scaffolds the VNPay integration in a morning: URL creation, HMAC signing, an IPN controller. The developer tells the PM "3 days, done". Four weeks later it still isn't in production: IPNs arriving after holds expired, a reconciliation job, a production account waiting for VNPay's approval.

2. Key idea

Estimates rarely miss because of bad arithmetic; they miss because work isn't split small enough, "invisible" work is forgotten, and people are optimistic. AI makes the visible part (code) cheaper, which makes the rest even easier to forget.

Cause Cure With AI
Planning fallacy: assuming it goes smoothly add P, compare with history a running draft makes it feel "nearly done"
Forgetting review, tests, migrations, deploys a definition-of-done checklist AI doesn't shorten waiting on review or third parties
Oversized tasks ("payments integration: 5 days") split until each task ≤ 2–3 days AI lists subtasks, a human reviews
5 person-days = 5 calendar days apply a focus factor (usually 50–70%) unchanged

Perceived speed is unreliable: in METR's 2025 study, 16 experienced developers were 19% slower with AI while believing they were 20% faster. METR considers that result dated, but the lesson holds: measure with your team's numbers.

2.1 Which tool?

Tool Use when Don't use when
Three-point PERT small, understood tasks many unknowns: spike first
Timeboxed spike unknown spec, sandbox, library you've done this three times
Story points inside a team, planning by velocity talking to stakeholders; comparing teams
One shared buffer at the end known risks padding each task (Parkinson's law eats it)

3. In practice

Per slice: O (smooth), M (most likely), P (a plausible risk happens)
E = (O + 4M + P) / 6        σ ≈ (P − O) / 6
O=1, M=2, P=6 → E = 2.5 > M  (reporting M always underestimates)
Total: E = ΣE; σ = √(Σσ²) only holds for independent tasks
 
Calendar days = person-days / focus factor
Total E 22 person-days, focus 65% → ~34 working days ≈ 7 weeks
 
The report: "About 6–8 weeks for 1 developer, 80% done by week 7.
Assumption: the VNPay production account is approved within 2 weeks.
Risk: late IPNs, clearer after Wednesday's spike. Next update Friday."

If it doesn't fit the deadline, offer a menu: cut scope, add people, move the date; never quietly lower the number or cut quality.

Vertical slices and walking skeletons

Each slice is a behavior that runs through every layer ("create a payment URL": API + signing + storing the attempt), not "write all the entities". Slicing by layer means you only learn at the end whether the layers fit.

A walking skeleton is the smallest end-to-end, deployable version, pulling integration risk to the front. Slices are 0.5–3 days; bigger ones are hiding subtasks.

Track slices running on staging, not "% of code": "90% done" often means half the effort remains. A burn-up chart also draws the total-scope line, so scope growth is visible. If you're off by more than 50%, re-estimate and report at once, with a menu.

4. Working with AI

Give the AI: splitting a feature into vertical slices, listing "invisible" work (migrations, alerts, runbooks, reconciliation), computing PERT and σ, proposing questions for a spike.

Check in the AI's estimate:

  • Every slice includes tests, review, migrations, config, deploy and monitoring.
  • No slice over 3 days; unknowns are timeboxed spikes.
  • It reports E, not the sum of M.
  • Person-days are converted to calendar days; external dependencies are separate.
  • Any "AI makes us faster" factor comes from your team's measurements.

5. Exercises

Exercise 1: Review an AI's estimate

The AI returns six slices for a CSV export feature (totals O = 3, M = 5, P = 11.5) and concludes: "Total E = ΣM = 5 days; σ ≈ 0.63; tell the PM: done in 5 working days, 95% certain." Find the mistakes and rewrite the conclusion.

Solution to Exercise 1
  1. E isn't ΣM: E = ΣE ≈ 5.75 person-days.
  2. Person-days aren't working days: at 65% focus, ~8.8 working days.
  3. "95%" has no basis: √(Σσ²) assumes independent slices, while the query slice and the 200,000-row test slice share the "slow query" risk.
  4. No assumptions or update date.

The right conclusion: "About 2 weeks for 1 developer, 80% done within 10 working days. Assumption: object storage and the email service already exist. Risk: slow queries on the big table, known after slice 2 on Wednesday."

Exercise 2: Burn-up in week 3

The original estimate: 40 slices, 5 weeks. End of week 3: 30 slices done on staging, but total scope is now 52 slices. The developer reports "on track, 75% done". The PM asks if you'll make it.

Solution to Exercise 2

30/40 sounds like 75%, but scope grew to 52: really 30/52 ≈ 58%. At 10 slices/week, the remaining 22 need ~2.2 weeks: done at the end of week 5–6, not week 5.

Today: give the PM these numbers with a menu (cut the 12 new slices, slip about a week, or accept the risk). Root fix: every added slice goes through whoever owns scope and shows on the burn-up; report progress against current total scope.

Summary

  • Report a range with confidence, never a single number.
  • A walking skeleton, then 0.5–3-day vertical slices.
  • PERT: E ≥ M when skewed right; unknowns get a spike.
  • Convert person-days to calendar days with a focus factor.
  • If the deadline doesn't fit, offer a scope menu.

Read more: Back-of-the-envelope estimation.

Practice interview questions on this topic

All Behavioral questions →

Loading comments…
Next on the roadmapMentoring for senior engineers: teaching newcomers when AI writes their code