My first 16-trial stress test recorded zero falls.
Then I ran the same sideways shove at every possible simulation step in the test window and the Go1 fell 11 times.
The force, walking command, and starting pose stayed the same.
The difference was when the shove landed.
I wrote this as part of the Kiroween 2026 hackathon, where I built Robustness Studio for the Frankenstein category.
Studio runs a simulated Go1 quadruped in MuJoCo, lets you vary floor friction, payload, and external force, and replays the resulting motion.
I used Kiro IDE to make the experiments reproducible and define when a change to the controller earned promotion.
What the 16 trials missed
I commanded the Go1 to walk forward at 1 m/s and applied a rightward 100 N force to its trunk for 0.1 seconds.
MuJoCo advanced in 4 ms steps, which gave me 256 possible shove starts from 2.000 through 3.020 seconds inclusive.
I divided the window into 16 equal bins for the short test and drew one start from each bin using a fixed seed.
Every trial paired a shoved rollout with an unshoved rollout from the same reset, with the same controller and command.
The full sweep found 11 falls in 256 starts.
In all 11, the front-right and rear-left feet were in stance just before the shove.
The falls clustered at timings such as 2.444, 2.448, and 2.452 seconds.
Once I had the full sweep, I could count the failing starts in each bin and calculate the chance that one draw from each bin would miss them all.
It was 47.8% under that sampling design.
I went on to use all 256 start times in the regression sweep. Timing sweep and paired results
The requirements I gave Kiro
I used Kiro steering to carry two constraints across milestones.
The Go1 policy weights would stay frozen, and each milestone would need a measured acceptance check.
I started with weeble’s pretrained Go1 policy and used CMA-ES on CPU MuJoCo to tune a ten-parameter balance reflex around it.
The reflex reads tilt, angular velocity, and lateral velocity error, then applies a bounded correction to the policy’s joint targets.
The correction has both an amplitude limit and a per-tick rate limit. Delivery steering · Upstream policy · Reflex design and measurements
I used Kiro Specs to build the experiment runner in three steps.
requirements.md defined what a repeatable run had to guarantee, design.md described how to pair and report episodes, and tasks.md tied implementation to checks.
I turned three of those requirements into property-based tests using Hypothesis.
- Every sampled shove starts on a valid physics step, and the same timing cannot appear twice in one sweep.
- Given the same seed and interval, stratified sampling returns the same timings.
- Physical falls, survivals, and numerical failures add up to the total number of trials.
Those properties exercise generated inputs to the sampler and report code.
A separate integration run confirmed that each pair matched before the shove and that rerunning the sampled suite reproduced its result digest. Kiro Specs documentation · Experiment-runner spec · Hypothesis tests
I configured Kiro Agent Hooks for lint and fast tests on Python saves.
The hook that runs at the end of an agent turn checked 127 smoke tests in 3.6 to 4.6 seconds at one recorded milestone.
I ran full integration rollouts and the web build through a separate milestone script. Stop hook · Kiro build log
The gate I committed before opening the holdout
The decision I wanted the next Kiro spec to enforce was simple.
Pick the primary candidate using training and validation results, commit that choice and the pass criteria, and then open the holdout.
I recorded the episode definitions and hashes of the policy, calibration, candidate records, and locked set in gate-v1.json.
The CLI verifies those inputs and allows only one decision for that gate version.
Its verification mode can recompute the recorded result without writing another decision. Regression-gate spec · Pre-evaluation commit
| Recorded simulation check | Baseline falls | Promoted controller falls |
|---|---|---|
| 10 locked disturbances withheld from tuning | 10 | 3 |
| 13 nominal walking checks | 0 | 0 |
| 1,280 regression cases across five conditions | 89 | 59 |
| Low-friction floor, 100 N shove, 256 starts | 12 | 17 |
One of the other registered candidates fell only twice on the holdout.
Promoting it after seeing that result would have turned the holdout into another tuning set.
The original candidate passed the precommitted gate and remained the one I promoted.
The regression sweep had 46 recoveries and 16 regressions, all 16 on low-friction ground.
That last row matters because the aggregate would otherwise make it easy to miss that the controller lost ground under one of the conditions I cared about.
The gate allowed up to a three-percentage-point increase in fall rate both overall and within each condition.
The low-friction increase in the table was about 1.95 points.
The sweep includes timings used during development, so I use it to find regressions and use the locked disturbance set for evidence on cases withheld from tuning.
Both are measurements from a simulator with specified conditions. Full regression results and per-case breakdown
Reproduce the timing experiment
From the project checkout after uv sync --frozen, run both configurations.
Each writes an experiment.json with the shove timing, outcomes, and provenance.
uv run robustlab experiment \ --config examples/m2/sideways-shove-stratified-16.json \ --out runs/blog/stratified-16 --no-save-trajectories uv run robustlab experiment \ --config examples/m2/sideways-shove-grid-all-256.json \ --out runs/blog/grid-all-256 --no-save-trajectories In the hosted demo, open Hardening example and select Replay baseline vs candidate to see one shove under both controllers.
Then open Results and expand Regression gauntlet to see the cases that got worse. Try Robustness Studio · Source and setup
The next change I want to test is a reflex tuned for the low-friction cases exposed by the sweep.
I'll need a fresh holdout for that candidate.
I can reuse the failing timings as development cases now that I know where they are.
This article was drafted with AI from my project’s specs, build log, and recorded experiments.
