Repository navigation
proof_blockers: Db2 verdicts and harness-stale coverage from the det-sweep ledger (Part of #5075) - #5083
Merged
Conversation
…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]>
Contributor
Closed
2 tasks
Owner
Author
|
No description provided. |
Owner
Author
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5075.
What was wrong
Both proof lanes #5075 asks for already exist. The ranking just didn't read them.
db2job (cbsa-bnk1cac (Db2 case) stopped proving in the nightly — and PR CI never proves Db2 cases (det sweep --skip-db2) #4901) proves every Db2 case a PR moves, or all of them on a full plan, under the requireddetratchet and ledger check. Evidence Refresh's nightlydb2job (evidence-refresh: include the Db2 cases in the coverage sweep so Db2-backed programs reach their real L3/L4 on main (and pin the Db2 image) #4733/Evidence refresh: re-measure translation every night (the reports' survey froze on 2026-10-07) #4863) sweeps every Db2 case and rewrites the coverage ledger. A ledger entry exists only while the last sweep proved its case (evidence report: Db2 programs stay L1 after a Db2 refresh — the report build doesn't get the Db2 sweep's verdicts #4758): 38 of 39 Db2 cases have one, and the 39th is cbsa-crecust, which is in the baseline (det: CBSA CRECUST equivalence case (Db2 seed + running children) #4952).proof_blockers.judge_equivalenceignored all of that and gave every Db2 casenot proven in CI: Db2 case (det-sweep runs --skip-db2), based on the setup from before cbsa-bnk1cac (Db2 case) stopped proving in the nightly — and PR CI never proves Db2 cases (det sweep --skip-db2) #4901.proof_blockersread coverage throughfresh_coverage, which drops an entry on any changed fingerprint. 92 entries are stale only on harness/oracle (equivalence: file-fault conditions per command x IBM RESP2 (Part of #5044) #5063/det/CICS: container and channel names use IBM's PUT CONTAINER character set (Part of #4950) #5067 moved the harness today). The ledger contract says that kind of change is not blocking: such an entry is the last measurement (evidence report: keep a program's last measured level marked stale instead of dropping L3/L4 to zero on any harness change #4730), and CI's det-sweep--aggregatecompares its counts exactly on every sweep of the case.evidence_report.pyalready applied this rule; the ranking never did.Change
tests/tools/proof_blockers.py: newledger_readings()is the one reading rule:judge_equivalencetakes 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 newsources.ledger_verdictsandsources.stale_ledger_coveragelists are printed in the report header. LINKed programs still never inherit coverage.tests/tools/evidence_report.py:det_coverage()now callsledger_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:ledger_readingsmapping 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 --baselineat 88f57cf, 8 local corpora + census clones)Before reproduces the issue: proven 14;
not proven in CI: Db2only gap for 31 programs (36 touched);coverage: unknownonly gap for 31 (34 touched).After, the gaps "not proven in CI: Db2" and "coverage: unknown" are gone. What remains:
coverage: live paragraphs no scenario runsis the only gap for 28 programs (until now hidden behind "unknown"),no casefor 13,fact: ASSIGN STARTCODEfor 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 2against the local Db2 container gave 38/39 PROVED; the only one not proved was cbsa-crecust (baselined, #4952).det_coverage_ledger.py checkon that sweep reportedcoverage 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
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 measureprogram_sourceonly.🤖 Generated with Claude Code