Skip to content

det: XCTL COMMAREA LENGTH past the DTO passes those bytes; failed XCTL sets RESP2 (#4501) - #4678

Merged
squid-protocol merged 3 commits into
mainfrom
fix/4501-xctl-commarea-length
Oct 8, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
fix/4501-xctl-commarea-length

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4501. Part of #4270.

Decision

The det port refused ca-xctl-versions length-range as "commarea bytes past what its DTO holds": CAXA's XCTL 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 reported RESP2=00.

Only XCTL changes. A RETURN TRANSID with 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 (new xctl flag), the XCTL branch of command (RESP2 from the condition)
  • det/program.py: DFHCOMMAREA receiver (ca instanceof byte[])
  • det/cobolrt/cics/DetCics.java: new commareaOut, commareaIn, xctlResp2
  • docs/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 check vs origin/main: 54 of 68 ports change (the receiver block and the runtime copy; no behaviour change). All 54 re-proved: 53 PROVED; carddemo-cardupdate DIFFERS, identical on origin/main (CARD-UPDATE-CVV-CD zoned blanks), not this change.
  • No baseline.json entry to clear (its java-ported side had none). No committed evidence record's port/case/pin changed; evidence_report.py --check and test_evidence.py + test_evidence_report.py pass (71).
  • pr_gates.py --fast 5/5; --ratchets 7 pass, 0 fail, 0 skipped (JDK 17 env).

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 2 commits October 8, 2026 11:03
…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
squid-protocol marked this pull request as ready for review October 8, 2026 16:02
@squid-protocol
squid-protocol merged commit 86b2f89 into main Oct 8, 2026
37 checks passed
@squid-protocol
squid-protocol deleted the fix/4501-xctl-commarea-length branch 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

det: ca-xctl-versions length-range: XCTL COMMAREA bytes past the DTO are refused (#4009); the COMP-5 VALUE half is fixed

2 participants