You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Engine: extract COBOL data-division items and FD record layouts (the last structural datum the DB doesn't carry) #3246
Follow-up from the #3211 differential review. After #3200 (call graph) and #3201 (dataset lineage), the galaxy_ir SCOPE comment lists exactly one structural datum still owned by the forge tools and absent from the master DB:
NOT in the DB, so still owned by the forge tools: data-division items, FD record layouts, and reachability-based dead code.
(Reachability is a deliberate, separate design choice — usage_status is a by-name signal, see docs/unreferenced_by_name_contract.md. This issue is about the data half.)
Why it matters
Data-division items (the 01/05/... hierarchy: name, level, PIC, USAGE/COMP-3, OCCURS, REDEFINES, VALUE) and the FD record layouts bound to each file are the schema of the system. They are:
Extract the DATA DIVISION (WORKING-STORAGE, LINKAGE, FILE SECTION FD/01) as a nested item tree per program/copybook, into new *_data table(s) in the master DB, exposed via galaxy_ir (e.g. EngineFile.records / data_items).
Handle the hard cases COBOL data division is made of: level numbers and nesting, OCCURS [DEPENDING ON], REDEFINES, PIC/USAGE COMP-3, VALUE, and copybook-supplied layouts.
refraction_differential.py --corpus shows record layouts as a compared datum (not stated_absence via orphaned_vars), and the Java forge can source entity/DTO fields from the DB.
Activity
refactor(mainframe): shared per-file fact-channel helpers + onboardin…
feat(llm): optional Named System Facts section in the LLM brief (#3200/…
feat(audit): carry Named System Facts in the full forensic report (#3246
feat(mainframe): extract COBOL DATA DIVISION items & FD record layouts (
Engine: COMMAREA contract fact -- LINK/XCTL/RETURN COMMAREA to callee…
Engine: COMMAREA contract fact -- LINK/XCTL/RETURN COMMAREA to callee…