Repository navigation
Description
Problem
Evidence Refresh (.github/workflows/evidence-refresh.yml, #4048) opens one bot PR a day that rewrites hundreds of committed files. It takes 1–3 h and ~2 runner-hours, and main keeps moving underneath it, so the PR is often conflicted or stale before its CI finishes (#8006 on 2026-11-07: conflicting, and det failed because two CBSA cases changed on main mid-run).
Most of what it commits is re-stamping, not new results. #7919 (merged 2026-11-06, commit bf0b709, 363 files):
| files | changed | of which only fingerprints / timestamps changed |
|---|---|---|
tests/equivalence/det_sweep_coverage/*.json |
270 | 270 (no coverage count moved) |
tests/equivalence/*/evidence.json, tests/cics_crucible/ports/*/evidence.json |
66 | almost all (sha256 / harness:* / oracle:* / generator:* / digest / at / harness_commit) |
tests/equivalence/det_mutation/*.json |
27 | 25 (2 had real mutant-count changes after a generator change) |
Every harness / oracle / generator change invalidates those fingerprints for every case at once, so the file set is always large and conflicts with whatever merged meanwhile. Sharding the job would not help: smaller PRs would still re-stamp the same hashes and still race main.
The same coupling fails ordinary PRs: #7875 failed det with coverage ledger: carddemo-cotrtupc: stale (case, harness changed) although its coverage was unchanged (local Db2 re-sweep: 54 scenarios, 63/63 paragraphs, 140/166 branches, the same as the ledger); only the case hash moved.
Proposal: claims on main, receipts on generated
The generated branch (#4847, tests/tools/generated_branch.py) already holds bot output that main never moves for (the evidence report #4963, ground-truth history, charts).
- main keeps the reviewed claims: case.json, ports, approvals, coverage counts (the ratchet), mutation verdicts and survivor attacks, evidence levels / outcomes.
generatedkeeps the receipts: per case, the input fingerprints (case / corpus / harness / oracle / generator / components),measured_at/harness_commit/at/ digest. The refresh publishes them after every run withgenerated_branch.py publish, no PR.- The refresh opens a PR only when a claim changes (a proof lost or gained, coverage moved, a verdict changed): a handful of files, not hundreds.
- PR CI: a case whose own sweep reproduces the committed counts passes even when its fingerprints moved (staleness is judged against the receipts from
generated, falling back to main's copy). - Readers (
evidence_report.py --check --livein publish.yml, evidence-pages.yml, churn's goal / ladder measure,ladder_gaps.py) read receipts viagenerated_branch.py show.
Phases (one PR each)
- Coverage ledger (the 270-of-363 part): move
inputs+measured_atout ofdet_sweep_coverage/<CASE>.jsoninto a receipts file ongenerated;det_coverage_ledger.py checkstops blocking on a fingerprint-only move when the counts match; the refresh publishes receipts instead of committing them. - det_mutation ledgers: the same for their fingerprints; verdict / count changes still come by PR.
- evidence.json records: split the proof receipt (fingerprints, digest, at, harness_commit) from the claim; staleness and the release gate read receipts from
generated. - Retire the daily bot PR except for claim changes; update the workflow header, README and churn's reader.
Acceptance
- A harness-only change on main produces no bot PR, only a
generatedcommit. - A PR that changes a case and keeps its coverage passes
detwithout committing a ledger. evidence_report.py --check --liveand churn's ladder numbers still report staleness correctly (stale = receipt older than the current inputs).
Activity
squid-protocol commentedon Nov 7, 2026
Phase 1 is #8037 (coverage ledger receipts). One change from the plan above: it does not loosen the case / corpus rule. The 270-file churn comes only from harness / oracle fingerprint moves, which were already warnings. A case / corpus change keeps its ledger file in the PR that makes it (one file per case, so it never conflicts), and
derived_checkandcheck()are unchanged.evidence refresh: harness-only coverage re-checks become receipts on …
evidence refresh: det-mutation in 3 shards, and a budget that counts …