Skip to content

COBOL: COPY members named with @ # $ link to their copybook (Part of #8074) - #8110

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8074-20261108T1610Z
Nov 8, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8074-20261108T1610Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8074.

Checklist: done [c:d8b68492]

What

A probe of 22 authored directory and member-name shapes (invented names, one real scan, extensionless program in a .COBOL dataset dir) found one remaining engine miss: a COPY member whose name carries @, # or $ (valid PDS member-name characters). The engine's _dependency_capture in cobol.py stopped at the character (COPY FAKE@I. read as FAKE), so no COPY edge was drawn and the program refused whole with CopyUnresolved. The translator's own COPY parser (cobol_preprocessor._NAME) already reads these names. The capture now accepts @#$ (COPY and EXEC SQL INCLUDE).

Class and siblings

Class: the engine's COPY member-name character class disagrees with the translator's.

  • Fixed here: COPY and EXEC SQL INCLUDE members with @#$, extensionless or .cpy, in COPYLIB / CPYLIB dirs.
  • Probed and by design (the translator searches none of them either; no burned estate needs them): .inc / .txt / .bak / .v1 members, INCLUDE / MACLIB / COPYLIB2 / COBCOPY / A.COPY.LIB directory qualifiers.
  • Already resolving: .CPY / .cpy / .Cpy / .cobol, mixed-case dirs, hyphen names, 11-char names, a library dir seven levels deep.

Tests

tests/cobol_mainframe/test_copy_member_names_8074.py (4 scan cases + a capture/translator charset parity test): fails 5/5 without the fix, passes with it. pytest tests/cobol_mainframe -k copy: 382 passed, 6 skipped.

Gates

  • crucible_check.py (golden-lock): both legs PASS, no re-bless needed.
  • audit_check.py: all clear.
  • Field-testing entry D056 added; report and fact_channel_confidence.json regenerated.

Facts checked

Blind-estate re-measure is the next checklist item and is not done here. The D056 entry cites no IBM page: the @#$ rule for text-names should be confirmed against the Enterprise COBOL Language Reference COPY statement before it is quoted as a citation.

Lessons for agents

  • _dependency_capture lives under DEFINITION["rules"], not at the top level of the definition.
  • A shell command that activates the venv after python in a ; chain fails with python: command not found; export PATH first.

🤖 Generated with Claude Code

@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 16:45
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 16:47
@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-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.

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