Skip to content

Stage 3a S1 — typed surface model (Cylinder/Cone); route cylinder through it byte-safe #306

Closed

Description

@CameronBrooks11

Stage 3a slice 1 of #138. Byte-safe plumbing: introduce the typed surface model and route the existing cylinder path through it with no behavioural change. Same low-risk pattern as Stage-2 S1 (#295): construct the new abstraction, prove output is byte-identical, before any new math.

Scope

  • Add an internal surface model (e.g. fiberpath/planning/surface.py): Cylinder{radius} and Cone{r0, r1} (frustum), with is_developable() O(1) by type and a radius_at(z) accessor. (Cone is defined here but not yet planned.)
  • Derive a Cylinder from the existing MandrelParameters.diameter; route compute_helical_kinematics and the build_*_developed_path builders to read radius/circumference through the surface model instead of mandrel.diameter directly.
  • No .wind schema change, no new G-code.

Gate

  • All existing example goldens and fixtures byte-identical (cylinder output unchanged).
  • Full pytest + ruff format --check + ruff check + mypy clean.
  • Adversarial review subagent: no blockers.

Out of scope

Cone kinematics/development (S2), .wind cone input + golden (S3). The Cone type exists but raises / is unreachable from planning until S2.

Part of #138.

Activity

  1. added
    enhancement
    python
    on Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions