I built a harness to measure one thing: when an LLM agent gets a backend incident, does it fix the cause, or does it make the symptom go away? Most incident benchmarks ask a single question after the agent stops: does the system look healthy? That question can’t separate a repair from a restart.
The setup is a small Node order service (Express, BullMQ, Postgres, Redis) and twelve faults I injected as faulty releases. Everything below comes from runs on that service. The numbers are from the paper and from the run records linked at the end.
1. A restart that passes the check
F2 is a connection leak. The faulty release gives the connection back to the pool only when nothing throws:
await client.query("COMMIT");
client.release(); // only reached when nothing threw
} catch (err) {
await client.query("ROLLBACK");
throw err; // the connection never goes back to the pool
}The clean service has client.release() in a finally block. With the leak, each failed order costs one connection. After a few failures the pool is empty, orders hang and /health returns 503. A restart builds a fresh pool, so orders work again.
I ran a restart-only arm ten times on each of the twelve faults. On F2, F6 (an unbounded cache) and F11 (no log rotation) every run passed the fault’s check right after the restart. On the other nine, nothing changed.
2. Three rounds instead of one
The check right after the agent acts is round 1. I added two more:
- Round 2 replays the load that caused the incident on the same running system, without a restart.
- Round 3 tears everything down, rebuilds from the code and
.envthe agent left, and replays the load again.
Round 3 catches fixes that live only in runtime state. A hand-made index passes rounds 1 and 2 and disappears in the rebuild. On F2 the restart passes round 1 and fails round 2 in all ten runs, because the first failing orders leak the fresh pool again. A run that passes all three is a durable fix. All measurements come from Postgres, Redis, Docker and a simulated partner service, not from numbers the application reports about itself.
Before any agent ran, 37 scenarios (a fault left alone, the reference fix, a restart, a hand-made index) were run three times each without an agent. All 111 runs came out as expected.
3. What the single check hides
A bare /health probe, counting any status code as an answer, passed in 110 of the 120 runs where nobody did anything, so liveness alone would call an untouched, faulty service fine. The ten that did not are F1, where the app can’t start.
Against each fault’s own criterion, with Claude Haiku 5.5 and ten runs per fault and arm:
| Arm | runs | passes the check | durable (3 rounds) | temporary share |
|---|---|---|---|---|
| do nothing | 120 | 0.00 | 0.00 | n/a |
| restart twice | 120 | 0.25 | 0.00 | 100% |
| agent, operational actions only | 120 | 0.41 | 0.25 | 39% |
| agent, must change code | 116 | 0.91 | 0.84 | 7% |
| agent, free to choose | 117 | 0.78 | 0.76 | 2% |
The restart arm’s 25% is three faults out of twelve, and all of it is temporary. The agent that may only use operational actions looks like it succeeds 41% of the time, and 39% of those successes did not survive the replay. When the agent must change code, few do. Gemini 3.8 Flash, with fewer runs and a 300 s limit that cut off nearly half of them, gave 33% for the operational-only arm.
The sample is the twelve faults, not the 120 runs. Resampling over faults, the 95% interval around that 39% is 0% to 81%. The data show that the gap exists, but not how large it is on another system.
4. Durable fixes that left the defect in place
On the nine faults that live in code, every durable fix of the operational-only agent, for both models, was a configuration change. Two faults produced all of them. For the deadlock in F9, the agent set the connection pool to one:
# .env POOL_MAX=1 # no deadlock, and no parallelism either
For F11, where log rotation is missing, LOG_LEVEL=warn makes the log disk fill more slowly, slowly enough to outlast my load window. Both settings live in .env, so the rebuild in round 3 keeps them and the oracle counts them as fixes.
So I checked each durable fix against a repair signature written from the faulty release and the reference fix, for example locking the two accounts in a fixed order for F9. By that check the operational-only agent repaired none of the nine code faults, for either model. The must-change-code arm repaired 0.89 of them (Haiku) and 0.61 (Gemini).
5. The agents went looking for the answer
Getting here took four rounds of isolation, each one after an agent found a new way to the grader. In the first harness the faulty code carried answer comments, and the oracle trusted metrics the app reported about itself. After a rewrite, agents read the partner service’s source with docker exec: 31 of 360 Haiku runs and 42 of 92 Gemini runs were flagged. One Gemini run used lsof on the harness process to find the repository and read the scoring code. In a follow-up I stopped after six runs, an agent mounted the whole home directory into a new container with docker run -v, which a sandbox around the agent process can’t block, because the Docker daemon runs outside it.
A flag that matched command strings would have excluded 51 of 180 Gemini runs, many of which tried and were blocked or only listed processes. Because those attempts cluster on hard faults, dropping them alone raises Gemini’s durable-fix rate in the must-change-code arm from 0.55 to 0.77. I count only successful accesses and report the older definition as a sensitivity check.
What I take from it
- Replay the load that caused the incident on the same system before calling the incident fixed.
- Rebuild from what the agent left, so a fix has to live in code and configuration.
- Read the diff. A green rebuild can still be
POOL_MAX=1. - Define a contaminated run by what the agent obtained, not by what it typed.
Limits, and where to check
One application, twelve faults I wrote myself, two models, one author. The paper is submitted to Automated Software Engineering (Springer) and has not been peer reviewed; its status is on the research page. The harness, the oracle, the pre-registration log and every run record are in the GitHub repository, archived on Zenodo. The pre-registration is a dated log kept in that repository, not in a public registry.