Skip to content

fix: train -- #4306, #4330, #4365 - #4389

Merged
squid-protocol merged 10 commits into
mainfrom
train/train-c
Oct 5, 2026
Merged

squid-protocol merged 10 commits into
mainfrom
train/train-c

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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 baseline java fails).

#4306: units come from the PROCEDURE DIVISION only (fix/4306-idms-phantom-units)

  • Broken: func_start took header-shaped lines outside the PROCEDURE DIVISION as units:
    • IDMS IDMS-CONTROL SECTION. / PROTOCOL. in the ENVIRONMENT DIVISION;
    • IDMS SCHEMA SECTION. / MAP SECTION. in the DATA DIVISION.
  • Fix (the second coder's branch): detector._cobol_sentence_start_offsets keeps 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.
  • Follow-up commit (this lane): the division header may be split over lines. NIST NC1134.2.cbl:116-118 writes PROCEDURE / DIVISION / ., and the first build of train B lost all 29 of its paragraphs. A division name alone on a line, followed by DIVISION on the next content line, now counts as the header. There is a regression test with the NC1134 shape that fails without the fix.
  • Every unit removed, the complete list from usage_status (no unit is added). All are header-shaped phantoms:
    • lsp RES.cbl FILE-CONTROsL@6, a misspelt ENVIRONMENT paragraph
    • lsp USER2.cbl Program1-id@15, a misspelt IDENTIFICATION paragraph
    • lsp cobol-daco_DACOSMPL.cbl IDMS-CONTROL@7, PROTOCOL@8
    • lsp cobol-dc_ABCD.cbl IDMS-CONTROL@7, PROTOCOL@8
    • lsp cobol-idms_DACOSMPL.cbl IDMS-CONTROL@7, PROTOCOL@8
    • lsp cobol-idms_IDMSSMPL.cbl IDMS-CONTROL@6, PROTOCOL@7
    • lsp cobol-vanila_DACOSMPL.cbl IDMS-CONTROL@7, PROTOCOL@8
    • lsp cobol-vanila_IDMSSMPL.cbl IDMS-CONTROL@6, PROTOCOL@7
  • Golden effect: 35 channels.
    • The 14 removed units move function-level channels in those 8 files: Function Analysis, calls/fan-in/fan-out, usage status, archetype, z-score, fingerprint and so on.
    • Two channels move repository-wide, because they are computed over every node: the topological coordinates (X 284 / Y 68 / Z 298 files; the spatial packing depends on every file's unit mass) and the function PageRank (60 files, last-digit shifts such as 0.000124 → 0.000125 after 14 function nodes leave the graph).
  • Estate: H-0007 still has 3 checks not passing, down from 6. The 3 left are not units: they are MOVE WS-LOAN-KEY followed by the IDMS DML OBTAIN CALC LOAN read 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 to EngineFile.section_copies:

    • a member whose first data entry is an 01 / 77;
    • a later member of a run that does not resolve;
    • every member after a moved one.

    A moved member still closes the record above it, and still anchors a copied record continued in the program (_copy_extension, carddemo COCOM01Y). 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)

  • Broken: aperture Gate 4.3 excluded checked-in BMS symbolic-map copybooks (* ... GENERATED BY BMS ASSEMBLY) as machine-generated. So COPY CUSTMS lost its layout and resolved to the .bms mapset.
  • Fix: .cpy / .copy / .dcl copy members are exempt from that gate, like SQL DDL.
  • Golden effect: none; no crucible copybook carries a generator banner.
  • Estate: CUSTMS.cpy and GULFMS.cpy are now scanned. Their 50 symbolic-map items are scored and pass (data_items unscored 50 → 0).

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).

channel files changed +added -removed leaves sample
2. Topological Coordinates / Z 298 0 0 298 apex/apex-recipes/AuraEnabledRecipes_Tests.cls, apex/apex-recipes/LICENSE.md, apex/apex-recipes/QueueableRecipes.cls (+295)
2. Topological Coordinates / X 284 0 0 284 apex/apex-recipes/AuraEnabledRecipes_Tests.cls, apex/apex-recipes/LICENSE.md, apex/apex-recipes/QueueableRecipes.cls (+281)
2. Topological Coordinates / Y 68 0 0 68 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)
11. Scan DB Snapshot / PageRank 60 0 2 90 ada/alire/alire-roots.adb, agc_assembly/apollo-11/EXECUTIVE.agc, c/cpython/dictobject.c (+59)
5. Function Analysis 8 0 0 285 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)
3. Architectural Profile / Repository Fingerprint 8 0 0 142 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)
11. Scan DB Snapshot / Function Z-Score 6 0 2 73 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)
11. Scan DB Snapshot / Calls Out To 6 0 2 14 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)
11. Scan DB Snapshot / Fan In 6 0 2 14 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)
11. Scan DB Snapshot / Fan Out 6 0 2 14 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)
11. Scan DB Snapshot / Function Archetype 6 0 2 14 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)
11. Scan DB Snapshot / Usage Status 6 0 2 14 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)
3. Architectural Profile / Function Archetype Mix 8 0 0 8 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)
3. Architectural Profile / Repository Drift (Centroid Distance) 8 0 0 8 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)
3. Architectural Profile / Structural Magnitude 8 0 0 8 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)
4. Vulnerability & Risk Exposures / Testing Exposure 8 0 0 8 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)
7. Structural Signatures (Net Mitigated Signals) / Function/Method Declarations 8 0 0 8 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)
7. Structural Signatures (Net Mitigated Signals) / Unreferenced By Name 8 0 0 8 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)
3. Architectural Profile / Composition Fit (Z-Score) 7 0 0 7 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)
4. Vulnerability & Risk Exposures / Tech Debt Exposure 6 0 0 6 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)
3. Architectural Profile / Raw Cognitive Density 5 0 0 5 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)
4. Vulnerability & Risk Exposures / Cognitive Load Exposure 5 0 0 5 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)
4. Vulnerability & Risk Exposures / Documentation Exposure 2 0 0 2 cobol/che-che4z_lsp_project_fixtures/RES.cbl, cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl
3. Architectural Profile / Composition Archetype 1 0 0 1 cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl
3. Architectural Profile / Repository Archetype 1 0 0 1 cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl
... 10 more channel(s)

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)

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).

channel files changed +added -removed leaves sample
2. Topological Coordinates / Z 298 0 0 298 apex/apex-recipes/AuraEnabledRecipes_Tests.cls, apex/apex-recipes/LICENSE.md, apex/apex-recipes/QueueableRecipes.cls (+295)
2. Topological Coordinates / X 284 0 0 284 apex/apex-recipes/AuraEnabledRecipes_Tests.cls, apex/apex-recipes/LICENSE.md, apex/apex-recipes/QueueableRecipes.cls (+281)
2. Topological Coordinates / Y 68 0 0 68 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)
11. Scan DB Snapshot / PageRank 60 0 2 90 ada/alire/alire-roots.adb, agc_assembly/apollo-11/EXECUTIVE.agc, c/cpython/dictobject.c (+59)
5. Function Analysis 8 0 0 285 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)
3. Architectural Profile / Repository Fingerprint 8 0 0 142 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)
11. Scan DB Snapshot / Function Z-Score 6 0 2 73 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)
11. Scan DB Snapshot / Calls Out To 6 0 2 14 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)
11. Scan DB Snapshot / Fan In 6 0 2 14 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)
11. Scan DB Snapshot / Fan Out 6 0 2 14 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)
11. Scan DB Snapshot / Function Archetype 6 0 2 14 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)
11. Scan DB Snapshot / Usage Status 6 0 2 14 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)
3. Architectural Profile / Function Archetype Mix 8 0 0 8 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)
3. Architectural Profile / Repository Drift (Centroid Distance) 8 0 0 8 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)
3. Architectural Profile / Structural Magnitude 8 0 0 8 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)
4. Vulnerability & Risk Exposures / Testing Exposure 8 0 0 8 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)
7. Structural Signatures (Net Mitigated Signals) / Function/Method Declarations 8 0 0 8 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)
7. Structural Signatures (Net Mitigated Signals) / Unreferenced By Name 8 0 0 8 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)
3. Architectural Profile / Composition Fit (Z-Score) 7 0 0 7 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)
4. Vulnerability & Risk Exposures / Tech Debt Exposure 6 0 0 6 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)
3. Architectural Profile / Raw Cognitive Density 5 0 0 5 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)
4. Vulnerability & Risk Exposures / Cognitive Load Exposure 5 0 0 5 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)
4. Vulnerability & Risk Exposures / Documentation Exposure 2 0 0 2 cobol/che-che4z_lsp_project_fixtures/RES.cbl, cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl
3. Architectural Profile / Composition Archetype 1 0 0 1 cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl
3. Architectural Profile / Repository Archetype 1 0 0 1 cobol/che-che4z_lsp_project_fixtures/cobol-dc_ABCD.cbl
... 10 more channel(s)

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)

Per-fix attribution

Train train/train-c on base 1a0045ac8874 -- each row is the delta that merge alone introduced (full-precision scan vs the previous step).

# branch golden channels scanned files moved estate horrors notes
1 origin/fix/4306-idms-phantom-units @ ea57df4033 35 346 43->43 (H-0007)
2 origin/fix/4330-copy-own-01 @ 134a697d38 0 0 43->44 (H-0010)
3 origin/fix/4365-symbolic-map-copybook @ c251beeb09 0 0 44->44
1. 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).

channel files changed +added -removed leaves sample
2. Topological Coordinates / Z 298 0 0 298 apex/apex-recipes/AuraEnabledRecipes_Tests.cls, apex/apex-recipes/LICENSE.md, apex/apex-recipes/QueueableRecipes.cls (+295)
2. Topological Coordinates / X 284 0 0 284 apex/apex-recipes/AuraEnabledRecipes_Tests.cls, apex/apex-recipes/LICENSE.md, apex/apex-recipes/QueueableRecipes.cls (+281)
2. Topological Coordinates / Y 68 0 0 68 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)
11. Scan DB Snapshot / PageRank 60 0 2 90 ada/alire/alire-roots.adb, agc_assembly/apollo-11/EXECUTIVE.agc, c/cpython/dictobject.c (+59)
5. Function Analysis 8 0 0 285 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)
3. Architectural Profile / Repository Fingerprint 8 0 0 142 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)
11. Scan DB Snapshot / Function Z-Score 6 0 2 73 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)
11. Scan DB Snapshot / Calls Out To 6 0 2 14 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)
11. Scan DB Snapshot / Fan In 6 0 2 14 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)
11. Scan DB Snapshot / Fan Out 6 0 2 14 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)
11. Scan DB Snapshot / Function Archetype 6 0 2 14 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)
11. Scan DB Snapshot / Usage Status 6 0 2 14 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)
... 23 more channel(s)

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.

horror issue before after title
H-0007 #4306 FAIL (6 not passing) FAIL (3 not passing) IDMS IDMS-CONTROL SECTION / PROTOCOL (ENVIRONMENT DIVISION) recorded as procedure units
H-0010 #4330 FAIL (3 not passing) PASS A COPY of a member holding its own 01 is folded into the copy_members of the 01 above it
channel before (pass/fail/missing/phantom) after
data_items 281/6/0/0 334/3/0/0
layouts 81/6/0/0 82/5/0/0
units 91/1/0/3 94/1/0/0

Fixes #4306
Fixes #4330
Fixes #4365

🤖 Generated with Claude Code

https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo

squid-protocol and others added 10 commits October 4, 2026 19:30
…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
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 5, 2026 01:26
@squid-protocol
squid-protocol merged commit 173711a into main Oct 5, 2026
42 checks passed
@squid-protocol
squid-protocol deleted the train/train-c branch October 5, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant