Skip to content

PDS members under *.COBOL/ *.COPYLIB/ *.PLI/ route their language (Part of #7064) - #7141

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7064-20261030T1250Z
Oct 30, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7064-20261030T1250Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7064.

Checklist: partial [c:f6a05563] -- NASM/troff .mac still land in easytrieve and DSP in plaintext (different mechanism)
Checklist: partial [c:374fb3c9] -- Hyperion, MS-DOS and NASM trees not held; no real COBOL/PL/I PDS members held
Checklist: partial [c:4655d8ac] -- results are in hlasm.md; the consolidated defect issue is for the orchestrator to file

What

Extensionless PDS members under *.COBOL/, *.COPYLIB/, *.CPY/, *.PLI/, *.PL1/ directories now route to cobol / pli, extending the library_directory_suffixes mechanism #7081 added for hlasm (asm, maclib).

Class / Sibling gaps

Class: an extensionless PDS exported member under a dataset-qualifier directory is unrouted (split across go, plaintext, undeterminable). Members handled here: cobol (cobol, copylib, cpy), pli (pli, pl1); hlasm already done (#7081, pinned again in the new test's uniqueness check). The plan was wrong on one point: hlasm.md said each sibling was one entry plus a pin; COBOL and PL/I have no internal_discriminator and the lexical scan labels their members go, so the lens also gains a per-language content shape (_PDS_MEMBER_EVIDENCE, built from short parts for the X-Ray gate).
Sibling gaps (same mechanism, not done, 5-file limit): JCL jcl/cntl/proclib (its discriminator already proves content: one key in jcl.py plus a pin). Other mechanisms: NASM/troff .mac in easytrieve, DSP in plaintext; fragile_debt/planned_debt false positives (moves golden). No burned-estate program needs any of these.

Cross-repo

None.

Evidence

  • New test_pds_library_routing.py (44 cases: each suffix, upper/lower case, nested dirs; outside a library directory, README/C text, PL/I in a COBOL directory are not claimed; no suffix listed by two languages) + test_hlasm_strict.py: pass.
  • pr_gates --fast 9/9, --ratchets all PASS (ruff local 0.16.0 vs CI 0.17.1 warned; formatted with the pinned 0.17.1).
  • crucible_check.py via golden-lock: full_precision and zero_dependency PASS, no re-bless (only extensionless files change).
  • No real COBOL/PL/I PDS members are held (the two PDS-layout repos hold only *.ASM/ / *.MACLIB/): synthetic members only.

Lessons for agents

  • A language without an internal_discriminator cannot ride the PDS lexical fallback: the all-language scan labels COBOL/PL/I text go. Probe LanguageDetector.focus on a sample before assuming a one-line registry entry routes.
  • A dense regex literal in language_lens.py trips X-Ray (binary_anomaly_detector <repo> names the file); build it from joined parts.

🤖 Generated with Claude Code

…rt of #7064)

Extensionless PDS members under a dataset-qualifier directory now route to
cobol / pli with content evidence (_PDS_MEMBER_EVIDENCE), the same mechanism as
hlasm's asm/maclib. Golden masters unchanged.

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 Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 30, 2026 13:10
@github-actions

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) October 30, 2026 13:23
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 0a4acce into main Oct 30, 2026
122 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7064-20261030T1250Z branch October 30, 2026 14:23
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