Repository navigation
Description
Part of #4628. A watcher1 (owner's Pi 5) job, fenced from churn like #8018: assigned to the owner, label claim:watcher1. Follows #8018 / PR #8027 (EPSNBRVL), which worked the right way: 30 attacked, 1 killed, 4 settled by facts, the rest left unstated.
Why this program
- survivor_attack: batch
try, and the PR gate refuses bulk survivor reasons (Part of #4628) #8014 (merged) letssurvivor_attack.py tryattack batch cases.carddemo-paudblod(PAUDBLOD: loads pending-authorization summary and detail segments into IMS, job LOADPADB) is the batch case it fits best today. Both input files are@generated, so attacks are new generator values, plus fault runs. - 126 survivors of 419 mutants, all stated by det_mutation: exhaustive ledgers for CBSTM03B, PAUDBLOD, PAUDBUNL, EPSNBRVL, EPSMPMT (Part of #4628) #7762 from stock sentences, none attacked. The proof covers 16/16 paragraphs and 33/34 branches, so these survive because no generated value or fault separates them, not because code goes unrun.
- No open PR touches PAUDBLOD. Census work (det translator: an item whose bytes overlap a COMP-1 / COMP-2 / COMP-5 item is refused (census: 2 programs; #5865 rank 4) #7646 / Census mock trial: take the 40 census programs from 8 whole to 40 of 40 accounted, measured by the tool only #7709) lists it as a COMP-5 program: if a PR changing its port or case lands mid-job, merge main and re-run before stating anything.
- Not CBSTM03A (watcher1: CardDemo CBSTM03A L5 (owner hand-run, fenced from churn) #7957) or PAUDBUNL yet:
tryfinds no record layout for their input files (CBSTM03A reads through CBSTM03B; PAUDBUNL reads IMS), so only fault runs would work there.
Setup
Work from current origin/main, in a work dir outside the repo (e.g. ~/l5/paudblod), with JDK 17 (JAVA_HOME) and the CardDemo corpus fetched (or GITGALAXY_MAINFRAME_CORPORA pointing at an existing .mainframe_corpora).
The job
Goal: kills and new test inputs. Labels are not the result.
python tests/tools/survivor_attack.py facts carddemo-paudblod --work DIR(it settles what the port's text and the COBOL already decide).survivor_attack.py packet carddemo-paudblod ID --work DIRfor a survivor, then read the COBOL:app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBLand its copybooks (CIPAUSMY summary, CIPAUDTY detail). The packet prints the batch input format.- Write
INPUTS.json. For this case, each input is one of:- New generated values.
{"name": "...", "why": "...", "generate": {"INFILE1": {"fields": {FIELD: {"values": [...]}}, "records": N}}}. INFILE1 isPENDING-AUTH-SUMMARY(11 records; today onlyPA-ACCT-IDhas a spec); INFILE2 isINFIL2-REC(30 records;ROOT-SEG-KEYhex spec,every: 4). Any field of the record layout can get a spec: aim at amounts, counts, dates and keys at their limits (zero, the PICTURE maximum, a negative where the field is signed, a key that repeats, a child whose root does not exist). - A fault run.
{"name": "...", "why": "...", "fault": {"plan": [{"dd": DD, "op": "READ", "nth": N, "status": "NN"}]}}. The case already plans 10 (open, read error and close on both files, and the DL/I root-ISRT / child-GU / child-ISRT failures). Plan different ones: anothernth, another status, a failure later in the run.
- New generated values.
survivor_attack.py try carddemo-paudblod ID1,ID2,... --inputs INPUTS.json --work DIR. Aim one input at several mutants of the same line or paragraph. All inputs of onetryshare one run: an input that ABENDs the step early hides the rest, so use afaultfor error paths. Then act on the result:killed: copy that generator spec or fault from the trial casetryprints intotests/equivalence/carddemo-paudblod/case.json;survived: try a second, different idea;port-differs: stop and report it here;refused: change the input.
- After the kills:
python tests/tools/det_mutation.py run carddemo-paudblod --work DIR --sample 0(419 mutants).
Rules (the PR gate enforces them since #8014)
- Never write
equivalentorunreachableyourself; onlyfactssettlements count. - Do not write a verdict for a survivor you did not attack. An unstated survivor is already open.
- A survivor attacked twice without a kill: state
case-gapviadet_mutation.py state carddemo-paudblod TRIAGE.json --attempts DIR/attempts.json(this records the attack), with its own reason naming the input you would try next. Never one sentence for many survivors: the gate refuses one wording on more than 10 lines without an attack on record. - Skip the PERFORM-stack plumbing lines (
performThru,e.depth != mine,next >= 17: Java ~279-304) unless a fault run reaches them. - Stop after 30 survivors attacked or 4 hours, whichever comes first.
Done when
One PR titled PAUDBLOD: N survivors killed by M new inputs (Part of #4628). The body gives the counts attacked / killed / settled by facts / left open, and lists the new generator specs and fault runs. It must change tests/equivalence/carddemo-paudblod/case.json. If nothing dies, report here instead of opening a PR: which inputs you tried, and what they tell us.
Activity
squid-protocol commentedon Nov 7, 2026
Survivor Attack Results for PAUDBLOD (
carddemo-paudblod)Per the instructions for #8030: 30 survivors have been attacked/settled. Since no mutants were killed, reporting results here instead of opening a PR.
Summary
store-dominates-read):0575dc39e7(f18_WS_NO_SUMRY_DELETED)11e07ed6ab(f19_WS_NO_DTL_READ)160f937800(f11_WS_DAY_DIFF)2af5bc9d26(f17_WS_NO_SUMRY_READ)593086248b(f20_WS_NO_DTL_DELETED)7b9b372525(f12_IDX)daca6e2ef3(f10_WS_EXPIRY_DAYS)db3462731d(f70_PARMCOUNT)fe3d5b1f57(f16_WS_TOT_REC_WRITTEN)3d1b9c978d(L35, CON: GOTO constant)a448caa6b3(L341, CON:perform(1, 2)->perform(1, 3))22756f9321,9b1ce89f67(L86, CON:WS-INFIL1-STATUSoffset/length)6469e0c541,a75cb62983(L87, CON:WS-INFIL2-STATUSoffset/length)08cb9a4439(L88, CON:ROOT-QUAL-SSAlength 26 -> 27)287afbf0a1(L90, CON:ROOT-UNQUAL-SSAlength 9 -> 10)ec1fcfb0d9(L91, CON:CHILD-UNQUAL-SSAlength 9 -> 10)41d9c97a18(L92, CON:FUNC-GUlength 4 -> 5)6ea67dcd35(L93, CON:FUNC-ISRTlength 4 -> 5)069add9965,7cc7356ba2(L96, CON:IO-PCB-MASKoffset/length)8834354bb3(L100, CON:GG-RETURN-CODEscale 0 -> 1)6e48882415(L436, DEL:store(GG-RETURN-CODE, 0))712e6e3246(L508, DEL:store(GG-RETURN-CODE, 0))15acbc1448(L542, DEL:store(GG-RETURN-CODE, 0))67071289b3(L505, DEL:INITIALIZE PAUT-PCB-STATUS)504685a02e(L354, CON:return 1->return 2in p0)0243cbb70a(L399, CON:return 3->return 4in p2)e40199f395(L429, CON:return 5->return 6in p4)attempts.json)Inputs Tried
infile1-summary-fields: Boundary values onPA-CUST-ID(0, 999999999),PA-AUTH-STATUS('A', 'D', 'P'),PA-CREDIT-LIMIT(0.0, 999999999.99).infile1-immediate-eof: FaultREAD INFILE1 nth=1 status=10(immediate EOF testing zero-iteration root loop).infile2-keys-and-amounts: Hex root keys onINFILE2covering00000000000C,10000000001C,99999999999Cacross 12 records.infile1-summary-limits: Maximum amount boundaries (999999999.99) and multiple accounts on 6 records.infile2-immediate-eof: FaultREAD INFILE2 nth=1 status=10(immediate EOF testing zero-iteration child loop).child-gu-fail-second: FaultGU DLI nth=2 status=AM.child-isrt-fail-second: FaultISRT DLI nth=8 status=AM.infile1-expanded-accounts: 7 distinct account IDs across 7 records.infile2-all-unmatched-keys: Non-existent root keys88888888888C,99999999999Cforcing all detail GU calls to miss.root-isrt-fail-third: FaultISRT DLI nth=3 status=AM.Key Findings on PAUDBLOD Survivors
PAUDBLOD.CBLcontains substantial working-storage definitions (WS-PGMNAME,WS-ERR-FLG,WS-MORE-AUTHS-FLAG,PRM-INFO, unusedFUNC-*codes) copied fromPAUDBUNL/IMSUNLODthat are never referenced in thePROCEDURE DIVISION. Mutants mutating these initial values have zero observable effect.DetDliArgument Slicing:String(bytes, offset, 4)), ignoring the field length. Mutants changing length 4 -> 5 onFUNC-GUandFUNC-ISRTare equivalent.(and)), ignoring group field length.perform(1, 2)vsperform(1, 3)(a448caa6b3):p3()reads record 1 before the while loop; the while loop then processes records 2 through EOF. The total records read, inserted into IMS, and displayed to stdout are identical.INITIALIZE PAUT-PCB-STATUS(67071289b3):PAUT-PCB-STATUSis immediately overwritten byCBLTDLIon the subsequent line.store(f126_GG_RETURN_CODE, BigDecimal.ZERO): Initialized to 0 and only set non-zero on ABEND (which terminates via GOBACK), making intermediate zero stores redundant.ROOT GU CALL FAILbranch (L520-526): Nested insideIF PAUT-PCB-STATUS = SPACES, which only enters on GU success. If child insert fails in3200-INSERT-IMS-CALL, it executes9999-ABEND(GOBACK), making this branch unreachable.