Skip to content

data_moves: end a MOVE receiver list at extension statement keywords (IDMS DML) (#4403) - #4406

Merged
squid-protocol merged 1 commit into
mainfrom
fix/4403-move-receiver-boundary
Oct 5, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/4403-move-receiver-boundary

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4403

What was broken

data_moves ended a receiver list only at a COBOL verb or a period. MOVE WS-LOAN-KEY TO LOAN-ID followed by IDMS OBTAIN CALC LOAN (no period) recorded OBTAIN, CALC, LOAN as receivers (estate-crucible H-0007).

Fix

EXTENSION_STATEMENT_WORDS (extensible set in gitgalaxy/core/data_moves.py): IDMS DML (OBTAIN FIND GET STORE MODIFY ERASE CONNECT DISCONNECT BIND READY FINISH COMMIT ROLLBACK KEEP ATTACH) plus vendor verbs EXHIBIT, TRANSFORM. _Stream.operands stops at one of these once it already has an operand, so a first operand named like a verb still resolves; hyphenated names (OBTAIN-FLAG) are different tokens. ACCEPT/RETURN/READ/WRITE are already COBOL verbs; EXEC SQL blocks are skipped whole. The optional unresolved-data-name guard from the issue is not included (not clearly safe).

Tests: tests/cobol_mainframe/test_data_moves_extension_boundary_4403.py (14 keyword cases, near-misses, qualified/subscripted receivers, period-terminated MOVE unchanged); 16 of 18 fail on main.

Evidence

Golden masters (vs 575bba16a63e)

full-precision (tests/golden_master_audit): unchanged.

zero-dependency (tests/golden_master_zero_dep_audit): unchanged.

Ground-truth ledger

Ground-truth ledger: no change.

Estate-crucible horrors

Estate-crucible (575bba16a63e -> 575bba16a63e+dirty): horrors passing 45/49 -> 46/49; checks pass 916->919, phantom 5->2.

horror issue before after title
H-0007 #4306 FAIL (3 not passing) PASS IDMS IDMS-CONTROL SECTION / PROTOCOL (ENVIRONMENT DIVISION) recorded as procedure units
channel before (pass/fail/missing/phantom) after
data_moves 91/0/0/3 94/0/0/0

Scope check (full leg, vs origin/main): 0 differences.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 5, 2026 03:47
@squid-protocol
squid-protocol merged commit f462900 into main Oct 5, 2026
32 checks passed
@squid-protocol
squid-protocol deleted the fix/4403-move-receiver-boundary branch October 5, 2026 03:47
squid-protocol added a commit that referenced this pull request Oct 5, 2026
Conflicts in 5 files resolved to this branch's side: after #4405 was
squash-merged, main's copies of those files are byte-identical to the
libraries commit this branch is built on, so every hunk is only this
branch's REPLACING additions. #4406 (data_moves.py) merged cleanly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

COBOL engine: a MOVE's receiver list runs into an unrecognized next statement (IDMS DML, vendor extensions) and records its words as targets

1 participant