Repository navigation
COBOL: extensionless members of a declared copy library are claimed; census reads COPY x OF lib (Part of #8111) - #8143
Merged
Conversation
…census reads COPY x OF lib (Part of #8111) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…(Part of #8111) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
|
||
|
|
||
| @pytest.mark.parametrize("body", [ITEM, CHAIN], ids=["item", "chain"]) | ||
| @pytest.mark.parametrize("spelling", SPELLINGS, ids=lambda s: str(s)) |
Contributor
|
CI shepherd: the head of this PR (58ef001) is not the one a maintainer labelled |
auto-merge was automatically disabled
November 8, 2026 23:48
Pull request was converted to draft
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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 (slice 5, after #8135). No checklist key was named in the brief.
What changed
gitgalaxy/standards/language_lens.py: an extensionless member whose directory is DECLARED a copy library (.cobolplugin/proc_grps.jsonpgroups[].libs,.vscode/settings.jsoncobol-lsp.cpy-manager.paths-local, and thebroadcom-spelling) is claimed as COBOL without needing a COBOL-extension sibling. Paths are relative to the folder holding the declaration, any case,./, trailing slash,\, or{"path": ...}. The body evidence rule (one strong line, or comments plusCOPYonly) is unchanged. JSONC comments are tolerated; a malformed or foreign declaration claims nothing and never raises. Lookup is bounded (12 ancestors) and memoised per folder.tests/tools/copy_resolution_census.py: the census regex readsCOPY x OF|IN lib; a qualified COPY is judged against files under a directory namedlibonly.tests/cobol_mainframe/test_copy_declared_library_8111.py(authored invented-name fixtures: both declaration files x 6 spellings x item/chain bodies, negatives, malformed declarations, one real scan; 38 of its 60 cases fail without the lens change); qualified-COPY cases added totests/tools/test_copy_resolution_census.py.Class / Sibling gaps
Class: a COPY member the census or the language lens misjudges because the library qualifier or the project's declared copy library is ignored. Handled here: the lens for both declaration files and every path spelling, and the census for
OFandINin any case. Sibling gaps: (1) the resolver (network_risk_sensor._resolve_edges) ignoresCOPY x OF libwhen no--copy-librariesis given, so one member name held by two libraries gets no edge (a different mechanism, hot file; no burned estate is known to need it); (2) proc_grps / settings declarations are not read as an implicit--copy-librariesdeclaration (same file); (3)cics_census.py preflightwiring (open checklist item, PR #8081 touches that file).Gates
Golden check (both legs,
golden-lock.sh crucible_check.py) PASS with zero diff, no bless.pr_gates --fast: 9/9 pass (docs_read_by_tests.txtregenerated withchange_classifier.py --write, a derived file).audit_check.pyall clear (dead-key audit hit the two declaration keys; read through constants). Related tests 147 passed. Ratchets not run (no ground-truth or port input changed).Remaining slices
Sibling gaps 1 and 2 (
gitgalaxy/core/network_risk_sensor.py+ a test, resolver reads qualifier by directory name when undeclared), then the census-to-preflight wiring.🤖 Generated with Claude Code