Repository navigation
Description
Part of #4270 (found while working the coverage: branch outcomes no scenario runs gap; #3804 / #4175 context).
The finding
proof_blockers.py --branches gives a program the strict bar only when every counted branch outcome runs (bc == bt, coverage_gaps). cobol_coverage.py sets dead units apart, but counts every branch outcome in a live unit. All 13 burned CardDemo programs whose only gap is branch coverage hold at least one outcome no input can reach, so no scenario, generated or written by hand, can get them to the bar. Writing scenarios for the reachable outcomes moves no program.
Measured on main 3167e2b. I ran a local det sweep scoped to the 14 cases (proof_sweep.py --det-only --skip-db2 --cases ...), and every case was proven. The uncovered outcomes match each case's evidence record:
| program (case) | branches | statically dead outcomes (why) | reachable but not run |
|---|---|---|---|
| COTRN01C (tranview) | 23/24 | RETURN-TO-PREV-SCREEN 199 true (G) | none |
| COUSR01C (useradd) | 20/21 | 167 true (G) | none |
| COUSR02C (userupd) | 44/46 | 252 true (G) | REWRITE NOTFND (377), via a fault |
| COUSR03C (userdel) | 30/32 | 199 true (G) | DELETE NOTFND (323), via a fault |
| COADM01C (adminmenu) | 20/26 | all 6: 141 false (no DUMMY program in COADM02Y), WHEN 7..10 / OTHER at 241 (CDEMO-ADMIN-OPT-COUNT VALUE 6, never written) (C) |
none |
| COMEN01C (menu) | 28/33 | 136 true (no option has type 'A'), WHEN DUMMY at 169, WHEN 12 / OTHER at 274 (count VALUE 11) (C) | WHEN COPAUS0C at 147 (option 11) |
| COCRDLIC (cardlist) | 144/151 | 586 true AND false: every arm of the EVALUATE before it ends in GO TO or XCTL (F) | 757 / 897 / 913 / 1177 / 1218 (not classified) |
| COCRDSLC (cardview) | 67/77 | 386 true AND false: every arm ends in GO TO, XCTL or SEND-PLAIN-TEXT's RETURN (F) | the other 8 (not classified) |
| COBIL00C (billpay) | 38/48 | 275 true (G) | 9: PF3 with a FROM-PROGRAM, REWRITE NOTFND, READ CXACAIX / STARTBR / READPREV NOTFND, ENDFILE and OTHER, WRITE DUPKEY |
| CORPT00C (report) | 40/59 | 542 true (G) | most of them; 225 true needs a December clock (the case clock is set per case) |
| COTRN00C (tranlist) | 85/101 | 512 true (G), 390 OTHER and 452 OTHER (WS-IDX stays within 1..10) (C) |
row selections 2-10, PF7 with a blank first key, the PAGE-BACKWARD error paths |
| COUSR00C (userlist) | 84/100 | 508 true (G), 386 OTHER and 448 OTHER (same loop bounds) (C) | the same pattern as tranlist |
| COTRN02C (tranadd) | 56/75 | 502 true (G) | 18 (not classified) |
The three kinds of dead outcome:
- G: the guard
IF CDEMO-TO-PROGRAM = LOW-VALUES OR SPACESin RETURN-TO-PREV-SCREEN. Every caller first moves a non-blank literal into CDEMO-TO-PROGRAM, orCDEMO-FROM-PROGRAMafter testing that it is not SPACES or LOW-VALUES. - C: a WHEN or IF that tests a constant table or count (a copybook VALUE that is never written) or a loop index whose bounds are fixed.
- F: an IF that follows an EVALUATE whose every arm transfers control and does not return (GO TO, XCTL, RETURN). This is a control-flow fact. The unit-level reachability already knows it, but the branch counting does not use it.
Proposal (owner decision)
- F (sound and cheap):
cobol_coverageleaves out oftotalthe branch points that no path reaches after an arm that always transfers control. These are counted apart, likein_dead_code. - G and C: a reviewed per-case declaration of infeasible outcomes. Each entry gives
unit:line:outcomeand the reason, the same shape as theunreachableverdict inmutation_scores.json.proof_blockerssubtracts the declared outcomes and prints them. Each outcome is listed, never faked: a run that reaches a declared outcome fails the declaration.
Until one of these lands, the strict bar for these 13 programs cannot be met honestly, and new scenarios move 0 of them.
A second, smaller finding
Before this sweep, coverage: unknown (no sweep, no evidence record) covered 9 programs. A det sweep of their cases (--skip-db2) shows that ABNDPROC (cbsa-abndproc, 4/4 paragraphs, 2/2 branches) and UPDCUST (cbsa-updcust, 7/7, 28/28) already meet the strict bar: proven is 1 -> 3 with --sweep. These cases have no committed port, so they have no evidence record. Without --sweep, proof_blockers cannot see them, because CI's det-sweep ratchet stores verdicts but not coverage. A follow-up could have the det-sweep keep coverage (for example det_sweep_baseline / an artifact) so that main's measurement counts them. The other 7 are lgacvs01, lgdpvs01, lgucvs01 and epsmlist (with a non-Db2 case now measured, the best case for each is a Db2 case: not proven in CI: Db2), plus COACTUPC 310/397, COACTVWC 58/71 and lgupvs01 5/9, which have real branch gaps.
Activity
squid-protocol commentedon Oct 7, 2026
Owner decision (2026-10-07): do BOTH. (1) cobol_coverage stops counting branch outcomes after an arm that always transfers control (GO TO / XCTL / RETURN / GOBACK / STOP RUN): a sound control-flow fact. (2) A reviewed per-case list of infeasible outcomes, each with a reason and the COBOL line; proof_blockers subtracts them; a run that reaches a listed outcome fails. Entries are proposed by agents and reviewed by the owner in the PR; the evidence report shows them as stated assumptions, never hidden.
squid-protocol commentedon Oct 7, 2026
The six CBSA/GenApp Db2 programs whose only gap is branches (from the EIBTASKN slice, #4270)
With EIBTASKN stated (branch
det/4270-eibtaskn-stated, rebased on main and pushed, no PR), the only gap left for DELACC, LGACDB01, LGACDB02, LGDPDB01, LGIPDB01 and LGUCDB01 iscoverage: branch outcomes. I classified every unrun outcome against the local det sweep that includes Db2. None of the six can reach the strict bar. DELACC is blocked by an outcome no input can reach. Each GenApp program is blocked by three outcomes behind X6. So the slice stopped and no PR was opened.Kinds:
WRITE-ERROR-MESSAGErunsIF EIBCALEN > 0→IF EIBCALEN < 91→ LINK LGSTSQ with the 99-byte CA-ERROR-MSG, and LGSTSQ then writes 104 bytes from its 95-byte WRITE-MSG.programs, aregion, and equivalence harness: COBOL side drops WRITEQ TS events (first hit: GenApp LGSTSQ run in-task) #4607 (the COBOL side drops WRITEQ TS events).IF SQLCODE = 0in RAD010. Line 282 ABENDs HRAC on anything but 0/+100, and line 350 does GO TO RAD999 on +100, so SQLCODE is 0 hereProbe (not committed):
genapp-lgacdb02with LGSTSQ inprogramsand acommarea: nullscenario. The run differs only by the WRITEQ-TS event (#4607). It also shows a trade-off: running LGSTSQ in-task turns the auto fault taskadd-password--sql-lgacdb02-166, which was judged up to the LINK (#4173), into an X6 refusal (WRITEQ TD LENGTH > FROM). That task leaves the coverage, so the result is 6/10, not 7/10.What would move these programs:
RAD010:363:false(a data-flow guard, the same family as G).EIBCALEN < 91true needs a short-COMMAREA scenario (L).🤖 Generated with Claude Code
tooling: evidence report follows the owner's #4601 decisions
equivalence: CardDemo scenarios for reachable unrun outcomes, infeasi…
equivalence: cobol_coverage sets apart branch points after a transfer…
equivalence: a reviewed ledger of infeasible branch outcomes (#4602)
equivalence: CardDemo scenarios for reachable unrun outcomes, infeasi…
equivalence: track infeasible_outcomes.json (the *.json ignore rule) …
WIP: refresh the det-sweep coverage ledger for the #4602 cases (sweep…
equivalence: cobol_coverage sets apart branch points after a transfer…
equivalence: a reviewed ledger of infeasible branch outcomes (#4602)
equivalence: CardDemo scenarios for reachable unrun outcomes, infeasi…
equivalence: track infeasible_outcomes.json (the *.json ignore rule) …
equivalence: never-raised NOTFND stated (family R); evidence, pages a…
tooling: evidence report follows the owner's #4601 decisions
equivalence: cobol_coverage sets apart branch points after a transfer…
equivalence: a reviewed ledger of infeasible branch outcomes (#4602)
equivalence: CardDemo scenarios for reachable unrun outcomes, infeasi…
equivalence: track infeasible_outcomes.json (the *.json ignore rule) …
equivalence: never-raised NOTFND stated (family R); evidence, pages a…
equivalence: det-sweep coverage ledger regenerated for the #4602 case…
equivalence: infeasible branch outcomes and control-flow-aware covera…
tooling: evidence report follows the owner's #4601 decisions
tooling: evidence report ladder per the owner (#4601): net branches, …
tooling: purchaser-facing evidence report (#4601) (#4603)
estate_evidence: take the E3 coverage bar net of reviewed infeasible …