Repository navigation
Copybook-resolution census: engine COPY resolver vs plain file search, wired into preflight (Part of #8111) - #8123
Merged
Conversation
…, wired into preflight (Part of #8111) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This was referenced Nov 8, 2026
Closed
Merged
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 #8111 (first slice: the tool, its corpus rule and the preflight wiring; the resolver fixes are listed under Remaining slices).
What changed
tests/tools/copy_resolution_census.py: for every COPY / EXEC SQL INCLUDE member of every COBOL file in a repo, resolves it two ways: the engine (GalaxyIR.copy_resolutionplus the BMS symbolic maps it keeps apart, from a--db-onlyscan) and a plain search of the repo by member name (any case, any extension or none, anywhere). Counts only, in classes:miss(engine draws no edge for the one member the repo holds),ambiguous(the repo holds it in several files and the engine refuses; not a disagreement),different(engine's edge is not copybook-shaped, a copybook of the name exists),neither.excluded_names()= blind candidates + census repos + non-burnedtrials.jsonestates, by basename;run_rootsskips them andcheck_allowedrefuses one. Burned estates stay in.tests/tools/cics_preflight.py: sixth check,copy resolution: repos N, members N, agree N, miss N, ...; miss + different above 0 is a finding.estate-trialskill: the new check and the corpus rule.Census (counts only)
First run on burned showed 16 misses: all BMS symbolic maps, which
copy_resolutionleaves out by design; the tool now counts the engine's symbolic copies.neitheris mostly IBM product copybooks and members a repo never published. On an authored fixture the engine resolves lower-case,.CPY, nested-dir,.copy, and EXEC SQL INCLUDE members.Class / Sibling gaps
Class: a COPY / INCLUDE member the engine resolver resolves differently from a plain any-case, any-extension, anywhere file search by member name. Handled here: the measurement for every member of the class (miss / ambiguous / different / neither) over burned + non-candidate corpus. Not fixed here (engine changes move the goldens and the ground-truth ledger, and need more than the 5-file limit): the 33 corpus misses, in three shapes seen on authored fixtures: (1) an extensionless member in an ordinary directory (
cpybooks/NAME): admitted only under a dataset-qualifier directory (language_lens._pds_library_lang, #7064), about 25 of the 33; (2) a member under a dot-directory (.copybooks/...), dropped by the aperture; (3) a member named with a library path directory (DATA.SET.PATH1/X.cpy) importing another. No burned-estate program needs any of them (burned misses are 0): scope sweep, not core..incas the member extension of an EXEC SQL INCLUDE is also unresolved (ambiguous extension, needs content admission).Remaining slices
gitgalaxy/standards/language_lens.py+ test: admit extensionless members in any directory when the body is COBOL member-shaped and some scanned file COPYs the name (shape 1; golden re-bless).gitgalaxy/core/aperture.py+ test: dot-directory copybook libraries (shape 2)..inc; then drop the census to 0 on corpus_cobol.Gates
pytest tests/tools/test_copy_resolution_census.py tests/tools/test_cics_preflight.py: 22 passed (~5 s; time ratchet 0 over). One test runs the real engine on an authored fixture.pr_gates.py --fast: 9/9 pass. No engine code changed: no golden bless, no ratchets.Cross-repo: none.
🤖 Generated with Claude Code