Skip to content

READQ TD NOSUSPEND and QBUSY: a planned QBUSY on a LOGICAL queue, both runtimes (Part of #5168) - #6228

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5168-20261023T1132Z
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5168-20261023T1132Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5168 (X61): READQ TD NOSUSPEND and QBUSY.

What changed

  • Translator (det/cics.py): READQ TD ... NOSUSPEND now passes true to CicsTask.readqTd(queue, max, noSuspend). It was dropped before.
  • CicsTask (cobol_to_java_transaction_forge.py): a LOGICAL intrapartition queue holding no record consults the harness plan READQ-TD and answers the planned QBUSY (RESP 25, no RESP2: IBM lists none).
  • Stub (ggcics_transientdata.c): same rule. NOSUSPEND arrives as the token TDNOSUSPEND in GG-FLAGS (not NOSUSPEND, which FETCH also leaves there); GGCRDTD reads it and clears the field.
  • Harness (equivalence_cics.py): QBUSY is a planned READQ-TD fault (TD_READ_FAULTS, CICS_RESP); the MOVE 'TDNOSUSPEND' TO GG-FLAGS is emitted only when NOSUSPEND is written.
  • Tests: 7 scenarios in test_td_queue_5168.py (op N:queue:n = READQ TD NOSUSPEND), run on the stub and on CicsTask. The Java scenarios are now one method each: a single main passed the JVM's 64 KB limit. One pin in test_det_translate.py updated to the , true form (the change itself breaks it).

Evidence level (owner policy: ladder, not "proven")

  • Executed-equivalent: 7 new scenarios, stub = CicsTask on all; 143 scenarios in the module pass.
  • No burned-estate program issues READQ TD (X61 grep 2026-10-19), so the proof is synthetic. The oracle is GnuCOBOL plus our stub, not z/OS.
  • Modelled (IBM READQ TD page): QBUSY occurs "when READQ targets a logically recoverable intrapartition queue that another task is writing to or deleting from, and no committed records remain".
  • ASSUMED: every record on the queue counts as committed, including one written in the same unit of work (a second task cannot exist in this region); the plan is the only source of "another task".
  • REFUSED by name: QBUSY without NOSUSPEND (IBM suspends the task); QBUSY planned on an extrapartition queue; IOERR planned on a LOGICAL intrapartition queue; HANDLE CONDITION QBUSY without NOSUSPEND is not read.

Gates

pytest over tests/cics_crucible, test_det_translate.py, test_cics_spec.py, test_source_reads.py, equivalence and family-split tests: 1617 passed, 7 skipped. audit_check.py: all clear. pr_gates --fast: 7/7. Golden masters not touched (no extraction change).

Checklist: partial [c:85f5daad] -- the register paragraph in docs/language_status/register/X61.md and the stale "QBUSY is never reached" comment in gitgalaxy/standards/cics/commands/queues.py (~L152) are not yet written (5-hand-written-file limit)

Remaining slices

  • X61 register round paragraph for this plan (ASSUMED / REFUSED list above).
  • Update the stale comment in gitgalaxy/standards/cics/commands/queues.py ~L152.

Sibling gaps

Class: a CICS condition that needs a second task, modelled as a harness plan. Siblings: WRITEQ TD QBUSY (no burned program), DELETEQ TD QBUSY (none), ENQ ENQBUSY (done, X60). Burned-estate programs needing any: none.

Facts checked

  • IBM READQ TD page lists no RESP2 for QBUSY.
  • No burned-estate READQ TD (X61 register, grep 2026-10-19).

Lessons for agents

  • A generated main that inlines many scenarios hits "code too large" (64 KB): wrap each in a method (new Object() { void go() {...} }.go()).
  • GG-FLAGS is shared across stub calls (FETCH also puts NOSUSPEND there): use a distinct token and clear it after reading.

🤖 Generated with Claude Code

…h runtimes (Part of #5168)

The translator passes NOSUSPEND to CicsTask.readqTd and, via GG-FLAGS, to the stub.
A LOGICAL intrapartition queue holding no record answers the QBUSY a scenario plans
(no RESP2: IBM lists none); without NOSUSPEND the task would be suspended: refused.
QBUSY on an extrapartition queue, and IOERR on a LOGICAL one, are refused.

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 23, 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 23, 2026 11:49
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 11:55
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 05c0da3 into main Oct 23, 2026
86 checks passed
@squid-protocol
squid-protocol deleted the churn/5168-20261023T1132Z branch October 23, 2026 12:34
squid-protocol added a commit that referenced this pull request Oct 23, 2026
…omment (Part of #5168) (#6241)

Records the ASSUMED / REFUSED list of #6228 in the register, with the IBM source,
and corrects the NOSUSPEND "changes nothing" statements it superseded.

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.

1 participant