Repository navigation
COBOL: .inc members and library-directory extensionless members claimed on body evidence (Part of #8111) - #8135
Merged
Merged
Conversation
…laimed on body evidence (Part of #8111) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
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 4:
.incmembers and library-path directories in the copybook-resolution census).Checklist: partial [c:469b20a7] --
copybook-analysis/v1extensionless chain members (COPYBOOK, PARS: no sibling COBOL file in their directory) need a declared-library claim (che4zproc_grps.json/.vscode/settings.json) or a cross-file reference-evidence pass;COPY x OF libin the census regex; NISTcopybooks/is importer-side (#8112).What changed
gitgalaxy/standards/language_lens.py, two body-evidence anchors for a COPY /EXEC SQL INCLUDEmember the lens did not call COBOL:.incmember (extension shared with PHP / NASM / C / PL/I) is COBOL when its body passes the ordinary-directory evidence (two strong lines, or one beside a group header); PL/I.incbeside.pliis decided first and is unchanged..cbl .cob .cpy .cobol .copy .pco .cut .dcl, memoised per directory) on weaker evidence: one strong line, or a body of only comments andCOPY name.statements (at least one).Class / Sibling gaps
Class: a COPY / EXEC SQL INCLUDE member whose file the language lens does not label COBOL, so the resolver draws no edge (the census
missclass). Members handled here:.inc(any case) x COPY and EXEC SQL INCLUDE x upper/lower/mixed member case; extensionless item-only, group-only and COPY-chain-only members in a COBOL-sibling directory, each COBOL sibling extension. Tests cover the negatives (PHP / NASM / C / PL/I.inc, prose and one-stray-item.inc, README beside COBOL files, comments-only body, no COBOL sibling, name with a space).Sibling gaps:
.lib,.cobcpy,.cobcopymembers.libis mostly a binary; an aperture change is a different mechanismcopybook-analysis/v1COPYBOOK, PARS (3 census misses)proc_grps.json,.vscode/settings.json) or a cross-file reference-evidence claimCOPY x OF libin the census member regexcopybooks/(8 misses)WSFST(2, ambiguous)Evidence
testing/REPLERR,testing/COPYCnow resolve), ambiguous 2, different 0, burned 0. Counts only.crucible_check.pyPASS on both legs, zero drift (no re-bless).test_copy_member_extensions_8111.py(new, 38 tests incl. one real scan of an authored estate), plus the 8074 / 8111 / PDS-routing / census tests: 244 passed.Facts checked
tests/tools/docs_read_by_tests.txt(generated list, regenerated here withchange_classifier.py --write)..lib/.cobcpyexclusion verified by scan, not assumed.Cross-repo: none.
Lessons for agents
.lib,.cobcpy) before the lens runs: a lens rule for them is dead code; probe a real scan first.archive FETCH_HEADafter a failedgh/fetch silently extracts main: check the SHA before reading a census as "the PR's".🤖 Generated with Claude Code