Skip to content

feat(planning): non-geodesic layer validation + slip limit + dwell reporting (#327) - #351

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/vk-nongeodesic-validation
Aug 8, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/vk-nongeodesic-validation

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Part of #327 (Stage 3b Phase 2 — non-geodesic VK nosecone winding). PR 2 of 3: validation + dispatch wiring + dwell reporting.

Threads the friction ratio λ (frictionLambda) and the machine slip limit μ (slipLimit) through the validators and dispatch, and reports the turnaround dwell to the operator. This is the logic slice: λ/μ are threaded as parameters and unit-tested directly. The .wind frictionLambda field, MachineProfile.slipLimit field, CLI --profile, shipped example, conformance corpus, and docs are deliberately deferred to PR3 — so production still runs at λ=0 (μ=default) and the λ>0 behaviour is exercised by direct unit-test calls (the same dead-until-next-PR pattern as PR1).

What's here

  • validate_profile_helical_layer(..., friction_lambda, slip_limit) — rejects λ>μ ("would slip") and λ<0 first (scalar, before integrating), then computes the geodesic (λ=0) or friction-assisted (λ>0) kinematics.
  • λ-on-a-developable rejection — a non-zero frictionLambda on a cylinder/cone helical (and the cylinder non-helical path) is rejected: non-geodesic winding requires a Von Kármán profile, not silently ignored.
  • dispatch_layer(..., friction_lambda) — the profile fallback routes λ>0 through compute_profile_helical_kinematics; documented as a validated-input boundary for non-VK surfaces.
  • plan_wind threads λ (0.0; PR3 → layer.frictionLambda) and μ (default; PR3 → options.profile.slipLimit); the bare-cap G-code comment now reports the turnaround dwell |r'(z_cap)| and flags Phase-3 (Stage 3b · Phase 3 — delivery kinematics for steep profiles (radial cross-feed 4th axis) #328) 4th-axis delivery when it exceeds μ.

Honesty in the reporting

The cap comment states the physics plainly rather than over-claiming: e.g. Bare polar cap: ~50.36 mm … Turnaround dwell |r'|=0.187 (within slip limit 0.2). For a deeper friction cap where the dwell exceeds μ, it says the laying reaches the cap but the reversal needs 4th-axis delivery (#328).

Adversarial review — SHIP

An adversarial reviewer verified the positional threading (no off-by-one into slip_limit/tow), that the slip check genuinely precedes integration, that dispatch and validator can't diverge on λ, that cap_dwell_slope is populated on both branches, and that the new tests actually constrain behaviour (not vacuous). Findings were all minor/nit: I fixed the cone-vs-profile validation-order inconsistency and documented the dispatch trust boundary; two watch-items (make frictionLambda helical-only so skip/hoop can't carry it; add a plan_wind-level λ>0 test) are recorded as PR3 constraints.

Gate

Full backend suite 320 passed (11 new tests); ruff + format + mypy clean; no schema/config surface touched; λ=0 geodesic move-count pins (22552/32572) unchanged.

…porting (#327)

Wire the friction ratio lambda and the machine slip limit mu through the
validator and dispatch, and report the turnaround dwell to the operator. This
is the logic slice (PR2 of 3): lambda/mu are threaded as parameters and unit-
tested directly; the .wind frictionLambda + MachineProfile.slipLimit fields,
CLI --profile, example, conformance and docs land in PR3 (this PR sources
lambda=0 and mu=default, so production behaviour is unchanged bar the richer
cap comment).

- validate_profile_helical_layer(..., friction_lambda, slip_limit): reject
  lambda>mu ("would slip") and lambda<0 FIRST (scalar, before integrating),
  then compute the geodesic (lambda=0) or friction-assisted (lambda>0) kinematics.
- validate_layer / validate_helical_layer / validate_cone_helical_layer: reject
  a non-zero frictionLambda on a developable (cylinder/cone) mandrel — non-
  geodesic winding requires a Von Karman profile, not silently ignored.
- dispatch_layer(..., friction_lambda): the profile fallback routes lambda>0
  through compute_profile_helical_kinematics.
- plan_wind threads lambda (0.0; PR3 -> layer.frictionLambda) and mu (default;
  PR3 -> options.profile.slipLimit); the cap G-code comment now reports the
  turnaround dwell |r'(cap)| and flags Phase-3 (#328) 4th-axis delivery when it
  exceeds mu.

Tests: slip-limit reject/boundary/negative + slip-check-precedes-integration;
lambda-on-cylinder/cone rejection; dispatch routes lambda>0 to the deeper path;
lambda=0 element-wise regression lock; cap-comment dwell reporting (within-mu
and Phase-3 cases).
@CameronBrooks11
CameronBrooks11 merged commit 614c425 into main Aug 8, 2026
21 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/vk-nongeodesic-validation branch August 8, 2026 20:29
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