Skip to content

det translator: refuse a program when its COPY resolution differs from the engine's (interim for #4459–#4461) #4467

Closed

Description

@squid-protocol

What

The det translator resolves COPY with its own first-hit directory search, which is independent of the engine's resolver (copy libraries, SYSLIB order, COPY ... IN, collisions and gaps: #4265, #4420, #4424). Where they differ, the translator can silently build a wrong record: #4459 (COPY not expanded, so the record is empty), #4460 (a program source spliced in), #4461 (a member in two libraries, so the wrong layout). These were found by the engine↔translator cross-check (#4273).

Do (pre-freeze, small): refuse on disagreement

For each COPY the translator expands, compare the member and file it resolved with the engine's resolution for the same COPY statement (from the scan / GalaxyIR). If they differ, or the engine records it as a gap or a collision, the translator refuses that program by name, e.g. "COPY X: translator resolved A, engine resolved B". Add it to the #4411 handled-or-refused audit. Tests: one per #4459 / #4460 / #4461 shape, plus agreement (still translates). Report how many corpus and estate programs newly refuse.

This is the honest interim. The real fix, the translator taking the engine's resolution (its "ownership"), follows #4273's ownership table, together with the engine-side COPY bugs #4457 and #4458.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    data-integrity
    legacy-modernization
    priority: high
    on Oct 5, 2026
  2. added
    scope:sweep
    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-integritylegacy-modernizationpriority: highscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions