<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: enor fin</title>
    <description>The latest articles on DEV Community by enor fin (@enor_fin_831a3b59e357e4a5).</description>
    <link>https://dev.to/enor_fin_831a3b59e357e4a5</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4281975%2Fb98fd3c3-b825-484f-9cbc-08e6d5092e60.jpg</url>
      <title>DEV Community: enor fin</title>
      <link>https://dev.to/enor_fin_831a3b59e357e4a5</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/enor_fin_831a3b59e357e4a5"/>
    <language>en</language>
    <item>
      <title>How Kiro helped me catch the Go1 failures my first test missed</title>
      <dc:creator>enor fin</dc:creator>
      <pubDate>Fri, 04 Dec 2026 06:21:39 +0000</pubDate>
      <link>https://dev.to/enor_fin_831a3b59e357e4a5/how-kiro-helped-me-catch-the-go1-failures-my-first-test-missed-3em6</link>
      <guid>https://dev.to/enor_fin_831a3b59e357e4a5/how-kiro-helped-me-catch-the-go1-failures-my-first-test-missed-3em6</guid>
      <description>&lt;p&gt;My first 16-trial stress test recorded zero falls.&lt;br&gt;
Then I ran the same sideways shove at every possible simulation step in the test window and the Go1 fell 11 times.&lt;br&gt;
The force, walking command, and starting pose stayed the same.&lt;br&gt;
The difference was when the shove landed.&lt;/p&gt;

&lt;p&gt;I wrote this as part of the &lt;strong&gt;Kiroween 2026 hackathon&lt;/strong&gt;, where I built &lt;strong&gt;Robustness Studio&lt;/strong&gt; for the Frankenstein category.&lt;br&gt;
Studio runs a simulated Go1 quadruped in MuJoCo, lets you vary floor friction, payload, and external force, and replays the resulting motion.&lt;br&gt;
I used Kiro IDE to make the experiments reproducible and define when a change to the controller earned promotion.&lt;/p&gt;
&lt;h2&gt;
  
  
  What the 16 trials missed
&lt;/h2&gt;

&lt;p&gt;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.&lt;br&gt;
MuJoCo advanced in 4 ms steps, which gave me 256 possible shove starts from 2.000 through 3.020 seconds inclusive.&lt;br&gt;
I divided the window into 16 equal bins for the short test and drew one start from each bin using a fixed seed.&lt;br&gt;
Every trial paired a shoved rollout with an unshoved rollout from the same reset, with the same controller and command.&lt;/p&gt;

&lt;p&gt;The full sweep found 11 falls in 256 starts.&lt;br&gt;
In all 11, the front-right and rear-left feet were in stance just before the shove.&lt;br&gt;
The falls clustered at timings such as 2.444, 2.448, and 2.452 seconds.&lt;br&gt;
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.&lt;br&gt;
It was &lt;strong&gt;47.8%&lt;/strong&gt; under that sampling design.&lt;br&gt;
I went on to use all 256 start times in the regression sweep. &lt;a href="https://github.com/godmodevegeta/0xhelium/blob/07f29f7dd8d728491a6beea7dd163d0cbf49fd96/docs/milestones/M2.md" rel="noopener noreferrer"&gt;Timing sweep and paired results&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The requirements I gave Kiro
&lt;/h2&gt;

&lt;p&gt;I used &lt;strong&gt;Kiro steering&lt;/strong&gt; to carry two constraints across milestones.&lt;br&gt;
The Go1 policy weights would stay frozen, and each milestone would need a measured acceptance check.&lt;br&gt;
I started with weeble’s pretrained Go1 policy and used CMA-ES on CPU MuJoCo to tune a ten-parameter balance reflex around it.&lt;br&gt;
The reflex reads tilt, angular velocity, and lateral velocity error, then applies a bounded correction to the policy’s joint targets.&lt;br&gt;
The correction has both an amplitude limit and a per-tick rate limit. &lt;a href="https://github.com/godmodevegeta/0xhelium/blob/07f29f7dd8d728491a6beea7dd163d0cbf49fd96/.kiro/steering/delivery.md" rel="noopener noreferrer"&gt;Delivery steering&lt;/a&gt; · &lt;a href="https://github.com/mottopanikeiku/weeble/tree/60878341072256ccc68f6118ec23a298c55e1bb9" rel="noopener noreferrer"&gt;Upstream policy&lt;/a&gt; · &lt;a href="https://github.com/godmodevegeta/0xhelium/blob/07f29f7dd8d728491a6beea7dd163d0cbf49fd96/docs/milestones/M6.md" rel="noopener noreferrer"&gt;Reflex design and measurements&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I used &lt;strong&gt;Kiro Specs&lt;/strong&gt; to build the experiment runner in three steps.&lt;br&gt;
&lt;code&gt;requirements.md&lt;/code&gt; defined what a repeatable run had to guarantee, &lt;code&gt;design.md&lt;/code&gt; described how to pair and report episodes, and &lt;code&gt;tasks.md&lt;/code&gt; tied implementation to checks.&lt;br&gt;
I turned three of those requirements into property-based tests using Hypothesis.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every sampled shove starts on a valid physics step, and the same timing cannot appear twice in one sweep.&lt;/li&gt;
&lt;li&gt;Given the same seed and interval, stratified sampling returns the same timings.&lt;/li&gt;
&lt;li&gt;Physical falls, survivals, and numerical failures add up to the total number of trials.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those properties exercise generated inputs to the sampler and report code.&lt;br&gt;
A separate integration run confirmed that each pair matched before the shove and that rerunning the sampled suite reproduced its result digest. &lt;a href="https://kiro.dev/docs/specs/" rel="noopener noreferrer"&gt;Kiro Specs documentation&lt;/a&gt; · &lt;a href="https://github.com/godmodevegeta/0xhelium/blob/07f29f7dd8d728491a6beea7dd163d0cbf49fd96/.kiro/specs/experiment-runner/requirements.md" rel="noopener noreferrer"&gt;Experiment-runner spec&lt;/a&gt; · &lt;a href="https://github.com/godmodevegeta/0xhelium/blob/07f29f7dd8d728491a6beea7dd163d0cbf49fd96/tests/test_suite_properties.py" rel="noopener noreferrer"&gt;Hypothesis tests&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I configured &lt;strong&gt;Kiro Agent Hooks&lt;/strong&gt; for lint and fast tests on Python saves.&lt;br&gt;
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.&lt;br&gt;
I ran full integration rollouts and the web build through a separate milestone script. &lt;a href="https://github.com/godmodevegeta/0xhelium/blob/07f29f7dd8d728491a6beea7dd163d0cbf49fd96/.kiro/hooks/milestone-verification.json" rel="noopener noreferrer"&gt;Stop hook&lt;/a&gt; · &lt;a href="https://github.com/godmodevegeta/0xhelium/blob/07f29f7dd8d728491a6beea7dd163d0cbf49fd96/docs/kiro_build_log.md" rel="noopener noreferrer"&gt;Kiro build log&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The gate I committed before opening the holdout
&lt;/h2&gt;

