Skip to content

det/CICS: GET / DEFINE / DELETE / QUERY DCOUNTER with INCREMENT and WRAP (doubleword counters) -- zECS key allocator #4770

Closed

Description

@squid-protocol

Part of #4270 (burned estate zECS). EXEC CICS GET DCOUNTER(ZECS-COUNTER) VALUE(ZECS-VALUE) INCREMENT(ZECS-INCREMENT) WRAP NOHANDLE (ZECS001 line ~1246, the zECS key allocator) is refused since #4762 (X30: DCOUNTER, INCREMENT and WRAP refused by name; GET COUNTER's other options stay refused, X9).
Slice plan (extend X30 consistently): doubleword (unsigned 64-bit) named counters in both runtimes (CicsTask counters is a signed long today; DEFINE/DELETE/QUERY/GET DCOUNTER share one namespace with COUNTER per IBM, so the fullword commands must raise LENGERR for a value past 32 bits instead of the current refusal path), GET INCREMENT, WRAP (IBM: a counter at its maximum wraps to the minimum; without WRAP, INVREQ RESP2 303?/see page), and the unsigned VALUE/INCREMENT representation in COBOL (PIC 9(18) COMP). Needs the minimum/maximum defaults that IBM words as low-values / high values: state them in X30 (unsigned: 0 / 2^64-1) and refuse MINIMUM/MAXIMUM/COMPAREMIN/COMPAREMAX until a program uses them. Hand-traced case needed (cics-crucible: hc-named-counters is the sibling).
Programs made whole alone: 0 (ZECS001 is held by WEB, DOCUMENT, pointers, GETMAIN/FREEMAIN and the assembler CALL ZUIDSTCK as well).

Remaining slices (as of 2026-10-18)

Looks complete: DEFINE / QUERY / DELETE DCOUNTER and GET DCOUNTER WRAP at the limits (#5038), fullword GET / QUERY COUNTER past 31 bits -> LENGERR (#5213), crucible pin v0.9.0 (#5277); crucible cases hc-dcounters, hc-counter-increment-wrap, hc-counter-shared-namespace ticked.

  • (verify) Confirm on main once: GET INCREMENT, unsigned PIC 9(18) COMP VALUE, and the by-name refusal of MINIMUM/MAXIMUM/COMPAREMIN/COMPAREMAX (test_det_programs, register X30); then close. (0-1 PR)
    Done when: ZECS001's GET DCOUNTER translates and runs equal to the oracle, MINIMUM/MAXIMUM stay refused by name, and the crucible cases pass.
    Owner decision needed: none.

Drafted 2026-10-18 by a Sonnet triage pass from this issue, its comments and the bodies of its "Part of" PRs; (verify) items were not checked against main. Tick boxes as slices merge; edit freely.

Activity

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

    @squid-protocol
    OwnerAuthor

    Siblings: #5039 (the named-counter members PR #5038 leaves refused by name).

  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.

    hc-named-counters already covers fullword DEFINE / GET / QUERY / DELETE COUNTER, INVREQ 201/202/403/404 and the default limits. Only the gaps are listed here.

    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. added
    tier:era-core
    on Oct 15, 2026
  5. added
    scope:core
    era:4
    on Oct 16, 2026
  6. added
    needs:corpus
    needs:crucible
    needs:docker
    on Oct 18, 2026
  7. squid-protocol commented on Oct 20, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-10-20T10:31Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

  8. squid-protocol commented on Oct 20, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance met: GET DCOUNTER INCREMENT/WRAP (#5038), fullword LENGERR (#5213), crucible pin (#5277), verification of ZECS001 statement, unsigned VALUE and by-name MINIMUM/MAXIMUM refusal (#5730). Closing.

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:4legacy-modernizationneeds:corpusneeds:crucibleneeds:dockerpriority: mediumscope:coretier:era-core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions