Skip to content

fact cross-check: engine adapter misses section-COPY-REPLACING records (329 stale ledger entries); update needs --corpus to drop entries #4472

Closed

Description

@squid-protocol

Found while landing the #4457 / #4458 train (PR #4471).

  1. The engine side reads the wrong records for a section-level COPY ... REPLACING. COBOL engine: a section-level COPY ... REPLACING is not applied to the copied 01 records (misnamed or missing) #4457 makes GalaxyIR build the replaced records into ef.records (with a new copied_items list; data_items is unchanged). But fact_crosscheck.py's engine adapter still lays out the copybook's own item, found in data_items by (file, line, level). So the 329 engine-section-copy-replacing ledger entries keep reproducing although the engine is now right. Read the replaced records (ef.records / copied_items) for COPYed layouts, then lower the ledger.
  2. fact_crosscheck.py update only drops stale entries when --corpus is passed. With the two-way ratchet (COBOL: engine-vs-translator fact cross-check as a CI gate, with fact ownership (#4273) #4456), a PR that fixes disagreements must be able to lower the ledger with a plain update. Make it drop stale entries across all corpora (or document --corpus loudly and make check's message give the exact command).

🤖 Generated with Claude Code

Activity

  1. added
    bug
    testing
    legacy-modernization
    on Oct 5, 2026
  2. 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

    buglegacy-modernizationpriority: mediumscope:infratesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions