Repository navigation
det layout reads past I-O-CONTROL RERUN, SAME AREA and MULTIPLE FILE clauses (Part of #8412) - #8577
Merged
Merged
Conversation
…clauses (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This was referenced Nov 17, 2026
Merged
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
What
BDLDCKP (Batch Badlands) was refused by the det translator on origin/main as of 2026-11-17:
LayoutError: DATA DIVISION does not parse near expanded line(s) [11](theI-O-CONTROL.paragraph'sRERUN ON SYSCKPT EVERY 1000 RECORDS OF TRAN-FILE.). #7716 made the extractor keep RERUN, but the det layout still handed the clause to the DATA DIVISION grammar. It now parses (TRAN-REC,WS-TRAN-STATUS,WS-EOF-FLAG,WS-COUNT).det/layout.pyalready skipped I-O-CONTROLAPPLYclauses (#4486). The same skip now covers the other I-O-CONTROL clauses IBM documents as having no effect on a record's layout:RERUN,SAME [RECORD | SORT | SORT-MERGE] AREA,MULTIPLE FILE TAPE. Each is read to its terminating period, so multi-line clauses work. The behaviour is accepted-with-no-runtime-effect, not refused.Files (2 hand-written):
gitgalaxy/tools/cobol_to_java/det/layout.py,tests/cobol_mainframe/test_det_translate.py(authored fixture: 7 parametrized I-O-CONTROL shapes, one and several lines, two files, mixed clauses).Checklist: partial [c:37025b61] -- BDLDCKP's DATA DIVISION now parses; I did not re-run the full BDLDCKP det port or its equivalence/Db2-free proof, nor refresh the estate-crucible
levels.jsonBDLDCKP "refused" note (needs the corpus fetched; see Remaining slices).Class / Sibling gaps
Class: COBOL I-O-CONTROL paragraph clauses the DATA DIVISION grammar does not read. Members: APPLY (handled, #4486), RERUN (handled here), SAME AREA / SAME RECORD AREA / SAME SORT AREA / SAME SORT-MERGE AREA (handled here, shares the mechanism), MULTIPLE FILE TAPE (handled here), COMMITMENT CONTROL (not handled; IBM extension, no burned estate program uses it, left alone). Extractor side: RERUN is kept in
file_control(#7716); SAME / MULTIPLE FILE are not extracted, only skipped in the det layout (no runtime effect).Remaining slices
det_port.py check, then the batch case) and update the estate-cruciblelevels.jsonBDLDCKP entry once the corpus is fetched.Gates
pr_gates.py --fast: 9/9 pass.pytest tests/cobol_mainframe/test_det_translate.py -k i_o_control: 8 passed.pr_gates.py --ratchets: 5 pass (cics-spec, port-surface, estate, det-mutation, time); 4 FAIL for environment reasons, not verified green:ports(local cics-crucible is not on its v0.19.0 pin),completenessandground-truth(example-health-apis not fetched at its pinned ref),fact-crosscheck(failed after a 114 s scan; cause not read from the log, no extractor/fact code changed). CI will measure them.Lessons for agents
pr_gates --ratchetsin a fresh worktree failsports,completenessandground-truthon unfetched / off-pin corpora: runsync-pins.shandmainframe_corpus.py fetchfirst, or expect those to be environmental.ruff format --checkwith the pinned binary still flags two old, untouched spots intest_det_translate.pywhen invoked on the file directly;pr_gates --fastlint passes.🤖 Generated with Claude Code