Skip to content

Engine: extract DB2 DECLARE TABLE / DCLGEN schemas as a fact channel #3344

Closed

Description

@squid-protocol

Child of roadmap #3249; part of epic #3122.

What

Carry the DB2 SQL table shape a program binds to — EXEC SQL DECLARE <table> TABLE ( <col> <type> [NOT NULL] , ... ) END-EXEC — as a Named System Fact, found inline in COBOL/PL/I source and in DCLGEN copybook members. Per column: table name, column name, SQL type, length/precision/scale, nullability, source order.

Today the signal counts only say that a file embeds SQL; nothing says which table shape it declares.

Plan (per gitgalaxy/core/how_to_add_a_fact_channel.md)

  • Bounded extractor in core/mainframe_boundary.py over the PRISM code stream (cobol + pli dialects).
  • New per-file child table sql_table_data (columns/types don't map onto record_data's PIC/level shape).
  • Delta-scan restore, galaxy_ir.EngineFile accessor + SCOPE update, refraction_differential compared datum, drafted answer-key field.
  • Audit report block (moves golden master for any DCLGEN in the crucible corpus) + LLM brief summary.

Activity

  1. added
    core-engine
    legacy-modernization
    on Sep 23, 2026
  2. added 2 commits that reference this issue on Sep 23, 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-modernization

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions