Repository navigation
feat: wind a Von Kármán nosecone end-to-end (.wind profile field) — Stage 3b PR3 - #349
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR3 of #326 (Stage 3b Phase 1) — the user-facing slice. Wires the profile surface + numeric geodesic (PR1/PR2, merged) into the
.windformat, 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" }+ optionalmandrelParameters.profile(schemaVersion 1.2). The profile carries only its discriminator — base radius isdiameter/2 and axial length iswindLength(no duplicated dimensions, mirroringendDiameter). Amodel_validatorrejectsprofile+endDiametertogether at parse time (→WindFileError, so the API returns 4xx and conformance catches it).Engine:
surface_from_mandrel→VonKarmanfor a vonKarman profile;planner.py/layer_strategies.pydispatch the non-developable path (isinstance(surface, VonKarman)) — hoop-on-profile rejected, skip allowed. The per-layer mandrel is copied withmodel_copy()so no schema field is dropped (this replaced a hand-rebuiltMandrelParametersthat omittedprofile— 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; regeneratedwind-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.windcarrying an unrepresentableprofilerather 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 fullplan_windround-trips byte-identically throughread_programand reports the cap. Hoop-on-VK rejection and skip-on-VK are tested. Local gate:ruff,mypy, fullpytest(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.