Skip to content

feat: wind a Von Kármán nosecone end-to-end (.wind profile field) — Stage 3b PR3 - #349

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/vk-wind-schema
Aug 8, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/vk-wind-schema

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Summary

PR3 of #326 (Stage 3b Phase 1) — the user-facing slice. Wires the profile surface + numeric geodesic (PR1/PR2, merged) into the .wind format, planner, conformance corpus, docs, and GUI, so a Von Kármán nose plans from a file. Closes #326.

Changes

Schema (config/schemas.py): VonKarmanProfile { "type": "vonKarman" } + optional mandrelParameters.profile (schemaVersion 1.2). The profile carries only its discriminator — base radius is diameter/2 and axial length is windLength (no duplicated dimensions, mirroring endDiameter). A model_validator rejects profile + endDiameter together at parse time (→ WindFileError, so the API returns 4xx and conformance catches it).

Engine: surface_from_mandrel → VonKarman for a vonKarman profile; planner.py/layer_strategies.py dispatch the non-developable path (isinstance(surface, VonKarman)) — hoop-on-profile rejected, skip allowed. The per-layer mandrel is copied with model_copy() so no schema field is dropped (this replaced a hand-rebuilt MandrelParameters that omitted profile — the silent-cylinder failure mode). The bare polar cap is surfaced as a G-code comment.

Corpus / docs / GUI: examples/vk_nosecone (equivalence-gated) + README; conformance/valid/vk_nosecone.wind + two invalid fixtures (both-set, vanishing band) with manifest match reasons; regenerated wind-schema.json, openapi.json, and the two TS type files (deterministic — drift-gate clean); wind-format.md (1.2 changelog + profile section + known-approximation note) + CHANGELOG.md; a GUI blocking guard that refuses to open a .wind carrying an unrepresentable profile rather than silently stripping it (full GUI editing → #345).

Validation

The shipped example, loaded through the real loader, is locked by the Clairaut geometry invariant + coverage + circuit count + an integer len(moves) gate; a full plan_wind round-trips byte-identically through read_program and reports the cap. Hoop-on-VK rejection and skip-on-VK are tested. Local gate: ruff, mypy, full pytest (298), svelte-check, GUI vitest, conformance — all green; generators re-run with zero drift. Adversarial subagent review: no blocker/major (its nits are correct-by-design: tolerant-reader profile, conservative mutual-exclusivity, documented metric approximation); added the hoop/skip-on-VK coverage it flagged.

Closes #326.

PR3 of #326 (Stage 3b Phase 1) — the user-facing slice. Wires the profile
surface + numeric geodesic (PR1/PR2) into the .wind format, the planner, the
conformance corpus, docs, and the GUI, so a Von Kármán nose plans from a file.

Schema (config/schemas.py):
- VonKarmanProfile { type: "vonKarman" } + optional mandrelParameters.profile
  (schemaVersion 1.2). The profile carries only its discriminator: base radius is
  diameter/2 and axial length is windLength (no duplicated dimensions, mirroring
  endDiameter). A model_validator rejects profile + endDiameter together at parse
  time (surfaces as WindFileError, so the API returns 4xx and the conformance
  corpus catches it).

Engine:
- surface_from_mandrel returns a VonKarman when a vonKarman profile is set.
- planner.py / layer_strategies.py dispatch the non-developable path
  (validate/build_profile_helical_*); hoop-on-profile is rejected, skip allowed.
  The per-layer mandrel is copied with model_copy so no schema field is dropped.
- The bare polar cap is surfaced to the operator as a G-code comment.

Corpus / docs / GUI:
- examples/vk_nosecone (equivalence-gated, no byte golden) + README.
- conformance/valid/vk_nosecone.wind and two invalid fixtures (both-set,
  vanishing band) with manifest match reasons.
- Regenerated wind-schema.json, openapi.json, and the two TS type files.
- wind-format.md (1.2 changelog + profile section + known-approximation note) and
  CHANGELOG.md.
- GUI: a blocking guard refuses to open a .wind carrying an unrepresentable
  mandrel profile (rather than silently stripping it and planning a cylinder);
  full GUI profile editing is tracked in #345.

Tests: the shipped example loaded through the real loader is locked by the
Clairaut geometry invariant + coverage + circuit count + an integer len(moves)
gate; a full plan_wind round-trips byte-identically through read_program and
reports the cap. Closes #326 when merged.
@CameronBrooks11
CameronBrooks11 merged commit 14d5a18 into main Aug 8, 2026
21 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/vk-wind-schema branch August 8, 2026 06:37
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.

Stage 3b · Phase 1 — geodesic path on a curved profile (VK nosecone, software)

1 participant