Your evals have no tests
I planted 15 bugs in a working LLM system and reran its eval suite unchanged. 11 got through, including a data leak, and the suite stayed green.
TL;DRthe 30-second version
- A passing eval suite only tells you something once you've watched it fail for a reason you planted.
- I planted 15 bugs in a RAG pipeline and a tool agent and reran a typical golden-answer suite unchanged. 11 got through (73%).
- The escapes include the bugs that cause incidents: a wrong-year document injected into 50 of 60 answers, and a skipped auth check that leaked 47 restricted documents. Both passed.
- Removing the grounding instruction made the score go up 19 points. The suite rewarded the model for answering from memory.
- Report the noise floor with it. This suite can't see a drop under 6.4 points between runs, and a drop has to be 22 points to generalise beyond its 60 questions.
15 hand-written mutants across four layers, eval suite rerun unchanged. 4 were caught, all of them breakages loud enough to stop answers outright. One run, Claude Haiku 5.5, HotpotQA.
- escape rate
- 73%
- eval set
- n = 60 + 20
- noise σ (run)
- 1.9 pts
- MDE (run)
- 6.4 pts
In how we measure RAG quality, the fix for “vibes don’t survive a second engineer” was to wire the eval set to a hard CI threshold: NDCG@10 has to clear 0.75 or the change doesn’t merge. That fixed the problem it was meant to fix. Nobody ships on “looks better to me” anymore.
It also raised a question nobody asked next: how do you know the gate itself works?
You trust your unit tests because you’ve watched them fail. You break the function, the test goes red, you fix it, it goes green. That loop is where a test suite gets its authority. An eval suite almost never gets it. It goes green on day one, stays green, and the team slowly starts reading “green” as evidence of quality. All green really means is that nothing has signalled a problem yet.
Coverage measures execution
Normal software solved this a long time ago. DeMillo, Lipton and Sayward proposed mutation testing in 1978, and tools like PIT (Java), Stryker (JS and .NET) and mutmut (Python) run it in CI today. You make small, deliberate breaks in the source (flip a > to >=, invert a boolean, delete an assignment), then rerun the tests against each broken version.
- If the tests fail, the mutant is killed. Your tests noticed.
- If the tests pass, the mutant escaped. Your tests are blind to that whole class of bug.
The mutation score is mutants killed divided by mutants generated. It’s a stricter bar than line or branch coverage. Coverage asks “did this line run?” Mutation testing asks “would a test notice if this line were wrong?”
You can delete every assertion in a test file and still report 100% line coverage. Just et al. (2014) showed that mutants are a valid stand-in for real faults: suites that kill more mutants also catch more real, human-written bugs. So mutation score tracks the thing you care about.
The eval version of “100% coverage, zero assertions” is “we have 120 examples and four metrics.” That tells you the suite ran. It tells you nothing about whether it would notice your system getting worse.
The setup
I built sabot to find out. It takes a working system, applies one known-bad change at a time, reruns the eval suite untouched, and counts what gets through.
- The systems: a RAG pipeline (BM25 over chunked passages, top-4, one LLM call, a JSON answer with citations) and a tool-using agent with
search,readandfinish, where the framework checks authorisation before handing over any document. Both run on Claude Haiku 5.5. - The data: the first 80 questions of HotpotQA’s validation set, unfiltered. 60 go to the RAG pipeline, 20 to the agent.
- The suite under test: the common kind. An answer passes if its token F1 against the gold answer is at least 0.5; the agent also has to call
finish. It doesn’t check citations, abstention, tool traces or access control, and that’s typical.
The catalogue writes itself out of incident history:
| Surface | Mutation | What it should catch |
|---|---|---|
| Prompt | Delete a constraint word (only) | Guardrail language dropped in a refactor |
| Prompt | Remove the grounding instruction | The model answering from memory over the context |
| Prompt | Drop the output-format spec | Downstream parsers failing on malformed output |
| Prompt | Delete a few-shot example | Format and style drift |
| Prompt | Soften every must to should | Policy language losing its teeth |
| Retrieval | Truncate to top-1 | HotpotQA needs two documents |
| Retrieval | Shuffle rank order | Losing the ranker’s work |
| Retrieval | Inject a wrong-year, wrong-tenant document | Grounding checks that verify a source exists, but not the right one |
| Retrieval | Halve the chunk overlap | Facts that straddle a chunk boundary |
| Model | Downgrade a tier (Haiku 5.5 → Haiku 4.5) | Shipping a model the system wasn’t validated on |
| Model | Temperature 0 → 1 | Not run: Haiku 5.5 only accepts default sampling |
| Model | Cut max_tokens by 40% | Silent truncation |
| Agent | Skip the authorisation check | Restricted documents reaching the model |
| Agent | Swap two tool handlers | A wiring bug |
| Agent | Make a tool return an error | No real fallback |
| Agent | Remove a tool | Silent capability loss |
That’s 16 mutants, 15 of them runnable. Scroll through this slowly; each square is one mutant.
What got through
Four mutants were caught: top-1 retrieval, and three agent breakages (swapped handlers, a failing tool, a missing tool). All four broke enough answers to drop the pass rate by 14 to 34 points.
The eleven that escaped are the quiet ones:
- The wrong-year document. sabot put a stale “2009 revision, tenant: northwind-legacy” copy of a gold passage, with the answer swapped, at the top of the results in 50 of 60 cases. The pass rate moved by 1 point. A faithfulness-style check asks whether a claim is supported by some retrieved passage, and a wrong-year document supports it fine.
- The skipped auth check. 47 restricted documents reached the model, in 17 of 20 agent cases. The pass rate didn’t drop, because the suite scores answers, and the answers were fine. This is the mutant closest to a real incident: the agent did the right thing for the user and leaked data on the way.
- The model downgrade. I expected this to be the easy kill. Haiku 4.5 changed 20% of the RAG answers and 35% of the agent’s, and the score stayed inside the noise.
- Removing the grounding instruction made the score go up 19 points. The model stopped saying “I don’t know” and answered from memory, and 13 cases flipped from fail to pass. HotpotQA is built on Wikipedia, so memory often has the answer. The suite rewarded the exact behaviour the grounding rule exists to prevent.
sabot also records what each mutant actually changed (answers that differ, leaked documents, broken JSON), so an escape with a large change can’t be dismissed as a harmless mutant. Every escape here changed something.
The second number
Some escapes look like a missing check but need the opposite fix. Mixing the two up is how teams end up writing metrics that can never work.
Run the unchanged suite five times. Same prompts, same model, same everything. The RAG pass rate still came out at 41.7, 43.3, 41.7, 40.0 and 45.0%. That spread is the noise floor: a standard deviation of 1.9 points from run to run. It caps what the suite can detect, however many metrics you add.
Can the suite see anything at all?
results.json.The statistic for this is the minimum detectable effect (MDE): how large a drop has to be before you can tell it apart from rerun noise. With five baseline reruns and one mutant run, a one-sided test at the 5% level with 80% power gives an MDE of 6.4 points for the RAG suite and 7.5 for the agent. The exact formula is in the sabot README.
There’s a second, wider bar. 6.4 points tells you a change is real on these 60 questions. For a drop to generalise beyond them, it needs to be 22.4 points. Getting that bar down to 6.4 takes about 740 questions. Most eval sets I’ve seen are closer to 60.
So an escaped mutant has two possible diagnoses:
- Blind spot. The behaviour changed, but no metric was pointed at it. Write a new check. Seven of the eleven escapes are this: no drop at all, including the wrong-year document and the leaked documents.
- Below resolution. The score dropped, but by less than the noise floor. Add reruns or examples until the MDE clears the effect you care about, or accept that you can’t detect it yet. Four escapes are this: the format spec, chunk overlap, the model downgrade and
max_tokens.
Adding a hundred assertions to a 60-example suite barely moves either number, because both depend on sample size and variance, and metric count doesn’t enter into it. Report escape rate and resolution together, or neither.
What it looks like in practice
An excerpt of the report sabot printed for this run:
noise : k=5 reruns of the unmutated suite, alpha=0.05, power=0.8, one-sided rag mean 42.3% sigma_run 1.90 pts MDE_run 6.4 pts MDE_sample 22.4 pts answer churn between reruns 5% agent mean 79.0% sigma_run 2.24 pts MDE_run 7.5 pts MDE_sample 32.0 pts answer churn between reruns 16% id surface mutant delta pts crit verdict answers changed P2 prompt remove the grounding instruction -19.3 4.4 ESCAPED 55% R1 retrieval truncate retrieval to top-1 +34.0 4.4 KILLED 42% R3 retrieval inject a wrong-year/wrong-tenant document -1.0 4.4 ESCAPED 32% A1 agent skip the authorisation tool call -1.0 5.2 ESCAPED 15% A2 agent swap two tool calls (search <-> read handlers) +24.0 5.2 KILLED 45% result : 15 mutants run, 4 killed, 11 escaped (73%), 1 N/A
In sabot’s report, a positive delta means the score got worse.
The thing underneath
The measuring RAG quality post argued that a green dashboard doesn’t prove your agent works. This is the sharper version: a green eval doesn’t prove it either, until you’ve watched the eval go red for a reason you planted, and until you know whether it could even go red for the regression you care about.
What would change my mind: a typical golden-answer suite that catches most of this catalogue on its first run. If yours does, send me the number.
What would get past your suite today?
Supported 15 hand-written mutants across four layers, eval suite rerun unchanged. 4 were caught, all of them breakages loud enough to stop answers outright. One run, Claude Haiku 5.5, HotpotQA.
References
- DeMillo, Lipton & Sayward. 1978. Hints on test data selection: help for the practicing programmer. IEEE Computer.
- Just, Jalali, Inozemtseva, Ernst, Holmes & Fraser. 2014. Are mutants a valid substitute for real faults in software testing? ISSTA.
- Papadakis, Kintis, Zhang, Jia, Le Traon & Harman. 2019. Mutation testing advances: an analysis and survey. Advances in Computers.
- Yang et al. 2018. HotpotQA: a dataset for diverse, explainable multi-hop question answering. EMNLP. (CC BY-SA 4.0)