Repository navigation
det: HANDLE AID, IGNORE CONDITION, PUSH / POP HANDLE and HANDLE CONDITION ERROR on the CICS port (#4414, #4502) - #4527
Merged
Conversation
…TION ERROR on the CICS port (#4414, #4502) The det translator refused HANDLE AID and IGNORE CONDITION (and PUSH / POP HANDLE) and accepted HANDLE CONDITION ERROR(label) without ever taking it. The port now keeps handlers (-1 for IGNORE), aids and a PUSH HANDLE stack (DetCics.Handlers beside CicsTask's HANDLE ABEND stack); condition() takes the condition's own HANDLE / IGNORE, then a default of ignore (EOC), then ERROR's label, then the abend; aid() runs after RECEIVE MAP and terminal RECEIVE unless RESP / NOHANDLE (DetCics.aidLabel: ANYKEY is PA / PF / CLEAR). Where IBM is silent, both sides refuse by name: IGNORE CONDITION ERROR, an AID label beside a condition on one input command (stub GGCAID called first with the condition: AID-REFUSED), a key deactivated while ANYKEY has a label. Register X16; design-doc finding. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
3 tasks
| super().__init__() | ||
| self.g.para_index = {"GOT-PF7": 3, "GOT-ANY": 4, "GOT-ERR": 5} | ||
| self.g.jump = lambda target: f"GOTO({target});" | ||
| self.handle_aid = handle_aid |
Contributor
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.
Closes #4414
Closes #4502
What
The det translator refused
EXEC CICS HANDLE AID(71 PL/I + 5 COBOL programs) andIGNORE CONDITION, and PUSH / POP HANDLE along with them. It also acceptedHANDLE CONDITION ERROR(label)but never took that label. All of these now run on the CICS port. The stub side models them the same way. Where IBM is silent, both sides refuse by name.Port state:
handlers(now-1= IGNORE) andaids(HANDLE AID labels,-1= deactivated). There is also apushedstack ofDetCics.Handlers, kept beside CicsTask's own HANDLE ABEND stack. The aids map and the stack are declared only in programs that use them.condition()checks, in order:aid()runs after RECEIVE MAP and after terminal RECEIVE (INTO / SET), after the data is moved and LENGTH is set. It usesDetCics.aidLabel: the key's own label, else ANYKEY's for a PA key, a PF key or CLEAR (not ENTER). It does nothing when the command has RESP or NOHANDLE.PUSH / POP HANDLE: they stack the conditions and the AIDs; HANDLE ABEND goes through
task.pushHandle/popHandle. POP HANDLE with nothing pushed raises INVREQ, which goes throughoutcome().Refused by name (register X16):
IGNORE CONDITION ERROR;AID-REFUSED, which the runner reports as a DRIVER-ERROR;Before this change the stub silently took the condition first, and gave a deactivated key to ANYKEY.
Stub: the SET form of RECEIVE now consults HANDLE AID too.
Docs: register X16 in
oracle_assumptions.md, and a finding indet_port_design.md.Proof
These were run against new cics-crucible cases in squid-protocol/cics-crucible#4 (draft, stacked on #3). Their expected logs are hand-written, with IBM pages cited in each NOTES.md.
Det ports of existing pinned cases now translate with no holes: pc-aid-menu (PCMENU's HANDLE AID), hc-perform-range (IGNORE, ERROR) and hc-abend-link (PUSH / POP).
aid-keysandinvalid-optionpass on the det port.length-traptakes the ERROR label (e22). It still differs, but only in one TS-queue data byte: the det port's data charset on crucible TS / COMMAREA bytes is a separate harness gap, not a condition-handling one.Gates and ratchets:
cics_crucible --cion the pinned v0.2.0: rc 0, no regression.proof_sweep --det-only --skip-db2) is as expected.pr_gates --ratchetspasses all five ratchets (ports, estate, fact-crosscheck, completeness, ground-truth).pr_gatespasses all 7 gates. After merging main (det: read continued apostrophe literals, "" inside literals, PROGRAM-ID without its period (#4523, #4462) #4526),--fastpasses 5/5 and the ratchets pass again.Not in this PR
CICS_CRUCIBLE_ALLOW_UNPINNED=1 --crucible <branch>.🤖 Generated with Claude Code
https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR