Repository navigation
fix: train -- #4306, #4330, #4365 - #4389
Merged
Merged
Conversation
…4330) The extractor puts every COPY between an entry and the next level number on that entry's copy_members; it cannot see the members' own levels. So `01 WS-COMMAREA.` + `COPY CUSTCOMM.` + `COPY CUSTMS.` + `COPY DFHAID.` folded a symbolic map and DFHAID into WS-COMMAREA, and its layout bytes were None. Once the COPY edges resolve, GalaxyIR now settles copy_members. A member whose first data entry is an 01 / 77 begins its own record, and a later member of a run that does not resolve is not guessed at. Both move to EngineFile.section_copies. A first unresolved member stays with the entry as a gap. estate-crucible H-0010 now passes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Broken: IDMS-CONTROL SECTION / PROTOCOL. (ENVIRONMENT) and SCHEMA SECTION (DATA) were recorded as procedure units. Fix: the cobol_sentence_start scope filter drops header candidates between an IDENTIFICATION/ENVIRONMENT/DATA DIVISION header and the next PROCEDURE DIVISION. Evidence: unit tests (new test_cobol_units_procedure_division_only_4306.py); galaxyscope of the issue reproducer gives function_data MAIN-PARA only (was SCHEMA, MAIN-PARA, IDMS-CONTROL, PROTOCOL). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…and anchor a continued copied record Members after a moved one move too. section_copies keeps (member, entry ordinal). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
#4365) Gate 4.3 excluded a checked-in BMS symbolic-map copybook (`* SYMBOLIC MAP FOR MAPSET CUSTMS -- GENERATED BY BMS ASSEMBLY`) as machine-generated. So the member never reached file_data / record_data, and `COPY CUSTMS` resolved to the .bms mapset. Copy members (.cpy / .copy / .dcl, including DCLGEN output) are text the compiler pastes into a program, so they are now exempt from that gate, like SQL DDL. estate-crucible: CUSTMS.cpy and GULFMS.cpy are scanned. Their 50 symbolic-map items are scored and pass, and CUSTINQ WS-COMMAREA's layout passes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…ISION / .) still opens the PROCEDURE DIVISION NIST NC1134.2.cbl:116-118 lost all 29 paragraphs to the outside-the-PROCEDURE-DIVISION filter. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Contributor
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.
Train of three engine fixes: one golden regeneration, one ledger run, one CI run. The CICS crucible was also run locally with JDK 17:
--ci, rc 0, no ratchet error (108 pass / 44 fail, the same 44 baselinejavafails).#4306: units come from the PROCEDURE DIVISION only (
fix/4306-idms-phantom-units)IDMS-CONTROL SECTION./PROTOCOL.in the ENVIRONMENT DIVISION;SCHEMA SECTION./MAP SECTION.in the DATA DIVISION.detector._cobol_sentence_start_offsetskeeps no header candidate after an IDENTIFICATION / ENVIRONMENT / DATA DIVISION header until the next PROCEDURE DIVISION. A stream with no division header (a fragment, a copybook) is unchanged, and a nested program starts over.NC1134.2.cbl:116-118writesPROCEDURE/DIVISION/., and the first build of train B lost all 29 of its paragraphs. A division name alone on a line, followed byDIVISIONon the next content line, now counts as the header. There is a regression test with the NC1134 shape that fails without the fix.usage_status(no unit is added). All are header-shaped phantoms:RES.cblFILE-CONTROsL@6, a misspelt ENVIRONMENT paragraphUSER2.cblProgram1-id@15, a misspelt IDENTIFICATION paragraphcobol-daco_DACOSMPL.cblIDMS-CONTROL@7,PROTOCOL@8cobol-dc_ABCD.cblIDMS-CONTROL@7,PROTOCOL@8cobol-idms_DACOSMPL.cblIDMS-CONTROL@7,PROTOCOL@8cobol-idms_IDMSSMPL.cblIDMS-CONTROL@6,PROTOCOL@7cobol-vanila_DACOSMPL.cblIDMS-CONTROL@7,PROTOCOL@8cobol-vanila_IDMSSMPL.cblIDMS-CONTROL@6,PROTOCOL@70.000124 → 0.000125after 14 function nodes leave the graph).MOVE WS-LOAN-KEYfollowed by the IDMS DMLOBTAIN CALC LOANread as extra MOVE receivers, a data_moves issue.#4330: a COPY of a member opening its own 01 is not the entry's (
fix/4330-copy-own-01)Broken:
01 WS-COMMAREA.+COPY CUSTCOMM.+COPY CUSTMS.+COPY DFHAID.recorded all three members on WS-COMMAREA, and its layout bytes were None.Fix: once the COPY edges resolve, GalaxyIR settles
copy_members. These move toEngineFile.section_copies:A moved member still closes the record above it, and still anchors a copied record continued in the program (
_copy_extension, carddemoCOCOM01Y). A first unresolved member stays with its entry as a gap.Golden effect: none.
Estate: H-0010 FAIL → PASS. data_items 279 → 282 pass, including CUSTINQ WS-COMMAREA, INVUPD WS-INV-AREA and KYUYO01 WS-END; the CUSTINQ layout passes.
#4365: a generated COBOL copy member is source (
fix/4365-symbolic-map-copybook)* ... GENERATED BY BMS ASSEMBLY) as machine-generated. SoCOPY CUSTMSlost its layout and resolved to the .bms mapset..cpy/.copy/.dclcopy members are exempt from that gate, like SQL DDL.Golden masters (vs
1a0045ac8874)full-precision (
tests/golden_master_audit): 35 fixture file(s), 35 channel(s), 346 scanned file(s) moved (cobol 85, lua 65, assembly 58, python 14, html 13, pli 12, sqlite 11, c 10).apex/apex-recipes/AuraEnabledRecipes_Tests.cls,apex/apex-recipes/LICENSE.md,apex/apex-recipes/QueueableRecipes.cls(+295)apex/apex-recipes/AuraEnabledRecipes_Tests.cls,apex/apex-recipes/LICENSE.md,apex/apex-recipes/QueueableRecipes.cls(+281)cobol/che-che4z_lsp_project_fixtures/ABCD.cbl,cobol/che-che4z_lsp_project_fixtures/ADSORT.cbl,cobol/che-che4z_lsp_project_fixtures/BASIC.cbl(+65)ada/alire/alire-roots.adb,agc_assembly/apollo-11/EXECUTIVE.agc,c/cpython/dictobject.c(+59)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl(+4)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+3)cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-idms_DACOSMPL.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-idms_IDMSSMPL.cbl(+2)cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-idms_DACOSMPL.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-idms_IDMSSMPL.cbl(+2)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cblcobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cblcobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cblMost-moved scanned files (channels):
cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl(23),cobol/che-che4z_lsp_project_fixtures/cobol-idms_DACOSMPL.cbl(22),cobol/che-che4z_lsp_project_fixtures/cobol-vanila_DACOSMPL.cbl(22),cobol/che-che4z_lsp_project_fixtures/cobol-idms_IDMSSMPL.cbl(21),cobol/che-che4z_lsp_project_fixtures/cobol-vanila_IDMSSMPL.cbl(21)zero-dependency (
tests/golden_master_zero_dep_audit): 35 fixture file(s), 35 channel(s), 346 scanned file(s) moved (cobol 85, lua 65, assembly 58, python 14, html 13, pli 12, sqlite 11, c 10).apex/apex-recipes/AuraEnabledRecipes_Tests.cls,apex/apex-recipes/LICENSE.md,apex/apex-recipes/QueueableRecipes.cls(+295)apex/apex-recipes/AuraEnabledRecipes_Tests.cls,apex/apex-recipes/LICENSE.md,apex/apex-recipes/QueueableRecipes.cls(+281)cobol/che-che4z_lsp_project_fixtures/ABCD.cbl,cobol/che-che4z_lsp_project_fixtures/ADSORT.cbl,cobol/che-che4z_lsp_project_fixtures/BASIC.cbl(+65)ada/alire/alire-roots.adb,agc_assembly/apollo-11/EXECUTIVE.agc,c/cpython/dictobject.c(+59)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl(+4)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+3)cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-idms_DACOSMPL.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-idms_IDMSSMPL.cbl(+2)cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-idms_DACOSMPL.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-idms_IDMSSMPL.cbl(+2)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cblcobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cblcobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cblMost-moved scanned files (channels):
cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl(23),cobol/che-che4z_lsp_project_fixtures/cobol-idms_DACOSMPL.cbl(22),cobol/che-che4z_lsp_project_fixtures/cobol-vanila_DACOSMPL.cbl(22),cobol/che-che4z_lsp_project_fixtures/cobol-idms_IDMSSMPL.cbl(21),cobol/che-che4z_lsp_project_fixtures/cobol-vanila_IDMSSMPL.cbl(21)Per-fix attribution
Train
train/train-con base1a0045ac8874-- each row is the delta that merge alone introduced (full-precision scan vs the previous step).origin/fix/4306-idms-phantom-units@ea57df4033origin/fix/4330-copy-own-01@134a697d38origin/fix/4365-symbolic-map-copybook@c251beeb091. origin/fix/4306-idms-phantom-units
full-precision: 35 fixture file(s), 35 channel(s), 346 scanned file(s) moved (cobol 85, lua 65, assembly 58, python 14, html 13, pli 12, sqlite 11, c 10).
apex/apex-recipes/AuraEnabledRecipes_Tests.cls,apex/apex-recipes/LICENSE.md,apex/apex-recipes/QueueableRecipes.cls(+295)apex/apex-recipes/AuraEnabledRecipes_Tests.cls,apex/apex-recipes/LICENSE.md,apex/apex-recipes/QueueableRecipes.cls(+281)cobol/che-che4z_lsp_project_fixtures/ABCD.cbl,cobol/che-che4z_lsp_project_fixtures/ADSORT.cbl,cobol/che-che4z_lsp_project_fixtures/BASIC.cbl(+65)ada/alire/alire-roots.adb,agc_assembly/apollo-11/EXECUTIVE.agc,c/cpython/dictobject.c(+59)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)cobol/che-che4z_lsp_project_fixtures/RES.cbl,cobol/che-che4z_lsp_project_fixtures/USER2.cbl,cobol/che-che4z_lsp_project_fixtures/cobol-daco_DACOSMPL.cbl(+5)Most-moved scanned files (channels):
cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl(23),cobol/che-che4z_lsp_project_fixtures/cobol-idms_DACOSMPL.cbl(22),cobol/che-che4z_lsp_project_fixtures/cobol-vanila_DACOSMPL.cbl(22),cobol/che-che4z_lsp_project_fixtures/cobol-idms_IDMSSMPL.cbl(21),cobol/che-che4z_lsp_project_fixtures/cobol-vanila_IDMSSMPL.cbl(21)Ground-truth ledger
Ground-truth ledger: no change.
Estate-crucible horrors
Estate-crucible (
1a0045ac8874->1dcd78cd9eb2): horrors passing 43/49 -> 44/49; checks pass 855->912, fail 18->14, phantom 8->5.Fixes #4306
Fixes #4330
Fixes #4365
🤖 Generated with Claude Code
https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo