Skip to content

Stage 2 / S1 — pattern primitive data model + normative alpha convention + hoop naming fix #295

Closed

Description

@CameronBrooks11

Part of the Stage 2 epic #137.

Goal: Introduce the declarative pattern primitive and normalize the wind-angle convention, with zero output change (all goldens stay byte-equal). This is the byte-safe groundwork the later cut-over slices build on.

Scope

  • Define the declarative pattern primitive data model: alpha (meridian-referenced wind angle), coverage (pattern_number p, skip_index d), turnaround/dwell (lock_degrees, lead-in/out), and lay: bool.
  • Map HoopLayer / HelicalLayer / SkipLayer schemas onto the primitive via an adapter. The old lowering still runs — the primitive is constructed but not yet lowered.
  • Make the meridian-referenced alpha convention normative (0° axial, 90° hoop) in docs/spec; hoop = alpha→90, skip = lay:false.
  • Rename the misnamed hoop wind_angle (fiberpath/planning/layer_strategies.py:62) — it is a delivery-head lean angle (90 − atan(D/w)) driven onto the DELIVERY_HEAD axis, not a fiber angle. Give it a name that says so.

Done when

  • New primitive type + adapters land with unit tests.
  • wind_angle no longer names two different things.
  • All example + layer goldens remain byte-equal (no FIBERPATH_UPDATE_GOLDENS).

Refs: fiberpath/planning/layer_strategies.py, calculations.py, config/schemas.py.

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