# Autonomy is a property of the specification

---

*How far agents can run alone depends less on how capable they are than on how completely the work was defined.*

*Part 2 of 5 in* ***Autonomous Delivery Field Notes****.*

**TL;DR**

- The real gain from autonomous build is parallelism. Many agents can build at once, but only when each builds to a locked contract and not to another agent's running code.
- Independent agents agree only on what is written down. Anything the design leaves open, they will fill in differently.
- Speed in build is paid for with precision in design. The effort doesn't disappear. It moves upstream, into contracts, acceptance criteria and decisions.
- When the specification is the input, a stale specification manufactures defects. The same holds for the standing instructions you give agents.

---

The design for a service boundary described the request, the response and the happy path in careful detail. What it didn't say was what type of error the service should raise when something went wrong.

Two agents worked from that design. One built the service. The other, working independently (as it was supposed to), wrote the tests. Both were competent. Both made reasonable choices. Each invented an error type.

They invented different ones.

Every unit passed on its own. The tests failed at assembly, when the builder's error met the test writer's expectation. Nobody had made a mistake, exactly. The design had a hole in it, and two agents had filled the hole in two plausible ways.

This is the incident I use when someone asks me what "agent-ready" means. In a human team, the builder and the test writer would have had a thirty-second conversation, probably without noticing they'd had it. Agents working in parallel don't have that conversation. They agree only on what is written down.

> As with every post in this series, the evidence comes from one programme: a large multi-team codebase, several months of use, unattended builds only in the final weeks. Numbers illustrate mechanisms. They are not benchmarks.

## Parallelism is the gain

It's worth being clear about where the value of autonomous delivery actually comes from, because it is not where most people first look.

It isn't that one agent writes code faster than one engineer, although it does. It's that **many agents can build at once, and none of them waits for a neighbour to finish**. On the programme, automated build pull requests went from **2 a day to 40 to 48 a day within two weeks** of unattended builds starting.

That jump doesn't come from smarter agents. It comes from structure. The system ran work through staged gates:

0. **Strategic design**, led by people: architects settle the big decisions.
1. **Detailed design**: agents write designs and interface contracts.
2. **Design check**: mechanical simulation looks for inconsistencies between designs.
3. **Planning**: work is ordered into parallel waves.
4. **Foundation**: shared types, libraries and mocks are built first.
5. **Parallel build**: many agents build to locked contracts.
6. **Integration**: mocks are replaced by the real parts.
7. **Acceptance**: an audit against the definition of done.

Look at where the parallel build sits. It comes after four stages whose entire job is to make it possible for units to be built without talking to each other. The contracts are the coordination. Strip them out and you're back to agents building against each other's half-finished code, which is serialisation with extra steps.

## Large, bounded work can land whole

When the specification is good, the results are striking. **54 of 105 features landed in a single pull request.** One of those carried 141 files and about 19,000 added lines, and it landed whole, because an approved design and clear acceptance criteria gave the agent a complete target.

Then there's the other half. **51 of 105 features needed more than one pull request, and the worst needed 14.** Half the work flowed cleanly and half did not, and the tail was long.

When I went through what separated the two halves, it was rarely the difficulty of the code. It was whether the target was complete. Was the design approved and stable? Were the interfaces locked? Were the neighbours stable? Could correctness be checked deterministically? I'll come back to that list in the final post, because it turns into a pretty good readiness scorecard.

## Independent agents agree only on what is written down

The error-type incident wasn't a one-off. It's the general rule, and it applies to everything that crosses a boundary.

**Designs must pin every type that crosses a boundary.** Not just the happy-path payload. Errors, enums, nullability, units, identifiers. If two parties will both touch it, write it down.

The same logic applies to anything *shared*, not just interfaces:

- **Collisions born at merge.** Two branches, each perfectly clean on its own, claimed the same database migration number. Two such changes merged 64 seconds apart. Neither agent did anything wrong. A shared sequence was being allocated by detection after the fact instead of by reservation up front. The fix was to reserve numbers centrally and to check the merged result before merge.
- **Silent rewind.** A merge quietly replaced a newer version file with an older one. Version control saw no conflict, because at the level of lines there wasn't one. Merge tools protect lines, not meaning. We added a check that versions only move forward against the target branch.
- **Duplicate automation.** An overnight batch raised changes for defects that another run had fixed minutes earlier, and completed one of them with nothing in it. Concurrent agents need a shared claim on work: check for an existing fix before opening one, and refuse to complete an empty change.

What these have in common is that a human team handles them socially. Someone says "I'm taking migration 42", or "oh, Sam already fixed that". When you remove the social layer, you have to replace it with allocation, claims and checks. **Shared resources are allocated centrally**, and that includes sequence numbers, identifiers and claims on work.

## The effort moves upstream

Here's the part people don't expect, and that leaders in particular need to hear early. Autonomous build doesn't remove effort from delivery. It relocates it.

The median time from **design start to design review was 5.3 days, with a 90th percentile of 9.2**. Design, with its human sign-off, set the pace for the whole system. Build was fast. Getting to the point where build could be fast was not.

That's not a failure. It's the trade. Speed in build is paid for with precision in design. Contracts, acceptance criteria and decisions have to be settled before agents start, because agents are very good at translating a design into code and quite bad at settling architecture as they go. If you let them decide as they build, each agent decides independently, and you get the error-type problem at the scale of the whole architecture.

Three things have to be true before build starts:

- **Decisions are made.** Agents shouldn't be choosing between architectural options mid-build.
- **Every interface has a contract**, and the contract pins every type that crosses the boundary.
- **Acceptance criteria are checkable.** If a person can't say how to verify a criterion, an agent can't be held to it. "The page should feel responsive" isn't a criterion. "The p95 render time on the reference dataset is under 300 ms" is.

If you're used to teams that resolve ambiguity in standup, this feels heavy. It is heavier. It's also where most of the leverage is.

## A stale specification manufactures defects

If the specification is the input, its accuracy is a correctness issue, not a documentation issue. That sounds obvious, and we still got it wrong several ways.

**Design drifts from code.** One week of audits found **22 places where the design and the shipped code disagreed**. That would be a tidy-up task in most teams. Here it was worse, because neighbouring teams were building from the design. Every mismatch was a defect waiting to be manufactured somewhere else. The fix was to make every build state whether it had changed what the design says, and to update the design if so.

**Design on an old snapshot.** Between a feature's design and its build, another team landed a change that touched the same area. The design was correct when written and wrong when built. We started comparing design assumptions with the current code at the moment build begins. The longer the gap between design and build, the more re-grounding it needs.

**Stale standing instructions.** This was the one that convinced me. We ran a blinded test. Agents given out-of-date standing instructions got **3 of 7 answers wrong**. With current instructions, they got **none wrong**. Same agents, same questions. The only variable was whether the instructions were current.

Agents repeat what they are handed. They don't doubt it the way a person would. A senior engineer reading a stale wiki page often notices something smells off. An agent will implement it faithfully. So the rule became: **whoever makes a change fixes the instructions it invalidates, in the same change.** Not in a follow-up ticket, and not when someone gets round to it.

## Say which source rules

The last failure in this family is subtle and very common.

An agent building a screen copied a prototype instead of the governing design. The resulting screen matched the written specification and none of the visual designs. The prototype was right there in the repository, it looked authoritative, and it was the nearest plausible example.

Agents take the nearest plausible example. If your repository contains a prototype, a deprecated module, an old design and a current one, the agent will pick whichever is closest to hand, not whichever is correct. The fix was simple: every task names its authoritative sources, and the agent must load them before it starts.

This generalises well beyond agents, by the way. Most organisations have several sources of truth for any given thing and a shared, unwritten understanding of which one wins. Agents don't have access to the unwritten part.

## What a good specification looks like

Pulling this together, here is what I would now expect of a design before handing it to agents:

1. **It pins every boundary.** Types, errors, enums, identifiers, units, nullability. If it crosses an interface, it's written down.
2. **It names its sources.** Which documents, designs and code are authoritative, and which are not.
3. **Its acceptance criteria are executable**, or at least executable in principle by someone who isn't the author.
4. **It reserves shared resources**: migration numbers, identifiers, anything that two agents might both reach for.
5. **It is re-grounded at build time** against the current code, not the code as it was when the design was written.
6. **It is kept current by the change that invalidates it**, along with any standing instructions it affects.
7. **It lists the people-owned steps** (sign-offs from other teams, approvals) from the start. In part 4 I'll describe what happens when those are discovered at the end.

## A readiness test

Here's the test I now use, and it works as well for human teams as for agents.

**Could two people who never speak build the two sides of this interface from the document alone?**

If the answer is yes, the work is ready for parallel autonomous build. If the answer is "mostly, but they'd need to check a couple of things with each other", those couple of things are exactly where your agents will diverge. Write them down first.

Autonomy isn't something you get by buying a more capable model. It's something you earn by writing the work down completely enough that capability is no longer the limit.

Next: once you have a system like this running, you discover you're maintaining two products, and the second one decays just like the first. *You are building two products.*

---

*Series: Autonomous Delivery Field Notes*

1. ["Done" is a claim, not a fact](https://blog.andinet.dev/done-is-a-claim-not-a-fact)
2. **Autonomy is a property of the specification** *(this post)*
3. You are building two products
4. Running unattended is the hard part
5. When to use it, and what to have in place first

*The views, opinions, and technical perspectives expressed in this article are entirely my own and do not represent those of my employer or any affiliated organisation.*
