Skip to content

JCL proc: IF flow over library-member procedures via JCLLIB ORDER (Part of #8413) - #8554

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8413-20261117T0509Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8413-20261117T0509Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Part of #8413 (PROC resolution, remaining slice: IF flow over library-member procedures).

Checklist: partial [c:e2b88820] -- IF flow over a library-member procedure is done; still left: unqualified PARM / COND on a procedure call, SET vs PROC default, null symbolic, nested calls, SYSOUT / DUMMY DD override (each needs IBM manual text I could not read this run).

What changed

  • gitgalaxy/core/jcl_proc.py: expand_flow_rows(rows, job, text=None, libraries=None). A call whose procedure is not in-stream is looked up along the job's JCLLIB ORDER (first library wins, ASSUMED A2) and its steps are spliced as CALL.PROCSTEP like an in-stream procedure's. With no libraries it is refused by name; a member in no library is refused.
  • tests/equivalence/jcl/proc/scenarios.json: job LIFJOB, a two-step PRC4 in LIB.B and a one-step decoy in LIB.A (proves the order), 2 flow answers (ifp-lib-all-zero, ifp-lib-m1-rc8) written from the IF / COND rules before the code ran.
  • tests/cobol_mainframe/test_jcl_proc_case.py: passes the libraries, two refusal / order tests.
  • tests/tools/capability_ledger.py: passes the libraries to the live count (without it the generated docs gate failed).

Class / Sibling gaps

Class: how IF/COND address a procedure's steps in flow, by where the procedure comes from. Members: in-stream (done, #8464), library member via JCLLIB ORDER (done here, 2 scenarios; reuses the in-stream mechanism). INCLUDE inside a procedure and nested calls stay refused.

Sibling gaps (different mechanism, needs manual text):

  • Unqualified PARM= / COND= on a procedure call: refused by name. The manual fetch returned the wrong book (IEBCOPY), so no answer was written from memory. Source: JCL Reference, EXEC PARM / COND.
  • SET of a symbolic the PROC also defaults; symbolic assigned nowhere (null rule): refused.
  • Nested procedure calls, INCLUDE inside a procedure, DD override to SYSOUT / DUMMY: refused.

Remaining slices

  • Unqualified PARM / COND answers + resolver rule: scenarios.json, jcl_proc.py, test_jcl_proc_case.py (3 files); needs the SA23-1385 text first.
  • SET / default precedence and null symbolic: same three files.
  • Nested calls, SYSOUT / DUMMY override: same files.

Evaluator disagreements

None: both new answers reproduced on first run.

Gates

pr_gates --fast: lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet pass; affected (80 files) 2 failed, 2184 passed: test_container_datatype_change_reach_5005::test_no_burned_put_names_a_data_type_but_char and test_estate_size::test_the_record_matches_a_live_count_of_the_corpora, both corpus-count tests with no path through the JCL files. Both fail identically on a pristine origin/main checkout (2 failed, 6 passed; run in a clean detached worktree): the box's example-health-apis clone in .mainframe_corpora is broken (git rev-parse HEAD fails in it, so the test sees no PUTs and a stale count). A box environment fault, not this change; pr_gates --vs-main labelled the gate "caused by branch" only because the gate selects tests by the changed files, so it ran a different set on main. The 105 JCL tests pass. No parsing logic touched, no golden bless; --ratchets not run.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 17, 2026 05:52
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 05:52
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@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 Nov 17, 2026
@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