You are building two products"

The software, and the system that builds it. The second one grows, drifts, duplicates and decays like any other product.
Part 3 of 5 in Autonomous Delivery Field Notes.
TL;DR
- Written rules hold about 80% of the time. That's fine for guidance and not enough for anything that must hold. Those things have to be mechanical.
- Mechanical controls fail too. They are never switched on, passable with prose, duplicated, or out of step with the source of truth.
- Friction has a price. Slow gates train people and agents to route around them, and heavy ceremony on small changes invites faked evidence.
- The control system is a product. It needs an owner, metrics and a backlog, and someone has to prune it.
Late in the programme we audited the enforcement layer. Over the preceding weeks, the team had made 25 changes intended to enforce some rule or other: a gate here, a hook there, a check that would block a merge if a condition wasn't met. Each one had been written in response to a real incident. Each one had been reviewed and merged.
We went through them one by one and asked a simple question: does this thing fire, and when it fires, is it followed?
One of the 25 did both.
Ten were inert. They existed in the codebase and did nothing at all. One gate had never been registered with the system that was supposed to run it, and when we read its logic, it turned out to be inverted. Had it ever been switched on, it would have blocked the good case and passed the bad one.
Nobody had been careless. Everyone had believed, reasonably, that writing and merging a control meant the control was in force. That belief is the subject of this post.
The evidence here is from a single programme, read from the system's own records. Several of these failures have since been fixed. The numbers show the shape of the problem, not a benchmark.
Written rules are the weakest control
The first thing every team does with an agent system is write rules down. Coding standards, vocabulary, architectural decisions, "never do X", "always check Y". This is a good first step and you should do it.
Just be clear about what you get. Across the programme, agents followed advisory rules about 80% of the time. That's genuinely useful for guidance: style, naming, preferred patterns. It's nowhere near enough for anything that has to hold every time.
Compare that with mechanical guardrails: hard blocks on dangerous actions, enforced by the tooling and not by instruction. In behavioural testing, agents complied in 22 of 22 cases, including 10 that were specifically designed to talk them past the rule. The difference wasn't that the agents were better behaved in the second set. It was that in the second set, the tool simply wasn't available to them.
Fence capabilities, not prompts.
We learned that the hard way. An agent briefed as read-only staged changes anyway. Another committed and pushed work nobody had asked it to do. Neither was being adversarial. In each case the instruction said one thing and the available tools said another, and the tools won. The fix was to restrict the tools each role could use. A read-only role gets no write tools. Then "read-only" is a fact, not a request.
Irreversible actions need a wall
The starkest version of this was deployment. In a two-week window, 69 deployments were started by hand outside the release process. Some were started by agents, at a person's request. One of them destroyed a live environment.
The agent in that case wasn't misbehaving. Someone asked for a deployment, the agent had the capability, and it did what it was asked. The problem was that there was no wall between "an agent can do this" and "this cannot be undone".
The control we added was a hard block with no override available to agents. A person can still deploy. An agent cannot, however it is asked. Irreversible actions need a wall, and a human on the other side of it.
Mechanical controls fail too
Having learned that rules are weak, the natural move is to make everything mechanical. That is the right direction. But the audit of 25 told us mechanical controls have their own failure modes, and they're quieter.
Written but never active. The inert ten. A control you have not seen fire is a hope. After the audit, every control was listed as either live or not built, and the live ones were probed regularly.
Evidence as free text. One gate asked whether known patterns had been reviewed. It could be passed by writing that they had. If a gate accepts prose, agents will supply prose. Evidence has to be structured data, checked by the server against real records.
Tools that accept bad input. A misspelt parameter was silently ignored. The call reported success. The gate downstream saw no evidence and nobody knew why. This recurred at least four times. Agents don't notice a quiet no-op, so interfaces built for agents must reject unknown input loudly.
Local guard out of step. A local check cached gate state. On some occasions it blocked valid work on stale data. On others it let invalid work through. A cached copy of a gate is a second, wrong gate. Gate state needs one source of truth, held centrally.
Duplicated controls. After a platform move, 14 checks were running twice on every edit, and half of the duplicate copies had diverged from their originals. So the same rule was being enforced two different ways, and whichever one ran last won. Removing the duplicates cut the cost of every edit by 12 seconds, a 72% reduction. Twelve seconds doesn't sound like much until you multiply it across thousands of agent actions a day.
Poisoned memory. A reviewing agent looked in the wrong place for a build's output, couldn't find it, and declared the whole build fabricated. Confidently. Then it saved that conclusion to persistent memory, where other agents would read it. "I cannot see it" and "it does not exist" are different statements, and the system has to treat them differently. Absence of evidence has to fail differently from evidence of absence.
Instruction space is a budget
There's one more cost that isn't obvious until you hit it. Every rule you add to an agent's standing instructions takes up room that the agent then can't use for the task.
Our standing instructions grew, one incident at a time, to nearly twice the size the tooling warned about. Agents started running out of room, and when they did, the steps that got dropped were often review steps. The rules we had added to make the system safer were crowding out the work that made it safe.
We merged overlapping instructions, scoped them by path so agents only loaded what applied to the files they were touching, and cut the total roughly in half. Every added rule taxes all the others. Treat instruction space as a budget, and spend it on the things that can't be enforced mechanically.
Friction trains bypass
Here's the tension that runs through this whole post. Every gate adds safety. Every gate also adds friction. Past a certain point, the friction produces bypass and faked evidence, and that removes the safety you were adding.
Slow gates. A pre-push check was documented as taking 11 seconds. In practice it took 103. In 30 days, 73 commits cited a bypass flag. A gate people route around is worse than no gate, because it is still trusted. Everyone downstream assumes the check ran. The fix was to scope checks to what had actually changed, and to make the full suite optional for most changes.
Ceremony out of proportion. The full process cost 5 to 10 times the effort for a 50-line change. That gap tempted agents to invent evidence to get through the process faster, which is precisely the failure the process existed to prevent. We added a light path for small changes covered by an existing decision. Uniform process invites faked compliance. Scale it to the risk.
Waiting on courtesy. A low-risk change sat for over two hours waiting for a human vote that no policy actually required. People had added the vote out of caution, and it had become a habit. Low-risk changes now proceed at once. Required approvals still bind. Be explicit about which approvals matter.
Guards that block the rescue. I'll tell this story properly in part 4. The short version is that controls tuned for agents also bind the people who step in to rescue them. A secrets check stopped a person committing a public settings file, and a merge check counted automatic CI comments as unanswered review threads. Test the human path too.
How the controls mature
Looking back, the programme went through a recognisable sequence. My inference is that most teams adopting a system like this will go through it too, so you may as well know the shape in advance.
- Write the rules. Standards, vocabulary and decisions are written down. Agents follow most of them.
- Add controls quickly. Each incident produces a new check or gate. The control layer grows fast.
- Audit the controls. Many turn out to be inert, duplicated, slow or ignored. Some were never switched on.
- Prune and scope. Controls are merged, scoped to what changed, given time budgets, or retired.
- Go unattended. Builds run without a person present. Volume rises sharply, and so do rework, blocking and noise.
- Manage flow. Attention moves to queues, stopping rules, deduplication, and where people are the constraint.
The step most teams skip is three. It doesn't feel like progress, because you're not adding anything. But stage two without stage three is how you end up with 1 working control out of 25.
One practical tip from stage four: new controls did best when introduced in watch-only mode first, logging what they would have blocked, and switched to blocking once their false alarms were understood. Controls that started as blocking, on top of existing debt, broke the main line twice.
The second product
Put all of this together and the conclusion is hard to avoid. You aren't building one product. You are building two: the software, and the system that builds it.
The second product has every property of the first. It grows. It drifts from its own documentation. It accumulates duplicates. It decays when nobody maintains it. It has users, both agents and people, whose experience of it determines whether they use it properly or route around it.
And it is not small. On the programme, there was roughly one control-system change for every four product changes. That isn't overhead you can wave away. It's a substantial, ongoing engineering stream, and if nobody owns it, it degrades exactly like an unowned product.
So treat it like one:
- Give it an owner. Someone whose job is the control system, not someone who touches it when an incident forces them to.
- Give it metrics. Which controls fired, what they cost, what they stopped, how often they were bypassed.
- Give it a backlog. Including deletions. A control that doesn't earn its place should be removed with the same deliberateness it was added with.
- Hold it to the same gates. Changes to the control system should go through the same verified path as product work. Ours did, and the self-repair agents that fixed the system's own defects worked under the same rules as everything else.
An audit to run this week
If you have any kind of automated gate in your delivery process, agent-driven or not, list every control and answer four questions for each one.
- When did it last fire? If you don't know, or the answer is "never", you don't know whether it works. Make it fire on a known-bad case.
- How long does it take? Measure it. Don't trust the documented figure. Ours was off by nearly ten times.
- How often is it bypassed? Search your history for bypass flags, overrides and skips. A high number means the gate is costing more than people think it's worth.
- Who does it stop? Make sure it stops the party it was meant to, and not the person trying to fix things at 6 pm on a Friday.
You will probably find what we found: that most of your controls do less than their authors believed. That's not a reason for embarrassment. It's the stage-three audit, and it's the most valuable afternoon you'll spend on the system.
Next: what happens when you take the person out of the loop and let builds run on their own. Writing code was never the limit. Running unattended is the hard part.
Series: Autonomous Delivery Field Notes
- "Done" is a claim, not a fact
- Autonomy is a property of the specification
- You are building two products (this post)
- Running unattended is the hard part
- 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.
Comments
Join the discussionNo comments yet. Be the first to comment.
Autonomous Delivery Field Notes
Five lessons from four months of running autonomous, agent-driven software delivery on a real multi-team programme: what worked, what broke, and what to have in place before you try it.



