Repository navigation
Description
Follow-up to #3293. Its guard (find_produced_verdict_contradiction, loop.py:6396 in 0.33.0) matched the exact wording of the 2026-09 document, so a differently worded BLOCKED evidence file passes. The driver then flips the unit to done and goes on to dispatch the close.
What happened
The generator's FEAT-GEN-2026-0271/T05 is a consumer-validation unit: type implementation, produces: EVIDENCE-consumer-validation.md. Its acceptance says it reports complete only when gatecheck.py --in-loop --forbid-no-changes exits 0. On 2026-11-26 the session (sonnet, effort medium, 0.33.0) wrote an evidence file that opens:
# FEAT-GEN-2026-0271/T05 — consumer validation evidence
**Outcome: BLOCKED.** `restomanager_app` needs one edit that no recipe step describes.
`gatecheck.py --in-loop --forbid-no-changes` exits 1.
Further down it quotes GATE BLOCKED: run … and gatecheck_exit=1 inside a code fence. Its RESULT said status: complete. The driver recorded:
{"outcome": "passed", "agent_status": "complete", "agent_blocked_reason": null,
"files_touched": [".../EVIDENCE-consumer-validation.md", ".../WU-05-consumer-validation.md"]}It then committed the WU as status: done and was about to dispatch G1-CLOSE. A human stopped the driver first. This is the same failure as #3293, and the 0.33.0 guard did not fire.
Why the guard missed it
_BLOCKING_VERDICT_HEADING_REneeds a Markdown heading. This document's first heading carries no token._BLOCKING_VERDICT_LINE_REneeds the labelVerdict. The agent wroteOutcome, in bold.GATE BLOCKED:sits in a fenced block, which is rightly ignored.
So the guard depends on the agent choosing the word "Verdict". Nothing in the WU, the rules or the prompt tells the agent to use that word, and an agent reporting complete over a blocking document is, by definition, not following the rules.
Suggested shapes
Any one would have caught it. The first is the smallest change, and the second is the robust one.
- Widen the label set. Accept
Verdict|Outcome|Result|Status|Conclusionwith optional bold or italic markers, e.g.^[\s*_]*(?:Verdict|Outcome|Result|Status|Conclusion)[\s*_]*[:.]\s*[\s*_]*TOKENS\b. Also consider scanning the document's first non-heading paragraph for a whole-word uppercase token, outside code fences. - Let a unit declare its exit oracle, and have the driver run it. For example, a WU frontmatter
exit_oracle: python3 scripts/consumers/gatecheck.py --in-loop --forbid-no-changes, run after the gate set on an attempt that reportscomplete. A non-zero exit fails the attempt, with a note in theguard_refusalshape. The document guard is a heuristic over prose. Here the unit's real definition of done is a command, and the driver never runs it: today the Verification section namesgatecheck, but that is prose the session is trusted to have run. - Or the lint half of Driver accepts a complete RESULT over a BLOCKED verification document, and a failed Maven tests gate reaches the retry with no test name (FEAT-2026-0167, generator) #3293's second suggestion: flag a unit whose
producesis Markdown only and whose Verification namesreport.pyorgatecheck.py, until (2) exists.
Cost
Small this time: $1.50 for the attempt, and the close was stopped before dispatch. The same miss with no human watching would have run an opus close against a gate whose evidence says not met. That close would then have opened the feature PR on top of it.
Reported from the generator (clabonte/generator), branch feat/FEAT-GEN-2026-0271-dart-flutter-stable, commit 333280fca (the false done), reverted by f3f42c171.
🤖 Generated with Claude Code
Activity