Repository navigation
Read a compile job's SYSLIB concatenation into the COPY library order (Part of #8412) - #8656
Merged
Merged
Conversation
… (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This was referenced Nov 19, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8412
What
With no
--copy-libraries, a COBOL program's unqualifiedCOPYnow resolves in the order its own compile JCL lists in//SYSLIB DD(the DD and its unnamed continuation DDs). A library is read as the directory named after the dataset's last qualifier, exactly asCOPY ... IN libalready reads one (DirectoryIndex.named). Before this, two same-named members in different directories fell to the default resolver's proximity guess.copy_libraries.jcl_syslib_orders(root): PROGRAM -> ordered library names over every.jcl/.prc/.proc(capped at 5000 files,.git/node_modulespruned). Reusesjob_flow._statementsandjcl_proc._dd_keys.EXEC PGM=IGYCRCTLandEXEC IGYW*procs (qualifiedCOB.SYSLIB/COB.SYSIN). The program is the literal SYSIN memberDSN=...(MEMBER).network_risk_sensor._resolve_implicit_library: the JCL order is tried first (the most specific declaration), then the workspace declarations. Nothing found in the JCL order falls through (no refusal: a JCL is evidence of order, not of a complete library set).&HLQ) or member-qualified SYSLIB dataset, a non-literal SYSIN member, and a program that two JCL files compile with different orders.Class / Sibling gaps
Class: sources of a COPY library order a workspace ships (zapp.yaml #8565, DBB application-conf #8573, now compile JCL SYSLIB). Members of this PR: EXEC PGM=IGYCRCTL, EXEC IGYW* procs with qualified step DDs, continuation DDs, a library named twice, a following DD ending the concatenation, unreadable entries, conflicting jobs; each has a test in
tests/cobol_mainframe/test_copy_jcl_syslib_8412.py, plus two real-scan order tests (both orders).Sibling gaps:
JCLLIB ORDER=: it orders PROCLIBs, not COPY libraries; it matters only when the compile step lives in a cataloged proc found along it and the proc's SYSLIB is read throughjcl_proc.resolve_job. Different mechanism (needs proc expansion); not built here. Burned estate that needs it: none identified; the Batch Badlands H-0071 plant is a proc-order plant, not a copy-library one.&SYMBOLdatasets resolved throughSET/ proc symbolics: refused by name (declares nothing). CBSA / CardDemo compile JCL not checked for this shape.--copy-libraries.DD *.step.DD,DSN=in an INCLUDE) are not followed.Remaining slices
copy_libraries.py, test.Gates
pytest tests/cobol_mainframe/test_copy_jcl_syslib_8412.py test_copy_zapp_yaml_8412.py test_copy_libraries_4265.py test_copy_gaps_4420_4421.py tests/test_source_reads.py: 50 passed.tests/tools/audit_check.py: ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage all OK;ruff formatclean (pinned 0.16.10).pr_gates.py --ratchets: 6 pass; 3 fail (ground-truth, completeness, fact-crosscheck) becauseexample-health-apisis not fetched at its pinned ref on this box (mainframe_corpus.py fetch), the same unfetched-corpora failure earlier churn runs recorded; not caused by this change. Not run:crucible_check.pygolden bless (the change fires only where a compile JCL names a SYSLIB; no golden diff expected, unverified).🤖 Generated with Claude Code