Skip to content

Roadmap: Named System Facts — extend the fact-channel pattern to remaining forge-owned relations #3249

Closed

Description

@squid-protocol

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:

Longer-term (beyond mainframe) — validates the "system, not language" thesis; prioritize only if a consumer needs it:

  • Spring/JVM: DI bean graph + @RequestMapping route table (relation); @Entity/@Table field 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

  1. added
    roadmap
    core-engine
    legacy-modernization
    on Sep 20, 2026
  2. squid-protocol commented on Sep 20, 2026

    @squid-protocol
    OwnerAuthor

    Spun out the first near-term channel: #3250 — PL/I DECLARE structures (reuses the existing record_data spine via a dialect declaration).

  3. squid-protocol commented on Sep 23, 2026

    @squid-protocol
    OwnerAuthor

    DB2 DECLARE TABLE / DCLGEN schemas channel picked up: #3344

  4. squid-protocol commented on Sep 23, 2026

    @squid-protocol
    OwnerAuthor

    JCL PROC/SET symbol resolution picked up as #3345 (resolved-DSN columns on the existing dataset_data channel).

  5. squid-protocol commented on Sep 23, 2026

    @squid-protocol
    OwnerAuthor

    BMS symbolic-map field layouts picked up as #3347.

  6. squid-protocol commented on Sep 23, 2026

    @squid-protocol
    OwnerAuthor

    Consumer gap: the refactor pipeline doesn't read the fact channels yet (it re-parses with the forge). Tracked in #3348.

  7. squid-protocol commented on Sep 23, 2026

    @squid-protocol
    OwnerAuthor

    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.

  8. squid-protocol commented on Oct 3, 2026

    @squid-protocol
    OwnerAuthor

    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.

  9. added
    scope:infra
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-enginelegacy-modernizationroadmapscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions