Skip to content

JCL oracle tier 1: PROC resolution answers and resolver (Part of #8413) - #8456

Merged
squid-shepherd[bot] merged 13 commits into
mainfrom
churn/8413-s2-proc
Nov 14, 2026
Merged

squid-shepherd[bot] merged 13 commits into
mainfrom
churn/8413-s2-proc

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #8413 (slice 2 of 5: PROC resolution, plus the stepname.procstepname tests inside IF left over from slice 1).

Checklist: partial [c:e2b88820] -- answers and a resolver for symbolics/defaults, SET (job-level), EXEC PARM./COND. overrides, DD override, added DD, INCLUDE, JCLLIB ORDER are in; the refused rows below (unqualified PARM/COND, SET vs PROC default, null symbolic, nested calls, SYSOUT/DUMMY override) and library-member proc steps in IF flow are left.
Checklist: partial [c:c0e6aa54] -- the stepname.procstepname.RC / RUN / ABENDCC tests and a COND test on a procedure step are done; the rest of the line was slice 1.

What changed

  • tests/equivalence/jcl/proc/ (case data): scenarios.json (holds the five jobs as flow_jcl lines and the JCLLIB library members as libraries, so the case adds no .jcl file) with 15 resolve answers and 5 flow answers. Written from IBM's z/OS MVS JCL Reference (SA23-1385) before the resolver existed (first commit holds only the answers; the manual was read by section, no page numbers). ASSUMED A1-A3 named in the file.
  • gitgalaxy/core/jcl_proc.py (new): resolve_job and expand_flow_rows. job_flow does not keep PROC defaults, EXEC symbolic values or JCLLIB, so the resolver reads those statements itself.
  • gitgalaxy/core/jcl_flow.py: a COND test naming CALL.PROCSTEP is no longer refused (the evaluator already keys steps by name); the refusal test is updated in test_jcl_flow.py.
  • tests/cobol_mainframe/test_jcl_proc_case.py: reproduces every expect; refusals tested.
  • .gitignore: whitelist for the new scenarios.json.

Class / Sibling gaps

Class: how a JCL procedure call resolves to the steps and DDs the system runs, and how IF/COND address a procedure's steps.

Member Status
symbolic default / EXEC override / partial override done (3 scenarios)
SET at job level, reassigned done (2)
EXEC PARM.procstep / COND.procstep done
DD override, DD added to a PROC step done
INCLUDE group done (ASSUMED A2: JCLLIB search)
JCLLIB ORDER first-library-wins, both orders, in-stream vs library done (A1 assumed)
IF CALL.PROC.RC / RUN / ABENDCC, COND on CALL.PROC done (5 flow scenarios)

Sibling gaps (not here, one mechanism each):

  • Unqualified PARM= / COND= on a procedure call: refused by name; its rule on the procedure's other steps is not answered. Source: JCL Reference, EXEC PARM / COND.
  • SET of a symbolic the PROC statement also defaults, and a symbolic assigned nowhere: refused; precedence and null rules need their own answers.
  • Nested procedure calls, INCLUDE inside a procedure, a DD override that changes kind (SYSOUT / DUMMY): refused.
  • IF flow over a library-member procedure: expand_flow_rows reads in-stream procedures only.

Remaining slices

Evaluator disagreements

None: every answer was reproduced on first run. Two fixes were needed in code not answers: expand_flow_rows scoped per job, and the COND refusal on CALL.PROCSTEP removed.

Gates

pr_gates --fast: lint and audits pass; the affected gate fails on test_mainframe_corpus.py::test_committed_excerpt_is_byte_identical_to_the_clone[example-health-apis] (git rev-parse HEAD exits 128 in the corpus clone, a box environment fault, not this change). No parsing logic touched, so no golden bless. --ratchets not run.

Lessons for agents

  • job_flow.jcl_job_flow drops PROC statement defaults, EXEC symbolic values and JCLLIB rows: a resolver must re-read statements with job_flow._statements / _split.

🤖 Generated with Claude Code

squid-protocol and others added 4 commits November 13, 2026 22:27
…e the resolver (Part of #8413)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… INCLUDE); COND/IF accept CALL.PROCSTEP (Part of #8413)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol changed the title Part of #8413 (slice 2 of 5: PROC resolution, plus the stepname.procstepname tests inside IF left over from slice 1). JCL oracle tier 1: PROC resolution answers and resolver (Part of #8413) Nov 14, 2026
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8456 @ 12da555: 1 failed check(s)

== ruff-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43552746711/job/132318663367
repro: python tests/tools/pr_gates.py --only lint
errors:
##[error]Process completed with exit code 1.
log tail:
Successfully installed gitgalaxy-0.1.dev1+gc7479db58
[notice] A new release of pip is available: 26.2.2 -> 26.3
[notice] To update, run: pip install --upgrade pip
##[group]Run python tests/ruff_audit.py --ci
python tests/ruff_audit.py --ci
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
Ruff Audit: FYI -- these baselined findings are no longer flagged (fixed, or the flagged line was edited).
Consider removing them from ruff_audit_baseline.json in this PR (--write-baseline):
gitgalaxy/tools/cobol_to_java/cobol_to_java_repository_forge.py: ISC004 @01c621e910eb#0 -- Unparenthesized implicit string concatenation in collection
gitgalaxy/tools/cobol_to_java/cobol_to_java_repository_forge.py: ISC004 @3ef514618e1b#0 -- Unparenthesized implicit string concatenation in collection
gitgalaxy/tools/cobol_to_java/cobol_to_java_repository_forge.py: ISC004 @d9fb18c37b48#0 -- Unparenthesized implicit string concatenation in collection
Ruff Audit: 2 NEW lint finding(s) beyond the 72-finding baseline:
gitgalaxy/core/jcl_proc.py:170: RUF059 -- Unpacked variable line is never used [gitgalaxy/core/jcl_proc.py: RUF059 @ec6abcb8aa00#0]
gitgalaxy/core/jcl_proc.py:243: B023 -- Function definition does not bind loop variable r [gitgalaxy/core/jcl_proc.py: B023 @0b34c22568cb#0]
Baseline keys are content-based (see the module docstring's BASELINE KEYS section), so a pure line shift can't cause these: each is a new finding, a new duplicate of a baselined line, or an edit to a baselined line. Fix it, or -- only if it
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/53f6fb14-2fc9-49a4-90a9-b1f560138442' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (3e0ece3) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 14, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 14, 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 14, 2026 05:06
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 14, 2026 05:09
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8456 @ 3e0ece3: 1 failed check(s)

== Small audits (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43559782242/job/132340658626
repro: no local equivalent; read the check page
errors:
##[error]Process completed with exit code 1.
doc-refs: FAIL, 1 new finding(s). Fix the doc (or the code), or narrow the check in this script:
log tail:
{
echo "## ⚠️ This PR modifies a golden-crucible fixture"
echo ""
echo "Files changed ($(echo "$CHANGED" | wc -l) golden-master part(s)):"
echo '' echo "$CHANGED" | head -n 100 echo ''
echo ""
echo "These files should only ever change via `tests/tools/update_golden_master.py`,"
echo "and the PR description should explain why GitGalaxy's output was expected to"
echo "change. Reviewers: confirm the description covers this before approving."
echo "For the semantic diff: `python tests/tools/bless_scope.py --from-head tests/golden_master_audit`."
} >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
BASE_REF: main
##[endgroup]
No golden master fixture changes in this PR.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/b8b9a0bf-54ab-4792-b721-d37f75e8912b' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 14, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 14, 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 14, 2026 06:34
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@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 14, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 14, 2026 06:34
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (5ed3713) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 14, 2026 07:03
auto-merge was automatically disabled November 14, 2026 07:03

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 14, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 14, 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