Repository navigation
feat(cli): fiberpath plan --profile for a calibrated machine profile (#327) - #353
Merged
Merged
Conversation
…327) Close the operator-reachability gap for the non-geodesic slip limit (PR3b, the final #327 code slice). Until now every caller used the bundled default machine profile, so mu (slipLimit) was unsettable and the calibration loop was fiction. - `fiberpath plan --profile <path>` loads a machine profile via load_machine_profile and threads it through PlanOptions(profile=...); a bad/missing file surfaces as a typer.BadParameter (user input), not a planner crash. No flag => bundled marlin-xab. - This is how an operator supplies a calibrated slipLimit so a layer's frictionLambda is validated against their own machine rather than the default 0.2. - Docs: machine-profile "Using a profile" + getting-started CLI usage + CHANGELOG. Tests: --profile with a strict slipLimit (0.1) rejects the frictionLambda=0.15 example; a loose one (0.3) plans it; a missing --profile file is a BadParameter (exit 2).
Closed
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #327 (Stage 3b Phase 2). PR 3b — operator reachability for the slip limit (the final #327 code slice).
PR3a made
slipLimit(μ) a real field that bounds a layer'sfrictionLambda, but every caller used the bundled default profile — so μ was unsettable and the calibration loop was fiction. This adds the flag that makes μ operator-settable.What's here
fiberpath plan --profile <path>loads a machine profile viaload_machine_profileand threads it throughPlanOptions(profile=...). A bad/missing/invalid profile surfaces as atyper.BadParameter(exit 2) — user input, not a planner crash. No flag → the bundledmarlin-xab.Tests (both threading directions, non-vacuous)
--profilewith a strict μ=0.1 rejects the example'sfrictionLambda=0.15(which the default μ=0.2 accepts) → proves it can lower μ.frictionLambda=0.25layer is rejected by the default μ=0.2 but accepted by a loose --profile μ=0.3 → proves it can raise μ.--profilefile →BadParameter(exit 2).Adversarial review — SHIP
Verified all
load_machine_profilefailure modes (missing/unreadable/bad-JSON/schema/version/range) map to a cleanBadParameterwith no traceback leak; the exit-code contract (1 for a slip rejection, 2 for BadParameter) holds; and the strict test genuinely proves μ is threaded (default would accept). Its one LOW finding — the original loose case was a vacuous discriminator — is fixed here (the loose case now accepts a λ the default rejects).Gate
Full backend 332 passed (CLI suite 12); ruff/format clean;
--profilerenders in--help. No non-CLI behaviour touched.This completes #327's code. Remaining: the cross-repo org-pages hosted
wind.schema.jsonsync (tracked follow-up;$idis major-only so the URL is unchanged).