Part 6: The agentic software factory
Capstone: shipping Triage from idea to production
One product, fifteen steps across the nine stations, every artifact on the table, with who did the work, what gated it and what it cost
In short
Ship the deterministic spine first, give every station a small artifact and a gate, and let the agent path climb the ladder behind its own flag.
Key ideas
- Requirement tags in the spec point at the test, eval or dashboard that proves them
- Agents draft, code and report; humans own labels, reviews and rollout approvals, and those hours set the cost
- One improvement turn changes one lever and is checked against hidden holdout cases
A summary only. The reasoning, examples, checklist and what to do on Monday are in the chapter. Read it in the book
52 h
human time across 15 steps (illustrative)
$148
build-time agent spend (illustrative)
Inside the chapter
- 1The map: fifteen steps, nine stations
- 2Define: brief, spec, AGENTS.md, tasks
- 3Build: coding sessions, the tool server, harness limits
- 4Prove: evals, end-to-end scenarios, observability, security, registry
- 5Ship and learn: rollout, first week, the improvement loop
- 6Per-track shortcuts
- 7Step-by-step summary
Try it: Triage, station by station
The capstone's 15 stations: artifact, who does it, and the gate.
- 1Idea and briefbrief.md. Agent drafts, ops lead writes. Gate: sponsor sign-off.
- 2Specspec.md. Agent drafts, leads edit. Gate: every requirement testable.
- 3AGENTS.mdAgent proposes, tech lead trims. Gate: reviewed and merged.
- 4Task breakdowntasks.md, 10 issues. Gate: a test per task, one PR each.
- 5Coding sessions and PRs12 merged PRs. Agents code, humans review. Gate: CI, eval gate, approver not requester.
- 6Tool serveracme-tickets MCP. Gate: read-only, contract tests.
- 7Harness limitstriage-bundle.yaml. Human sets, agent checks. Gate: game-day drill.
- 8Eval set and CI gateHumans label, agent slices. Gate: label agreement.
- 9E2E scenarios24 scenarios, 6 holdout. Gate: replay green, nightly pass^3.
- 10ObservabilitySpans and dashboard. Gate: six numbers in shadow.
- 11Security reviewRule of Two table. Security decides. Gate: lane 3.
- 12Registry and AI Actregistry/triage.yaml. Gate: merged before shadow.
- 13Progressive rolloutrollout.md, daily report. Gate: six numbers per rung.
- 14First weekweek-1-review.md. Team decides. Gate: go or no-go.
- 15Improvement loop1 PR, 23 cases. Agent proposes, humans gate. Gate: eval gate, lane 2, shadow.
Go further: free on this site
Questions readers asked about this chapter, a 5-question self-check with explanations, and every source it cites.
Questions readers ask (5)
5 questions. Open one to read the answer.
Why five weeks, if agents write most of the code in days?
The slow parts are not code. Three weeks are rollout, paced by the traffic needed to trust the six numbers; labeling and review are human by design. A low-risk product can compress rollout (Solo: one week of shadow), but never skip shadow for a system that can wake people at night. More parallel agents would barely move the end date.
What if we do not have 240 labeled tickets or two leads with time to label?
Start with 100 labeled by one person, P1s over-represented: enough for a smoke suite and a first gate. A second person labels a 30-ticket overlap to expose ambiguous categories. Then grow from production: every ticket corrected in shadow is a free labeled case. Never skip human labels on the P1 slice.
Do we really need an MCP server, or would plain function calls do?
For Triage alone, functions would work. Acme chose MCP because two other internal agents needed the same tools, and one reviewed server beats three integrations. If nothing will reuse the tools, start with functions and Chapter 3's design rules; moving to MCP later is packaging, not redesign.
Who is on call for Triage at night?
The service's normal rotation owns the spine, with a runbook entry: "Triage down: manual triage queue takes over". Any on-call engineer may flip the investigation kill switch without asking, since the fallback is the workflow result. Nobody edits prompts or rules at night; those go through the gate in the morning.
When should Acme move from the hybrid to a full agent (Version B)?
Probably never. Version B gives up priority consistency and predictable cost per ticket (Chapter 2). Widening the trigger, as Step 15 did, is the right lever: the agent covers more tickets while code keeps the last word on priority. Revisit only if the investigation rate climbs toward most tickets.
Answered in the book, not repeated here: See Chapter 17, Step 9: End-to-end scenarios with a simulated user and recorded replay; See Chapter 16, Every change is a deploy
Self-check (5)
Score: 0 / 5 (0 answered)
Question 1 of 5
Why do Triage's workflow spine and investigation path climb the rollout ladder separately?
Show the answer
Answer: B.
The investigation path hands off to the spine on any limit, so the spine must be stable first, and separate climbs keep cause and effect readable. Separate rollouts lengthen rather than shorten the schedule, and the AI Act has no such rule.
Question 2 of 5
Who should label Triage's eval set, according to the chapter?
Show the answer
Answer: C.
Labels and the definition of a P1 come from the people who answer the pager; agents do the plumbing. A coding agent labeling its own test set shares its blind spots, so the gate goes green on the cases that fail in production.
Question 3 of 5
The investigation agent has no write tools. Why is its summary note still rendered as plain text?
Show the answer
Answer: B.
Rendering is a hidden [C] channel, so links are built only by code from verified record IDs. Storage cost has nothing to do with it; the threat-model table is the reason.
Question 4 of 5
After Step 15's PR, the 23 cases that motivated the trigger change all pass. What is the real check that the change generalizes?
Show the answer
Answer: A.
Cases that motivated a change will pass after it, and an author can tune against anything visible. The regression suite matters too, but it is not hidden from the author, so it cannot be the real check against tuning.
Question 5 of 5
In the station-by-station summary, what dominates the cost of building Triage?
Show the answer
Answer: D.
About 148 EUR of build-time model spend sits against 52 human hours, 20 of them labeling and PR review. Production investigation spend is a separate, capped running cost, not part of the build.
Sources
Sources cited
- Model Context Protocol, Specification 2026-07-28: changelog, July 2026. modelcontextprotocol.io
- Anthropic, An update on recent Claude Code quality reports, April 2026. anthropic.com
- Simon Willison, How StrongDM's AI Team Build Serious Software Without Even Looking at the Code, February 2026. simonwillison.net
- OpenAI, The Hugging Face incident and the road ahead, August 2026. openai.com
- Cloud Security Alliance, Three AI Coding Agents, One GitHub Issue: CI/CD Secrets Exposed, August 2026. labs.cloudsecurityalliance.org
Further reading
- Anthropic, Building effective agents. anthropic.com
- Sierra Research, tau-bench repository. github.com
- StrongDM, Software Factory. factory.strongdm.ai
- Dan Shapiro, The five levels: from spicy autocomplete to the software factory. danshapiro.com