Skip to content

Resolve symbolic SYSLIB datasets from PROC defaults, SET and call symbols (Part of #8412) - #8753

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-symbolic-syslib
Nov 20, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-symbolic-syslib

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8412

Checklist: partial [c:copy-library-order-from-jcl] -- the JCLLIB ORDER= proc call (#8752) and now symbolic SYSLIB datasets are read; left: //SYSLIB datasets with member-qualified names, in-stream PROCs called in the same job, and INCLUDE groups holding SYSLIB DDs (see Remaining slices).

What changed

gitgalaxy/core/copy_libraries.py: a compile step's SYSLIB dataset such as &HLQ..COPYB was refused whole (order unknown). It is now expanded from the symbols that IBM JCL defines it with:

  • PROC statement defaults in the proc member;
  • SET statements before the step in the job;
  • keyword symbols on the proc call (EXEC FAKECOB,HLQ=FAKE.TEST), which override the proc defaults.

A name two equal-rank sources give different values (a job SET naming a proc default the call does not set) is dropped as unresolved, never picked. A name nothing assigns stays unresolved and declares nothing (as before). Member-qualified datasets still declare nothing.

Tests: 7 new cases in tests/cobol_mainframe/test_copy_jcl_syslib_8412.py (default, call override, SET fill, SET clash, call settles clash, unassigned, direct step reading a job SET). 28 pass.

Gates

  • ruff format (pinned 0.16.10): unchanged. tests/ruff_audit.py --ci: no new findings. tests/mypy_audit.py --ci: findings are in other files only (local env differs from CI's), none in copy_libraries.py. dead-key, doc-refs, ast-accuracy, signal-coverage audits OK.
  • Golden masters and the full suite not run: copy_libraries.jcl_syslib_orders only applies when a repo ships compile JCL, and no crucible golden contains one (CI crucible-audit is the check).

Class / Sibling gaps

Class: JCL compile-job information that decides the COPY library order (//SYSLIB DD concatenation as written, via a JCLLIB ORDER= proc, via symbols). Members: literal SYSLIB (done earlier), JCLLIB proc call (done, #8752), symbolic datasets from PROC default / SET / call symbol (done here, tested for each source and the clash). Sibling gaps: (1) in-stream PROC ... PEND called in the same job, status missing: needs call-site parsing of a proc inside the job text, a different mechanism; (2) INCLUDE group members containing SYSLIB DDs or SETs, missing: needs the INCLUDE splice (jcl_proc._splice_includes) wired in; (3) member-qualified SYSLIB (DSN=LIB(MEM)), refused by name, correct as IBM reads that as one member; (4) zapp.yaml and DBB application-conf paths (separate #8412 lines).

Remaining slices

  • In-stream PROC call and INCLUDE-spliced statements into _compile_steps (files: copy_libraries.py, the test file; reuse jcl_proc._splice_includes).

Lessons for agents

  • tests/mypy_audit.py / tests/ruff_audit.py live in tests/, not tests/tools/; the local mypy env reports unrelated findings, so grep its output for your own files.

🤖 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 20, 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 20, 2026 09:29
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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