Skip to content

COBOL: extensionless members of a declared copy library are claimed; census reads COPY x OF lib (Part of #8111) - #8143

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8111-20261108T2313Z
Nov 9, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8111-20261108T2313Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

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.json pgroups[].libs, .vscode/settings.json cobol-lsp.cpy-manager.paths-local, and the broadcom- 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 plus COPY only) 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 reads COPY x OF|IN lib; a qualified COPY is judged against files under a directory named lib only.
  • Tests: new 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 to tests/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 OF and IN in any case. Sibling gaps: (1) the resolver (network_risk_sensor._resolve_edges) ignores COPY x OF lib when no --copy-libraries is 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-libraries declaration (same file); (3) cics_census.py preflight wiring (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.txt regenerated with change_classifier.py --write, a derived file). audit_check.py all 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

squid-protocol and others added 2 commits November 8, 2026 18:19
@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 23:35
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 23:38
@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



@pytest.mark.parametrize("body", [ITEM, CHAIN], ids=["item", "chain"])
@pytest.mark.parametrize("spelling", SPELLINGS, ids=lambda s: str(s))
@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 (58ef001) 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 23:48
auto-merge was automatically disabled November 8, 2026 23:48

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 23:51
@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 23:52
@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 9, 2026
@squid-shepherd
squid-shepherd Bot merged commit 8f96d76 into main Nov 9, 2026
126 of 162 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8111-20261108T2313Z branch November 9, 2026 00:33
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.

2 participants