Skip to content

refactor(planning): adopt the single O1 nominal time model in the planner #275

Closed

Description

@CameronBrooks11

Stage 1 Motion IR — slice S2b. Part of #136. Depends on S2a.

Adopt the single nominal time/metrics model in the planner and re-baseline planner-reported time. This is the metric-divergence fix, deliberately isolated from S2a's byte-equal proof (time is metadata; it does not affect G-code bytes).

Scope

  • Introduce nominal_metrics(moves, mandrel_diameter) — the O1 surface-arc model: per-move Euclid(carriage_mm, mandrel_arc_mm) / feed, delivery head (B axis) excluded. This is the model the simulator already implements; adopt it directly (no throwaway formula).
  • Planner LayerMetrics.time_s / total_time_s use nominal_metrics; remove machine's degrees+delivery time accumulation.
  • Re-baseline planner-time assertions across tests / API / CLI (and note any GUI display) — intended change, documented in the PR.

Acceptance

  • Planner time computed by O1; G-code bytes untouched (P1 goldens still green).
  • Planner-time assertions re-baselined and the delta explained; delivery-head time intentionally dropped (hardware calibration is Calibrate nominal time model against real machine timing #130).
  • nominal_metrics is the single source the simulator will also consume (S3), closing the divergence.

Activity

  1. added
    enhancement
    python
    on Jun 28, 2026
  2. added a commit that references this issue on Jun 28, 2026
    6f2e3ef
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