You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A judge timeout on a terminal gate lets the close's self-graded verdict fire the terminal flips (900 s is shorter than a real judge) #3620
On a terminal gate in clabonte/generator (FEAT-GEN-2026-0271, driver 0.33.0), the judge session timed out at JUDGE_TIMEOUT_SECONDS = 15 * 60. judge_close fails open on a timeout, so the close's self-graded verdict: met stood. The terminal flips then fired: PLAN done, GATE passed, roadmap row archived.
{"event_type": "judged", "payload": {"gate": 1, "close_verdict": "met", "judge_verdict": null, "verdict": "met", "lowered": false, "reason": "the judge session timed out after 900s", ...}}
The operator re-ran the same bundle by hand, using build_judge_bundle / render_judge_prompt / run_judge_session(prompt, timeout=3600). Both runs came back not_met, and both findings were real defects:
The generated pubspec declared a dependency floor below the one the definition of done names.
The gate's consumer-validation pass rested on stale tool state in a consumer clone. On a fresh checkout, the consumer's analyzer gate exits 1.
The two runs took 20 and 26 minutes (the second: 1185 s, $1.12). That is the normal length for this gate: the judge re-runs the gate's oracles, and here those include Flutter builds on two toolchain versions.
So on this gate, a judge that is always too slow for the driver turned "independent verdict" back into "the close grades its own work". Nothing in the driver output marks the difference, apart from the judged event's reason.
Why it matters
The judge is the stated reason auto is safe on a terminal gate (FEAT-2026-0100). The fail-open rationale in loop.py holds for a crash: a judge that could veto a finished gate by crashing would be worse. It does not hold for a predictable timeout on a terminal gate. There the cost of failing open is a feature marked done on an unreviewed verdict. The cost of stopping is one human decision.
Proposal
Make the timeout configurable per feature or gate, for example judge_timeout_seconds in PLAN.md or GATE frontmatter, or a project default in verification.yml. Keep 900 s as the default.
On a terminal gate, a judge timeout or an unavailable judge should not let the terminal flips fire. Escalate to blocked_human with a judge_unavailable_terminal reason, and keep the close's verdict as written. This is neither a veto nor a pass. An operator then re-runs the judge, or acknowledges it, the way judge_edit_acknowledged works today. An intermediate gate can keep failing open.
Print the judge's wall-clock time in the judged event and the close summary, so a gate whose judge runs close to the limit is visible before it crosses it.
Repro
Any terminal gate whose oracles take longer than about 15 minutes to re-run. Set JUDGE_TIMEOUT_SECONDS low (e.g. 5) and close any terminal gate with verdict: met. The judged event records the timeout, and fire_terminal_flips runs anyway.
Activity