Skip to content

ci: evidence-refresh det sweep proves cases, and fails loudly when it doesn't (#4270) - #4641

Merged
squid-protocol merged 1 commit into
mainfrom
ci/4270-refresh-sweep-env
Oct 7, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ci/4270-refresh-sweep-env

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4270.

Root cause

evidence-refresh.yml installed GitGalaxy with pip install -e ./gitgalaxy, without the translator extra. The det translator parses COBOL with tree-sitter-language-pack (gitgalaxy/tools/cobol_to_java/det/source.py raises "needs tree-sitter-language-pack: pip install gitgalaxy[translator]"). CI's det-sweep.yml installs -e "./gitgalaxy[translator]" and proves 37/40. In run 37661913700 every case failed to translate, so the sweep printed det: 0/40 proven (all NOT PROVEN, no coverage line). The harness swallows the per-case traceback, so the run log shows no error text; the cause rests on the install-step diff against det-sweep.yml, and the fix is confirmed by the verification run below.

It stayed silent because the sweep ran with --no-ratchet (exit 0), the step is continue-on-error, and the ledger step ran if: always(). The ledger rewrite then ran on an all-failed sweep, rewrote nothing, and the job went green.

Fix

  • Install with the [translator] extra, as det-sweep.yml does.
  • Drop --no-ratchet from the sweep. It now applies the det_sweep_baseline ratchet and exits 1 when a case stops proving, or a baselined one starts proving. The existing "Fail when a re-proof failed" step then fails the job.
  • The ledger rewrite runs only if the sweep step succeeded (steps.ledger_sweep.outcome == 'success'), so it never rewrites from a sweep that failed the ratchet. (--aggregate was not used: it also checks the ledger itself, which is stale before the rewrite.)

Verification

Dispatched on this branch: https://github.com/squid-protocol/gitgalaxy/actions/runs/37665076537 (success). det: 37/40 proven, sweep: as expected (the 3 not proven are the baselined ones: carddemo-cardupdate, carddemo-intcalc-generated, mortgage-mpmt). The ledger step rewrote det_sweep_coverage.json. That run opened the bot PR #4640 against main from auto/evidence-refresh; it is left for the owner.

🤖 Generated with Claude Code

…s loudly on a failed sweep (#4270)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 7, 2026 19:35
@squid-protocol
squid-protocol merged commit 1f14b86 into main Oct 7, 2026
19 checks passed
@squid-protocol
squid-protocol deleted the ci/4270-refresh-sweep-env branch October 7, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant