Repository navigation
Description
Stage 3a — the first non-cylindrical surface. Cones, like cylinders, are developable: they unroll to a flat sector, so winding paths stay closed-form (no ODE / friction solver). This builds directly on the Stage-2 pattern primitive (#137, ✅) — a new path builder over a z-dependent radius that reuses the same lower_developed_path.
Why now / status
Stage 2 is shipped: pattern.py (PatternSpec) + developed.py (build_*_developed_path + single lower_developed_path), validators are type-checkers over the primitive, and the equivalence harness is in place. Cones are the natural next surface and are unblocked.
Today the surface model is a bare cylinder (MandrelParameters{diameter}; compute_helical_kinematics hardcodes circumference = π·diameter). A cone makes radius z-dependent, so circumference, pitch and dwell vary along z and the development is an unrolled sector rather than a rectangle.
Definition of done
A .wind file with a straight-cone mandrel plans helical (and hoop) layers and emits correct Marlin G-code, gated by the equivalence harness, with the HPR reducer-frustum golden landing. .wind is additively bumped to schemaVersion 1.1. All existing cylinder goldens stay byte-identical.
Slices
- Stage 3a S1 — typed surface model (Cylinder/Cone); route cylinder through it byte-safe #306 — S1 typed surface model (
Cylinder/Cone/is_developable), route cylinder through it; byte-safe (no output change). - Stage 3a S2 — cone kinematics & unrolled-sector development + harness extension #307 — S2 cone kinematics + unrolled-sector development; extend the equivalence harness; proven by analytic invariants (incl. degenerate cone
r0==r1≡ cylinder). - Stage 3a S3a — cone validation + coverage correctness (turnaround matches cylinder) #308 — S3a cone turnaround/lock + coverage correctness (mandrel-monotonic); cone validators + harness monotonicity/distribution. Internal-
Cone, no schema. - Stage 3a S3b — .wind cone surface (schemaVersion 1.1) + HPR reducer-frustum golden #311 — S3b
.windcone surface (schemaVersion 1.1) + HPR reducer-frustum golden, end-to-end under the harness. First byte-changing slice; depends on S3a. - (future, coarse — not filed yet) S4 multi-segment profiles: cylinder stubs + joins + Clairaut-constant continuity across segment boundaries.
Gating & sequencing (decided)
- First byte-changing slice is S3. That's where helical byte-equality retires and the Stage-2 equivalence harness becomes the live regression gate (coverage invariants +
nominal_metricssim-parity + geometry: slope==α, lean). Cone goldens are added fresh; cylinder goldens stay byte-equal. - Schema change is additive (S3): new optional
Conesurface →schemaVersion 1.1(allowed by the^1\.\d+$constraint from Fix schemaVersion schema constraint (const 1.0 rejects future minors) #140) +wind-format.mdnote + format changelog. - This epic precedes Epic: open winding-program format — normative SPEC, resolvable $id, conformance corpus #141 (open-format SPEC freeze): promoting the normative versioned SPEC + conformance corpus after cones land means 1.x is stamped over a schema that already includes the near-term cone surface, and the cone golden feeds straight into the corpus.
See docs/development/roadmap.md (Stage 3a). Stage 3b (domes / non-developable, #139) is the later, hardware-gated tier.
Activity
feat(planning): define the typed Motion IR (Move/MoveKind/Program/Pro…
feat(planning): typed mandrel surface model; route cylinder through it (
feat(planning): geodesic (Clairaut) cone helical kinematics + develop…
feat(planning): cone helical layer validation + coverage checks (#312)
feat(planning): wind cones via .wind endDiameter + cone_reducer golden (
CameronBrooks11 commentedon Jun 29, 2026
Stage 3a (cones) shipped. All four slices merged to main (@ b878232):
Cylinder/Conesurface model; cylinder routed through it byte-safe..windendDiameter(schemaVersion 1.1) + planner/dispatch wiring +cone_reducerexample + docs.A reducing frustum is now wound as a geodesic anchored at the large end, exposed additively through
.wind. All cylinder goldens stay byte-identical; the cone example is gated by the tolerance-based equivalence harness (its transcendental coordinates aren't bit-stable across platforms).Deferred / future (not blocking Stage 3a): expanding cones (
r1 > r0), hoop-on-cone, precise cone metrics + anendDiameterG-code header marker, and multi-segment profiles (cylinder-stub joins + Clairaut continuity, the noted S4). Next on the roadmap: open-format groundwork (#141).docs(wind-format): normative .wind SPEC + major-only schema $id (#318)
chore(release): prepare 0.10.0 (#325)