Skip to content

Mainframe call graph: no edges for COBOL CALL, CICS LINK/XCTL or JCL EXEC PGM=, and unresolved CALL targets are recorded nowhere #3200

Closed

Description

@squid-protocol

Found by the #3120 differential. The engine graph has no program-to-program edges for the mainframe family, so the refraction pipeline cannot take its call graph from the DB.

  • COBOL CALL is only counted (ipc_rpc_bridges → arch_ipc), never captured as a target. This covers both static CALL 'PROG' and the common idiom of calling through a working-storage literal: zopeneditor SAM1.cbl:304 CALL SAM2 USING … with 05 SAM2 PIC X(8) VALUE 'SAM2'. at :122, where SAM2.cbl is in the repo.
  • CICS LINK PROGRAM(…) / XCTL PROGRAM(…): the same, count only.
  • JCL EXEC PGM=X is not captured. _dependency_capture takes INCLUDE MEMBER=, JCLLIB ORDER= and DSN= only, so a job never links to the program it runs.
  • Unresolved targets (a CALL to a program not in the repo, or a CALL through a non-literal variable) are recorded nowhere. The old pipeline's unresolved_calls has no DB equivalent.

edge_data.edge_kind was built for this ("the column exists so another relation (calls, …) can share the table later", record_keeper.py). A call / exec edge kind would give #3122's Phase-2 JCL→Spring Batch and CICS LINK→service-boundary rows their graph.

Design questions for the implementer:

  • whether call edges feed PageRank/blast radius or stay a separate kind;
  • how far to resolve a CALL through a WS literal (same-program VALUE clause only?);
  • where to persist unresolved targets.

Activity

  1. added
    enhancement
    core-engine
    legacy-modernization
    on Sep 19, 2026
  2. added a commit that references this issue on Sep 20, 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-engineenhancementlegacy-modernization

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions