AI agents fail in two ways, and only one of them looks like a bug. The ordinary kind is a timeout that was retried or state that went missing, and the other kind has no faulty line in it: the model acted on something it never checked.
Google's SRE book, published in 2016, defines the postmortem as "a written record of an incident, its impact, the actions taken to mitigate or resolve it, the root cause(s), and the follow-up actions to prevent the incident from recurring", and the method assumes a root cause sits in code or configuration.
A model acting on an unchecked guess leaves nothing for a postmortem to find. Guessing is also the largest single cause in the one public breakdown of failed runs, Real-SWE 1.1, which makes it the main subject for anyone working on AI agent architecture.
Why do AI agents fail?
The best count available says they fail by proceeding on a guess more often than for any other reason. That count comes from a benchmark and not from production incidents, which nobody publishes in this form.
Real-SWE 1.1, a benchmark Specific Labs published in October, ran 18 coding models on tasks from private company codebases and sorted every failed run by cause.
| Cause of a failed run, all 18 models | Share |
|---|---|
| Unverified assumption | 33.1% |
| Missed requirement | 28.7% |
| Misunderstood task | 16.4% |
| Integration error | 14.7% |
| Wrong logic | 4.4% |
| Regression | 2.0% |
| Wrong file | 0.8% |
Wrong logic, the failure a traditional bug hunt looks for, is under one run in twenty. The top row is defined as a run that "Builds on a guess about the system instead of checking it in the workspace", and with the next two it accounts for 78% of the failures.
The benchmark covers coding agents on 25 tasks, so the shares won't transfer to a support bot unchanged. They also differ by model, and the report's own heading over the per-model table is "Different models fail in different ways".
| Model | Unverified assumption | Missed requirement | Misunderstood task |
|---|---|---|---|
| All 18 models | 33.1% | 28.7% | 16.4% |
| Opus 5.5, ranked first | 22.2% | 11.1% | 38.9% |
| GPT 6 Astra, ranked second | 58.2% | 0% | 16.4% |
Opus 5.5, the top-ranked model, fails differently from the field, by misreading the task more often than by guessing. Every row has its leading causes in finding out what the work is, and wrong logic is far behind.
Why does a failed agent run resist a postmortem?
A postmortem looks for a cause that will produce the failure again, and an agent may not fail the same way twice.
Real-SWE reports each score as "pass@1, averaged over five independent runs per task". The report gives no reason for the five, and mine is that one run of a model on a task doesn't settle whether it can do it.
An agent run also leaves a thinner record than a crash does. A stack trace names a line, and an agent's wrong assumption leaves no line behind unless every tool call and result was logged.
Michael Lynch's catalogue of coding-agent annoyances from October 9 has a failure with no error in it at all. After starting a long task overnight, Lynch found that the agent "stopped two minutes after I left to ask me what it should name a git branch and then sat all night waiting for my answer."
How do multiple agents change the odds?
Multiple agents multiply the chances of failure. A chain succeeds only when every step does, so the chance that the whole chain succeeds falls with every step added.
"""Chance that a chain of steps all succeed, for a few per-step success rates."""
for rate in (0.90, 0.95, 0.99):
cells = " ".join(f"{steps:>2} steps {rate ** steps:5.1%}" for steps in (5, 10, 20))
print(f"per-step {rate:.0%}: {cells}")
per-step 90%: 5 steps 59.0% 10 steps 34.9% 20 steps 12.2%
per-step 95%: 5 steps 77.4% 10 steps 59.9% 20 steps 35.8%
per-step 99%: 5 steps 95.1% 10 steps 90.4% 20 steps 81.8%
A chain of five steps at 90% each succeeds 59% of the time. The arithmetic assumes the steps fail independently, and a real chain does worse, since one agent's wrong output becomes the next agent's input.
That arithmetic is the case for staying with one agent until a measurement shows a second one helps. Multi-agent versus single-agent tradeoffs covers when the split pays, and the types of AI agents page sets out what each step up in autonomy adds.
Which failures are ordinary engineering?
Timeouts, retries and lost state are ordinary engineering, and they have known fixes. A tool call that times out and is retried can run twice, and if the call was, say, a refund, the customer is paid twice.
The fixes are the distributed-systems ones: idempotency keys and a cap on retries, with a circuit breaker that halts the loop after repeated errors. The error handling guide works through them with a run example.
A long session pushes early instructions out of the context window. My page on short-term memory for AI agents starts from that failure, and the state of agent memory surveys the tools that keep state across sessions.
What reduces the guessing?
Give the agent a way to check and a reason to use it. The measured failures are about verification, so the countermeasures are the things that make checking cheap: tests the agent can run, tool results that say what happened, and instructions that name the checks.
The cheapest checks are ones a program can grade, as in the lambda calculus exercise, where a short script confirms each answer.
A check only helps as long as a failing one still makes somebody stop, which is the subject of my essay on a build that is red too often.
The Model Context Protocol gives tools a standard way to report an error, an isError flag on the result, and the code around the model still has to decide what happens next.
Real-SWE's table is someone else's count, and I have none from production to set beside it. That table puts 78% of failed runs down to what the model assumed, missed or misread about the task, and 4.4% down to wrong logic.