Skip to content

CICS macro tables: DFHSRT rows are the effective table, repeats dedupe and RECOVER=NO removes (Part of #5154) - #7211

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5154-20261030T2247Z
Oct 31, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5154-20261030T2247Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checklist: done [c:a5f55512]

DFHSRT rows are now the effective recovery table: a code repeated in one table is one row, and a later RECOVER=NO removes a code an earlier RECOVER=YES defined in the same table (IBM: NO "removes" the code from the SRT, CICS TS macros/srt/system.html). Before, ABCODE=(0C1,0C1) gave two S0C1 rows and a later NO left the YES row. _srt_rows became _srt_codes (parse and dedupe only); the add/remove runs in cics_macro_table_resources, so a removal keeps the defining line of the survivors.

Class / Sibling gaps

Class: CICS macro-table rows whose operands add and remove (DFHSRT RECOVER=YES|NO, repeated ABCODE): the rows must equal the effective table, not one row per mention. Only DFHSRT has this shape; DFHJCT/TCT/MCT/SIT define rows and never remove. No burned estate (CardDemo, CBSA, GenApp, zECS, DBB, cicsdev async) contains a DFHSRT, DFHSIT or DFHJCT (grepped), so nothing is proven against a real program.
Sibling gaps:

  • Table suffix is per stream, not positional (suffix.setdefault(op, ...)): two DFHSRT TYPE=INITIAL,SUFFIX= tables in one stream are both named by the first suffix, so a NO in the second table can remove a row of the first. Pre-existing, affects every macro table; no burned program has two assemblies of one table in one stream. Needs a positional suffix pass.
  • CICS-supplied default SRT entries are not modelled: no source tree states them.
  • DFHJCT, DFHTCT, DFHMCT checklist boxes stay as they are.

Evidence

  • test_cics_macro_tables.py: 131 pass (plain pytest from /tmp). New cases: label/lowercase/quoted codes, duplicates in one and two statements, NO after YES, YES after NO, SYSTEM vs USER names, missing TYPE, comment line, continuation, U0012, defining line kept.
  • audit_check.py clear; crucible_check.py both legs PASS (no diff); pr_gates --fast --ratchets 9 pass / 0 fail / 0 skipped; tree-wide guards pass (104).

Cross-repo: none.

🤖 Generated with Claude Code

…de is one row and RECOVER=NO removes (Part of #5154)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 30, 2026 23:17
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 23:37
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

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