Skip to content

userlist: short-COMMAREA and ENDBR ILLOGIC/NOTAUTH scenarios; fix the port abending AEIP (Part of #4049) - #6053

Merged
squid-protocol merged 2 commits into
mainfrom
churn/4049-20261022T1704Z
Oct 22, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/4049-20261022T1704Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Part of #4049. Checklist: partial [c:2150e2e2] -- ITEMERR (resp 27) as worded cannot be driven (see below); ENDBR IOERR has no oracle abend code yet; the rest of the item landed here and in #6032.

What changed

carddemo-userlist (COUSR00C), 42 -> 47 scenarios, all proven against GnuCOBOL (hand port and det port):

  • short-commarea-184/185/186: the caller passes the first N of the 194-byte COMMAREA (EIBCALEN N, X23). Only lengths at or past the last numeric field (PAGE-NUM ends at 184) are stated: a shorter COMMAREA leaves a PIC 9 field as spaces, which IBM leaves undefined. Lengths 33..176 showed COBOL spaces vs Java 0; not loosened, not stated.
  • endbr-illogic-after-a-page-forward, endbr-notauth-after-a-page-back: ENDBR fault runs. Real port defect found: the hand port's abendOn() defaulted ILLOGIC and NOTAUTH to INVREQ (AEIP); the COBOL abends AEIU / AEY7. Added case 21 and case 70.
  • Evidence, det-sweep coverage and det-mutation ledger regenerated; one test in test_strengthen_loop.py.

Checklist item, line by line

Short last page, PF7 at top, selection flag in an empty row, ENDBR abend: landed in #6032. Added here: short COMMAREA, ENDBR ILLOGIC/NOTAUTH.
ITEMERR (resp 27): in the port 26 = ITEMERR and 27 = PGMIDERR; IBM's ENDBR lists neither and FILE_FAULT_CONDITIONS refuses both, so those abendOn arms are unreachable. Stated here, no scenario.

Class table

Class: COUSR00C input states the proof must state (COMMAREA length, file-fault conditions on the browse commands, edge pages).

Member Status Evidence
Short last page, PF7 at top, selection flag in an empty row, ENDBR abend handled #6032
Short COMMAREA (EIBCALEN 184/185/186) handled here short-commarea-184/185/186
Short COMMAREA, lengths 33..176 out of scope cuts a PIC 9 field; IBM leaves it undefined
ENDBR ILLOGIC, NOTAUTH handled here (same abendOn mechanism, port fixed) endbr-illogic-..., endbr-notauth-...
ITEMERR (27) / PGMIDERR unreachable IBM ENDBR lists neither; FILE_FAULT_CONDITIONS refuses both

Sibling gaps

  • ENDBR IOERR (120), COUSR00C: oracle abcode "????" (no IOERR entry in CONDITION_ABCODE, tests/tools/cics_crucible.py); needs an oracle change, a different mechanism.
  • 136 hand-port mutation survivors (COUSR00C): triage and mutation_scores.json refresh; mutant ids moved with the port edit, so a separate slice.
  • Failed-XCTL and blank-id key scenarios (COUSR00C): not covered; need their own cases.

Mutation (hand port, full run, seed 0)

Before 355/495 caught (140 survivors); after 362/498 (136). Not committed to mutation_scores.json: its record is a 100-mutant sample at bcb4f6f82 and the mutant ids moved with the port edit, so --rejudged cannot match them; a fresh record would put 136 survivors untriaged. Left for a triage slice.

Gates

pytest strengthen_loop + equivalence_cics (258 passed), test_evidence (38), ruff format --check, pr_gates --fast 7/7, pr_gates --ratchets 9/9, equivalence.py run --record and det_port.py run proven on 47 scenarios.

Cross-repo

None. No engine code changed, no golden bless.

Lessons for agents

  • A port's abendOn-style switch that defaults to INVREQ hides every condition it omits: a new fault scenario (ILLOGIC, NOTAUTH) is the cheapest way to find the gap.
  • mutation_scores.py --rejudged needs the same mutant ids; any edit to the port file shifts them, so refresh the record with the port edit or not at all.
  • det_coverage_ledger.py update wants a proof_sweep.py --det-only --cases X --work DIR dir, not a det_port.py run dir.

🤖 Generated with Claude Code

…t abended AEIP on both (Part of #4049)

Five scenarios on carddemo-userlist (42 -> 47), proven against GnuCOBOL with the det port as well:
short-commarea-184/185/186 (EIBCALEN cut after the last numeric field; shorter lengths leave a PIC 9
field as spaces, which IBM leaves undefined, so they are not stated) and ENDBR faults ILLOGIC and NOTAUTH.
The hand port's abendOn() defaulted both to INVREQ (AEIP); the COBOL abends AEIU / AEY7. Fixed.
Hand-port mutation re-run: 355/495 -> 362/498 caught.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 22, 2026 19:35
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 19:36
@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 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 3870182 into main Oct 22, 2026
32 checks passed
@squid-protocol
squid-protocol deleted the churn/4049-20261022T1704Z branch October 22, 2026 19:44
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