Repository navigation
det: I-O-CONTROL RERUN / SAME AREA / MULTIPLE FILE pinned through the whole translation (Part of #8412) - #9037
Merged
Conversation
…et translation (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) madedet/layout.pyread past I-O-CONTROLRERUN,SAME [RECORD | SORT | SORT-MERGE] AREAandMULTIPLE 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 justlayout.parse, and must translate with no refusal, no hole, every statement translated. Mutation-checked: removingRERUNfrom 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 intofile_control_data.rerun. Sibling gaps: none beyond the untested SORT-MERGE spelling, which the same mechanism covers.Lessons for agents
det.program.translateraisesValueError("the stub has no public class")without a Java stub; copy_tw_stub()intests/cobol_mainframe/test_det_translate.pyfor a probe.🤖 Generated with Claude Code