Skip to content

COBOL: extensionless COPY members in ordinary directories are claimed on body evidence (Part of #8111) - #8129

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8111-s2-ordinary-dir-members
Nov 8, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8111-s2-ordinary-dir-members

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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_lang needs 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}) is cobol when 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 bare 01 Intro. list entry, one stray 05 X PIC, a C include body, a shell script and a binary stay unclaimed. Anchor: "COPY Member Anchor (extensionless body evidence)". Also CONFIGURATION / INPUT-OUTPUT / SCREEN / REPORT SECTION open a member (NIST suite members start there).
  • Census after, measured with the tool from Copybook-resolution census: engine COPY resolver vs plain file search, wired into preflight (Part of #8111) #8123 (slice 1, independent of this PR; 40 repos incl. burned, before: 33 misses over 37 repos): members 1989, agree 1345, miss 22, ambiguous 2, different 0. Burned stays 0 miss.
  • The 22 left: dot-directory libraries .copybooks/ (aperture, slice 3, 9), NIST copybooks/ members (8 occurrences; the member classifies cobol in isolation, importers sit under compileListing/, 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 only COPY NAME. (1), one that is a deliberate PI 9 typo test (1), copy/OUTPUT (2, importers convert-bad*.cbl), a v1/ procedure-only fragment (3). Not extensionless-body gaps.
  • Plan change: the plan covered PL/I too; the PL/I _PLI_INCLUDE_BODY is a weaker shape (one DCL line) 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

  1. gitgalaxy/core/aperture.py + test: dot-directory copybook libraries (shape 2).
  2. Resolver for shape 3 (library-path directory) and .inc SQL INCLUDE; then drop the census to 0 on corpus_cobol.

Sibling gaps

  • PL/I %INCLUDE / DCL members in ordinary directories: not measured by the census; weak body shape; needs its own evidence threshold.
  • HLASM macro / COPY members and JCL procs in ordinary directories: no body-evidence entry in _PDS_MEMBER_EVIDENCE.
  • Procedure-division fragments (paragraphs only, or only 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 .inc classes left

Gates

  • pytest new 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.
  • Existing tests changed because the rule they pinned moved: test_pds_library_routing.py (COBOL no longer in the "outside a library dir is unclaimed" list), test_copy_extensionless_members_8074.py (include/FAKEH now holds a C body).

Cross-repo: none.

Lessons for agents

  • A tests/ path mentioning testing/ adds a token to tests/tools/docs_read_by_tests.txt: run change_classifier.py --write or pr_gates --fast fails test_the_committed_list_is_fresh in the affected gate.

🤖 Generated with Claude Code

… on body evidence (Part of #8111)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 8, 2026 18:43
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 18:51
…and mixed-case COPY (Part of #8111)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (c9c65aa) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 8, 2026 19:00
auto-merge was automatically disabled November 8, 2026 19:00

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 8, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 8, 2026 19:03
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 19:04
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd
squid-shepherd Bot merged commit 49821fe into main Nov 8, 2026
123 of 159 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8111-s2-ordinary-dir-members branch November 8, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant