Repository navigation
equivalence: infeasible branch outcomes and control-flow-aware coverage (#4602) - #4624
Merged
Merged
Conversation
Contributor
squid-protocol
marked this pull request as ready for review
October 7, 2026 16:05
… of control (#4602) An IF / EVALUATE no path reaches -- every path to it passes GO TO, GOBACK, STOP RUN, EXEC CICS RETURN / XCTL / ABEND (no RESP / NOHANDLE), or a plain PERFORM of a paragraph no path leaves -- is counted apart (branches.after_transfer), like in_dead_code. A run that takes one is flagged (after_transfer_but_taken). Conservative: conditional phrases, inline PERFORMs, IF with no ELSE, EVALUATE with no OTHER, COPY and Area A lines keep the path open. CardDemo: COCRDLIC 586, COCRDSLC 386, COACTVWC 387; crucible: none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tests/equivalence/infeasible_outcomes.json states, per case, the branch outcomes no input can reach, each with its COBOL reason (family G: a guard every caller has satisfied; C: a test of a constant). proof_blockers.py takes them out of the branch total when the proof left them uncovered and prints them; one the proof reached is a gap. Every det sweep fails when a proof reaches a stated outcome (proof_sweep.py keeps each case's uncovered list). infeasible_outcomes.stated(case) is what the evidence report shows as assumptions. First entries: the RETURN-TO-PREV-SCREEN guard (G) in nine CardDemo programs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ble entries for the rest (#4602) Scenarios (every reachable outcome the harness can express): billpay +9, tranadd +15, report +9, tranlist +11, userlist +11, cardlist +2, cardview +1, userupd +1, userdel +1. Proposed infeasible entries (G / C, each with its COBOL reason): adminmenu 6, menu 3, cardlist 2, cardview 6, report 6, tranadd 2, tranlist 4, userlist 4. Evidence records of the changed cases re-proven (the model ports prove the new scenarios); pages re-rendered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and test it is tracked (#4602) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd coverage ledger regenerated (#4602) The REWRITE NOTFND (userupd 377, billpay 390) and DELETE-without-RIDFLD NOTFND (userdel 323) fault scenarios are gone: IBM documents no such response, so the outcomes are stated infeasible under family R, citing IBM's REWRITE / DELETE pages. Evidence records of the 9 changed cases re-proven with evidence.py prove, pages rendered, det_sweep_coverage.json updated from a fresh det sweep (16 cases, all proven). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s after #4625 Co-Authored-By: Claude Opus 5.5 <[email protected]>
squid-protocol
force-pushed
the
equiv/4602-infeasible-outcomes
branch
from
October 7, 2026 16:17
7262c92 to
5c5d585
Compare
This was referenced Oct 7, 2026
squid-protocol
added a commit
that referenced
this pull request
Oct 7, 2026
#4624 (#4270) (#4632) Co-authored-by: Claude Opus 5.5 <[email protected]>
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 #4270. Fixes #4602.
Both halves of the owner decision on #4602, applied to the 13 CardDemo programs whose only gap was branch coverage.
Strict bar (every counted branch outcome run): 3 -> 13 programs proven.
proof_blockers.py <census-cache/3167e2bb...> --label before --brancheson the same survey and with the same non-CardDemo sweep (/tmp/cdb/unknown, from the proof_blockers: the strict branch bar counts statically dead outcomes -- 13 CardDemo programs cannot reach it (#4270) #4602 investigation).proof_sweep.py --det-only --skip-db2of the 13 cases plus signon, acctview and acctview-generated. All 16 are proven.What changed
cobol_coverage: no branch outcomes are counted after a transfer of control.branches.after_transfer, besidein_dead_code) when every path to it passes a statement that never falls through:after_transfer_but_taken), never counted.tests/equivalence/infeasible_outcomes.json.det_sweep_coverage.json, shaped like theunreachableverdict in mutation_scores.json. It is not a file per case, because a file inside a case directory would make its evidence record stale.proof_blockers.pytakes the stated outcomes out of a case's branch total when the proof left them uncovered, and prints them. A stated outcome the proof reached is a gap of its own (infeasible outcome reached).infeasible_outcomes.stated(case)is the function the evidence report (tooling: purchaser-facing evidence report (#4601) #4603) can call to show the entries as stated assumptions.infeasible_outcomes.py showprints the table below.*.jsonignore rule had kept the ledger out of git, so.gitignoregets an exception and a test checks the file is tracked.evidence.py prove: the model ports prove the new scenarios. The pages were re-rendered, anddet_sweep_coverage.jsonwas refreshed with its tool. No expected output was edited.Per case (raw covered/total, before -> after)
Not at the bar:
COACTVWC (acctview) now reads 58/69, because line 387 is set apart. Its scenarios are unchanged.
Entries for review (45)
Families:
IF CDEMO-ADMIN-OPT-PGMNAME(WS-OPTION)(1:5) NOT = 'DUMMY'runs only underIF NOT ERR-FLG-ON(140), i.e. after the test at 131-133 let WS-OPTION through as numeric, not zero and not > CDEMO-ADMIN-OPT-COUNT (6, COADM02Y line 22); the program names of options 1-6 are the copybook VALUEs 'COUSR00C', 'COUSR01C', 'COUSR02C', 'COUSR03C', 'COTRTLIC', 'COTRTUPC' (COADM02Y lines 29-53) and COADM01C never writes the table, so none starts with 'DUMMY'.EVALUATE WS-IDXWHEN OTHERinsidePERFORM VARYING WS-IDX FROM 1 BY 1 UNTIL WS-IDX > CDEMO-ADMIN-OPT-COUNT(231-232): the count is the constant 6 (COADM02Y line 2205 CDEMO-ADMIN-OPT-COUNT PIC 9(02) VALUE 6), never written by COADM01C, and the loop body does not change WS-IDX, so WS-IDX is always 1-6, each matched by WHEN 1-6.EVALUATE WS-IDXWHEN 7insidePERFORM VARYING WS-IDX FROM 1 BY 1 UNTIL WS-IDX > CDEMO-ADMIN-OPT-COUNT(231-232): the count is the constant 6 (COADM02Y line 2205 CDEMO-ADMIN-OPT-COUNT PIC 9(02) VALUE 6), never written by COADM01C, and the loop body does not change WS-IDX, so WS-IDX takes only 1-6.EVALUATE WS-IDXWHEN 8insidePERFORM VARYING WS-IDX FROM 1 BY 1 UNTIL WS-IDX > CDEMO-ADMIN-OPT-COUNT(231-232): the count is the constant 6 (COADM02Y line 2205 CDEMO-ADMIN-OPT-COUNT PIC 9(02) VALUE 6), never written by COADM01C, and the loop body does not change WS-IDX, so WS-IDX takes only 1-6.EVALUATE WS-IDXWHEN 9insidePERFORM VARYING WS-IDX FROM 1 BY 1 UNTIL WS-IDX > CDEMO-ADMIN-OPT-COUNT(231-232): the count is the constant 6 (COADM02Y line 2205 CDEMO-ADMIN-OPT-COUNT PIC 9(02) VALUE 6), never written by COADM01C, and the loop body does not change WS-IDX, so WS-IDX takes only 1-6.EVALUATE WS-IDXWHEN 10insidePERFORM VARYING WS-IDX FROM 1 BY 1 UNTIL WS-IDX > CDEMO-ADMIN-OPT-COUNT(231-232): the count is the constant 6 (COADM02Y line 2205 CDEMO-ADMIN-OPT-COUNT PIC 9(02) VALUE 6), never written by COADM01C, and the loop body does not change WS-IDX, so WS-IDX takes only 1-6.IF CDEMO-TO-PROGRAM = LOW-VALUES OR SPACESin RETURN-TO-PREV-SCREEN: the paragraph is only PERFORMed, and every PERFORM of it comes right after a MOVE of a non-blank program name into CDEMO-TO-PROGRAM (line 108 moves 'COSGN00C', line 130 'COMEN01C', and line 133 moves CDEMO-FROM-PROGRAM only after line 129 tested it is neither SPACES nor LOW-VALUES; both fields PIC X(08), COCOM01Y). COBIL00C never moves SPACES or LOW-VALUES into it in between.WHEN DFHRESP(NOTFND)afterEXEC CICS REWRITE DATASET(WS-ACCTDAT-FILE)(line 379): REWRITE updates the record the READ ... UPDATE at line 345 holds; IBM's REWRITE conditions do not include NOTFND (https://www.ibm.com/docs/en/cics-ts/6.x?topic=summary-rewrite; our spec, gitgalaxy/standards/cics/commands/files.py, lists NORMAL and INVREQ).IF WS-EDIT-SELECT(1) = SPACE OR LOW-VALUESis only reached when WS-ROW-CRDSELECT-ERROR(1) = '1' (line 755). That flag is INITIALIZEd to spaces with WS-MISC-STORAGE (line 300) and set to '1' only in 2250-EDIT-ARRAY: at line 1104 when SELECT-OK(1) ('S' or 'U'), at line 1110 in WHEN OTHER after SELECT-BLANK(1) (' ' or LOW-VALUES, lines 80-82) failed, and by the INSPECT at lines 1090-1093, which turns only 'S' / 'U' into '1'. WS-EDIT-SELECT(1) is written only at line 972 (2100-RECEIVE-SCREEN, performed before 2200-EDIT-INPUTS at lines 952-956), so it is never blank when its error flag is '1'.SET WS-NO-INFO-MESSAGE TO TRUE(line 669); nothing in 1200 / 1250 / 1300 writes WS-INFO-MSG. So when no earlier WHEN matches,WHEN WS-NO-INFO-MESSAGE(line 917) always does, and WHEN OTHER (line 920) cannot be taken.IF WS-NO-INFO-MESSAGE SET WS-PROMPT-FOR-INPUT TO TRUE(lines 490-492): WS-INFO-MSG leaves 1200 non-blank, and nothing at lines 494-552 writes it, soIF WS-NO-INFO-MESSAGEat line 553 is never true.IF WS-RETURN-MSG-OFF: WS-RETURN-MSG is set to SPACES at line 264 and 2210-EDIT-ACCOUNT is the first edit (only PERFORMed at line 630, in 2200-EDIT-MAP-INPUTS after 2100-RECEIVE-MAP, neither of which writes it before), so the message is always still off here.IF WS-RETURN-MSG-OFFat line 668 is reached only when the blank test at line 651 failed (it GOes TO the exit at line 660), so no message was set in this paragraph either; as for line 656, WS-RETURN-MSG is still the SPACES set at line 264.IF WS-RETURN-MSG-OFF(NOTFND) is always true.IF WS-RETURN-MSG-OFFis always true.IF ABEND-MSG EQUAL LOW-VALUES: ABEND-MSG isPIC X(72) VALUE SPACES(CSMSG02Y, lines 28-29), outside the items INITIALIZEd at lines 254-256, and the program writes it only at line 860 (a non-blank literal). It is never LOW-VALUES.WHEN CDEMO-MENU-OPT-PGMNAME(WS-OPTION)(1:5) = 'DUMMY'runs only underIF NOT ERR-FLG-ON(145), i.e. after the test at 127-129 let WS-OPTION through as numeric, not zero and not > CDEMO-MENU-OPT-COUNT (11, COMEN02Y line 2105 CDEMO-MENU-OPT-COUNT PIC 9(02) VALUE 11); the program names of options 1-11 are the copybook VALUEs COACTVWC, COACTUPC, COCRDLIC, COCRDSLC, COCRDUPC, COTRN00C, COTRN01C, COTRN02C, CORPT00C, COBIL00C, COPAUS0C (COMEN02Y lines 28-89) and COMEN01C never writes the table, so none starts with 'DUMMY'.EVALUATE WS-IDXWHEN OTHERinsidePERFORM VARYING WS-IDX FROM 1 BY 1 UNTIL WS-IDX > CDEMO-MENU-OPT-COUNT(264-265): the count is the constant 11 (COMEN02Y line 2105 CDEMO-MENU-OPT-COUNT PIC 9(02) VALUE 11), never written by COMEN01C, and the loop body does not change WS-IDX, so WS-IDX is always 1-11, each matched by WHEN 1-11.EVALUATE WS-IDXWHEN 12insidePERFORM VARYING WS-IDX FROM 1 BY 1 UNTIL WS-IDX > CDEMO-MENU-OPT-COUNT(264-265): the count is the constant 11 (COMEN02Y line 2105 CDEMO-MENU-OPT-COUNT PIC 9(02) VALUE 11), never written by COMEN01C, and the loop body does not change WS-IDX, so WS-IDX takes only 1-11.IF SDTYYYYI IS NOT NUMERIC: lines 313-315 have just moved WS-NUM-9999 (PIC 9999, line 75: unsigned display digits) into SDTYYYYI (PIC X(4), CORPT00.CPY), so it always holds four digitsIF EDTYYYYI IS NOT NUMERIC: lines 325-327 have just moved WS-NUM-9999 (PIC 9999, line 75: unsigned display digits) into EDTYYYYI (PIC X(4), CORPT00.CPY), so it always holds four digitsIF NOT ERR-FLG-ONcan only be false after an error was flagged, but every MOVE 'Y' TO WS-ERR-FLG (lines 191, 263-298, 333-376, 402, 422, 440, 471, 482, 491, 530) is followed by PERFORM SEND-TRNRPT-SCREEN, which never returns: it ends in GO TO RETURN-TO-CICS (line 580), whose EXEC CICS RETURN (line 587, no RESP / NOHANDLE) ends the task; WS-ERR-FLG starts 'N' (SET ERR-FLG-OFF, line 165)IF NOT ERR-FLG-ONafter the report EVALUATE: every MOVE 'Y' TO WS-ERR-FLG (lines 191, 263-298, 333-376, 402, 422, 440, 471, 482, 491, 530) is followed by PERFORM SEND-TRNRPT-SCREEN, which never returns: it ends in GO TO RETURN-TO-CICS (line 580), whose EXEC CICS RETURN (line 587, no RESP / NOHANDLE) ends the task; WS-ERR-FLG starts 'N' (SET ERR-FLG-OFF, line 165)IF NOT ERR-FLG-ON: the only flag set before it in this task is line 471, followed by PERFORM SEND-TRNRPT-SCREEN, which never returns; every MOVE 'Y' TO WS-ERR-FLG (lines 191, 263-298, 333-376, 402, 422, 440, 471, 482, 491, 530) is followed by PERFORM SEND-TRNRPT-SCREEN, which never returns: it ends in GO TO RETURN-TO-CICS (line 580), whose EXEC CICS RETURN (line 587, no RESP / NOHANDLE) ends the task; WS-ERR-FLG starts 'N' (SET ERR-FLG-OFF, line 165)IF CDEMO-TO-PROGRAM = LOW-VALUES OR SPACESin RETURN-TO-PREV-SCREEN: the paragraph is only PERFORMed, and every PERFORM of it comes right after a MOVE of a non-blank program name into CDEMO-TO-PROGRAM (line 173 moves 'COSGN00C' and line 188 'COMEN01C'; both fields PIC X(08), COCOM01Y). CORPT00C never moves SPACES or LOW-VALUES into it in between.IF SEND-ERASE-YES: WS-SEND-ERASE-FLG has VALUE 'Y' (line 47) and the only statement that writes it is SET SEND-ERASE-YES TO TRUE (line 167); SEND-ERASE-NO is never setIF ERR-FLG-ONat the head of VALIDATE-INPUT-DATA-FIELDS: MAIN-PARA sets ERR-FLG-OFF (line 109) and every MOVE 'Y' TO WS-ERR-FLG that can run before it (lines 149, 198, 212, 225 and the xref READs at 592 / 599 / 625 / 632) is followed by PERFORM SEND-TRNADD-SCREEN, which ends in EXEC CICS RETURN (line 530, no RESP, no HANDLE in COTRN02C) and never comes back. So the flag is always 'N' when this IF runs.IF NOT ERR-FLG-ONafter VALIDATE-INPUT-KEY-FIELDS and the STARTBR / READPREV / ENDBR of COPY-LAST-TRAN-DATA: each of them that sets WS-ERR-FLG to 'Y' (lines 198, 212, 225, 592, 599, 625, 632, 656, 663, 692) then PERFORMs SEND-TRNADD-SCREEN, which ends in EXEC CICS RETURN (line 530, no RESP, no HANDLE) and never comes back; READPREV ENDFILE (line 688) only zeroes TRAN-ID. So the flag is still the 'N' MAIN-PARA set (line 109).IF CDEMO-TO-PROGRAM = LOW-VALUES OR SPACESin RETURN-TO-PREV-SCREEN: the paragraph is only PERFORMed, and every PERFORM of it comes right after a MOVE of a non-blank program name into CDEMO-TO-PROGRAM (line 116 moves 'COSGN00C', line 138 'COMEN01C', and line 141 moves CDEMO-FROM-PROGRAM only after testing it is neither SPACES nor LOW-VALUES; both fields PIC X(08), COCOM01Y). COTRN02C never moves SPACES or LOW-VALUES into it in between.IF EIBAID NOT = DFHENTER AND DFHPF8: PROCESS-PAGE-BACKWARD is PERFORMed only from PROCESS-PF7-KEY (line 246), which MAIN-PARA PERFORMs only underWHEN DFHPF7ofEVALUATE EIBAID; COTRN00C never changes EIBAID, so EIBAID = DFHPF7 here and the condition is always true.IF NEXT-PAGE-YES: PROCESS-PF7-KEY doesSET NEXT-PAGE-YES TO TRUE(line 242) just before PERFORM PROCESS-PAGE-BACKWARD, and nothing on the way (STARTBR / READPREV / POPULATE / INITIALIZE / SEND paragraphs) sets NEXT-PAGE-NO -- only PROCESS-PAGE-FORWARD does, which PF7 never runs. The flag is always 'Y' here.EVALUATE WS-IDXWHEN 1 .. WHEN 10: POPULATE-TRAN-DATA is PERFORMed only at line 300, insidePERFORM UNTIL WS-IDX >= 11 ...(line 297; WS-IDX moved 1 at line 295, +1 per row at line 301), and at line 354, insidePERFORM UNTIL WS-IDX <= 0 ...(line 351; WS-IDX moved 10 at line 349, -1 per row at line 355). The loop test runs before each pass, so WS-IDX is in 1..10 every time.EVALUATE WS-IDXWHEN 1 .. WHEN 10: INITIALIZE-TRAN-DATA is PERFORMed only byPERFORM VARYING WS-IDX FROM 1 BY 1 UNTIL WS-IDX > 10(lines 290 and 344), so WS-IDX is in 1..10 every time.IF CDEMO-TO-PROGRAM = LOW-VALUES OR SPACESin RETURN-TO-PREV-SCREEN: the paragraph is only PERFORMed, and every PERFORM of it comes right after a MOVE of a non-blank program name into CDEMO-TO-PROGRAM (line 108 moves 'COSGN00C' and line 123 'COMEN01C'; both fields PIC X(08), COCOM01Y). COTRN00C never moves SPACES or LOW-VALUES into it in between.IF CDEMO-TO-PROGRAM = LOW-VALUES OR SPACESin RETURN-TO-PREV-SCREEN: the paragraph is only PERFORMed, and every PERFORM of it comes right after a MOVE of a non-blank program name into CDEMO-TO-PROGRAM (lines 95 and 126 move 'COSGN00C' / 'COTRN00C', line 117 'COMEN01C', and line 120 moves CDEMO-FROM-PROGRAM only after line 116 tested it is neither SPACES nor LOW-VALUES; both fields PIC X(08), COCOM01Y). COTRN01C never moves SPACES or LOW-VALUES into it in between.IF CDEMO-TO-PROGRAM = LOW-VALUES OR SPACESin RETURN-TO-PREV-SCREEN: the paragraph is only PERFORMed, and every PERFORM of it comes right after a MOVE of a non-blank program name into CDEMO-TO-PROGRAM (line 79 moves 'COSGN00C' and line 94 'COADM01C'; both fields PIC X(08), COCOM01Y). COUSR01C never moves SPACES or LOW-VALUES into it in between.IF CDEMO-TO-PROGRAM = LOW-VALUES OR SPACESin RETURN-TO-PREV-SCREEN: the paragraph is only PERFORMed, and every PERFORM of it comes right after a MOVE of a non-blank program name into CDEMO-TO-PROGRAM (lines 91, 113 and 124 move 'COSGN00C' / 'COADM01C', and line 116 moves CDEMO-FROM-PROGRAM only after testing it is neither SPACES nor LOW-VALUES; both fields PIC X(08), COCOM01Y). COUSR03C never moves SPACES or LOW-VALUES into it in between.WHEN DFHRESP(NOTFND)afterEXEC CICS DELETE DATASET(WS-USRSEC-FILE)(line 307) with no RIDFLD: it deletes the record READ-USER-SEC-FILE's READ ... UPDATE (line 269) holds, PERFORMed just before it (lines 190-191). IBM's DELETE raises NOTFND only when the RIDFLD search argument is not found (https://www.ibm.com/docs/en/cics-ts/6.x?topic=summary-delete); with no RIDFLD the failure is INVREQ.IF EIBAID NOT = DFHENTER AND DFHPF8: PROCESS-PAGE-BACKWARD is PERFORMed only from PROCESS-PF7-KEY (line 249), which MAIN-PARA PERFORMs only underWHEN DFHPF7ofEVALUATE EIBAID; COUSR00C never changes EIBAID, so EIBAID = DFHPF7 here and the condition is always true.IF NEXT-PAGE-YES: PROCESS-PF7-KEY doesSET NEXT-PAGE-YES TO TRUE(line 245) just before PERFORM PROCESS-PAGE-BACKWARD, and nothing on the way (STARTBR / READPREV / POPULATE / INITIALIZE / SEND paragraphs) sets NEXT-PAGE-NO -- only PROCESS-PAGE-FORWARD does, which PF7 never runs. The flag is always 'Y' here.EVALUATE WS-IDXWHEN 1 .. WHEN 10: POPULATE-USER-DATA is PERFORMed only at line 303, insidePERFORM UNTIL WS-IDX >= 11 ...(line 300; WS-IDX moved 1 at line 298, +1 per row at line 304), and at line 357, insidePERFORM UNTIL WS-IDX <= 0 ...(line 354; WS-IDX moved 10 at line 352, -1 per row at line 358). The loop test runs before each pass, so WS-IDX is in 1..10 every time.EVALUATE WS-IDXWHEN 1 .. WHEN 10: INITIALIZE-USER-DATA is PERFORMed only byPERFORM VARYING WS-IDX FROM 1 BY 1 UNTIL WS-IDX > 10(lines 293 and 347), so WS-IDX is in 1..10 every time.IF CDEMO-TO-PROGRAM = LOW-VALUES OR SPACESin RETURN-TO-PREV-SCREEN: the paragraph is only PERFORMed, and every PERFORM of it comes right after a MOVE of a non-blank program name into CDEMO-TO-PROGRAM (line 111 moves 'COSGN00C' and line 126 'COADM01C'; both fields PIC X(08), COCOM01Y). COUSR00C never moves SPACES or LOW-VALUES into it in between.IF CDEMO-TO-PROGRAM = LOW-VALUES OR SPACESin RETURN-TO-PREV-SCREEN: the paragraph is only PERFORMed, and every PERFORM of it comes right after a MOVE of a non-blank program name into CDEMO-TO-PROGRAM (lines 91, 114 and 125 move 'COSGN00C' / 'COADM01C', and line 117 moves CDEMO-FROM-PROGRAM only after testing it is neither SPACES nor LOW-VALUES; both fields PIC X(08), COCOM01Y). COUSR02C never moves SPACES or LOW-VALUES into it in between.WHEN DFHRESP(NOTFND)afterEXEC CICS REWRITE DATASET(WS-USRSEC-FILE)(line 360): REWRITE has no RIDFLD and updates the record the READ ... UPDATE at line 322 holds; IBM's REWRITE conditions do not include NOTFND (https://www.ibm.com/docs/en/cics-ts/6.x?topic=summary-rewrite; our spec, gitgalaxy/standards/cics/commands/files.py, lists NORMAL and INVREQ).Decisions for the owner (defaults applied, reversible)
enter-with-page-number-zeroandpf8-at-the-last-page-flag-neither-shown-nor-notset COMMAREA-tail values COCRDLIC never writes itself.write-duprecinjects DUPREC to take the groupedWHEN DFHRESP(DUPKEY) WHEN DFHRESP(DUPREC)arm, because the harness has no DUPKEY fault. tranaddwrite-duprecdoes the same.Follow-ups filed
Gates
pr_gates.py(venv ruff 0.16.0): lint, audits, secrets, xray, gauntlet, golden and suite all pass.pr_gates.py --ratchets: ports, port-surface, estate, fact-crosscheck, completeness and ground-truth all pass. The first run failed golden and ports only because it ran withoutequivalence_env.py --provision; both pass with the provisioned environment. Local det sweep: 16/16 proven,infeasible_outcomes.py checkok,det_coverage_ledger.py checkas expected.🤖 Generated with Claude Code