Repository navigation
Description
Context
#3200 (call graph), #3201 (dataset lineage) and #3246 (DATA DIVISION record layouts) established a repeatable pattern for carrying Named System Facts in the master DB: a named, platform-defined relation or schema that the per-file signal counts flatten. The counted rules say that a program calls out / touches a file / declares data; a fact channel says what.
The pattern (the "fact channel") is now documented as a recipe: gitgalaxy/core/how_to_add_a_fact_channel.md + the add-fact-channel skill, with shared helpers record_keeper._insert_per_file_child and state_rehydrator._restore_child_table. See PR #3248.
Terminology: Named System Facts = the category of knowledge; fact channel = the mechanism that carries one. Distinct from signals (syntactic counts, cross-language comparable — add-signal) and from reachability/dead-code, which is logic we deliberately keep out (docs/unreferenced_by_name_contract.md).
Where COBOL stands
Within COBOL the data facts are done — galaxy_ir.py SCOPE now lists only reachability-based dead code as still forge-owned, and that is deliberately not a fact channel. So the remaining candidates are other mainframe dialects the channel was designed to absorb, plus a longer-term cross-ecosystem direction.
Candidate channels
Near-term (mainframe, #3122) — high value, the channel was built for these:
- PL/I
DECLAREstructures (Engine: extract PL/I DECLARE structures as a fact channel (PL/I record layouts) #3250) — level-number structures with attributes; the direct analog of COBOL record layouts, reusable via aboundary_extractiondialect declaration (own issue to follow). - BMS symbolic-map field layouts (Engine: extract BMS symbolic-map field layouts as a fact channel #3347) — screen field definitions the differential currently sees only as
bms_symbolic_mapcopybooks. - DB2
DECLARE TABLE/ DCLGEN schemas (Engine: extract DB2 DECLARE TABLE / DCLGEN schemas as a fact channel #3344) — the SQL table shape a program binds to (a schema fact, like record layouts). - JCL PROC/SET symbol resolution (Engine: resolve JCL PROC/SET symbolic parameters in the dataset fact channel #3345) — symbolic-parameter substitution that today the DD binding leaves partly unresolved.
Longer-term (beyond mainframe) — validates the "system, not language" thesis; prioritize only if a consumer needs it:
- Spring/JVM: DI bean graph +
@RequestMappingroute table (relation);@Entity/@Tablefield maps (schema). - SQL/ORM: DDL columns + FK graph; migration lineage.
- Protobuf/OpenAPI/Avro: message/field schema (cross-language — the "dialect, not language" case, and the first to exercise cross-file schema assembly).
- K8s/Terraform: resource-reference graph (Service→Deployment selectors).
- Serverless: event trigger bindings (Lambda→queue/bucket).
Acceptance
Each channel that lands follows the recipe end to end (extractor → *_data table → galaxy_ir.EngineFile accessor → refraction_differential compared datum → drafted answer-key field) and updates the galaxy_ir.py SCOPE comment. Spin out a child issue per channel as it is picked up.
Part of / adjacent to epic #3122.
Activity
squid-protocol commentedon Sep 20, 2026
Spun out the first near-term channel: #3250 — PL/I DECLARE structures (reuses the existing
record_dataspine via a dialect declaration).squid-protocol commentedon Sep 23, 2026
DB2
DECLARE TABLE/ DCLGEN schemas channel picked up: #3344squid-protocol commentedon Sep 23, 2026
JCL PROC/SET symbol resolution picked up as #3345 (resolved-DSN columns on the existing
dataset_datachannel).squid-protocol commentedon Sep 23, 2026
BMS symbolic-map field layouts picked up as #3347.
squid-protocol commentedon Sep 23, 2026
Consumer gap: the refactor pipeline doesn't read the fact channels yet (it re-parses with the forge). Tracked in #3348.
squid-protocol commentedon Sep 23, 2026
CICS gaps filed as separate issues: #3351 file I/O, #3352 program→BMS map, #3353 TS/TD queues, #3354 channels/containers, #3355 COMMAREA contract, #3356 CSD resources beyond TRANSACTION/PROGRAM. #3348 is the refactor-tool consumer.
Engine: DB2 DECLARE TABLE / DCLGEN schemas as a fact channel -- sql_t…
Engine: extract BMS symbolic-map field layouts as a fact channel (#3347)
Engine: extract BMS symbolic-map field layouts as a fact channel (#3347…
Engine: resolve JCL PROC/SET symbolic parameters in the dataset fact …
Engine: resolve JCL PROC/SET symbolic parameters in the dataset fact …
Engine: COMMAREA contract fact -- LINK/XCTL/RETURN COMMAREA to callee…
Engine: COMMAREA contract fact -- LINK/XCTL/RETURN COMMAREA to callee…
Skills: tighten add-fact-channel checklist + add parallel-pr-agents s…
squid-protocol commentedon Oct 3, 2026
The near-term mainframe channels have all landed: PL/I DECLARE (#3250), DB2 DCLGEN (#3344), JCL PROC/SET (#3345), BMS maps (#3347) and the CICS channels (#3351-#3356). The beyond-mainframe channels (Spring, SQL/ORM, Protobuf, K8s, Serverless) were 'only if a consumer needs it', so closing the roadmap; file each on its own when a consumer turns up.