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
Scripts: coverage_gate.py ignores the sweep's exit code, so a failed sweep passes and --update can lower the baseline to match it #2260
proc.returncode is never inspected. If the sweep exits non-zero but still printed a report line that parses - a worker that died after the summary, a panic or an OOM on the last programs, a sweep cut short with a partial count - the gate treats it as a complete sweep and compares it against the baseline.
Why it matters more with --update
--update writes the baseline before anything is compared, and from whatever the sweep reported:
So a failed sweep does not just pass once: it can replace the committed reference with the lower counts of the build that failed, and every later run compares against that. The gate then reports "no regressions" for exactly the translation loss it exists to catch.
right after subprocess.run, before sweep_json(proc.stdout). --run-json is unaffected (no process is started). Two tests in scripts/test_coverage_gate.py would cover it: a sweep fixture that exits 1 with a valid report line (expect 2, and the baseline byte-for-byte unchanged with --update).
Tested
Nothing run: read from 426a5a7 without a checkout. The claim is the absence of a read of proc.returncode in the file.
AI use
Claude (Opus 5.5) read scripts/coverage_gate.py and scripts/test_coverage_gate.py on 426a5a7 and wrote this report; the human account checked the lines against the file before opening it.
Activity
Creaa commentedon Nov 25, 2026
I’m taking this. The fix and regression test are ready locally. I’m running the full workspace suite before opening the PR.