Repository navigation
CICS: READQ TD / DELETEQ TD on an intrapartition queue (Part of #5079) - #5167
Merged
Merged
Conversation
…5079) An intrapartition transient-data queue is a first-in first-out list the task's own WRITEQ TDs fill: READQ TD is a destructive read (QZERO empty, QIDERR undefined, LENGERR for a record longer than LENGTH or LENGTH 0/negative, LENGTH set to the record's length), DELETEQ TD empties it (INVREQ for an extrapartition queue). Extrapartition READQ, SET, SYSID and NOSUSPEND are refused by name. Register X57; the WRITEQ TD event shape is unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
3 of 8 tasks
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 15, 2026 00:48
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 15, 2026 00:48
Contributor
This was referenced Oct 15, 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 #5079 (the TD queue slice: READQ TD / DELETEQ TD). Register X57.
Design
An intrapartition transient-data queue is a first-in first-out list in the run: WRITEQ TD to a defined intrapartition queue appends its record (its event is unchanged: queue, text, resp), READQ TD removes the first, DELETEQ TD empties the queue. The queue's TYPE comes from the case's CSD (
tdqueues.cfggains a TYPE column,CicsTask.withTdQueueTypes); with no CSD every queue is defined and intrapartition. IBM pages fetched this session: READQ TD (summary-readq-td) and DELETEQ TD (summary-deleteq-td); the oracle is GnuCOBOL plus our stub, not z/OS.Class: TD queue commands
refused)Evidence (levels, not "proven")
tests/cobol_mainframe/test_td_queue_e2e_5079.py(EQUIVALENCE_E2E=1: GnuCOBOL + stub vs the det port under CicsTask, 1 scenario, 9 hand-traced SEND TEXT lines, 6 READQ-TD events, 3 WRITEQ-TD events, 0 diffs).tests/cics_crucible/test_td_queue_5079.py: one 33-operation list on the stub and on CicsTask (QZERO / FIFO / destructive / LENGTH shorter, 0, negative / delete / QIDERR / INVREQ / empty record / cross-process persistence / events), plus both runtimes' refusals.det_port.py run): 93 PROVED; 5 not proved (cbsa-bnk1ccs, -bnk1tfn, -bnk1uac, cbsa-crecust DIFFERS; zecs-zecs003 JAVA FAILED), the same 5 with the same results on a clean origin/main.Gates
pr_gates --fast: 6/6 pass.pr_gates --ratchets: 6 pass;port-surfacefailed once in the full run (/tmp/gitgalaxy-port-surfacemessages about generator surfaces for carddemo services this PR does not touch) and passed on rerun alone (--only-ratchets port-surface --vs-main). No golden master moves expected (no scan-time code touched);crucible_checknot run. Tests also run: tests/cics_crucible, test_equivalence_cics, test_det_translate, test_cics_resources, test_messaging, test_cics_spec, test_cobolrt_rules (1194 passed, 5 skipped).Test changes
test_equivalence_cics.pylines ~381 / 422: the refusal examples now useREADQ TD ... SET(P)(READQ TD INTO is modelled).test_cics_spec.py: 94 modelled / 159 refused. NewRT-CICS-READQ-TD-INTOincobolrt_rules.json.Sibling gaps (not in this PR)
cobol_to_java_messaging_forge.pyhas its own TD runtime (READQ TD, line ~613) with separate semantics to compare against X57.Cross-repo
None: no companion PR, no crucible pin bump.
Lessons for agents
det_port.py checklists ~98 CICS ports as CHANGED for anyCicsTask/DetCicsmethod addition (runtime lines only); re-prove them withheavy-run.sh det_port.py run --jobs 4 <ports>(~35 min) and compare any failure to a clean origin/main worktree before blaming the change (5 ports fail there already).pr_gates --ratchetsport-surfacecan fail in a full run and pass alone: rerun it with--only-ratchets port-surfacebefore chasing it.🤖 Generated with Claude Code