Skip to content

Epic: open winding-program format — normative SPEC, resolvable $id, conformance corpus #141

Closed

Description

@CameronBrooks11

Make .wind a documented, versioned, open winding-program format — the flagship deliverable of the open-format track (roadmap "Open winding-program format"). There is no open interchange format for winding programs today; this publishes one.

Why this matters

A normative, versioned spec with a resolvable schema $id and a conformance corpus is what lets a community form around .wind and lets other tools read/write it with confidence. The Motion IR is documented as a secondary format; emitted G-code stays a build artifact.

Definition of done

  • .wind has a normative SPEC (MUST/SHOULD, conformance section, media type) with an explicit additive-within-major compatibility policy + changelog.
  • The canonical JSON-Schema $id resolves: https://fiberpath.org/schemas/wind/1/wind.schema.json → 200.
  • A conformance corpus (valid/ must-parse, invalid/ must-reject, golden outputs) gates the format in CI.
  • The Motion IR is documented as a secondary, separately-versioned format (irVersion) with weaker stability guarantees.

Slices

Order: A first (locks $id + normative doc); B and C independent; D after A.

Decisions (made)

  • Major-only $id (/wind/1/): additive minors keep the same identifier; schemaVersion tracks the minor.
  • Separate conformance/ tree (don't restructure examples/, which is cited by tests + docs).
  • Publishing is in-scope (slice D): fiberpath.org is already live (verified 200 on / and /fiberpath); only the schema path 404s. No Cloudflare/DNS work needed.

Already landed (groundwork)

Dependencies

Activity

  1. added
    documentation
    on Jun 25, 2026
  2. CameronBrooks11 commented on Jun 26, 2026

    @CameronBrooks11
    MemberAuthor

    Schema-generator drift surfaced while doing #140 (PR #203) — needs reconciling here.

    There are currently two competing JSON-Schema generators, and the committed fiberpath_gui/schemas/wind-schema.json is out of sync with the one that's actually wired up:

    • scripts/export_schema.py — produces the committed artifact's shape: sets $id (.../CameronBrooks11/fiberpath/schemas/wind-definition.json, the old org) and keeps the pydantic-default "title": "WindDefinition". It is orphaned — zero references anywhere in the repo.
    • scripts/generate_schema.py — what fiberpath_gui/package.json's npm run schema:generate actually invokes. Produces a different shape: "title": "FiberPath Wind Definition", no $id.

    Net effects to resolve as part of the open-format groundwork:

    1. Running npm run schema:generate today regenerates the artifact but drops the $id and renames the title — diverging further from what's committed.
    2. The committed artifact is stale in content too: post-Fix schemaVersion schema constraint (const 1.0 rejects future minors) #140 it still lacks the schemaVersion property (now a native field on WindDefinition, pattern ^1\.\d+$).
    3. There is no CI gate verifying the committed artifact matches its generator, so this drift is silent.

    Recommended for #141:

    • Pick one generator (likely delete export_schema.py), decide the canonical versioned $id (new fiberpath-org / fiberpath.org URL, not CameronBrooks11), regenerate wind-schema.json, and
    • add a schema-drift CI gate (regenerate + git diff --exit-code), mirroring the OpenAPI drift gate planned in build: OpenAPI-generated TS client + CI drift gate #191.

    #140 deliberately left the artifact untouched to avoid making the $id decision unilaterally; the runtime/code validation (model + GUI zod) is fixed there.

  3. changed the title [-]Open-format groundwork: normative SPEC, versioned $id, conformance corpus[/-] [+]Epic: open winding-program format — normative SPEC, resolvable $id, conformance corpus[/+] on Jun 29, 2026
  4. added
    epic
    on Jun 29, 2026
  5. CameronBrooks11 commented on Jun 29, 2026

    @CameronBrooks11
    MemberAuthor

    Open winding-program format shipped. All four slices merged to main (@ 430ac60):

    .wind is now a documented, versioned, open format with a resolvable schema and a conformance gate. Per the roadmap's open-format track, the remaining cross-cutting items (#197 machine-profile spec, future format work) are separate; the desktop .wind file association is #148.

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

    documentationepic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions