Repository navigation
COBOL units: record each unit's owning program for multi-program sources (Part of #4404) - #5343
Conversation
…ces (Part of #4404) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #5343 @ 3b4b5aa: 1 failed check(s) == ground-truth part 1/2 (failure) -- real |
|
No description provided. |
|
No description provided. |
Part of #4404 (the acceptance line: GalaxyIR exposes the owning program of every unit in a multi-program source).
What changed
EngineUnit.program(galaxy_ir.py), set in_attribute_programsnext to the COBOL engine and answer key read only the first program's DATA DIVISION in a multi-program source #4245 data-item attribution: a unit belongs to the last program whose PROCEDURE DIVISION precedes its start line (the_program_atrule). One-program sources keepNone.cobol_refractor_controllerengine_unitsemitsprogramonly when set, so single-program output is unchanged.tests/cobol_mainframe/test_multi_program_units_4404.py: nested/sibling programs, same-named paragraphs in sibling programs get distinct owners, one-program source staysNone.No detector/parsing change, no function_data column, so no golden bless. Refraction differential, completeness, answer-key and 4245 tests pass (200); audit_check and pr_gates --fast clean.
Sibling gaps
function_datacolumn (DB-level exposure): wider schema/golden change; no burned-estate program needs it yet.EngineEntryPoint/ call sites carry a line but noprogramfield (call sites use_program_atinternally). Burned multi-program source: DBBepscsmrd.cbl; none needs it today.engine_sourcing._unit_atis name-based and could collide across sibling programs sharing paragraph names (no burned-estate case seen).🤖 Generated with Claude Code