&lt;p&gt;The decision I wanted the next Kiro spec to enforce was simple.&lt;br&gt;
Pick the primary candidate using training and validation results, commit that choice and the pass criteria, and then open the holdout.&lt;br&gt;
I recorded the episode definitions and hashes of the policy, calibration, candidate records, and locked set in &lt;code&gt;gate-v1.json&lt;/code&gt;.&lt;br&gt;
The CLI verifies those inputs and allows only one decision for that gate version.&lt;br&gt;
Its verification mode can recompute the recorded result without writing another decision. &lt;a href="https://github.com/godmodevegeta/0xhelium/blob/07f29f7dd8d728491a6beea7dd163d0cbf49fd96/.kiro/specs/m7-regression-gate/requirements.md" rel="noopener noreferrer"&gt;Regression-gate spec&lt;/a&gt; · &lt;a href="https://github.com/godmodevegeta/0xhelium/commit/854b87980195ac3d76d3ed9f1ca3d0a2a658215c" rel="noopener noreferrer"&gt;Pre-evaluation commit&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Recorded simulation check&lt;/th&gt;
&lt;th&gt;Baseline falls&lt;/th&gt;
&lt;th&gt;Promoted controller falls&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;10 locked disturbances withheld from tuning&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13 nominal walking checks&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1,280 regression cases across five conditions&lt;/td&gt;
&lt;td&gt;89&lt;/td&gt;
&lt;td&gt;59&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Low-friction floor, 100 N shove, 256 starts&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;17&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One of the other registered candidates fell only twice on the holdout.&lt;br&gt;
Promoting it after seeing that result would have turned the holdout into another tuning set.&lt;br&gt;
The original candidate passed the precommitted gate and remained the one I promoted.&lt;/p&gt;

&lt;p&gt;The regression sweep had &lt;strong&gt;46 recoveries and 16 regressions&lt;/strong&gt;, all 16 on low-friction ground.&lt;br&gt;
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.&lt;br&gt;
The gate allowed up to a three-percentage-point increase in fall rate both overall and within each condition.&lt;br&gt;
The low-friction increase in the table was about 1.95 points.&lt;br&gt;
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.&lt;br&gt;
Both are measurements from a simulator with specified conditions. &lt;a href="https://github.com/godmodevegeta/0xhelium/blob/07f29f7dd8d728491a6beea7dd163d0cbf49fd96/docs/milestones/M7.md" rel="noopener noreferrer"&gt;Full regression results and per-case breakdown&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Reproduce the timing experiment
&lt;/h2&gt;

&lt;p&gt;From the project checkout after &lt;code&gt;uv sync --frozen&lt;/code&gt;, run both configurations.&lt;br&gt;
Each writes an &lt;code&gt;experiment.json&lt;/code&gt; with the shove timing, outcomes, and provenance.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;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
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the hosted demo, open &lt;strong&gt;Hardening example&lt;/strong&gt; and select &lt;strong&gt;Replay baseline vs candidate&lt;/strong&gt; to see one shove under both controllers.&lt;br&gt;
Then open &lt;strong&gt;Results&lt;/strong&gt; and expand &lt;strong&gt;Regression gauntlet&lt;/strong&gt; to see the cases that got worse. &lt;a href="https://zeroxhelium-robustness-studio.onrender.com/" rel="noopener noreferrer"&gt;Try Robustness Studio&lt;/a&gt; · &lt;a href="https://github.com/godmodevegeta/0xhelium/tree/07f29f7dd8d728491a6beea7dd163d0cbf49fd96" rel="noopener noreferrer"&gt;Source and setup&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The next change I want to test is a reflex tuned for the low-friction cases exposed by the sweep.&lt;br&gt;
I'll need a fresh holdout for that candidate.&lt;br&gt;
I can reuse the failing timings as development cases now that I know where they are.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was drafted with AI from my project’s specs, build log, and recorded experiments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>robotics</category>
      <category>testing</category>
      <category>python</category>
    </item>
  </channel>
</rss>
