Skip to content

det reader: REPLACE inside a COPY member refused by name, tabs/REPLACE det verdict pinned (Part of #8412) - #8999

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261122T0700Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261122T0700Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checklist: partial [c:1e95fd31]

Part of #8412 (first unchecked line: do tabs and the REPLACE statement reach the det path correctly?).

What this finds

The question is already answered on main by two earlier PRs: #8654 (det reader: the REPLACE statement is refused by name, a tab in the sequence area and between tokens is read as CardDemo ships it) and #8991 (engine scan side: tabs and REPLACE pinned on authored programs). Both test files pass on this head (14 tests). The one member of the class neither pinned: a REPLACE statement inside a COPY member. This PR adds that test (authored FAKECPY member, invented names): the det reader refuses it by name and the message names the member file, not the program.

No engine change, test only. Gates: the two test files pass (8 + 6); ruff format --check clean; pr_gates not run (test-only, no engine/golden path).

Class / Sibling gaps

Class: source-layout constructs that rewrite or relocate text before the det reader parses it (REPLACE statement, tabs, COPY members). Handled and tested: REPLACE in the program (#8654), REPLACE in a COPY member (this PR), REPLACE OFF, lowercase and continued forms (#8654), tab in the sequence area, between tokens and in comments (#8654, #8991), engine-side items and line numbers (#8991). Sibling gaps, not done here (different mechanism): (1) applying REPLACE instead of refusing it: needs the replaced text to feed the det parse and the engine's scan, so a program using it can be whole; (2) tab-stop expansion in the det reader (today tabs are read as characters; needs a det sweep over the CardDemo CSLKPCDY ports); (3) the engine extractor does not apply REPLACE (names as written, pinned in #8991). Remaining open lines on #8412: COMP boundary matrix, copy-library order from JCL, I-O-CONTROL RERUN, the owner licence item.

Remaining slices

REPLACE application (det + engine), det tab-stop expansion, as above.

🤖 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 22, 2026
@squid-shepherd

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