Skip to content

CICS coverage: data-driven LINK / XCTL / CALL targets + navigation (#3493) - #3507

Merged
squid-protocol merged 1 commit into
mainfrom
feat/xctl-tables-3493
Sep 24, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
feat/xctl-tables-3493

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of epic #3489.

Problem

Pseudo-conversational navigation is usually data-driven. For example, XCTL PROGRAM(CDEMO-MENU-OPT-PGMNAME(WS-OPTION)) indexes a menu table, and XCTL PROGRAM(CDEMO-TO-PROGRAM) reads a COMMAREA routing field that MOVEs set. So the application's navigation graph was missing: CardDemo's 29 data-name targets had no candidates at all.

What it does

  • GalaxyIR.dynamic_call_targets(): every LINK / XCTL / CALL whose program operand is a data name, with the programs it can name. Each candidate records its source (via):
    • value: the item's VALUE, taken from the including program when the site sits in a procedure copybook (including an EXEC SQL INCLUDE);
    • table: each occurrence of an OCCURS table that REDEFINES a VALUE-filled FILLER group. CardDemo's main menu gives 11 programs and its admin menu 6; blank slots are dropped.
    • moves: every literal, or VALUE-holding item, MOVEd into the operand. Sources with no known content, such as CDEMO-FROM-PROGRAM ("back to the caller"), are named in other_sources.
  • GalaxyIR.navigation(): the CICS program-to-program flow, one edge per LINK / XCTL / TRANSID route. Each edge's via is static, transaction, value, table or moves.
  • Completeness counts a data-name site as resolved when one of its candidates is in the repo. CardDemo's program calls go from 35/82 to 63/82, and every dynamic site now has candidates. The score rises from 83% to 88%.

Ground truth

  • An independent key reader (add-dynamic-targets) feeds the scored field "dynamic call targets": CardDemo 89/89, CBSA 124/124, zOpenEditor 3/3.
  • Blind census: a new full dynamic suite, asked of every program with a LINK / XCTL / CALL, so recall is checked too.
    • The round trip gave 0 disagreements.
    • 7 reviewer batches agreed on 216/216 facts with 0 disagreements.
    • Result: cross_verified.

Checks

  • Tests: an IR test for the table, VALUE, MOVE and caller cases and the navigation edges; a key test; the completeness pin updated.
  • Golden masters are unchanged, the ledger is clean, and the ruff and mypy audits are clean.
  • Full suite: 11287 passed.

Closes #3493

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g

…3493)

Pseudo-conversational navigation is usually data-driven -- XCTL
PROGRAM(CDEMO-MENU-OPT-PGMNAME(WS-OPTION)) over a menu table, or a
COMMAREA routing field set by MOVEs -- so the application's navigation
graph was missing: CardDemo had 29 dynamic targets with no candidates.

GalaxyIR.dynamic_call_targets lists every data-name LINK / XCTL / CALL
site with the programs it can name: its VALUE (an includer's for a
procedure copybook), each occurrence of an OCCURS table that REDEFINES a
VALUE-filled group, and every literal or VALUE-holding item MOVEd into
it; sources with no known content (CDEMO-FROM-PROGRAM: "back to the
caller") are named in other_sources. GalaxyIR.navigation is the CICS
program-to-program flow (static, transaction, value, table, moves), and
completeness counts a data-name site resolved when a candidate is here:
CardDemo program calls 35/82 -> 63/82 (all 29 dynamic sites answered).

Answer key: independent reader (add-dynamic-targets), scored field
"dynamic call targets" (CardDemo 89/89, CBSA 124/124, zOpenEditor 3/3).
Blind census (new `dynamic` suite, full): 7 batches, 216/216 facts,
0 disagreements -> cross_verified. Golden masters unchanged.

Closes #3493

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 9843770 into main Sep 24, 2026
31 checks passed
@squid-protocol
squid-protocol deleted the feat/xctl-tables-3493 branch September 24, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CICS coverage: data-driven XCTL / LINK targets (menu tables)

1 participant