Skip to content

Translator consumes engine record layouts (fact_ownership.md follow-up): POINTER width as a parameter, shared stand-in copybooks, retire the duplicate layout computation #5649

Closed

Description

@squid-protocol

Why

docs/language_status/fact_ownership.md:82 (record layouts / offsets) left a follow-up: "revisit having the translator consume engine layouts once #4457 / #4458 are fixed and POINTER width is a parameter: the engine would then match the translator everywhere on these corpora." #4457 and #4458 closed on 2026-10-05; the follow-up was never picked up. Today both sides compute every record layout; the translator uses its own (gitgalaxy/tools/cobol_to_java/det/layout.py), the engine's go to analysis (record_data, via GalaxyIR).

Where the two sides still differ (fact cross-check ledger tests/cobol_mainframe/fact_crosscheck_ledger.json, 2026-10-19)

586 offsets disagreements, all definitional, no engine-wrong layout left:

Work

  1. POINTER width as a parameter of the engine's layout computation (default z/OS 4; the translator asks for its storage's width), so one computation serves both.
  2. Stand-in copybooks as a shared library: the engine resolves the same shipped stand-ins (MQ, CEEIGZCT) the translator uses, through core/copy_libraries.py, flagged as stand-ins in the facts.
  3. Translator consumes engine layouts (through GalaxyIR / the port ticket, like COPY resolution since det translator: take COPY resolution from the engine (ownership per #4273), replacing the first-hit directory search #4468) for offsets, lengths, OCCURS strides, REDEFINES; keep the translator's own computation behind a check mode for one release so any difference fails loudly.
  4. Update fact_ownership.md: layouts owned and computed by the engine; the gate keeps checking until the translator's copy is deleted.

Acceptance

Part of the CICS→Java path (Training Montage).

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    core-engine
    priority: high
    scope:core
    lane:nyx
    on Oct 19, 2026
  2. added 3 commits that reference this issue on Oct 19, 2026
  3. squid-protocol commented on Oct 20, 2026

    @squid-protocol
    OwnerAuthor

    Siblings: 5694 (record-layout gaps left by PR #5693)

  4. 19 remaining items

  5. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 5649-20261104T1449Z (host nyx) ended without a PR. no PR: waits for a release tag newer than v2.11.0

  6. removed
    lane:nyx
    on Nov 4, 2026
  7. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    Owner 2026-11-04: moved from lane:nyx to melek; it runs first, before the census mock trial #7709 (its T0 re-survey waits on this).

  8. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-04T22:32Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

  9. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance met: POINTER width and shared stand-ins landed (#5998, #7713, #7726), the translator consumes engine layouts everywhere (#5693...#7731), the mq-stand-in and pointer-width offsets entries are gone from the fact cross-check ledger, and #7737 deleted the check mode. Closing.

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

    claim:melekcore-engineenhancementpriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions