Skip to content

det/CICS: a model-port program LINKed with its DTO that XCTLs with it is refused by name (X39, Closes #4956) - #5016

Merged
squid-protocol merged 1 commit into
mainfrom
fix/4956-model-link-xctl-dto
Oct 13, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/4956-model-link-xctl-dto

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4956. Sibling of #4816 / PR #4955 (register X39).

Gap. A model-port program is LINKed with its caller's DTO object only (no bytes), so #4955's callerArea / xctlOfLinkage guard (det path, bytes) never fired: CicsTask.xctl answered the X39 question silently as "copy".

Fix. CicsTask.link marks the callee linkedDto; xctl refuses by name (same message as the det case) a successful XCTL whose COMMAREA is that DTO or an object it holds by reference (nested group, table/element, list element, map value, byte area; cycle-safe identity walk). IBM: XCTL COMMAREA says only "the contents of the data-area are passed" -- copy vs caller storage is not documented, so it is refused, never assumed.

Not refused: a copy (new object), a failed XCTL (LENGERR/PGMIDERR), level 1, the target of an XCTL passing its own DTO again (copy of a copy), a LINK with no DTO.

Class table

member status
det LINKed program XCTLs its DFHCOMMAREA (whole / field) refused, #4955
model-port XCTLs its whole DTO / nested group / table / element / list element / map value / byte area refused, this PR
model-port XCTLs a String / number field of its DTO not detectable (value, same as a copy): sibling gap
SET ADDRESS OF / pointer alias, then XCTL #4957

Tests. New tests/cobol_mainframe/test_model_link_xctl_4956.py (JDK-compiled CicsTask, whole input class). test_cics_task_link_runs_the_callee_on_the_callers_commarea XCTLed its own LINK DTO; it now XCTLs a copy.

Register. X39 entry extended; oracle_assumptions.md regenerated with register.py render (not hand-edited).

Gates. pr_gates --fast 5/5; --ratchets 7/7 (0 skipped). Golden fixtures untouched.

🤖 Generated with Claude Code

… is refused by name (X39, Closes #4956)

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 13, 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 13, 2026 03:05
@squid-protocol
squid-protocol enabled auto-merge (squash) October 13, 2026 03:05
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 0c37daa into main Oct 13, 2026
64 checks passed
@squid-protocol
squid-protocol deleted the fix/4956-model-link-xctl-dto branch October 13, 2026 03:27
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.

det/model ports: a LINKed model-port program XCTLing with the DTO it was LINKed with is not refused (X39 sibling)

1 participant