Skip to content

COBOL forge/differential reads a multi-program source as one program, blocking EPSCSMRD onboarding #4243

Closed

Description

@squid-protocol

Problem

DBB MortgageApplication zBuilder/MortgageApplication/cobol/epscsmrd.cbl @ ce2c1be58eb049e000c6627bd8273263fef0c606 (4,052 lines, 13 PROGRAM-IDs) holds eleven batch-compiled sibling programs and two nested ones, each opening with MAINLINE SECTION. The answer key models this since #4226/#4206 (siblings, PROG:NAME units), but the parsers it is graded against read the file as one program: bare sibling names collide and reachability is computed across programs. That produces about 1,000 ledger mismatches, so epscsmrd.cbl stays in excluded_programs in tests/cobol_mainframe/answer_key/dbb-mortgage-application.json.

Evidence

tests/cobol_mainframe/answer_key/README.md, last paragraph of the Multi-program sources section: "The forge reads the file as one program, which accounts for about 1,000 ledger mismatches (bare sibling names, reachability across programs). Those need an owning issue before the program is censused and lands." On units and dead code the engine already agrees with the draft (the same six dead EPSCSMRI section headers).

Acceptance criteria

  • The forge/differential splits a multi-program source into programs (by PROGRAM-ID / END PROGRAM, nested programs included) and places units and reachability per program
  • Sibling units compare as PROG:NAME, so repeated MAINLINE do not collide
  • The epscsmrd ledger mismatches are explained or gone, with a test over a small multi-program fixture

Out of scope

Onboarding the program into the key (follow-on). Changing func_start counts (#4203).

Found during: PR #4226

🤖 Generated with Claude Code

Activity

  1. added
    bug
    testing
    core-engine
    on Oct 3, 2026
  2. added 3 commits that reference this issue on Oct 3, 2026
  3. added 3 commits that reference this issue on Oct 4, 2026
  4. added
    scope:core
    era:2
    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

    bugcore-engineera:2priority: mediumscope:coretesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions