Repository navigation
feat(planning): wind cones via .wind endDiameter + cone_reducer golden - #313
Merged
Merged
Conversation
Expose cone winding end-to-end. Add the additive, optional mandrelParameters.endDiameter (schemaVersion 1.1): a reducing endDiameter makes the mandrel a cone (large end `diameter` at z=0), absent/equal stays a cylinder. - surface_from_mandrel maps the mandrel onto Cylinder/Cone; dispatch_layer derives the surface and routes a cone helical layer to build_cone_helical_developed_path (skip is surface-independent; hoop-on-cone is rejected). Cylinder path unchanged. - planner validates per surface (cone -> validate_cone_helical_layer) and threads the cone kinematics into dispatch. - examples/cone_reducer: a 98->54 mm HPR reducer frustum golden (helical geodesic), added to the byte-golden suite and tied to the equivalence harness. All seven existing cylinder goldens stay byte-identical. - regenerate wind-schema.json + wind-schema.ts; document endDiameter + the cone model + a format changelog in wind-format.md; mark roadmap Stage 3a done. minimal: the G-code header/metrics use the large-end diameter (a documented nominal approximation); precise cone metrics + an endDiameter header marker are deferred. Reducing frustum + helical only. S3b of #138 (Stage 3a cones). Closes #311.
The API embeds MandrelParameters, so adding endDiameter (schemaVersion 1.1) makes openapi.json + the generated TS client stale. Regenerated to satisfy the CI drift gates. Refs #311.
…olden The cone geodesic's acos/asin accumulation is not bit-stable across platforms (Linux vs Windows differ ~1e-6 on boundary coordinates), so a byte-exact golden is spuriously fragile (CI: Windows differed at one A-coordinate's last digit). Drop examples/cone_reducer/expected.gcode and the byte-golden entry; rely on the tolerance-based equivalence harness (Clairaut geometry + coverage + circuit count) plus a platform-robust move-count assertion. This is the harness's intended role: take over from byte-equality for non-bit-stable output. Refs #311.
4 of 5 tasks
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
Stage 3a S3b (#311) — the final slice: exposes cone winding end-to-end through
.windand locks the first cone golden. Completes the Stage 3a epic (#138).What's here
schemaVersion 1.1) — optional, additivemandrelParameters.endDiameter. A reducingendDiametermakes the mandrel a cone (large enddiameterat z=0, small endendDiameterat z=windLength); absent or equal → cylinder (unchanged). Older 1.0 files parse identically.surface_from_mandrelmaps the mandrel onto theCylinder/Conemodel;dispatch_layerderives the surface and routes a cone helical layer tobuild_cone_helical_developed_path(skip is surface-independent; hoop-on-cone is rejected). Cylinder routing untouched.validate_cone_helical_layer) and threads the cone kinematics into dispatch;current_mandrelnow carriesendDiameter.examples/cone_reducer— a 98→54 mm HPR reducer frustum example (helical geodesic), gated by the equivalence harness (Clairaut geometry + coverage + circuit count + a platform-robust move-count assertion). It is deliberately not byte-goldened: the geodesic's acos/asin coordinates are not bit-stable across platforms (Linux vs Windows differ ~1e-6 on boundary values), so a byte-exact golden is spuriously fragile — this is the harness's intended role.wind-schema.json+wind-schema.ts; documentedendDiameter+ the cone model + a format changelog inwind-format.md; roadmap Stage 3a → Done.Verification
pytest214 passed; all 7 existing cylinder goldens byte-identical;cone_reducervalidated by the equivalence harness (no byte golden — see above).ruffclean; scopedmypy(changed modules) clean. (Baremypyhits a pre-existing numpy-stub/python_versionartifact present onmaintoo — CI's env passes it.)wind-schema.json/.tsregenerate byte-identical to what's committed.Deliberate scope / deferrals (flagged)
endDiameterheader marker are a later slice (would touch the IR/serializer/parser with byte-risk to cylinders).schemaVersionnot hard-enforced whenendDiameteris present — consistent with the documented additive/tolerant-reader policy.Closes #311. Completes epic #138.