Repository navigation
det: XCTL COMMAREA LENGTH past the DTO passes those bytes; failed XCTL sets RESP2 (#4501) - #4678
Merged
Merged
Conversation
…ailed XCTL sets RESP2 (#4501) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
…ainframe/test_det_translate.py) _OverCics no longer replaces the gp _KeyCics.__init__ set; it gives that stub the 80-byte dto instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
…a-length # Conflicts: # tests/cobol_mainframe/test_det_translate.py
squid-protocol
marked this pull request as ready for review
October 8, 2026 16:02
squid-protocol
added a commit
that referenced
this pull request
Oct 8, 2026
…rged) Conflicts resolved as a 3-way merge against #4678's own commit (c719d88, identical to its squash on main for these files): det/cics.py, DetCics.java, program.py and oracle_assumptions.md merge cleanly that way. Tests: keep this PR's RETURN-past-the-DTO assertion and #4679 tests next to main's new tests (integer literal vs alphanumeric; SQL ids). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
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.
Fixes #4501. Part of #4270.
Decision
The det port refused ca-xctl-versions
length-rangeas "commarea bytes past what its DTO holds": CAXA'sXCTL COMMAREA(WS-BIG) LENGTH(WS-BIGLEN)(32767) passed an 80-byte DTO, so the harness could not compare the COMMAREA. IBM (EXEC CICS XCTL): LENGTH is the COMMAREA's length and the target's EIBCALEN is that length, whatever the target's DFHCOMMAREA defines. The port now passes those LENGTH bytes opaque (the area's storage from its first byte, LOW-VALUES past its record, in the region's EBCDIC); a receiving det program copies the first bytes into its DFHCOMMAREA and EIBCALEN is the LENGTH. Bytes it does not define are not passed on by a further RETURN/XCTL. A second bug sat beside it: a failed XCTL stored RESP2 0 (the real LENGERR is RESP2 11), so CAXA reportedRESP2=00.Only XCTL changes. A
RETURN TRANSIDwith LENGTH past its DTO keeps the DTO (CardDemo's 2000 over 172 bytes; the first sweep showed the equivalence harness cannot read a byte[] COMMAREA, which #4660 is touching).Touched
det/cics.py:commarea_out(newxctlflag), theXCTLbranch ofcommand(RESP2 from the condition)det/program.py: DFHCOMMAREA receiver (ca instanceof byte[])det/cobolrt/cics/DetCics.java: newcommareaOut,commareaIn,xctlResp2docs/language_status/oracle_assumptions.md(X10 note),tests/cobol_mainframe/test_det_translate.py(new test)Evidence
cics_case_ports.py+cics_crucible.py --cases ca-xctl-versions --sides cobol-stub java-ported: 8 pass (java-ported 4/4, was 3 pass + 1 unsupported); 0 holes.det_port.py checkvs origin/main: 54 of 68 ports change (the receiver block and the runtime copy; no behaviour change). All 54 re-proved: 53 PROVED;carddemo-cardupdateDIFFERS, identical on origin/main (CARD-UPDATE-CVV-CD zoned blanks), not this change.baseline.jsonentry to clear (its java-ported side had none). No committed evidence record's port/case/pin changed;evidence_report.py --checkandtest_evidence.py+test_evidence_report.pypass (71).pr_gates.py --fast5/5;--ratchets7 pass, 0 fail, 0 skipped (JDK 17 env).🤖 Generated with Claude Code