Skip to content

proof_blockers: Db2 verdicts and harness-stale coverage from the det-sweep ledger (Part of #5075) - #5083

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5075-20261014T0138Z
Oct 14, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5075-20261014T0138Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Part of #5075.

What was wrong

Both proof lanes #5075 asks for already exist. The ranking just didn't read them.

Change

  • tests/tools/proof_blockers.py: new ledger_readings() is the one reading rule:

    • an entry that is current → its coverage;
    • stale on harness/oracle only → the last measurement, marked stale;
    • missing, or its case/corpus changed → None.

    judge_equivalence takes the readings. A Db2 case with no sweep row and no baseline entry takes its verdict from a readable entry (verdict: "ledger"); otherwise it keeps the gap, now worded (no sweep row, no readable det-sweep ledger entry). A sweep or a baseline entry always outranks the ledger. Coverage that is stale on harness/oracle counts and is reported: the new sources.ledger_verdicts and sources.stale_ledger_coverage lists are printed in the report header. LINKed programs still never inherit coverage.

  • tests/tools/evidence_report.py: det_coverage() now calls ledger_readings() (same output; the test that pins it is unchanged). judge_equivalence's default (ledger=None) keeps the evidence report's own measured-ledger path exactly as before. The 13 "not current" committed report files are identical before and after this change; that test fails on main too.

  • Tests: tests/tools/test_proof_blockers.py, the whole input class:

    • Db2 case whose entry is current / stale on harness / has uncovered paragraphs / is missing / changed on case or corpus;
    • Db2 case that is baselined, and one with a sweep row;
    • non-Db2 case whose entry is stale on harness / changed on case or corpus / has partial coverage;
    • LINKed program;
    • the ledger_readings mapping itself.
  • .claude/skills/blocker-slice/SKILL.md: the proof-level paragraph.

Workflows: none edited (allow_workflows was granted but not needed: both Db2 lanes exist). Ledger files: none committed. The "34 with none" were stale entries read as missing, and refreshes are the nightly bot's job (#4863).

Before / after (same survey: cics_census.py survey --baseline at 88f57cf, 8 local corpora + census clones)

Before reproduces the issue: proven 14; not proven in CI: Db2 only gap for 31 programs (36 touched); coverage: unknown only gap for 31 (34 touched).

estate proven before proven after (of whole)
aws-mainframe-modernization-carddemo 14 16 / 19
cics-async-api-credit-card-application-example 0 8 / 10
cics-banking-sample-application-cbsa 0 12 / 29
cics-genapp 0 16 / 31
zecs 0 1 / 4
cics-async-api-redbooks, cics-java-jcics-samples, cics-java-recgen, dbb-mortgage-application 0 0
total 14 53 / 103

After, the gaps "not proven in CI: Db2" and "coverage: unknown" are gone. What remains: coverage: live paragraphs no scenario runs is the only gap for 28 programs (until now hidden behind "unknown"), no case for 13, fact: ASSIGN STARTCODE for 3, plus 1 LINKed program and 1 known unproven.

Recorded local Db2 run (cross-check of the ledger verdicts): proof_sweep.py --det-only --db2-only --jobs 2 against the local Db2 container gave 38/39 PROVED; the only one not proved was cbsa-crecust (baselined, #4952). det_coverage_ledger.py check on that sweep reported coverage ledger: as expected: every count matches the committed ledger, with 38 warnings that are only harness/oracle staleness. proof_blockers --sweep <that run> gives the same 53 proven, and no program's gaps differ from the ledger-based run.

Gates

  • pytest: test_proof_blockers (19), plus test_evidence_report + test_det_coverage_ledger + test_evidence (131 passed). Deselected: test_the_committed_reports_are_current, which fails identically on main (the bot refreshes those reports).
  • pr_gates.py --fast: 6/6 pass. pr_gates.py --ratchets: 7/7 pass. audit_check.py: all clear. No engine change, so no golden bless.

Sibling gaps (not in this PR)

  • coverage: live paragraphs no scenario runs: the only gap for 28 programs. Closing it means new scenarios per case and re-proving them (a different mechanism).
  • coverage: not measured for a LINKed program: the coverage tools measure program_source only.
  • Ledger fingerprints lag after harness PRs: a PR's sweep checks the counts but never restamps the entries.

🤖 Generated with Claude Code

…m the det-sweep ledger (Part of #5075)

The Db2 proof lanes exist (det-sweep's db2 job, #4901; Evidence Refresh's nightly db2
job, #4733) and record their verdict in the coverage ledger (#4758), but proof_blockers
still gave every Db2 case 'not proven in CI' and read ledger coverage only while every
fingerprint matched, so harness / oracle moves made 92 of 102 entries 'unknown'.
ledger_readings() is now the one reading rule (evidence_report.det_coverage uses it).

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

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 14, 2026 02:28
@squid-protocol
squid-protocol merged commit cfd0c3e into main Oct 14, 2026
28 checks passed
@squid-protocol
squid-protocol deleted the churn/5075-20261014T0138Z branch October 14, 2026 02:28
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant