Repository navigation
equivalence: a real DUPKEY file fault; duplicate-key faults only on IBM's commands (Part of #4623) - #5043
Merged
Conversation
…duplicate-key faults only on IBM's commands (Part of #4623) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dd re-proven with xref-aix-dupkey (Part of #4623) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
…x-dupkey (Part of #4623) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 13, 2026
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 13, 2026 19:24
This was referenced Oct 13, 2026
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 #4623.
What. The harness had no DUPKEY fault, so billpay/tranadd used DUPREC "as a stand-in". IBM's pages (READ, READNEXT, READPREV, WRITE, REWRITE, DELETE, STARTBR, ENDBR) say: DUPKEY (RESP 15, RESP2 140) is a read condition, a record retrieved through a NONUNIQUEKEY alternate index with another of the same key following, and the record is delivered. DUPREC (14, RESP2 150) is WRITE / REWRITE (a unique alternate key counts), and nothing is written. The WRITE page has no DUPKEY, so DUPREC on WRITE was never a stand-in: it is IBM's WRITE condition.
Change
equivalence_cics.py: DUPKEY inCICS_RESP;DUP_KEY_FAULTSmakes the duplicate-key conditions plannable only on IBM's commands, with IBM's RESP2 (defaulted, a wrong one refused); DUPKEY on DELETE refused by name (IBM lists it but not whether the record is deleted).ggcics.cdupkey_apply,CicsTask.dupkeyOr): the read runs and its NORMAL becomes DUPKEY/140, so INTO / RIDFLD / a READ UPDATE hold are as for NORMAL. A read that finds no record never fires it (the harness already fails an unfired fault).xref-aix-dupkeyscenario (READ CXACAIX, the real non-unique AIX path); the DUPREC scenarios keep their fault,whynow says it is IBM's WRITE condition.Found by the new scenario. Both model-written ports skipped the CXACAIX record move on any RESP but 0, while the COBOL has
CARD-XREF-RECORDfilled on DUPKEY and goes on to write a transaction with the card number: the java-facade leg differed (TRAN-CARD-NUM blank). Both ports fixed (3 lines each), recorded in eachprovenance.jsonhistory; both cases re-proved (billpay 26 scenarios, tranadd 47, direct and java-facade, coverage proven).Class (file-fault conditions the harness injects: command x documented condition x RESP2)
Tests.
tests/cics_crucible/test_file_fault_forms.py: parametrized command x {DUPKEY, DUPREC} sweep, both runtimes against the same plan (stub compiled with cc, CicsTask with javac): record delivered, only the planned nth, no fire on NOTFND, fault log. Passing with test_equivalence_cics / test_equivalence_faults / test_cics_runtimes (295 passed, 4 skipped).Gates.
pr_gates --fast5/5;--ratchets7 pass, 0 fail, 0 skipped. No parsing change: no golden bless.evidence.py statuslists other CICS cases stale on harness/oracle/generator (the nightly refresh regenerates them); only billpay and tranadd were re-proved here.Cross-repo. None. Overlaps open PRs #5035 / #5038 / #5041 on
equivalence_cics.py,ggcics.c, the transaction forge andoracle_assumptions.md; they will likely merge first, then this branch merges main (X48 is free as of today; theirs are X30/38/39/44/45/47).🤖 Generated with Claude Code