Repository navigation
fix: train -- #4457, #4458 - #4471
Merged
Merged
Conversation
…the 01 before the COPY (#4458) A COPY after the last entry of a nested group whose member opens its own 01 was moved to section_copies (#4330), which the leaf-closing check in _expanded_children did not read, so the continuation was counted under the preceding 01 as well as the copied record. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
…01 records (#4457) The extractor now records the COPY ... REPLACING statements no entry carries (copy_statement_data); GalaxyIR materializes the replaced records of those, and of the ones an entry carried that open their own 01 (#4330), as program records (EngineFile.records, with copied_items), and hides the unreplaced copybook records from that program. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
…-pin completeness (#4457) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
…roduce) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
Contributor
This was referenced Oct 5, 2026
…InqaccDfhcommarea); record re-proven #4457 materializes INQACC's section-level COPY ... REPLACING, so the record is DFHCOMMAREA and the generated DTO is InqaccDfhcommarea. Pure rename in the model-written port (5 occurrences, no logic change), approved by the owner as the precedent cb9408f did for lgapvs01: the sanctioned regeneration path is blocked by #4476 (porting_loop --reuse). Re-proven with evidence.py prove: runTask passes; java-facade 13/14 is the failure baselined in #4455 for #4465 (ABNDPROC is a det stub). All 45 committed ports compile. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
This was referenced Oct 5, 2026
squid-protocol
marked this pull request as ready for review
October 5, 2026 16:52
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.
#4457 -- section-level COPY ... REPLACING
Broken:
COPY INQACC REPLACING INQACC-COMMAREA BY DFHCOMMAREA.(CBSA),COPY SORTCODE REPLACING ==SORTCODE== BY ==LITERAL-SORTCODE==., andCOPY CUSTCOPY REPLACING ==:TAG:== BY ==CUST==(zopeneditor SAM1/SAM2) were not applied: records kept the copybook's names, or (templates) did not exist.Fix: the extractor records the REPLACING COPYs no entry carries (new
copy_statement_datatable,section_copiesinextract_boundary); GalaxyIR materializes the replaced records intoEngineFile.records(entries incopied_items,data_itemsunchanged), also for COPYs moved by #4330, and hides the unreplaced copybook records from that program.After: DFHCOMMAREA / LITERAL-SORTCODE / CUST-REC (387) / CUST-CONTACT-REC (69) exist with offsets. 9 regression tests.
#4458 -- continuation double-count
Broken: COTRN02C
CSUTLDTC-PARM158 bytes (should be 100); the leaf-closing check in_expanded_childrenread onlycopy_members, but #4330 had moved the COCOM01Y COPY tosection_copies.Fix: the check also reads
section_copies. 3 tests (synthetic shape 95 -> 63 bytes, nearest negative included).Evidence
estate_crucible_gate.pyclean (baseline.json unchanged, no improvement to ratchet).MOVE truncationentries on zopeneditor-sample (SAM1WS-CUST-REC387 ->WS-CUST-CONTACT-REC69 and SAM2TRAN-UPDATE-DATA -> CUST-NAME): the engine now sizes the replaced records and reports real truncations the answer key's reader misses because it does not apply REPLACING. Assigned to new causeanswer_key_move_truncation_skips_replacing(defect, Answer key: MOVE-truncation reader does not apply COPY ... REPLACING (misses SAM1/SAM2 truncations) #4470).checkpasses. The 8 COBOL engine: entries continuing a COPYed record are still double-counted under the preceding 01 (CardDemo COTRN02C, after #4279) #4458 entries (COTRN02C) are gone and the ledger is lowered. The 329engine-section-copy-replacingentries still reproduce: the checker's engine side looks up the copybook's own item by (file, line, level) indata_itemsand lays that out, so it never reads the replaced records. Not changed here (cross-check tooling is out of scope); the engine side needs to readef.records/copied_items. Note:fact_crosscheck.py updatewithout--corpusnever drops entries (keptstarts with all of the ledger); I used--corpus aws-mainframe-modernization-carddemo.Closes #4457
Closes #4458
🤖 Generated with Claude Code
https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz