Skip to content

det: I-O-CONTROL RERUN / SAME AREA / MULTIPLE FILE pinned through the whole translation (Part of #8412) - #9037

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8412

Checklist: done (I-O-CONTROL RERUN refusal; no [c:<key>] key was given in the brief or the issue body, so none is quoted)

Finding

Verified on origin/main: BDLDCKP-style programs no longer refuse at the DATA DIVISION. #8577 (4ac05f3ec) made det/layout.py read past I-O-CONTROL RERUN, SAME [RECORD | SORT | SORT-MERGE] AREA and MULTIPLE FILE TAPE (IBM accepts them with no effect on a record's layout or on a run), with a parametrised layout test (7 clause shapes). Nothing in the engine needed changing.

This PR adds the missing end-to-end pin: an authored program (invented names) with all three clauses goes through det.program.translate, not just layout.parse, and must translate with no refusal, no hole, every statement translated. Mutation-checked: removing RERUN from the skip regex fails the new test.

Tests

  • pytest tests/cobol_mainframe/test_det_translate.py: 546 passed, 1 skipped (new test included). Only this one file is changed; pr_gates / ratchets not run (test-only, no engine, golden or baseline surface touched).

Class / Sibling gaps

Class: I-O-CONTROL paragraph clauses a DATA DIVISION reader must accept: APPLY (handled, #4486), RERUN (handled, #8577), SAME AREA / SAME RECORD AREA / SAME SORT AREA (handled, #8577), MULTIPLE FILE TAPE (handled, #8577). Not modelled: SAME SORT-MERGE AREA is matched by the regex but has no test row. The engine scan side (core/file_control.py) already reads the RERUN clause into file_control_data.rerun. Sibling gaps: none beyond the untested SORT-MERGE spelling, which the same mechanism covers.

Lessons for agents

  • det.program.translate raises ValueError("the stub has no public class") without a Java stub; copy _tw_stub() in tests/cobol_mainframe/test_det_translate.py for a probe.

🤖 Generated with Claude Code

…et translation (Part of #8412)

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 22, 2026 16:24
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 16:26
@squid-shepherd
squid-shepherd Bot merged commit 54983c4 into main Nov 22, 2026
59 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261122T1622Z branch November 22, 2026 16:41
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