Skip to content

Reuse one executable for toe, camber, masses and CGs on BobLib #71 - #169

Open
raorjun wants to merge 4 commits into
mainfrom
claude/project-thread-srhlvw-runtime-knobs
Open

raorjun wants to merge 4 commits into
mainfrom
claude/project-thread-srhlvw-runtime-knobs

Conversation

@raorjun

@raorjun raorjun commented Nov 24, 2026

Copy link
Copy Markdown
Member

What

Before: opt-solve compiled a separate VehicleSim (about 4 to 5 minutes each) for every distinct toe, camber, mass or CG value, because OpenModelica folded those into the executable and silently ignored -override.

After: on BobLib #71, which builds the wheel rotation and the combined frame mass at initialisation, 14 more DOE knobs reuse the one baseline executable: front and rear toe and camber, sprung mass and CG x/z, driver mass, CG x/z and inertias, and frame torsional stiffness. Only the unsprung masses and the aero load scale still compile.

How: RUNTIME_SAFE_PATHS gains those paths. New optimization/response/pipeline/vet_runtime.py probes every DOE knob at the edge of its range on one executable and reports live, no effect, run failed or rejected, so the list can be re-checked when the pin moves (--check, --jobs).

This lands after BobLib #71 merges and the pin moves. test_runtime_safe_list_matches_the_pinned_boblib fails on today's pin on purpose, so it can't land early and turn every toe variant back into the baseline car.

How to check

  • pytest tests/test_vet_runtime.py tests/test_optsim_overrides.py: 16 pass, plus the pin guard failing as intended on 2935955.
  • On a VehicleSim built from Upgrade OpenModelica toolchain to 1.27.1 #71 (daa6543), two override runs matched recompiled variants exactly, zero difference on every moving signal (about 1900): front toe 0.25° with sprung mass 180 kg; and front camber −1.5°, rear toe 0.2°, sprung CG z, driver CG x, driver Iyy and torsional stiffness together.
  • vet_runtime --jobs 4 on that build: all 14 new knobs live, stabars live, unsprung masses and aero rejected.

Notes

  • The vetting run also found that the damper knobs (*.actuation.damper_rate_n_s_per_m) are broken on main. They write rows 1 and 3 of damperTable as if it were a 3-point curve, but since the TTX25 tables it has 27 rows, so the probe value crashes VehicleSim. That's a separate fix and isn't changed here.
  • Spring knobs need FourPostEval metrics to resolve, so the vet tool skips them without those metrics.

Generated by Claude Code

BobLib #71 builds the wheel rotation and the combined frame mass at
initialisation, so these knobs now follow -override. On a #71 VehicleSim
build, override runs of toe, camber, the frame and driver masses, CGs and
inertias and the torsional stiffness matched separately compiled variants on
every moving signal, so RUNTIME_SAFE_PATHS lists them and opt-solve stops
compiling one executable per value.

vet_runtime probes every DOE knob on one executable and reports which ones
move the result, so the list can be re-checked when the pin moves. A test
fails while the pin predates #71, so this cannot land early.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@rhorvath02 rhorvath02 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation review found no additional code defect, but this revision is not ready to merge: the BobLib pin still predates BobDyn/BobLib#71, and the Tests check is failing. The runtime-safe-list guard also failed locally against that pin, as intended.

Please merge BobDyn/BobLib#71, update the submodule pin here, and rerun the guard and runtime-override tests before merge. Keep the guard intact. Leaving approval pending the pin update and passing checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@raorjun
raorjun marked this pull request as ready for review November 26, 2026 17:08
282cffd is BobLib main with #71 (frame mass, CG, aero mount and static
toe/camber as runtime overrides) and #67 (Docker in Claude cloud sessions).
#71 is what lets RUNTIME_SAFE_PATHS list those knobs. BobLib's changelog
says default results are unchanged, so the baseline's boblib_commit moves
with the pin; the full regression-baseline run on this branch confirms it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

raorjun commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

@rhorvath02 BobLib #71 is merged and the pin now points at BobLib main (282cffd, #71 plus #67), with main merged in.

  • The runtime-safe-list guard and the override tests pass against the new pin. The guard is unchanged.
  • The baseline provenance check failed on the pin move, as it should. BobLib's changelog for Upgrade OpenModelica toolchain to 1.27.1 #71 says default results are unchanged, so I moved provenance.boblib_commit with the pin in the same commit and started the Regression Baseline workflow on this branch to confirm the metrics.

I'll follow up here with that result.


Generated by Claude Code

@raorjun
raorjun requested a review from rhorvath02 November 26, 2026 17:17
BobLib #71 swapped MSL FixedRotation for TunableFixedRotation and pinned
FixedTranslation directions so toe, camber and mounts are runtime
parameters. Initial values and the 1 Hz sine metrics are unchanged to
1e-6, but the 0.5 Hz and step cases moved numerically (ay_phase_0p5hz
0.39 to 0.21 deg, step ay_overshoot 20.6 to 19.4 pct). Values come from
a local TransientEval run on the new pin that matches CI's failing value.
Tolerances unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

raorjun commented Nov 26, 2026 •

Copy link
Copy Markdown
Member Author

Refreshed the TransientEval baseline for the new BobLib pin (3fd23ba). Only TransientEval moved; the other three workflows already matched.

Why: BobLib #71 swaps FixedRotation for TunableFixedRotation and pins FixedTranslation directions so toe, camber and mounts are runtime parameters. Init values and the 1 Hz metrics are identical to 1e-6; the 0.5 Hz and step cases moved numerically (ay_phase_0p5hz 0.39 to 0.21 deg, step ay_overshoot 20.6 to 19.4 pct, yaw_phase_0p5hz -4.06 to -4.24 deg). Values come from a local TransientEval run on 282cffd that reproduces CI's failing number. No tolerance changed. Fast tests and the full regression baseline both pass on 3fd23ba.


Generated by Claude Code

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.

3 participants