Skip to content

CICS: INQUIRE ASSOCIATION origin data, DELETEQ TS, QUERY COUNTER, RECEIVE MAP TERMINAL (Part of #4270, Part of #4415) - #4760

Merged
squid-protocol merged 2 commits into
mainfrom
feat/4270-inquire-map-terminal-deleteq
Oct 9, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
feat/4270-inquire-map-terminal-deleteq

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #4270. Part of #4415 (slice 2).

What

Chosen by programs made whole (cics_census.py blockers, baseline origin/main f6cda2c, 108/179 whole). Register X29 in oracle_assumptions.md, IBM's pages cited there.

  • INQUIRE ASSOCIATION(EIBTASKN) ODAPPLID / ODUSERID / ODFACILNAME / ODNETWORKID / ODFACILTYPE (CBSA BNK1CRA, its last gap). The task's own origin data: eight-character values and the facility type as IBM's CVDA (TERMINAL 213). IBM's pages do not say what a terminal-started task's origin holds, so the five values are a fact the run states (CicsTask.withOrigin, the stub's $GGCICS_ORIGIN, the crucible case's new optional origin), never guessed; unstated, refused on both runtimes. Refused by name: an ASSOCIATION operand other than EIBTASKN (IBM gives no representation for the 4 bytes), a command with no origin option (INVREQ RESP2 2 "specified with no arguments" is ambiguous about ASSOCIATION alone), every other option. TASKIDERR / NOTAUTH do not arise (the task exists; no security).
  • RECEIVE MAP ... TERMINAL: IBM "specifies that input data is to be read from the terminal that originated the transaction", the one terminal the region has and every RECEIVE MAP already reads.
  • DELETEQ TS (slice 2 of det translator: smaller CICS gaps: DFHVALUE, BIF DEEDIT, FORMATTIME variants, DELETEQ TS, DUMP, QUERY #4415): the whole queue and its READQ NEXT position (CicsTask.deleteqTs, GGCDELQ); QIDERR (44); INVREQ (16) for a name of binary zeros; IBM lists no RESP2 (0). SYSID refused.
  • QUERY COUNTER (COUNTER / POOL / VALUE): the value left unchanged, INVREQ RESP2 201 "Named counter not found" (CicsTask.queryCounter, GGCQCNT); a value beyond a fullword, MINIMUM / MAXIMUM / NOSUSPEND refused. Unit-proven on both runtimes only (the crucible region has no named counters). Note: the existing GET COUNTER answers NOTFND for a missing counter where IBM's page lists INVREQ RESP2 201; not changed here.
  • Tooling: det_survey.py called ispf_screens where it was not imported, so a non-burned estate that failed to generate ended the whole survey (cics_census survey --baseline on f6cda2c exited 1); imported at its use.

Proof

New cics-crucible case condition-handling/hc-inquire-deleteq (companion below; 3 scenarios traced by hand from IBM's pages, check-hand-derived OK, validate.py 23/23): cobol-stub 3/3, java-ported (det port HCINQD 55/55 statements, 0 holes) 3/3, run with --unpinned; a mutated log fails both sides. det_port.py check vs origin/main: 79/79 ports unchanged (no translation moved). proof_sweep.py --det-only --skip-db2: "sweep: as expected" (mortgage-mpmt NOT PROVEN, a baseline entry). pr_gates --ratchets 7/7, --fast 5/5. Unit tests: translator, CicsTask and the stub C (compiled), the harness, the spec entries, the runner's origin_env.

Census (before -> after, translation only, burned + census corpora, base f6cda2c + the survey fix)

  • Programs translated whole: 108 -> 111 of 179 (non-burned 12 -> 12). Made whole: BNK1CRA (CBSA, INQUIRE ASSOCIATION), BNK1DCS (CBSA, RECEIVE MAP TERMINAL), lgwebst5 (GenApp, DELETEQ TS + QUERY COUNTER; 240/278 -> 278/278).
  • Moved but not whole: BNK1CCS 571/573 -> 572/573 (left: no generated screen for map BNKNCCM), lgsetup 13/91 -> 17/91 (left: DEFINE COUNTER, DELETE COUNTER, named counters not modelled).
  • Next blockers: BNK1CCS's generated screen; named counters (DEFINE / DELETE COUNTER, lgsetup); CALL DSNTIAC; InqacccuDfhcommarea: data after a POINTER; CBLTDLI / ENTRY DLITCBL.

Cross-repo

Companion: squid-protocol/cics-crucible#15 (the case, with a SPEC section 2 addition: optional origin; additive). Merge it first; this PR's CI cics-crucible job does not see the case until a release + pin bump (not done here: no tag, the pin untouched).

🤖 Generated with Claude Code

https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D

squid-protocol and others added 2 commits October 9, 2026 01:52
…R, RECEIVE MAP TERMINAL (Part of #4270, Part of #4415)

INQUIRE ASSOCIATION(EIBTASKN) answers the five origin values the run states
(CicsTask.withOrigin, $GGCICS_ORIGIN, the crucible case's origin), the facility
type as IBM's CVDA; DELETEQ TS removes the whole queue and its NEXT position
(QIDERR, INVREQ for a name of binary zeros); QUERY COUNTER reads a named
counter unchanged (INVREQ RESP2 201); RECEIVE MAP's TERMINAL is the task's
terminal. What IBM leaves open is refused by name (register X29).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
def test_a_cases_stated_origin_is_the_stubs_origin_env():
"""#4415 slice 2 (register X29): the case's `origin` -- applid, userid, facilname, networkid, faciltype, as the case
states them -- is $GGCICS_ORIGIN in that order; a case that states none gives none (INQUIRE ASSOCIATION is refused)."""
import cics_crucible as runner
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, sensor, or structural signature legacy-modernization COBOL refractor, dead-code extraction, and JCL forging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants