Skip to content

Answer key: MOVE-truncation reader does not apply COPY ... REPLACING (misses SAM1/SAM2 truncations) #4470

Closed

Description

@squid-protocol

Problem

The answer key's MOVE-truncation reader (tests/tools/cobol_answer_key.py::data_move_truncations, _mv_entries) expands a COPY without applying its REPLACING, so it cannot size a record that exists only under its replaced name (COPY CUSTCOPY REPLACING ==:TAG:== BY ==CUST==).

Evidence

After #4457 the engine lays those records out (WS-CUST-REC 387 bytes, WS-CUST-CONTACT-REC 69). zopeneditor-sample SAM1.cbl:444 MOVE WS-CUST-REC TO WS-CUST-CONTACT-REC (387 -> 69 bytes) and SAM2.cbl:116 MOVE TRAN-UPDATE-DATA TO CUST-NAME are real truncations the engine now reports and the key does not (5 fp entries over SAM1, SAM1LIB, SAM2 and multiroot copies in the ground-truth ledger).

Acceptance

  • The key's truncation reader applies a COPY's REPLACING (word, ==pseudo-text==, LEADING/TRAILING) before sizing; the 5 ledger entries then agree and are dropped.

Found during: #4457 train.

Activity

  1. added
    bug
    data-integrity
    priority: low
    testing
    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

    bugdata-integritypriority: lowscope:infratesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions