Skip to content
All writing

Agentic delivery · Part 1 of 5

Agentic Delivery Starts With the Spec

Why clear specs, standing repository context and small tasks matter more once AI agents write the code.

AIAgentic deliveryPlanning

Coding agents are now good enough that the bottleneck in a delivery team has moved. It used to be typing the code. Increasingly it is deciding, clearly enough for something else to act on, what the code should do. An agent will happily build exactly what you asked for, and that is the problem when what you asked for was vague.

This is the first of five notes on agentic delivery: using AI agents across the software development lifecycle, from planning through to production, without losing the control that business-critical systems need.

Ambiguity used to be absorbed by people

On a human team, a loose ticket gets tightened in conversation. A developer asks what happens when the quantity is negative, someone points out that one warehouse uses a different unit of measure, and the gap closes before anything ships. Nobody writes that down, because nobody has to.

An agent does not ask those questions unless you make room for them, and it will not remember the answer next time unless it is written somewhere it reads. Left alone, it fills each gap with the most plausible guess. Plausible guesses compile, pass the tests the agent wrote for them, and look finished in a pull request. That is the real risk: not code that fails loudly, but code that quietly does the wrong reasonable thing.

What a spec for an agent needs

A spec that works for an agent is not longer than a good ticket. It is just more explicit about the things people usually leave unsaid.

  • The outcome, in the user's terms. "A site manager can see which materials are short for next week's pour," not "add a shortages endpoint."
  • Acceptance criteria that can be checked. Each one should be something a test, a reviewer or a person clicking through the preview can say yes or no to.
  • Constraints. The API contract that other systems depend on, the database that cannot be migrated yet, the component library the front end must use.
  • Non-goals. What not to touch. Agents are eager, and a spec that does not fence off the billing module may come back with a tidier billing module.
  • The edge cases you already know about. If the team has been burned by time zones, partial deliveries or duplicate scans before, say so.

None of this is new advice. What is new is how directly it pays off. With a person, a weak spec costs a few conversations. With an agent, it costs a plausible pull request that has to be unpicked.

Put the standing context in the repository

Much of what an agent needs to know is not specific to one ticket. It is the conventions of the codebase: how services are layered, which patterns are preferred, which commands run the tests, which folders are generated and must not be edited by hand.

Most coding agents now read a repository instructions file, kept in the codebase alongside the code. Treat that file as part of the codebase. Keep it short, keep it true, and update it in the same pull request that changes the convention it describes. A stale instructions file is worse than none, because the agent will follow it confidently.

A useful test is to read the file as if it were all a new contractor had on their first morning. Could they find the tests, follow the conventions and avoid the traps? If not, neither can the agent.

Make the work small enough to review

The size of a task should be set by how much a person can review well, not by how much an agent can produce. An agent can generate a very large change in one go. A reviewer cannot meaningfully read it.

Breaking work into slices that each deliver something checkable has always been good practice. With agents it becomes the main lever on quality. Small slices keep the diff readable, keep the acceptance criteria concrete and make it cheap to throw away a wrong turn.

Let the agent ask

The best specs leave a deliberate opening for questions. Asking an agent to list its assumptions and open questions before it writes any code turns its guesses into something a person can correct in a sentence. It is the cheapest review step in the whole lifecycle, because it happens before there is anything to undo.

The rest of this series follows the work from there: writing the code, reviewing and testing it, getting it through CI/CD safely, and the places where an agent should not act on its own at all.

Responsible for a business-critical system?

If it is an inventory or build-out system that has become hard to change, the Inventory Data Health Check turns it into a plan with a switch-off date.