Skip to content

det/CICS: old-style commands refused whole -- ADDRESS COMMAREA/CWA/TWA, READQ TD, UNLOCK, READ SET #5079

Closed

Description

@squid-protocol

Old-style CICS commands that are refused outright (the whole program is refused). They have 0 uses in our 18 corpora, which are mostly IBM/AWS demos of modern APIs, but they are common in older customer estates (judgment, not measured -- confirm with the readiness scanner, #4724/#4727):

Do: model each per IBM in the oracle stub and det port (ADDRESS as pointer facts over the pointer lane from #5041; READQ TD with the TD queue model; UNLOCK with the file-control lock model), register entries with IBM sources, hand-traced crucible cases since no corpus program uses them. Class sweep the rest of the old-style refused set (SEND PAGE / PURGE MESSAGE, terminal CONVERSE, POST/WAIT EVENT) into this issue's checklist.

Acceptance: each member modelled or refused by name with a register entry; crucible cases prove the modelled ones.

Measured on origin/main 36671d5 (2026-10-13) over the 8 local corpora + 10 census clones (12 with CICS): cics_census.py survey --baseline --census-corpora <census> then proof_blockers.py <survey dir> --census-corpora <census> --json. 103 of 125 CICS programs translate whole; only 14 are proven (all CardDemo BMS).

Owner-approved re-ranking of the CICS queue by estate/program reach (2026-10-13).

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    legacy-modernization
    on Oct 14, 2026
  2. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Leaving open: PR #5095 modelled UNLOCK (tokenless READ UPDATE hold). Still refused by name: ADDRESS COMMAREA/CWA/TWA/TCTUA/EIB, READ/RECEIVE/RETRIEVE SET (pointer lane #5042), READQ TD/DELETEQ TD, SEND PAGE/PURGE MESSAGE, terminal CONVERSE, POST/WAIT EVENT.

  3. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Crucible-first backfill steps (cics-crucible, Sonnet ~20-30 min each)

    Owner 2026-10-14: these cases are written as churn backfill while gitgalaxy CI is busy. cics-crucible has no gating CI, so a PR there costs almost nothing on the shared runner pool. Each step is one case with expected logs hand-derived from cited IBM docs (cics-crucible AGENTS.md), gated by tools/validate.py, as one PR there. The tag and gitgalaxy pin bump are a separate step that needs owner OK.

    • C1 ca-address-commarea (cics-crucible#20 merged) [sonnet]: commarea-mismatch. ADDRESS COMMAREA(ptr) EIB(ptr), then SET ADDRESS OF. Scenarios: LINK with a COMMAREA (the pointer sees the caller's bytes); EIBCALEN 0 gives a null pointer; ADDRESS EIB vs DFHEIBLK fields. ADDRESS is not an event (SPEC 6.2), so show it with a TS-queue breadcrumb as hc-named-counters does. Cite: CICS TS 6.x "ADDRESS". Depends: none.
    • C2 ca-address-twa-tctua (cics-crucible#32 merged; TWASIZE(0) and TCTUA persistence in README lower-confidence table; CWA left out) [sonnet]: ADDRESS TWA / TCTUA. Scenarios: TWA sized by TRANSACTION TWASIZE; TWASIZE(0) gives a null pointer; TCTUA (TYPETERM USERAREALEN) carried across two tasks. CWA needs a SIT WRKAREA fact: either add it to SPEC §2 or leave CWA out. Cite: "ADDRESS", DEFINE TRANSACTION TWASIZE, TYPETERM USERAREALEN (find the exact cite). Depends: C1.
    • C3 SPEC: intrapartition TD queues (cics-crucible#21 merged; IBM wording to re-verify in C4, README lower-confidence row) [sonnet]: additive SPEC change plus validate.py support in the same PR (rule 5): CSD DEFINE TDQUEUE, initial/final td_queues, and READQ-TD / WRITEQ-TD / DELETEQ-TD events (or breadcrumbs only). Cite: "WRITEQ TD", "READQ TD", "DELETEQ TD", "TDQUEUE resources". Depends: none.
    • C4 hc-readq-td (cics-crucible#33 merged; FIFO order, DELETEQ-keeps-definition, LENGERR and empty-INTO in README lower-confidence table) [sonnet]: WRITEQ then READQ TD in FIFO order, with the read destroying the record; QZERO on an empty queue; QIDERR on an undefined queue; DELETEQ TD then READQ; LENGERR. No trigger levels or ATI (list them under Avoided). Depends: C3.
    • C5 hc-file-unlock (cics-crucible#22 merged; REWRITE-after-UNLOCK RESP2 30 in README lower-confidence table) [sonnet]: the first file-control case (data/ seed + DEFINE FILE). Covers READ UPDATE / UNLOCK / REWRITE. Scenarios: READ UPDATE, UNLOCK, then REWRITE gives INVREQ (find the RESP2); READ UPDATE then REWRITE gives NORMAL; UNLOCK with nothing held (check the IBM page). Cite: "UNLOCK", "READ", "REWRITE". Depends: none. It also unblocks Siblings of #4771: CICS pointer lane (SET(ptr) commands, pointer arithmetic, ADDRESS OF subordinate) #5042 C4.
    • READ / RECEIVE / RETRIEVE SET: covered by Siblings of #4771: CICS pointer lane (SET(ptr) commands, pointer arithmetic, ADDRESS OF subordinate) #5042's steps.
    • Design first (owner call before any case): SEND PAGE / PURGE MESSAGE (BMS paging), terminal CONVERSE, POST / WAIT EVENT. These may need no case if they stay refused by name.

    Release (shared): batch the merged case PRs, run gitgalaxy's cics_crucible runner against crucible main and review the baseline ledger. With owner OK, tag the next version after v0.5.0, bump PINNED_REF in tests/_cics_crucible_pin.py, and re-baseline: one ci-lane item when CI is calm.

  4. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Owner decision (2026-10-14): SEND PAGE / PURGE MESSAGE (BMS paging), terminal CONVERSE and POST / WAIT EVENT get no crucible cases for now; they stay refused by name. Revisit if a customer estate uses them.

  5. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Sibling note from #5119 / PR #5159: once ADDRESS CWA/TWA/TCTUA/EIB/CSA is modelled, the OS/VS COBOL BLL-cell form (ADDRESS ... into a cell) comes along via det/bll.py's lowering to SET(pointer); add a cell case to the tests then.

    🤖 Generated with Claude Code

  6. squid-protocol commented on Oct 15, 2026

    @squid-protocol
    OwnerAuthor

    Siblings: #5168 (TD queue gaps left after PR #5167).

  7. squid-protocol commented on Oct 15, 2026

    @squid-protocol
    OwnerAuthor

    PR #5167 merged: READQ TD / DELETEQ TD on intrapartition queues are modelled (register X57, crucible + e2e tests). Still open for acceptance: EXEC CICS ADDRESS (COMMAREA/CWA/TWA/TCTUA/EIB), UNLOCK, READ/RECEIVE/RETRIEVE SET (pointer lane #5042), and the old-style sweep (SEND PAGE / PURGE MESSAGE, CONVERSE, POST/WAIT EVENT). Leaving this issue open.

  8. squid-protocol commented on Oct 15, 2026

    @squid-protocol
    OwnerAuthor

    Class sweep from PR #5185 (old-style CICS commands refused whole). Covered there: ADDRESS EIB/COMMAREA modelled (X59); ADDRESS CWA/TWA/TCTUA/ACEE/SET, SEND PAGE, PURGE MESSAGE, terminal CONVERSE, POST, WAIT EVENT refused by name with X59; WAIT-led commands no longer crash the translator.

    Remaining members (still name-only refusals, no model yet; a different mechanism each):

    • ROUTE, SEND PARTNSET, RECEIVE PARTN (BMS routing / partitions)
    • WAIT EXTERNAL / WAITCICS (event control blocks; same reason as WAIT EVENT)
    • cics_crucible/ports/*/overlay/cobolrt/cics/DetCics.java copies predate addressCommarea (refresh with the next pin bump)
    • cics-crucible cases: ADDRESS EIB/COMMAREA (EIB view read after a command, COMMAREA view written through); ADDRESS COMMAREA with no COMMAREA, refused on both sides (cics-crucible#38 merged as ca-address-eib-commarea; IBM states no refusal, so no-COMMAREA asserts the null value only; EIB layout in README lower-confidence table)
  9. 46 remaining items

  10. squid-protocol commented on Nov 1, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance met by #7470: every checklist member is modelled or refused by name with a register entry, and the ADDRESS TWA/CWA/TCTUA harness-proof gap is closed. Remaining refused members are recorded as sibling gaps in that PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    claim:melekenhancementera:1legacy-modernizationneeds:corpusneeds:dockerpriority: mediumscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions