Skip to content

test(planning): byte-equal .wind→.gcode golden harness + regenerator #271

Closed

Description

@CameronBrooks11

Prework for #136. Depends on the golden freeze (P0).

Scope

  • Add a parametrized, manifest-driven .wind → .gcode byte-equal golden test: plan_wind(def) -> serialize(program, dialect) then assert text == Path(golden).read_text() (exact text compare — catches trailing-newline drift).
  • Mirror the existing working template (tests/planning/test_layer_strategies.py + tests/planning/_generate_fixtures.py) — do not invent a new harness.
  • Add a deliberate regenerator (FIBERPATH_UPDATE_GOLDENS=1) so baselines are only refreshed on purpose, never hand-edited.
  • Keep the 4 tests/planning/fixtures/*.gcode on their strategy-level generation path (3 of 4 are produced by plan_hoop/helical/skip_layer on a bare WinderMachine, with no header/ProgramMeta) — the harness must cover both the full-program and the layer-only paths.

Acceptance

  • Harness is green at freeze (pre-refactor) against all committed goldens.
  • Goldens are only updated through the regenerator.

Notes

At this point serialize() doesn't exist yet — until S2a lands, the test calls the current emit path. Wire it to serialize() in S2a (the empty-diff is S2a's acceptance).

Activity

  1. added
    python
    on Jun 28, 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

    python

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions