Skip to content

X18: faults planned in a RUN TRANSID child; CRECUST FETCH ANY reaches COMPSTATUS ABEND (Part of #6072) - #6973

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6967-20261029T0221Z
Oct 29, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6967-20261029T0221Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6072. Part of #6967.

What

A scenario's fault can now be planned in a RUN TRANSID child task: {"cmd": ..., "child": "OCR1", ...}.

  • fault_lines (tests/tools/equivalence_cics_faults.py) validates a child fault exactly as it validates a root one and writes it @TRANSID CMD NAME NTH RESP RESP2[ ABCODE]. A child that is not a 1-4 character transaction id ([A-Z0-9@#$]) is refused by name. The root lookups never match @... lines, so a task's own faults are unchanged. The key is child, not task: cics_crucible's task_faults already uses task.
  • C stub (ggcics_taskcontrol.c, dispatch): before the fork, the parent's @TRANSID lines for that transaction go to the child dir's faults.cfg with the prefix off. After the child exits, its out/faults.txt is appended to the parent's, each line @TRANSID first.
  • Java runtime (cics_task_taskcontrol.py, dispatchChildren): the same, through withFaults on the child CicsTask (childFaults / childFired). The child counts its commands as a task of its own, as the forked C child does.
  • Harness (equivalence_cics.py, one line): a CHILD event's nested events are compared after the same LINK normalization (_link_as_compared) the top level gets. Until now no child issued a LINK that was compared, so nothing hit this.

Evidence: CBSA CRECUST line 853, WHEN DFHVALUE(ABEND)

New scenario fetch-any-first-child-abends. CRDTAGYn abends only through DELAY RESP not NORMAL -> LINK ABNDPROC (no RESP) -> ABEND. ABNDPROC writes ABNDFILE, a region resource a child may not touch (R1). So the IBM-faithful plan is two faults in OCR1:

  • DELAY INVREQ / 6 (the seconds are out of range);
  • LINK ABNDPROC PGMIDERR / 3.

The unhandled PGMIDERR abends the child (AEI0), and FETCH ANY answers COMPSTATUS ABEND. Both sides fire @OCR1 DELAY - 1 16 6 and @OCR1 LINK ABNDPROC 1 27 3.

case paragraphs before paragraphs after net branches before net branches after proof
cbsa-crecust 100.0 (37/37) 100.0 (37/37) 78.6 (55/70) 80.0 (56/70) proven (det, 21 scenarios, --faults all)

The det proofs (det_port.py run --faults all) of every case that runs children also prove: cbsa-crecust, cbsa-crecust-generated, cbsa-bnk1ccs, cbsa-bnk1ccs-generated, asynccc-asyncpnt.

det_port.py check lists 156 ports whose only change is CicsTask.java's 43 new lines. Those lines run only for a dispatched child with @-prefixed plan lines. The det sweep of all 156 is in progress; its result follows in a comment.

Class: injected faults in a RUN TRANSID child task

member status evidence
condition fault (file, LINK, INQUIRE, UI/terminal, DELAY, container, ...) in a child handled fault_lines validates it as a root fault then tags it; tests: each form, @OCR1 + the root line
ABEND line (X70) in a child handled same path; test pins the tagged ABEND line
child abend -> FETCH ANY / CHILD COMPSTATUS ABEND + ABCODE handled both runtimes already reported it; CRECUST scenario; Java runtime test
fired log of a child's faults handled appended to the parent's, @TRANSID first, both sides
child name checked against the case's child_programs partial fault_lines has no case; the CRECUST test pins its scenario's children; see Sibling gaps

Tests (in tests/cobol_mainframe/test_det_crecust_case.py, which pins CRECUST's scenario list anyway; the 5-file cap kept them out of a new file):

  • each fault form, tagged equals root;
  • a bad transid is refused (6 forms);
  • the CRECUST plan reads as the stub logs it;
  • a javac runtime test: the fault fires only in the child (the parent's own DELAY is NORMAL), FETCH ANY gives NORMAL 900 KIDA, and the fired log holds @KC DELAY - 1 16 6.

Sibling gaps

  • 853 WHEN DFHVALUE(SECERROR) (CRECUST): IBM, FETCH ANY COMPSTATUS SECERROR, "failed to attach due to a security error. ABCODE is blank". This is a different mechanism: the child never runs. IBM does not document what CHANNEL the FETCH returns for it. Needs an owner ruling on that reply before it can be modelled.
  • 853 WHEN OTHER (CRECUST): IBM lists exactly three COMPSTATUS CVDAs (NORMAL, ABEND, SECERROR). Candidate reviewed-infeasible entry (data, Ladder climb L1->L4: 74 burned programs below L4 by estate and rung (coverage backlog after the translate stage) #6072).
  • A child's region-resource commands (ABNDPROC's ABNDFILE write, ENQ / counter / SQL in a child) stay refused (R1, child_region_resource). This is why the scenario fails the LINK instead of running ABNDPROC.
  • child not checked against child_programs in fault_lines callers that have the case (equivalence_cics, strengthen.py). A fault naming a transaction no child runs is silently never fired. Small follow-up in the caller.
  • Other Equivalence harness gaps 3: CBSA fault injection and CardDemo L3 diagnosis (ladder tail, Part of #6072) #6967 items: BNK1CAC 437 / 611 / 637 / 717 (X8 bounds refusals) and the CardDemo diagnosis. Not this mechanism.

Plan changes

  • The harness needed a one-line nested-LINK normalization (equivalence_cics.py). The plan did not foresee it.
  • I dropped the planned X18.md register paragraph to stay at 5 hand-written files. Its text is the javadoc / C comments and this body. The new tests went into the existing CRECUST pin file instead of a new one: the pin had to change anyway.
  • The plan's "before" paragraph count was wrong: CRECUST was already 37/37 paragraphs. The gain is the 853 ABEND branch.

Gates

  • pr_gates.py --fast: 9/9 pass.
  • pr_gates.py --ratchets: 9 pass.
  • audit_check.py: all clear.
  • ladder_refresh.py cbsa-crecust: proven, ledger written, 822 pin tests pass.
  • CICS suites (test_x18_child_scope_4950, test_cics_family_split, test_equivalence_cics, tests/cics_crucible/, test_evidence): 1220 passed.

🤖 Generated with Claude Code

… ANY reaches COMPSTATUS ABEND (#6967)

A fault with `"child": "<TRANSID>"` is written `@TRANSID CMD NAME NTH RESP RESP2[ ABCODE]`. Both runtimes hand the
dispatched child its lines with the prefix off (C: the child dir's faults.cfg; Java: the child CicsTask's withFaults)
and append what fired in the child to the parent's fired log, `@TRANSID ` first. The compare of a CHILD event's own
events now normalizes nested Java LINK events as the top level already does.

CBSA CRECUST: new scenario fetch-any-first-child-abends (OCR1: DELAY INVREQ 6 -> LINK ABNDPROC PGMIDERR 3 -> AEI0),
which takes 853 WHEN DFHVALUE(ABEND): 55 -> 56/70 net branches, det proof PROVED on 21 scenarios.

Part of #6072, Part of #6967.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

Det sweep of the 156 ports that det_port.py check listed (their only change is the new childFaults / childFired code in CicsTask.java): proof_sweep.py --det-only --faults all reports 156/156 proven. No port's evidence moved apart from cbsa-crecust (56/70 branches, 853:WHEN@932 now taken).

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 29, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 29, 2026 03:23
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 29, 2026 03:24
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 8521750 into main Oct 29, 2026
109 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6967-20261029T0221Z branch October 29, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant