Skip to content

feat(wire): shared versioned output schema for compute results - #204

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/api-output-schema-198
Jun 26, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/api-output-schema-198

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Closes #198. Supersedes #202 (auto-closed when its stacked base branch was deleted on #201's merge). Rebased onto main; contains only the wire-schema commit.

Introduces fiberpath/wire.py as the single source of truth for the shape of plan/simulate results crossing a process boundary, decoupled from the engine dataclasses (mapped in via from_result). Every compute response carries a required schemaVersion const and all fields are camelCase; the per-route hand-rename DTOs are gone.

Reviewed by an independent adversarial subagent (SHIP-WITH-NITS, all addressed: layer test strengthened on the 2-layer example, schemaVersion hardened to a required Literal["1.0"] const). CLI output unification deferred to #193.

Verification: ruff + mypy clean; full suite green (incl. 3 wire-mapping tests).

Introduce fiberpath/wire.py as the single source of truth for the shape
of plan/simulate results crossing a process boundary. Every response
carries schemaVersion and all fields are camelCase; the wire format is
decoupled from the engine dataclasses (mapped in via from_result), so it
is no longer hostage to engine refactors.

- API /plan and /simulate now return wire models directly; the per-route
  hand-rename DTOs (PlanResponse/PlanLayer/SimulationResponse) are gone.
- Docs + CHANGELOG updated to the camelCase, versioned shapes.

Closes #198.
@CameronBrooks11
CameronBrooks11 merged commit dc54d17 into main Jun 26, 2026
18 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/api-output-schema-198 branch June 26, 2026 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: one shared versioned output/wire schema for compute results (plan/simulate/plot)

1 participant