Skip to content

TD queue siblings of #5079: READQ TD SET/NOSUSPEND, extrapartition input, LOGICAL recovery, INDIRECT, seeds, ATI refusal (X61) - #5189

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5168-20261015T1159Z
Oct 15, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5168-20261015T1159Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

What

Siblings of #5079 (X57): the transient-data queue commands the stub and the det port refused or silently ignored, modelled in both runtimes (ggcics.c stub, CicsTask / det translator) or refused by name. New register entry X61 (IBM CICS TS 6.x READQ TD and TDQUEUE definition pages cited); X57 points at it.

Boxes closed (from #5168):

  • READQ TD SET (new block valid to the next READQ TD; GGCRDTS, DetCics.setBlock)
  • Extrapartition input queues, open/closed state (OPENTIME DEFERRED: NOTOPEN, TYPEFILE OUTPUT: INVREQ, INPUT: FIFO reads, QZERO at the end); IOERR / RDBACK / no TYPEFILE refused by name
  • READQ TD NOSUSPEND (accepted, no effect; QBUSY needs a second task) — ASSUMED
  • TRIGGERLEVEL / ATI: a WRITEQ TD that brings a queue with a TRANSID to its TRIGGERLEVEL is REFUSED by name (it used to be ignored silently); TRIGGERLEVEL(0) is ATI off
  • Logical recoverability and SYNCPOINT ROLLBACK (RECOVSTATUS LOGICAL: reads, writes, deletes backed out; PHYSICAL + rollback refused by name; NO / unstated committed at once, as X57)
  • INDIRECT queues (READQ / WRITEQ / DELETEQ route to INDIRECTNAME, chains allowed); REMOTE / SYSID stay refused; no INDIRECTNAME / undefined target / loop refused
  • Seeding a queue's records before a conversation (case / scenario "td": {"QUEUE": [records]})

Not closed: the messaging forge's separate TD runtime (see Sibling gaps).

How

  • ggcics.c: new functions only (td_attr, td_resolve, td_extra_state, td_ati_check, td_touch, td_uow_end, GGCRDTS) plus a call in uow_end and edits inside GGCWRTD / GGCRDTD / GGCDLTD.
  • CicsTask: withTdQueueAttributes, tdResolve, tdTouch / tdUowEnd (hooked into syncpoint / rollback), TempStorage.seedTd.
  • Harness: tdqueues.cfg gains KEY=VALUE words only when the CSD states them (csd_tdqueue_attrs); "td" seed added to scenarios.json only when non-empty.
  • Spec (queues.py): READQ TD SET / NOSUSPEND modelled, NOTOPEN / INVREQ outcomes.

Evidence (levels, not "proven")

  • Both runtimes answer 17 hand-traced scenarios alike: tests/cics_crucible/test_td_queue_5168.py (34 tests: stub and CicsTask over one op list each).
  • End to end against GnuCOBOL + the det port: tests/cobol_mainframe/test_td_queue_e2e_5168.py (EQUIVALENCE_E2E=1, proven; SET + NOSUSPEND, INDIRECT, open/closed/output extrapartition, LOGICAL rollback, seeded queues). The 5079 e2e still proves.
  • det_port.py check: the translator output moved only in the shared CicsTask.java (98 ports show CHANGED for that file alone, 14 unchanged); the 20 ports whose service code calls writeqTd / readqTd / deleteqTd were re-proved with det_port.py run: all 20 PROVED (carddemo-report, genapp-lgacdb01/02, lgacus01, lgapol01, lgdpdb01, lgdpol01, lgicus01, lgipdb01, lgipol01, lgtestc1, lgtestp1-4, lgucdb01, lgucus01, lgupol01, zecs-zecs000, zecs-zecsplt). The other 78 were not re-proved (no TD call in their code).
  • Gates: pr_gates --fast 6/6, --ratchets 8/8 (none skipped), ruff/mypy audits clean.
  • Translator shapes and refusals: test_equivalence_cics.py, test_det_translate.py.
  • Reached by no corpus program yet; burned estates only, no case written for a non-burned repo. The oracle is GnuCOBOL plus the stub, not z/OS.
  • Assumptions (X61): NOSUSPEND no effect; RECOVSTATUS unstated = NO; own uncommitted writes are readable; OPENTIME unstated = INITIAL; abend does not roll back; TRIGGERLEVEL counts seeded records.

Sibling gaps (no issues filed)

  • The messaging forge's TD runtime (cobol_to_java_messaging_forge.py ~L613) is still its own interface, not the X57 / X61 model.
  • WRITEQ TD to an extrapartition input queue (IBM's INVREQ), WRITEQ TD to a closed extrapartition queue (NOTOPEN) and IOERR are not modelled.
  • A task abend does not back out a LOGICAL queue; the stub's rollback after a SYNCPOINT restores to that SYNCPOINT while CicsTask refuses it (as for files).
  • QBUSY / a second task writing a queue (needs concurrent tasks); REMOTE / SYSID queues; SET TDQUEUE OPEN/CLOSE and INQUIRE TDQUEUE.
  • Non-ASCII seeded records (the stub gets the data encoding's bytes, CicsTask the text).

Cross-repo

None. Overlaps open #5185 (ADDRESS EIB: det/cics.py, ggcics.c, equivalence_cics.py, test_det_translate.py) and #5186: edits are in separate functions; whichever merges second rebases.

Lessons for agents

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 15, 2026 08:11
…ICAL recovery, INDIRECT, seeds, ATI refusal (WIP, Part of #5168)

Co-Authored-By: Claude Opus 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 15, 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 15, 2026 12:48
@squid-protocol
squid-protocol enabled auto-merge (squash) October 15, 2026 12:54
@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

PR #5189 @ 00846c4: 1 failed check(s)

== full-suite part 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38737468444/job/116431426998
repro: python -m pytest -q tests
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
FAIL tests/cobol_mainframe/test_det_receive_map_justify_5082.py::test_the_runtime_places_the_text_for_the_whole_operand_class: 10.4s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
FAIL tests/cobol_mainframe/test_det_translate.py::test_det_cics_moves_ts_bytes_between_pages_strictly: 10.4s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
FAIL tests/cobol_mainframe/test_det_translate.py::test_det_runtime_passes_opaque_commarea_bytes_on: 10.2s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
FAIL tests/cobol_mainframe/test_equivalence_cics.py::test_the_stub_file_table_comes_from_the_engines_facts: 10.9s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
##[error]Process completed with exit code 1.
log tail:
SKIPPED [3] tests/cobol_mainframe/test_pointer_commarea_4270.py:192: needs Docker and a JDK 17 (JAVA_HOME / JDK_17)
SKIPPED [2] tests/cobol_mainframe/test_link_commarea_bytes_4806.py:115: needs Docker (GnuCOBOL) and a JDK + Maven
3993 passed, 577 skipped, 1 warning in 977.78s (0:16:17)
##[group]Run python tests/tools/time_ratchet.py check --times "$RUNNER_TEMP/times-part-1.json"
python tests/tools/time_ratchet.py check --times "$RUNNER_TEMP/times-part-1.json"
shell: /usr/bin/bash -e {0}
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
EVIDENCE_REPORT_ADVISORY: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
FAIL tests/cobol_mainframe/test_det_receive_map_justify_5082.py::test_the_runtime_places_the_text_for_the_whole_operand_class: 10.4s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
FAIL tests/cobol_mainframe/test_det_translate.py::test_det_cics_moves_ts_bytes_between_pages_strictly: 10.4s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
FAIL tests/cobol_mainframe/test_det_translate.py::test_det_runtime_passes_opaque_commarea_bytes_on: 10.2s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
FAIL tests/cobol_mainframe/test_equivalence_cics.py::test_the_stub_file_table_comes_from_the_engines_facts: 10.9s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
4570 tests checked, 4 over the per-test limit
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/474f0be4-9465-4aa6-849a-430754f58147' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 15, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (b4a93fd) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 15, 2026
@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 15, 2026 17:06
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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