Repository navigation
zapp.yaml named COBOL libraries: COPY x IN MYLIB resolves in declared directories (Part of #8412) - #8850
Merged
Conversation
…orms the unqualified order (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This was referenced Nov 21, 2026
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
Checklist: done [c:9ca24188]
What
#8565 read a zapp.yaml's local COBOL libraries into one flat SYSLIB order, but the real sample (zopeneditor-sample, a development estate) also declares named libraries (
MYLIB->COPYLIB-MVS,MYFILE->COPYLIB) used byCOPY REPTTOTL IN MYLIB/COPY DATETIME IN MYFILE. Two defects followed from the flattening:COPY x IN MYLIBlooked for a directory literally namedMYLIB(none), fell to the default resolver, and was refused as ambiguous whenever two directories held the member;COPY xsearched the named libraries too, which Z Open Editor only uses forIN name.Now (
gitgalaxy/standards/language_lens.py,gitgalaxy/core/copy_libraries.py,gitgalaxy/core/network_risk_sensor.py):syslibentries form the unqualified order;named_zapp_dirs_in_folderreads{NAME: [dirs]}(same glob expansion, same declare-nothing shapes: mvs,${}, escapes, other languages, malformed, no PyYAML);_resolve_implicit_librarytries a qualified COPY's literal-directory match first (unchanged), then the nearest zapp.yaml's directories for that name, first declared holding the member wins; no hit leaves the default resolver, so no edge is lost.Evidence
tests/cobol_mainframe/test_copy_zapp_yaml_8412.py: 25 pass (6 new: named-library reader, 4 end-to-endIN MYLIBscans with invented names incl. glob and order, and an undeclared name falling to the default resolver). Relatedtests/cobol_mainframe -k "copy or zapp or dbb or syslib": 782 pass, 8 skipped.SAM1LIB.cblstill resolves all four COPY edges (COPYBOOK/*,COPYLIB/DATETIME,COPYLIB-MVS/REPTTOTL); that estate has one candidate per member, so this is a no-change check there and the order proofs are the authored fixtures.pr_gates --fastunder heavy-run: see the report. Not run:--ratchets/ golden bless (no extraction rule changed; code runs only when a zapp.yaml exists).Class / Sibling gaps
Class: workspace-declared COBOL copy-library resolution a scan reads with no
--copy-libraries: proc_grps.json (handled, #8111), settings.json cpy-manager (handled, #8111), zapp.yaml SYSLIB order (#8565) and named libraries (this PR), DBBapplication-conf(handled, #8573), JCL SYSLIB / JCLLIB (handled, #8412 line separate).Sibling gaps (no issues filed):
language: pl1include libraries: a different language's resolver, not a COBOL COPY.type: mvsdata sets: no directory to map.Remaining slices
None for this line.
🤖 Generated with Claude Code