Skip to content

Open-format C — Motion IR as a secondary versioned format (irVersion) #316

Closed

Description

@CameronBrooks11

Open-format slice C — Motion IR as a secondary, versioned format. Document the Motion IR as a secondary format (the .wind SPEC is the flagship; emitted G-code is a build artifact) with its own version and explicitly weaker stability guarantees.

Scope

  • docs/reference/motion-ir.md: document the IR surface (Move / MoveKind RAPID·SET_FEED·SET_POSITION·COMMENT / Program / ProgramMeta, the XAB axis mapping, post-segmentation "one Move == one G0 line" semantics, and that nominal_metrics/read_program are the single math/parse sources). State that the IR is a secondary format and may change with engine internals (weaker guarantees than .wind).
  • Add an irVersion constant; surface it on ProgramMeta and in the serialized header (alongside the ; Parameters line). Document its (looser) versioning policy.

Gate

  • read_program/serialize round-trip still holds (add irVersion to the parser if it round-trips the header). Full pytest + ruff + mypy clean; goldens: if the header gains an irVersion line, that changes cylinder golden bytes — regenerate deliberately (or emit it as a comment that the goldens already tolerate). Decide byte-impact up front. Adversarial review.

Out of scope

SPEC (A), corpus (B), hosting (D). No change to motion math.

Part of #141.

Activity

  1. added
    documentation
    on Jun 29, 2026
  2. added a commit that references this issue on Jun 29, 2026
    65ac5b4
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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions