Skip to content

COBOL copy resolver: same-stem sibling and .copybooks dot-dir classes (Part of #8111) - #8134

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8111-20261108T2019Z
Nov 8, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8111-20261108T2019Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8111

Checklist: done [c:469b20a7]

What

The copybook-resolution census (tool from #8123) found 22 engine misses on the non-candidate corpus_cobol repos (burned estates: 0). Two resolver classes fixed:

  1. A same-stem non-source file (output.txt) elsewhere in the repo hid a case-different member (copy/OUTPUT): stage 1 took the exact-case key, so the case-folded retry never ran. The fold now retries the importer-language map when no exact candidate is in the importer's language (or a language members are generated from).
  2. A .copybooks/<profile>/<dataset>/ dot-directory library was dropped by the aperture hidden-path gate. Only the directory is exempt; dot-named files inside stay blocked.

Evidence

  • Census, corpus_cobol non-candidates: misses 22 -> 13, different 0, burned 0 disagreements.
  • Goldens: crucible_check.py both legs PASS with no re-bless.
  • New tests/cobol_mainframe/test_copy_resolution_classes_8111.py (13 tests, invented names, real engine and census_repo): mixed case, copy/COPY, six sibling kinds, own-language sibling still wins, .copybooks depth 1-3 with dotted dataset dirs, dot-named file still blocked.
  • audit_check, pr_gates --fast and --ratchets pass.

Sibling gaps (not fixed)

  • Weak-body extensionless members (comment-only or one statement): need a reference-evidence claim in a cross-file pass.
  • .inc / other MEMBER_EXTS not registered as COBOL; COPY x OF lib; other dot-dir conventions (no miss observed).

Changed from the plan

The che4z testing/, v1/, copybooks/ extensionless misses were assumed to be the stem-collision class; they are not (no same-stem siblings), so they are the weak-body gap. 13 misses remain. The planned extra test in test_copy_resolution_census.py was dropped: the new file already runs census_repo.

Lessons for agents

  • _check_ignore_rules also gates directories (evaluate_dir_integrity): a path-part exemption must treat the last part as a directory there.
  • Don't export GITGALAXY_DISABLE_GIT_HISTORY=1 for non-golden pytest runs: it fails 3 chronometer tests.

🤖 Generated with Claude Code

…-different member; .copybooks dot-dir library scanned (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 20:56
@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

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