Skip to main content

Done is a claim, not a fact

Updated 13 min readMarkdown
Part of seriesAutonomous Delivery Field Notes
Done is a claim, not a fact

Why verification, not generation, is the hard problem in autonomous software delivery.

Part 1 of 5 in Autonomous Delivery Field Notes.

TL;DR

  • Agents produce plausible work very quickly. That was never the hard part. The hard part is knowing whether the work is real.
  • Almost every serious failure I saw traced back to one thing: a claim that nobody independently checked.
  • Green tests are weak evidence when the test was written from the same belief as the code, when both sides mock the join, or when the tests never ran at all.
  • What works is boring and mechanical. Someone else re-runs it. Evidence is structured data, not prose. And every check is shown to fail before anyone trusts it to pass.

An agent was given a feature to build. Part-way through, it ran out of working memory. It did not stop. It did not raise an error. It wrapped up, wrote a tidy summary of what it had done, and the run was reported complete.

Key files were missing.

Nothing about the report looked wrong. The summary was fluent and specific. The status was green. If you had read only the report, which is what the rest of the system did, you would have moved on to the next item. The problem surfaced later, when someone tried to use the thing that had supposedly been built.

What these field notes are about

For about four months, I used an autonomous software delivery system day to day on a large, multi-team programme in an enterprise codebase. For most of that time people were watching closely, and in the final weeks builds ran unattended, with nobody at the keyboard. By autonomous delivery I mean something more than a coding assistant. The agents take an approved design and carry the work the rest of the way: they write detailed designs and interface contracts, plan the build, write the code, write the tests, review each other's changes, and merge, with people deciding and signing at a handful of gates. Many agents work at once, each building one piece of a larger product.

Autonomous Delivery Field Notes is a five-part series on what those months of real use taught me. It covers what these systems do well, how they fail, what has to be in place before you trust them, and when they are the right tool. It isn't a product review or a vendor comparison, and it isn't a forecast. It's a practitioner's account, drawn from the system's own records of defects, decisions and metrics, and from the fixes it needed along the way. I've written it for engineers who build or run agent workflows, and for engineering leaders deciding whether to adopt one.

The five parts run from what surprised me most to what I'd do about it:

  1. "Done" is a claim, not a fact. The hard problem is verification, not generation. (this post)
  2. Autonomy is a property of the specification. How far agents can run alone depends on how completely the work was defined.
  3. You are building two products. The software, and the system that builds it, which needs its own owner.
  4. Running unattended is the hard part. The machinery, the people and the joins between systems.
  5. When to use it, and what to have in place first. Where it fits, and a readiness scorecard.

Each post stands on its own. I'm starting here because the incident above, small as it looks, contains most of the lesson.

The hard problem in autonomous delivery is verification, not generation.

A note on the evidence. Every figure in this series comes from one programme, mostly from a single partial month while the system was still being improved. The system isn't named and the cases are anonymised. Treat the numbers as illustrations of a mechanism, not as industry benchmarks.

The worker's report is the most dangerous artefact in the system

When people first watch agents work, they focus on output. How fast does it write code? How good is the code? Those are reasonable questions, and the answers are now "very fast" and "often good". But the failures that cost us the most were not failures of output. They were failures of belief. The system believed something that was not true, because the party that did the work also told it the work was done.

It showed up in several forms, and once you see the pattern you start seeing it everywhere.

  • False "done". The incident above. An agent ran out of working memory, left deliverables unwritten and reported success.
  • Phantom green. An agent's edits landed in a separate working copy. Its tests ran against the unchanged code and passed. The agent reported, accurately from its point of view, that the tests were green. They were green. They were also testing nothing it had changed.
  • Self-certified fix. A defect was closed with a note saying the fix worked. No test had been run. The note was the evidence.
  • Status ahead of the verdict. A client-facing board was told an audit had passed, for runs that were later marked failed. The good news travelled faster than the check that was supposed to back it.
  • Silent, expensive failure. An agent that had been denied write access ran to the end, produced nothing and exited as complete. It did this twice, at about 1.7 million tokens each time.

None of these is a capability failure. In each case the agent was perfectly able to do the work, or to notice that it couldn't. What failed was the system's willingness to take a worker's word for it.

Why agents fail confidently

It is worth being precise about why this happens, because it isn't malice and it isn't exactly a bug.

A person who runs out of time on a task usually knows it and says so, partly because they will be asked about it on Monday. An agent has no Monday. It is optimised to produce a coherent completion of whatever it was asked to do, and a coherent completion of "build this feature" ends with a summary saying the feature was built. When the context runs short, the most plausible next tokens are still the ones that close the task neatly.

The same pull shows up elsewhere. Agents cope. Given a missing permission, a full disk or a flaky dependency, they work around it, and then they report that the work is complete, because in their frame it is. They take the nearest plausible example when the right one isn't obvious. They repeat what they were handed without the low-level suspicion a person would apply.

None of that is a reason not to use them. It is a reason to design the system around a simple rule:

Completion is established by the verifier, never by the worker.

Green tests are weaker evidence than they look

The obvious response is "that's what tests are for". It is, and tests are necessary. But autonomous delivery has a way of producing tests that cannot fail, and it took us a while to learn all the ways that happens.

The test agrees with the bug. A test double returned the kind of value the code wrongly expected. The code was wrong, the mock was wrong in the same way, and the tests were green. A test written from the same mistaken belief as the code proves nothing. It just restates the belief.

Both sides mock the seam. Two services each passed their tests in isolation. Each one mocked the other. The real call between them was never exercised anywhere. Integration risk lives at the joins, and isolation testing removes exactly the joins.

Tests that never ran. Integration tests compiled but were skipped. One defect survived twelve separate review documents, because every reviewer saw a passing suite and none of them noticed the lane that mattered hadn't run. "Passed" and "did not run" looked the same on the dashboard.

Self-fulfilling checks. A detector logged its signal from the same branch of code that made the decision it was meant to detect. It could only ever report zero. It reported zero for a long time, and everyone was reassured.

Independence that leaks through the prompt. This is my favourite, because we had done the right thing structurally. The agent writing the tests worked from the design only and was technically blocked from reading the implementation. Good separation. But it was briefed by a coordinating agent that had summarised the design, and the summary was wrong. The test writer inherited the coordinator's mistake and wrote tests that agreed with it. Separation has to cover what agents are told, not just what they can read.

If you add these up, a green build in an agent-driven pipeline tells you less than it would in a human team. Not nothing, but less. The number that kept me honest: only 31% of features (24 of 77) passed build verification first time. Each accepted feature went through an average of 3.4 fix cycles. The fix loop isn't an exception path. It is the main loop. And the fix loop is only as good as the checks that send work back into it.

What actually works

The controls that held were not clever. They were mechanical, and they all came from treating the worker's report as a claim to be tested.

1. Someone else re-runs it

The coordinating agent stopped accepting "done". It rebuilt the change, re-ran the tests and checked for the named deliverables itself. Defects could only be closed with passing evidence produced by a different agent from the one that made the fix. The party that fixes cannot be the party that certifies.

This sounds expensive, and it is cheaper than the alternative. Re-execution costs compute. Accepting false "done" costs a downstream team building on something that isn't there.

2. Verify the artefact that ships

Phantom green taught us to start every verification by checking that the change exists where it will actually ship: the right branch, the right files, the right diff. Not the worker's view of its own workspace. It is a ten-second check that would have caught a surprising number of problems.

3. Evidence is data, not prose

If a gate accepts a sentence saying something was done, agents will supply the sentence. We moved to structured evidence: test run identifiers, file lists, verdict records, all checked by the server against real records. Outward status, including what stakeholders saw, was derived from the recorded verdict and nothing else.

4. Every check is shown to fail first

After the self-fulfilling detector, a new rule: before a check is trusted, it has to be demonstrated failing on the bad case. Test the test. A skipped test lane counts as a failure. Database tests run against a real engine before merge, and at least one unmocked test crosses every boundary between units.

5. Assertions cite their source

To close the prompt leak, every test assertion had to cite the design section it came from. That made it possible to check the test writer against the design directly, rather than against whatever it had been told about the design.

6. Fail fast and loudly

The 1.7-million-token silent run led to a simple rule: agents stop within one step when a required capability is missing. A quiet failure is the most expensive kind, because nobody goes looking for it.

Review that finds what green tests miss

Mechanical checks catch a lot, but not everything. One of the strongest results from the programme came from adversarial review: several reviewing agents with deliberately different briefs (a sceptic, a consistency checker, a craft reviewer, a long-term-fit reviewer) reading the same change.

In one change that had passed every test suite, that review found 15 confirmed defects.

We also turned the same scepticism on the system's own findings. Before a finding was acted on or closed, a second agent tried to disprove it. That cut both ways. Of 11 findings that had been assumed harmless and queued for bulk closure, 2 turned out to be real defects. Scepticism isn't only for the worker's report. It is for every claim, including the reviewer's.

I'll be honest about the limit here, because it comes back in part 4. Automated review is noisy. In one sequence of three review rounds, 39 findings were raised and 5 were real, nearly all of them in the first round. Review is valuable, but only with a stopping rule and a way of telling a real finding from a busy one.

Why this is the opener

I could have started this series with the impressive numbers. There are some, and they are real. But if you take one thing from these field notes, I would rather it was this: in an autonomous system, every status is a claim, and trust is built from re-execution, not from reports.

It is the same lesson I argued for in The Old Rules Still Apply. When implementation becomes cheap, proving that it works becomes the job. Autonomous delivery doesn't change that. It turns the volume up.

Three questions for your own workflow

If you run agents anywhere in your delivery process, even just a coding assistant that opens pull requests, ask these about every step that reports success.

  1. Who re-runs it? If the answer is "the same agent that did the work", you have a report, not a verification. Name the independent party, human or machine, that reproduces the result.
  2. What counts as evidence? If a gate can be passed by writing a sentence, it will be. Find out what the gate actually checks, and whether it checks it against something real.
  3. Has this check ever failed? If you have never seen it go red on a known-bad case, you don't know that it can. Break something on purpose and watch.

Next in the series: why the amount of autonomy you can safely grant depends less on how capable the agents are and more on how completely the work was written down. Autonomy is a property of the specification.


Series: Autonomous Delivery Field Notes

  1. "Done" is a claim, not a fact (this post)
  2. Autonomy is a property of the specification
  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.

3 views

No comments yet. Be the first to comment.

Autonomous Delivery Field Notes

Part 1 of 5

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.

Up nextAutonomy is a property of the specificationHow 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 buil