Skip to content

refactor(planning): unify skip + delete per-pattern wrappers (S4) - #304

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/298-s4-skip-and-consolidate
Jun 29, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/298-s4-skip-and-consolidate

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Part of the Stage 2 epic #137 (slice S4, #298). Cuts skip over and consolidates all three pattern types onto the single developed-surface lowering.

What's here

  • build_skip_developed_path — a skip is a non-laying reposition: it reuses the prologue framing (initial move carrying the reposition angle + G92), with no laying waypoints and no closing zero_axes (terminal=True). Byte-identical to the legacy plan_skip_layer.
  • Deleted the three thin wrappers plan_hoop_layer / plan_helical_layer / plan_skip_layer. dispatch_layer now builds the PatternSpec, selects the per-type developed-path builder (hoop / helical / skip), and lowers through the one lower_developed_path. Single code path for all three.
  • Updated _generate_fixtures.py and test_layer_strategies.py to drive dispatch_layer directly; repurposed test_developed.py's high-angle test (it referenced the deleted helical wrapper) to a wind-angle geometry assertion. Added skip unit tests (byte-identity + structural).

Byte-clean (goldens unchanged)

Byte-identical to the prior emitters across all three types — skip fixture, all per-layer fixtures, and every example golden unchanged. Byte-equality retained (consistent with S2/S3). An adversarial review confirmed skip byte-identity holds by construction and found no blockers (two nits; one addressed, one is mypy-required defense).

Verification

  • Full suite 189 passed; goldens byte-equal; ruff format/ruff check/mypy clean.
  • git grep confirms no remaining references to the deleted wrappers.

Next

S5 (#299) — validators become spec type-checkers over the primitive + docs/roadmap.

Stage 2 / S4 (#298). Cut skip over to build_skip_developed_path (a non-laying
reposition: the prologue move + G92, no waypoints, no closing zero_axes) and
delete the three thin wrappers plan_hoop_layer/plan_helical_layer/plan_skip_layer.
dispatch_layer now builds the PatternSpec and selects the per-type developed-path
builder, then lowers through the one lower_developed_path -- a single code path
for all three pattern types. Update _generate_fixtures and the layer-strategy
tests to drive dispatch_layer directly.

Byte-identical to the prior emitters (skip fixture + all goldens unchanged).

Refs #137.
@CameronBrooks11
CameronBrooks11 merged commit 14a812e into main Jun 29, 2026
21 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/298-s4-skip-and-consolidate branch June 29, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant