Skip to content

Stage 3b · Phase 2 — non-geodesic winding + friction calibration knob (full tip coverage) #327

Closed

Description

@CameronBrooks11

Stage 3b · Phase 2 — non-geodesic winding + friction as an operator-calibrated knob. Parent epic: #139. Depends on Phase 1 (#326).

Full coverage to the tip rules out geodesic-only winding. A geodesic holds r·sinα = C and physically cannot cross below its turnaround radius r = C, so a near-zero tip radius is unreachable by any geodesic (Phase 1 leaves a bare polar cap). Reaching the tip requires non-geodesic winding: let the path deviate from the geodesic by up to the friction limit, steering the turnaround below the geodesic Clairaut radius.

k_g = λ · k_n          (geodesic curvature = λ × normal curvature, |λ| ≤ μ)

Friction is a calibration knob, not a research blocker

λ depends on fiber/resin/tack, mandrel surface, tow tension, and speed — it differs per machine and per material and will always need empirical tuning. So FiberPath does not derive a universal λ; it:

  • Models non-geodesic winding parameterized by λ, and validates that a requested path stays within slip (|k_g/k_n| ≤ λ), refusing paths that would slip for the configured λ.
  • Exposes λ as a documented field on the machine + material side (contact property) with a conservative default that errs toward refusing risky paths.
  • Ships a calibration procedure: wind a test band, observe slip/bridging, adjust λ, re-plan.

This matches the engine's existing stance (machine profile #197; time-model calibration #130; roadmap "physical world is calibrated, not assumed"). A conservative default is shippable before any hardware program.

Scope (resolved 2026-08-08 — planning + adversarial assessment done; plan at working/vk-phase2-plan.md)

  • Non-geodesic path solver: forward-integrate α(z) (RK4) with dα/dz = [−λ·k_n·√(1+r'²) − sinα·r'/r]/cosα; α_max<90° guard + bisected crossing (the turnaround is a coordinate singularity, not stiffness); corrected dθ/dz = tanα·√(1+r'²)/r; new analytic VonKarman.radius_curvature_at (r'', singular at both ends — start the march at the first interior station). Branch inside compute_profile_helical_kinematics; λ=0 → the Phase-1 geodesic code untouched (its len(moves) pins frozen; _CAP_GUARD_MM kept verbatim for λ=0).
  • λ = per-layer frictionLambda on HelicalLayer (.wind 1.3, default 0, ge=0); rejected on non-profile (cylinder/cone) surfaces.
  • μ = slipLimit on MachineProfile (profileVersion 1.1, default 0.2); threaded plan_wind → validate_profile_helical_layer (a signature change); fiberpath plan --profile <path> so μ is actually operator-reachable (today no caller supplies a non-default profile).
  • Slip-limit validator: reject laying λ > μ (checked before integrating); report the turnaround dwell demand |r'(cap)| and warn when it exceeds μ — the steep-tip turnaround is Phase-3 (Stage 3b · Phase 3 — delivery kinematics for steep profiles (radial cross-feed 4th axis) #328), so Phase 2 reports it, doesn't block.
  • Independent test oracles: cylinder closed-form 1/sinα = 1/sinα₀ − λz/r (pins friction coeff + sign) + a published worked example (Koussios/de Carvalho); monotone-coverage as an inequality + tolerance band (no exact transcendental pin); element-wise λ=0 regression; 3-OS len(moves) determinism.
  • .wind VK friction example + conformance (valid λ ≤ μ, invalid λ > μ, invalid λ < 0, and the 1.2-carrying-frictionLambda policy) equivalence-gated; Pydantic bounds.
  • Docs: calibration procedure; machine-profile μ semantics (a per-setup contact limit); wind-format 1.3 (field + "Current version" + normative section); org-pages hosted schema sync; a tracked follow-up for a proper material model.

Definition of done

A VK .wind plans a non-geodesic helical layer whose reachable tip-coverage diameter is reported for a given λ (the target-cap inverse solve is deferred), the laying slip limit λ ≤ μ is enforced, the turnaround dwell demand |r'(cap)| is reported and flagged as Phase-3 when it exceeds μ, and the calibration procedure is documented. "Full coverage" = composite to a small finite radius + a tip detail; the turnaround near the steep cap is delivered by Phase 3 (#328).

Out of scope

See the feasibility assessment on #139 §4–§5.

Activity

  1. added
    enhancement
    python
    on Jun 30, 2026
  2. CameronBrooks11 commented on Aug 8, 2026

    @CameronBrooks11
    MemberAuthor

    Phase 2 planned + adversarially assessed (2026-08-08)

    Full plan: working/vk-phase2-plan.md (rev 2). The non-geodesic ODE was derived, numerically validated, then hardened by a 4-critic adversarial assessment. The ODE itself is confirmed correct (matches the published filament-winding equation, Liouville-verified, λ=0 → the Phase-1 geodesic exactly), but the assessment caught real defects in the surrounding plan — all fixed in rev 2.

    Resolved decisions

    • λ = per-layer frictionLambda on HelicalLayer (.wind 1.3, default 0); μ = slipLimit on MachineProfile (profileVersion 1.1, default 0.2). Validator rejects layer λ > machine μ.
    • Constant-λ UX: set λ, the engine reports the reachable cap (no target-cap inverse solve).
    • Dwell → Phase 3, reported not blocked (see below).

    Corrections the assessment forced

    • Sign: user-facing λ ≥ 0 = toward-tip = −λ in the raw derivation (stated once; the first-draft table was mislabelled and steered the wrong way).
    • θ formula: dθ/dz = tanα·√(1+r'²)/r (verified to reduce to the Phase-1 integrand); the draft's r'·tanα was wrong.
    • Turnaround is a coordinate singularity (dα/dz ∝ 1/cosα → ∞ at α=90°), not "stiffness" — a fixed-step march to ~90° produces garbage and is non-deterministic. Fix: stop at α_max < 90° and bisect the crossing.
    • r'' diverges at the base (~z^{−1/2}), where integration starts — start at the first interior station; radius_curvature_at is singular at both ends.
    • μ was unreachable — no CLI/API supplies a non-default profile, so PR3 adds fiberpath plan --profile.
    • λ=0 keeps Phase-1's guard verbatim (frozen goldens); frictionLambda on non-profile surfaces is rejected; the "slip = λ" test needs an independent oracle (cylinder closed-form + a literature worked example).

    The dwell finding (the substantive call)

    The turnaround dwell (the circumferential arc where each pass reverses at the cap) has friction demand |r'(cap)|, which grows toward the tip and exceeds a realistic μ≈0.2 at the deep caps the laying reaches (0.19 geodesic → 0.35 at a ⌀12mm cap). The laying path is valid; the turnaround there needs 4th-axis eye orientation — i.e. Phase 3 (#328). Decision: Phase 2 guarantees the laying path (λ≤μ), reports |r'(cap)|, and warns when the turnaround needs Phase 3 — it does not block. This keeps the "reach the tip" claim honest (software delivers the path; the steep-tip delivery is #328).

    Ships as 3 PRs (math core / validator+dispatch+μ threading / .wind+config+CLI+docs), each with a per-PR adversarial review before merge.

  3. CameronBrooks11 commented on Aug 8, 2026

    @CameronBrooks11
    MemberAuthor

    Phase 2 complete — non-geodesic winding shipped

    All code merged to main across four reviewed PRs (each: local gate → adversarial subagent review → act on findings → CI 3-OS green → rebase-merge):

    What it does

    A helical layer on a Von Kármán profile sets frictionLambda (λ = k_g/k_n) to deviate from the geodesic and climb past the turnaround toward the tip, laying a progressively smaller bare cap as λ rises, bounded by the machine slip limit μ (slipLimit). At λ=0.5 the laying reaches within ~1 mm of the tip.

    Honesty about the boundary (the dwell)

    Phase 2 guarantees the laying path (λ ≤ μ) and reports the turnaround dwell demand |r'(cap)|. When the dwell exceeds μ, the laying reaches the cap but the circumferential reversal needs 4th-axis delivery — flagged in the G-code as Phase 3 (#328). This is the epic's Phase-2/Phase-3 boundary, stated plainly rather than over-claimed.

    Numerical note

    μ is capped at 0.5 (the adaptive integrator is converged and cross-platform-stable over λ∈[0, 0.5]; beyond ~1.0 the cap goes non-deterministic). Higher-friction / exact-tip winding is a future integrator-hardening improvement.

    Follow-up

    Closing as complete. Phase 3 (#328, needs-hardware) remains for the steep-tip delivery kinematics + a physically wound coupon.

  4. CameronBrooks11 commented on Oct 19, 2026

    @CameronBrooks11
    MemberAuthor

    The local working/vk-phase2-plan.md referenced above is gone. Its decisions are in this thread; the items it left open for Phase 3 (the turnaround dwell figures, the tip floor, a material model for μ and a published-trajectory check) are now on #328.

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