Skip to content

[M13] Compile the accepted OSTW corpus slice to Workshop with reference differential validation #119

Description

@Teakowa

Parent: #90
Depends on: #118, #122

Goal

Complete the first Wright-owned OSTW -> Workshop pipeline for the semantic surface established by #118 and validate it against explicit-root pinned OSTW v3.4.0 reference evidence established by #122, without requiring output-text identity.

Context

#117/#118 establish Wright's native OSTW project/syntax/semantic frontend and frontend-neutral HIR boundary.

The original version of this issue assumed #115 proved the protect-ban entry project was accepted and produced a stable 79-element Workshop artifact. #118's pinned P1 probe disproved that interpretation: the upstream language server compiles the last-opened document plus its transitive import closure, and the historical 79-element result belongs to utils/ServerLoad.del, not the ds.toml.entry_point graph. The entry-root graph currently rejects on three missing ../OSTWUtils/... imports.

#122 therefore owns the corrected explicit-root oracle baseline and must establish the accepted differential target(s) used here. protect-ban remains valuable real-world syntax/semantic evidence, but its incomplete entry graph is not itself an accepted compile-success oracle until its licensed dependency closure exists.

Scope

  • Implement lowering for the frontend-neutral HIR constructs introduced/required by [M13] Resolve and lower the accepted protect-ban OSTW semantic slice into HIR #118 through the existing Wright HIR -> WIR -> Workshop path.
  • Add wright compile support for the declared OSTW source/project boundary through the same driver/session contract as OPY and raw Workshop.
  • Preserve observable semantics covered by [M13] Resolve and lower the accepted protect-ban OSTW semantic slice into HIR #118 and its pinned probes, including variable allocation, user enums, functions/defaults, rule priority/order, control flow, expressions, named/default Workshop calls, and player-variable access where supported.
  • Produce valid en-US Workshop through the existing Wright Workshop emitter; do not create an OSTW-specific Workshop backend.
  • Consume canonical Wright Workshop catalog/signature metadata; do not reintroduce an OSTW-owned duplicate Workshop game-content table.
  • Validate forward compilation against [M13 correctness] Rebaseline OSTW corpus oracle around explicit compile roots #122's explicit-root accepted reference targets using semantic/normalized evidence, not byte identity or optimizer/temp-variable identity.
  • Require Wright-emitted Workshop to parse and reach the declared semantic round-trip/fixed-point contract for the supported target surface.
  • Add deterministic forward-compilation/differential gates to CI using explicit-root evidence.
  • Document the first declared OSTW compile support matrix and known limitations based on what actually passes.

Non-goals

  • Claiming the incomplete protect-ban entry graph compiles when the pinned reference rejects it on missing dependencies.
  • Copying or synthesizing unlicensed OSTWUtils code to manufacture a passing corpus.
  • Optimizer parity, identical variable allocation names, formatting parity, or byte-identical Workshop output.
  • Classes/generics/lambdas/pattern matching outside the [M13] Resolve and lower the accepted protect-ban OSTW semantic slice into HIR #118 boundary.
  • Workshop -> OSTW reconstruction.
  • Multi-locale output.
  • Upstream .NET/OSTW runtime dependency in supported production compilation.

Acceptance criteria

  • wright compile compiles the explicit-root accepted OSTW target(s) established by [M13 correctness] Rebaseline OSTW corpus oracle around explicit compile roots #122 using only Wright production binaries/libraries.
  • The resulting Workshop is semantically equivalent under Wright's declared compatibility contract to the corresponding pinned v3.4.0 explicit-root reference result.
  • All [M13] Resolve and lower the accepted protect-ban OSTW semantic slice into HIR #118 HIR constructs included in the declared target surface lower through shared HIR/WIR/Workshop semantics without an OSTW-specific backend.
  • Normalized/differential evidence is deterministic and CI-protected; formatting/temp/optimizer differences are not correctness failures by themselves.
  • Wright-emitted Workshop reparses and reaches a semantic fixed point under the declared Workshop round-trip contract.
  • Documentation distinguishes accepted compile targets, real-world reference-rejected/incomplete corpus boundaries, and syntax/semantic-only evidence.
  • Existing OPY/Workshop behavior and compatibility gates remain green.

Relationships

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions