When a project declares a definition_of_done, a DIFFERENT model reads the
handoff against that bar and downgrades the run to `partial` when it isn't
evidenced. The worker was never told this.
The bar reached the agent only as one line of background in the project-context
block — among Mission, Vision, Stack, Conventions — so agents did real work,
wrote `status: ready`, and were graded against a contract they had never been
shown. Two clean verification runs closed `partial` on literally "No evidence
that tests were run and passed".
The judge sees ONLY the handoff, so an unevidenced claim is indistinguishable
from work not done — which is precisely the Ralph-Wiggum property the gate
exists to defend. The answer is therefore to state the contract to the worker,
never to soften the judge: softening it would make every run "succeed" and
`success` would stop meaning anything.
- HANDOFF_CLOSE_CONTRACT, interpolated into both loops that close runs
(next_best, test_and_fix): run the checks the bar names, record the real
result in tests:/tsc:/lint:/health:/commit:.
- An impossible check must be written down verbatim ("no suite", "deploy not
configured") rather than omitted. Silence reads as skipped; a stated
impossibility is information — it names the next piece of work.
- 5 tests pin the contract into the prompts an autopilot loop actually fires,
so a future prompt edit can't silently re-open the gap.
Co-authored-by: test <test@test>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>