Skip to content

Equivalence harness: layout_fields drops a nested COPY silently and shifts later fields #4010

Closed

Description

@squid-protocol

tests/tools/equivalence_common.layout_fields ignores a COPY nested inside a record. Every field after it gets the wrong offset: in the crucible's ca-link-lengths, CALINK's WS-AFTER-FLAG lands at offset 0 instead of 100. The crucible runner works around this by inlining COPY members first (#4000).

The fix is to expand nested COPY (the engine already resolves copybooks), or at least fail loudly instead of returning a shifted layout. The fix needs a test.

Part of #3989 (phase 3). Measured by the CICS crucible runner (#4000, tests/tools/cics_crucible.py, report docs/language_status/cics_crucible.md). When fixed, the unlocked cells leave tests/cics_crucible/baseline.json (the ratchet forces it).

🤖 Generated with Claude Code

Activity

  1. added
    testing
    legacy-modernization
    on Sep 29, 2026
  2. added 2 commits that reference this issue on Sep 29, 2026
    2897ddb
    df1c8e0
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

    legacy-modernizationtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions