Repository navigation
COBOL: extensionless COPY members in ordinary directories are claimed on body evidence (Part of #8111) - #8129
Merged
Conversation
… on body evidence (Part of #8111) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
…and mixed-case COPY (Part of #8111) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
CI shepherd: the head of this PR (c9c65aa) is not the one a maintainer labelled |
auto-merge was automatically disabled
November 8, 2026 19:00
Pull request was converted to draft
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Closed
4 tasks done
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 2 of 4; slice 1 is draft #8123, the census tool and preflight wiring; the two touch disjoint files).
Class / Sibling gaps
Class: an extensionless COPY member in a directory with no dataset-qualifier name, labelled another language by the lens (
_pds_library_langneeds a qualifier directory, #7064), so the engine draws no COPY edge. Covered: every COBOL body shape (group, level items, sequence-area, section-opened, lowercase, no final newline), every member-name shape (#@$_-, case, digits) in every ordinary directory depth, and the negatives (prose list, stray item, C include, script, binary, dotted name, over-long name). Sibling gaps are listed below.What changed (extensionless COPY members in ordinary directories)
gitgalaxy/standards/language_lens.py: new_ordinary_dir_member_lang. An extensionless file with a member-shaped name ([A-Za-z0-9#@$_-]{1,30}) iscobolwhen its body has two strong COBOL lines (a division / section header, or a level item that carries a clause:_COBOL_STRONG_BODY), or one strong line plus a group header (01 NAME.). A bare01 Intro.list entry, one stray05 X PIC, a C include body, a shell script and a binary stay unclaimed. Anchor: "COPY Member Anchor (extensionless body evidence)". AlsoCONFIGURATION / INPUT-OUTPUT / SCREEN / REPORT SECTIONopen a member (NIST suite members start there)..copybooks/(aperture, slice 3, 9), NISTcopybooks/members (8 occurrences; the member classifiescobolin isolation, importers sit undercompileListing/,negative/,positive/; cause not diagnosed, possibly Inventory: compile listings, expanded copies and duplicate PROGRAM-IDs are not programs #8112's listing rule), a member that is onlyCOPY NAME.(1), one that is a deliberatePI 9typo test (1),copy/OUTPUT(2, importersconvert-bad*.cbl), av1/procedure-only fragment (3). Not extensionless-body gaps._PLI_INCLUDE_BODYis a weaker shape (oneDCLline) and the census does not measure PL/I, so PL/I stays library-directory only. Evidence is the body alone (no "some scanned file COPYs the name" condition: the lens has no cross-file view).Remaining slices
gitgalaxy/core/aperture.py+ test: dot-directory copybook libraries (shape 2)..incSQL INCLUDE; then drop the census to 0 on corpus_cobol.Sibling gaps
%INCLUDE/DCLmembers in ordinary directories: not measured by the census; weak body shape; needs its own evidence threshold._PDS_MEMBER_EVIDENCE.COPY X.) as extensionless members: indistinguishable by body from prose; need cross-file COPY evidence.Checklist: partial [c:43ee243d] -- shape 1 fixed (measured with the tool of #8123); dot-dirs, library-path and
.incclasses leftGates
pytestnew test + 8074 +test_pds_library_routing+test_language_lens: 226 passed; time ratchet 0 over.crucible_check.py(golden-lock, both legs): PASS with zero drift, no re-bless (no corpus file is an extensionless COBOL-shaped member in an ordinary dir).pr_gates.py --fast: derived regenerated (docs_read_by_tests.txt);--ratchets: 9 pass, 0 fail;audit_check.py: all clear. Local ruff 0.16 vs CI 0.17.3 warning (formatted with the pinned binary). tri-comparison / tree-sitter audits not run locally: they key on extensions and no extension-bearing path changed.test_pds_library_routing.py(COBOL no longer in the "outside a library dir is unclaimed" list),test_copy_extensionless_members_8074.py(include/FAKEHnow holds a C body).Cross-repo: none.
Lessons for agents
tests/path mentioningtesting/adds a token totests/tools/docs_read_by_tests.txt: runchange_classifier.py --writeorpr_gates --fastfailstest_the_committed_list_is_freshin theaffectedgate.🤖 Generated with Claude Code