Skip to content

watcher1: PAUDBLOD batch survivor attacks with the new batch try (owner hand-run, fenced from churn) #8030

Closed

Description

@squid-protocol

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

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.

  1. python tests/tools/survivor_attack.py facts carddemo-paudblod --work DIR (it settles what the port's text and the COBOL already decide).
  2. survivor_attack.py packet carddemo-paudblod ID --work DIR for a survivor, then read the COBOL: app/app-authorization-ims-db2-mq/cbl/PAUDBLOD.CBL and its copybooks (CIPAUSMY summary, CIPAUDTY detail). The packet prints the batch input format.
  3. Write INPUTS.json. For this case, each input is one of:
    • New generated values. {"name": "...", "why": "...", "generate": {"INFILE1": {"fields": {FIELD: {"values": [...]}}, "records": N}}}. INFILE1 is PENDING-AUTH-SUMMARY (11 records; today only PA-ACCT-ID has a spec); INFILE2 is INFIL2-REC (30 records; ROOT-SEG-KEY hex 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: another nth, another status, a failure later in the run.
  4. 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 one try share one run: an input that ABENDs the step early hides the rest, so use a fault for error paths. Then act on the result:
    • killed: copy that generator spec or fault from the trial case try prints into tests/equivalence/carddemo-paudblod/case.json;
    • survived: try a second, different idea;
    • port-differs: stop and report it here;
    • refused: change the input.
  5. 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 equivalent or unreachable yourself; only facts settlements 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-gap via det_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

  1. added
    scope:core
    claim:watcher1
    on Nov 7, 2026
  2. squid-protocol commented on Nov 7, 2026

    @squid-protocol
    OwnerAuthor

    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

    • Attacked / Settled: 30 survivors
      • 9 Settled by Facts (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)
      • 21 Attacked with Trial Inputs:
        • 3d1b9c978d (L35, CON: GOTO constant)
        • a448caa6b3 (L341, CON: perform(1, 2) -> perform(1, 3))
        • 22756f9321, 9b1ce89f67 (L86, CON: WS-INFIL1-STATUS offset/length)
        • 6469e0c541, a75cb62983 (L87, CON: WS-INFIL2-STATUS offset/length)
        • 08cb9a4439 (L88, CON: ROOT-QUAL-SSA length 26 -> 27)
        • 287afbf0a1 (L90, CON: ROOT-UNQUAL-SSA length 9 -> 10)
        • ec1fcfb0d9 (L91, CON: CHILD-UNQUAL-SSA length 9 -> 10)
        • 41d9c97a18 (L92, CON: FUNC-GU length 4 -> 5)
        • 6ea67dcd35 (L93, CON: FUNC-ISRT length 4 -> 5)
        • 069add9965, 7cc7356ba2 (L96, CON: IO-PCB-MASK offset/length)
        • 8834354bb3 (L100, CON: GG-RETURN-CODE scale 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 2 in p0)
        • 0243cbb70a (L399, CON: return 3 -> return 4 in p2)
        • e40199f395 (L429, CON: return 5 -> return 6 in p4)
    • Killed: 0
    • Survived: 21 (all attempts recorded in attempts.json)
    • Left Open: 96 unattacked survivors

    Inputs Tried

    1. infile1-summary-fields: Boundary values on PA-CUST-ID (0, 999999999), PA-AUTH-STATUS ('A', 'D', 'P'), PA-CREDIT-LIMIT (0.0, 999999999.99).
    2. infile1-immediate-eof: Fault READ INFILE1 nth=1 status=10 (immediate EOF testing zero-iteration root loop).
    3. infile2-keys-and-amounts: Hex root keys on INFILE2 covering 00000000000C, 10000000001C, 99999999999C across 12 records.
    4. infile1-summary-limits: Maximum amount boundaries (999999999.99) and multiple accounts on 6 records.
    5. infile2-immediate-eof: Fault READ INFILE2 nth=1 status=10 (immediate EOF testing zero-iteration child loop).
    6. child-gu-fail-second: Fault GU DLI nth=2 status=AM.
    7. child-isrt-fail-second: Fault ISRT DLI nth=8 status=AM.
    8. infile1-expanded-accounts: 7 distinct account IDs across 7 records.
    9. infile2-all-unmatched-keys: Non-existent root keys 88888888888C, 99999999999C forcing all detail GU calls to miss.
    10. root-isrt-fail-third: Fault ISRT DLI nth=3 status=AM.

    Key Findings on PAUDBLOD Survivors

    1. Unreferenced Working-Storage: PAUDBLOD.CBL contains substantial working-storage definitions (WS-PGMNAME, WS-ERR-FLG, WS-MORE-AUTHS-FLAG, PRM-INFO, unused FUNC-* codes) copied from PAUDBUNL / IMSUNLOD that are never referenced in the PROCEDURE DIVISION. Mutants mutating these initial values have zero observable effect.
    2. DetDli Argument Slicing:
      • Function codes are parsed by slicing 4 bytes directly from the storage offset (String(bytes, offset, 4)), ignoring the field length. Mutants changing length 4 -> 5 on FUNC-GU and FUNC-ISRT are equivalent.
      • SSAs are parsed via segment name delimiters (( and )), ignoring group field length.
    3. Control Flow Invariance:
      • perform(1, 2) vs perform(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-STATUS is immediately overwritten by CBLTDLI on 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.
      • Dead ROOT GU CALL FAIL branch (L520-526): Nested inside IF PAUT-PCB-STATUS = SPACES, which only enters on GU success. If child insert fails in 3200-INSERT-IMS-CALL, it executes 9999-ABEND (GOBACK), making this branch unreachable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

claim:watcher1scope:core

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions