feat(rate-of-closure, #4103): complete the regional-ground registry contract (+11 tests) - #4543
Merged
Merged
Conversation
…ontract
The ground variation keys shipped in 1.17.35 as bare constants, which was
not enough. keysForMode("launch") selects VARIABLE_REGISTRY entries by
category prefix, so with no definitions behind them the study plan
validator rejected every regional-ground plan with "noise variable not
legal in launch mode" and 43 tests failed on it.
Adds the two VARIABLE_REGISTRY definitions, whose numeric fields match
regional_ground_variation_dataset.py exactly: unit "1", defaults 0.4 and
0.04, typical scales 0.05 and 0.01.
That moves variation.test.ts's Python-parity guard from 5 launch keys to 7.
Checked rather than assumed: running the Python registry directly reports 5
launch keys before register_ground_variation_variables() and exactly 7
after, the two added being ground_normal_restitution and
ground_rolling_resistance. The counts agree; the difference is only that
Python registers through a dynamic extension seam from inside the request
parse path, while TypeScript has no such seam and declares them statically.
The assertion carries that reasoning inline.
Lands the 11 regional-ground tests this unblocks. Four tests are dropped
and PrimaryViewTabs.test.tsx is restored to main's version once more.
Verified: tsc clean, eslint clean, 1,551 tests, production build succeeds,
zero deletions.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
dieterolson
enabled auto-merge (squash)
August 18, 2026 15:04
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.
Finishes a port I got half-right in #4541, and lands the 11 tests it was blocking.
The bug in my own earlier slice
#4541 shipped
GROUND_NORMAL_RESTITUTION_KEYandGROUND_ROLLING_RESISTANCE_KEYas bare constants. That is not enough —keysForMode("launch")selectsVARIABLE_REGISTRYentries by category prefix, so with no definitions behind them the study plan validator rejected every regional-ground plan:43 tests failed on it. This adds the two missing
VARIABLE_REGISTRYdefinitions. Their numeric fields matchregional_ground_variation_dataset.pyexactly — unit1, defaults0.4/0.04, typical scales0.05/0.01.The parity assertion, verified rather than assumed
Adding those entries moves
variation.test.ts's Python-parity guard from 5 launch keys to 7. Rather than just editing the number, I ran the Python registry directly:So the two sides do agree on 7. The only difference is mechanism: Python registers through a dynamic extension seam, called from inside
regional_ground_variation_request's parse path, while TypeScript has no such seam and declares them statically. The updated assertion carries that reasoning inline so the next reader doesn't have to re-derive it.(That same dynamic registration is what leaked into the shared registry and broke
swing_sim/variation/tests/test_spec.py's category pins during #4524 — hence the autouse restore fixture intests/rate_of_closure/conftest.py.)What lands
The 11 regional-ground tests this unblocks: authority client, execution job and its files, execution result, execution presentation, job-preparation request, variation request wire and files, variation workspace, the imported-job panel, and the execution controller hook.
Four tests are dropped (they assert branch-side behaviour
main'sApp,ViewCompositorApp,chipForgivenessEnsembleandworkspaceVariationSessiondo not have), andPrimaryViewTabs.test.tsxis restored tomain's version once more.Verification
tsc --noEmit— cleaneslint .— cleanvitest run— 1,551 passed, 0 failed (up from 1,420 with 43 failing)npm run build— production Vite build succeeds1.17.37)🤖 Generated with Claude Code