Skip to content

JCL oracle: PROC nested calls, INCLUDE inside a proc, DD-kind override (Part of #8413) - #8563

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8413-20261117T1104Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8413-20261117T1104Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8413. Covers the three PROC gaps left open after #8456, #8554 and #8556 (checked merged on origin/main): nested procedure calls, INCLUDE inside a procedure, and a DD override that changes a DD's kind.

What changed

  • tests/equivalence/jcl/proc/scenarios.json: 9 new resolve scenarios, with the answers written from IBM's z/OS MVS JCL Reference (SA23-1385-60) before the resolver ran on them (nested calls pp. 32-34 and symbols pp. 47-49; INCLUDE ch. 19; DD overrides p. 29). New assumption A4 (nested steps are keyed CALLSTEP.PROCSTEP, levels flattened) and the new refused entries.
  • gitgalaxy/core/jcl_proc.py: nested calls to 15 levels with the manual's symbol layering; INCLUDE groups resolved recursively inside a procedure; DUMMY / DSN=NULLFILE nullify a DSN and a DSN overrides a DUMMY.
  • tests/cobol_mainframe/test_jcl_proc_case.py: library pin, coverage ids, refused-by-name list, and four refusal tests.
  • Refused by name rather than guessed: a SYSOUT / * / DATA override of a DD that names a DSN (the manual leaves it unspecified), a backward reference procstep.procstep.ddname, a modifier naming an absent step or a calling step, EXEC PARM / COND on a call of a procedure that calls procedures, nesting past 15 levels, a non-DD statement in an INCLUDE group, nested calls in IF flow.

Class / Sibling gaps

Class: JCL procedure modification and nesting constructs, where an override or nested call changes which statements reach the resolved step list. Siblings, no issues filed: IF flow over nested procedures (refused), EXEC PARM / COND through nested procedures (refused), PARM. / COND. on a calling step (refused), INCLUDE groups holding EXEC statements (refused), duplicate symbols, the manual's nested-symbol Example 2 (WORK=&WORK quote handling), DSN=NULLFILE in other consumers of the DD list.

Checklist: partial [c:e2b88820] -- IF flow over nested procedures, EXEC PARM/COND through nesting and SYSOUT over a DSN DD are refused by name, not answered
Checklist: partial [c:0c2f89bb] -- not touched by this slice
Checklist: partial [c:fe4cf3d7] -- not touched by this slice

Remaining slices

The sibling list above; each is refused by name today.

Verification

  • test_jcl_proc_case.py: 40 passed (the 19 existing scenarios unchanged, 9 new). The JCL and capability-ledger tests pass.
  • pr_gates --fast: 7 of 9 gates pass after formatting with the pinned ruff 0.17.4 (lint now passes). affected fails on two tests, test_estate_size::test_the_record_matches_a_live_count_of_the_corpora and test_container_datatype_change_reach_5005; both fail identically on unchanged origin/main (checked in a clean worktree), and neither imports jcl_proc.
  • pr_gates --ratchets: 5 pass, 4 fail (ports, fact-crosscheck, completeness, ground-truth). Not compared against a main control. ports reports a local cics-crucible checkout off its v0.19.0 pin; these are COBOL ratchets and this change touches none of the files they read. Treat them as unverified.
  • No golden bless: the detector and language standards are untouched.

Lessons for agents

  • A bare DD operand (DUMMY, *, DATA) comes back from job_flow._split as (None, value): a dict built only from keyed operands never sees it.
  • pr_gates --fast prints only the tail through a pipe and buffers it: send it to a scratch file and read that.

🤖 Generated with Claude Code

…e answered from the manual (Part of #8413)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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 11:44
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 17, 2026
@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