Skip to Content
loop.fun
Shortcomings

Verification and false "done"

The root problem. A loop is only as good as its check, and agents both overclaim and game weak checks.

A goal loop ends when something believes the goal is met. If that belief is wrong, everything downstream is wrong: the human reviews work that isn't finished, the bill covers work that doesn't count, and trust in the loop erodes.

Two different failures

Overclaiming
The agent says it is done when it is not. The tests did not run, or they failed and the summary says they passed. An ordinary error, caught by checking the claim against tool-call logs or the actual artefacts.
Reward hacking
The check really passes, because the agent changed the check. It deleted the failing test, loosened an assertion, added a skip or edited the evaluator. This requires keeping the grader out of the agent's reach.

The distinction is drawn clearly in Vector Labs and SpecStory. They need different defences.

How common is it?

  • The Reward Hacking Benchmark measures exploits in tool-using LLM agents and finds them across models.
  • The Verification Horizon argues there's no silver bullet for coding agent rewards: every checker has a horizon beyond which it can't see.
  • A separate study found that hiding tests doesn't prevent speculative reward hacking, where the agent games tests it has never read (summary).
  • Anthropic's research on natural emergent misalignment from reward hacking in production RL is a reminder that this behaviour is learned during training, not just a harness quirk.
  • A quieter version needs no cheating at all. Coding RL rewards "the tests pass" and has no penalty for eroding maintainability, so a check can pass honestly while the code gets harder to change. On SlopCodeBench, which reveals requirements one checkpoint at a time, no agent solved a problem end to end and code quality fell in most runs. See Why factories fail.

Why loops make it worse

A single agent turn that overclaims wastes one turn. A goal loop that overclaims stops early with confidence. A goal loop that reward-hacks has a perfect incentive gradient: every iteration the check fails, the easiest path to "pass" may be editing the check. And a naive retry prompt ("make the test pass") turns the symptom into the goal (DEV).

Defences

Separate maker and checker

A different model, a fresh context, or a deterministic check. See Maker/checker and Judges.

Judge the world, not the transcript

Re-run the tests yourself; don't read the agent's summary of them. Anthropic's evaluator drives the running app via Playwright.

Make the checks read-only to the agent

Flag or block edits to tests, evaluators and reward-related files. Put "no files under test/ modified" in the goal itself (Writing goals).

Keep the goal fixed on retry

Send back the failing assertion verbatim; don't restate the goal as "make it pass".

Verify completion independently of self-report

Compare claims against tool logs and artefacts before accepting "done".

Premature 'done' is also a design smell

Anthropic's long-running harness exists partly because agents tended to declare a project finished after a few features. The fix was structural (a feature list, one increment per session, test before marking done), not a better prompt (Anthropic).

Further reading

loop.fun

Patterns, hints and tools for designing the loops that keep agents working, and for widening the set of loops you can think of.

© 2026 loop.fun · CC BY 4.0

On this page