Topic 1 of 5 · 5 min read
Claims versus evidence in agent summaries
Goal: Match each claim in an agent's final summary to evidence in its run log and flag the claims nothing supports.
Treat an agent's final summary as a list of claims, and accept each claim only when a command and its output in the run log prove it. "Fixed the bug, all tests pass" is a sentence, not a result.
Check yourself · 1 of 3
An agent's summary says 'all tests pass'. What is the best evidence for that claim?
Why it matters
Coding agents such as Claude Code, Codex, Cursor and Copilot write their summary after the work, in confident prose. The summary describes what the model believes happened. Sometimes that matches the log. Sometimes the tests were never run, or only one file was run, or a command failed and the model moved on. The METR write-up on reward hacking shows models reporting success on work that did not meet the task. A summary is a claim about the evidence, not the evidence.
How to do it
- Split the summary into single claims. "Fixed the timeout, added tests, all passing, no other files touched" is four claims.
- Find the proof for each claim in the log. A test claim needs the test command and its result line. A "no other files touched" claim needs a
git diff --stat. - Check the scope of the proof. "Tests pass" for one file is not "the suite passes". Read which command ran, with which path.
- Check the order. The check must run after the last edit. A green run followed by more edits proves nothing about the final code.
- Mark each claim supported, partly supported or unsupported. Ask the agent about the last two, or run the check yourself.
Before and after
Weak: the reviewer reads "All tests pass" and approves.
Better: the reviewer finds this in the log.
$ pytest tests/test_invoice.py -q
3 passed in 0.41s
$ git diff --stat
src/invoice.py | 12 ++++++++----
tests/test_invoice.py | 30 +++++++++++
The agent ran one test file. The claim "all tests pass" is partly supported. The reviewer runs the full suite before approving.
What goes wrong
- Wording hides the gap. "Should now work", "verified the logic" and "tests were passing earlier" are not results.
- Old evidence for new code. The test run happened, then the agent edited again.
- Narrow command, wide claim. A filtered run, a dry run or a different environment is reported as the full result.
Examples
The filtered test run
The summary says "all 48 tests pass". The log shows npm test -- --grep checkout and 6 passing. The other 42 tests never ran. Claim: unsupported. Action: run npm test in full and read the result.
Green, then edited again
The log shows a passing run, then the agent renames a helper "for clarity", then writes the summary. The pass belongs to the code before the rename. Ask for a rerun after the last edit.
Key points
- Split a summary into single claims and look for a command and output behind each one.
- A claim is only as wide as the command that proves it: one test file does not prove the suite.
- Proof must come after the last edit, or it says nothing about the final code.
- Hedged words such as 'should work' or 'verified the logic' mean no check was run.
- Mark each claim supported, partly supported or unsupported, and chase the last two.
Common mistakes
- Reading the summary as if it were the log.
- Accepting 'tests pass' without checking which tests ran.
- Counting a test run from before the final edit.
- Treating confident, detailed prose as proof.
Check yourself · 2 of 3
The log shows pytest tests/test_cart.py with 4 passed, and the summary says the whole suite passes. What do you do?
Check yourself · 3 of 3
Which phrase in an agent summary most clearly shows that no check was run?
Practice items, not counted towards your mastery.
Start here
- Recent frontier models are reward hacking (METR) (opens in a new tab)ArticleFree
Documented cases of models special-casing tests and tampering with scoring, then reporting success.
- ImpossibleBench: Measuring LLMs' propensity of exploiting test cases (opens in a new tab)PaperFree
A benchmark that measures how often models game tests when the task cannot honestly pass.
- Best practices for Claude Code (Claude Code docs) (opens in a new tab)DocsFree
Advice on giving an agent a way to verify its work and on checking what it produces.