STABILIZE groups A and B: independent checks of verdicts, touches and proximity alerts¶
Written 2026-12-03. Scripts: scripts/stabilize/. Data: the 705 runs under
/work/microduck-nav-runs/r6 (389 with a scene.xml, 316 older ones without; 29 baseline runs of
2026-12-03 in the current record format).
How the checks stay independent¶
The checks do not import labrunner (evaluator, challenges, geometry, contact, truthcopy, remote),
the observatory or duck_lab. They read:
result.json,truth.jsonl,ticks.jsonl,scene.xml,scene.jsonand the.mcaprecords (opened withrunfile.mcapio.read, nothing else of the project's code);- numbers from
robots/duck/profile.json(footprint.radius_m0.083,footprint.alert_m0.13,footprint.overhead_clear_m0.30,evaluator.reached_m0.25,evaluator.fall_z_m0.06, the stuck rule, the joint names); - the time allowed per challenge, read by eye from the
time_sarguments inlibs/runner/src/labrunner/challenges.pyand typed intocommon.pyasTIME_ALLOWED(60/75/90/120 s by challenge number).result.jsonhas no such field; only a timeout'swhyechoes the number. One run (probe5/ch25-s6) echoes 41.537 s where the table says 120 s; that run's truth span is consistent with its own number, so the table is a default, not a law.
Distances are computed here: 2-D point to rotated box outline (negative inside), from the box geoms
of the run's own scene.xml. The floor is the box whose top is at or under 0.5 mm; a box whose
underside is at or over overhead_clear_m (a seat) is not an obstacle.
Venvs: the checks and the planting harness run with
/work/robotics-lab/main/apps/observatory/.venv/bin/python (plain Python plus runfile).
b1_repose.py runs with /work/microduck-nav/.venv/bin/python (it has mujoco 3.10.0; the
observatory venv has none; nothing was installed).
nice apps/observatory/.venv/bin/python scripts/stabilize/check_a.py [--only PREFIX] [--json F]
nice /work/microduck-nav/.venv/bin/python scripts/stabilize/b1_repose.py --out DIR # once; 389 runs
nice apps/observatory/.venv/bin/python scripts/stabilize/check_b.py --repose-dir DIR [--only PREFIX] [--json F]
nice apps/observatory/.venv/bin/python scripts/stabilize/plant.py --repose-dir DIR
nice apps/observatory/.venv/bin/python scripts/stabilize/axes.py baseline-floor-loaded/rep1/ch31-s304 41.161
check_a.py and check_b.py exit 1 when something is BROKEN. The re-pose files I used are in the
session scratchpad (.../scratchpad/repose-all), not in the repo; regenerate with the second
command.
Results¶
HOLDS = no violation among the runs the check could apply to. CAN'T TELL = no run exercised the statement. Counts are over all 705 runs; "tested" is how many the check applied to.
| Statement | Result | Counts | Evidence |
|---|---|---|---|
| A1 pass:true = true trunk ended within reached_m, no touch, no fall, within time allowed | HOLDS | 443 pass:true runs tested, 0 violations. 142 of them are 2026-12-01 runs with no simulator touch list: for those the touch part cannot be checked | Last truth sample within 0.25 m of the goal in all 443; lowest trunk z over all runs 0.1074 m (fall line 0.06 m); longest pass within the table limit. Time allowed: time_s in challenges.py (see above) |
| A1b result.json error_m is the true distance at the stop | HOLDS (705 of 705; the 3 below resolved 2026-12-03) | 702 hold | baseline-a/rep1/v2/ch25-s5/run-20261202-154608: error_m 1.209, the last 2 s of samples span 1.2010 to 1.2021. baseline-a/rep2/v2/ch24-s4/run-20261202-165150: error_m 0.173, samples span 0.1479 to 0.1676. e2e-contact/ch24-s2/run-20261202-130559: 0.179 against 0.1565 to 0.1568. Largest gap 22 mm. The duck drifts after the navigator stops, so error_m is the figure at the stop, not at the last sample; I read this as the expected lag, but the number is not a truth sample. Not one of your A statements; reported because it is the same quantity A1 rests on. No pass flips on it Resolved: in each, error_m is the true distance at the evaluator's last sample (row truth_samples: 1.2086, 0.1728, 0.1794); the 2 s I read run past the verdict, in logs written before 207dbe9 (see B3). |
| A2 any touch makes pass false | HOLDS | 8 runs have a touch in the simulator's list, 8 of 8 are pass:false | e.g. ab-regress-6/rep2/cur/ch24-s4 (3 parts into door_n, 7 samples): pass false, failed names the contact. Only 8 runs can exercise this (see not covered) |
| A3 a fall makes pass false | HOLDS on one real fall (2026-12-03); CAN'T TELL over the 705 | 0 falls in 705 runs; 1 made on purpose | Lowest trunk z over the 705 0.1074 m. The made fall: see "A3 and A5" |
| A4 failure reason is what happened | BROKEN (3 of 116) | 116 verdicts checked (stalled by path, stuck, timeout, "said reached"); 68 stalled runs without scene.xml only got a straight-line check; 126 refused and 1 stopped_by_guardrail not checked |
The 3 are stalls: ab-regress-6/rep3/base/ch24-s5/run-20261202-230914 ("15 s without getting closer" but my shortest way to the goal got 0.255 m shorter in the 15 s window, limit 0.1 m; navigator's own path_left 3.0 m, best_left 2.89 m), ab-regress-6/rep3/cur/ch24-s7/run-20261202-231226 (0.201 m shorter; straight-line gain 0.132 m), baseline-a/rep3/v2/ch25-s8/run-20261202-182219 (0.196 m; straight-line 0.209 m). Stuck: 5 of 5 true displacement 0.035 to 0.043 m in 3 s (limit 0.05). Timeouts: 4 of 4 truth spans 90 to 122 s, consistent with their limits. "Said reached X": no violation (X matches the true final distance). The stall measure is mine (2 cm grid, 5 cm tolerance); the navigator measures its own belief of the path, so a gap can be a map difference rather than a bad verdict: the runs are real candidates, not proven bugs Resolved 2026-12-04: each agrees with the navigator's own rule on its own numbers (see "Leftovers, 2026-12-04"). |
| A5 rtf under 0.95 means pass null | HOLDS on one real slow clock (2026-12-03); CAN'T TELL over the 705 | 0 of the 705 under 0.95 (range 0.999 to 1.000, 388 runs with a sim clock; 317 runs have none); 1 slowed on purpose | Lowest 5 s window of the 705 0.968 (baseline-floor-loaded/rep1/ch29-s302). The slowed run: see "A3 and A5" |
| A6 scene.json boxes = scene.xml geoms within 1 mm and 0.1 deg | HOLDS | 389 runs, 0 violations | Largest differences over all boxes: position 0.0 mm, half size 0.05 mm, z 0.098 mm, yaw 0.00007 deg. 316 older runs have no scene.xml |
| B1 every touch the simulator saw is recorded at the right time, part and obstacle | BROKEN (6 of the 8 touch runs, 11 findings) | 8 runs with a simulator touch, 705 records examined; MuJoCo re-pose of 389 runs | See the B1 section |
| B2 alert enter and exit at the true crossing of alert_m | Enter HOLDS; exit event time BROKEN | Merged-stretch reading: 3 of 3 runs with events hold on truth_t, obstacle, clearance. Record-axis time of the exit event: 3 of 3 late, +0.329, +0.403, +0.421 s | See the B2 section |
| B2r result.json proximity {t, obstacle, clearance_m} and proximity_samples are true | HOLDS | 150 runs with alert_m, 0 violations; 239 older runs with no alert_m skipped (their semantics differ) |
Same ch31-s304 run: proximity.t 41.161 is the first sample inside, 21 samples inside The 239 older runs, 2026-12-04: they hold with the footprint radius and the evaluator's window (see "Leftovers, 2026-12-04"). |
| B3 min_clearance_m = true closest distance | HOLDS (389 of 389) up to the verdict; the 10 "misses" are rows logged after it by code fixed in 207dbe9 (see B3) | B3: 10 violations of 5 to 14 mm. B3-window: largest difference 0.54 mm | See the B3 section |
| B4 no alert is missing | HOLDS on 29 current-format runs; open for 26 older records | B4: 29 tested, 0 violations. The 26 older records have a true stretch inside alert_m and no alert event at all | In the 26 older records (before the 2026-12-03 importer) the events do not exist, so the check cannot say "missing" from "never written"; if they are in scope for you, B4 is BROKEN for them |
B2-literal and B4-literal, the per-sample readings with no debounce, are BROKEN (15 and 6
violations, all in the 3 runs with several stretches): the record merges stretches closer than 0.5 s
into one episode (one enter, one exit, min_clearance of the merged episode). That is the evaluator's
debounce, not an error, and is reported as such; a reader who expects one event per entry and exit
gets fewer than the duck made (ch31-s304: 3 true stretches, 1 enter, 1 exit).
B1 details¶
- A touch list exists only in 8 runs:
ab-regress-6/rep2/base/ch25-s2,ab-regress-6/rep2/cur/ch24-s4,ab-regress-ch28s7/rep1/cur/ch28-s7,baseline-a/rep1/v1/ch3-s2,baseline-a/rep1/v2/ch24-s3,baseline-a/rep2/v2/ch24-s4,diag-refuse/rep2/diag/ch24-s7,minilab-contact/rep1/control/ch24-s3. Clean:ab-regress-ch28s7/.../ch28-s7,minilab-contact/.../ch24-s3. - Per-touch events are not in any record. 0 of 705 records have a
contactevent; the only trace of a touch is the evaluated text, which names the first and the deepest touch. A third touching part is not recorded:ab-regress-6/rep2/cur/ch24-s4(upper_leg_left into door_n, not named),diag-refuse/rep2/diag/ch24-s7(ankle_left, not named),baseline-a/rep1/v2/ch24-s3(ankle_left),baseline-a/rep1/v1/ch3-s2(jaw_soft),ab-regress-6/rep2/base/ch25-s2(ankle_left). Whether naming two is the intent I did not decide; as stated ("every touch recorded") it is BROKEN. - The evaluator's window is shorter than the saved log.
result.json truth_samplesis smaller than the rows oftruth.jsonlin 245 of 705 runs (6 by one sample, the rest by 12 to 111). Inbaseline-a/rep1/v1/ch3-s2the record says 74 samples with a touch; the log has 105, 31 of them after the window.baseline-a/rep1/v2/ch24-s3: 81 against 112. A touch in the last 0.6 to 5 s of a log is not evaluated (the window ends 12 to 111 samples early in those runs). No pass:true run has a touch in its tail (A2 reads the whole log), but the evaluator would not see one. Resolved: those rows are after the verdict, logged by code before 207dbe9 (see B3). - First touch differs in 3 runs, unresolved:
ab-regress-6/rep2/base/ch25-s2: record 41.726 s yaw2roll 1.0 mm; the simulator's list has yaw2roll at 41.475 s (0.27 mm) first.baseline-a/rep1/v1/ch3-s2: record 42.686 s ankle_left 1.8 mm; list 42.435 s jaw_soft 0.88 mm.baseline-a/rep2/v2/ch24-s4: record 46.321 s 1.4 mm; list 46.070 s 0.15 mm. Each time the record starts 0.25 s (5 samples) after the first sub-millimetre touch, as if a shallow first touch were skipped; inch25-s2the record's sample count (4) still includes it. All three arebaseorv1/v2runs of 2026-12-02; I did not find the cause and did not read the evaluator for it beyond its docstrings. Resolution (2026-12-03): the checker's clock, and two runner bugs fixed on 2026-12-02 (29549f8, 3f53bd4). All three gaps are 0.251 s exactly, a constant, not a skipped touch. The three runs' truth rows have not, socommon.pycounts their clock from the first logged row; before 29549f8 that row came about 0.25 s after the sampler's t=0 (the watcher was attached after the source, the evaluator and the navigator were built), so the list's times here are 0.25 s early against the evaluator's. The part named (ankle_leftagainstjaw_softin ch3-s2) is 3f53bd4's bug: the text named the deepest touch's part and depth beside the first touch's time. Runs witht(from 2026-12-02 20:27) have neither; B1's times on runs withouttare not comparable to 0.25 s. - MuJoCo evidence (re-posing the saved poses and joint angles into each run's
scene.xml, which has no backlash and no jaw loop): of the 30 simulator-listed touch samples of 1 mm or more, 26 are also found by MuJoCo within one sample. MuJoCo finds no penetration of 1 mm or more that the simulator's list lacks (in that sample or the one either side), in any of 389 runs. 194 smaller ones (mostly 0.1 to 0.5 mm, within the pose's own error) are not counted.
B2: the time axes, and ch31-s304 rep1¶
Run baseline-floor-loaded/rep1/ch31-s304/run-20261203-173354. Three clocks:
| Axis | Zero | Example |
|---|---|---|
truth t (truth.jsonl t, also proximity.t and the event's truth_t) |
the first truth sample, +0.001 | the first sample inside 0.13 m: 41.161 |
record t (the .mcap record times) |
the run's started_at_ns; t = (wall_ns minus that)/1e9 |
the same sample: 41.254 |
| sim_time | the simulator's clock; sim minus truth t is 7.07 to 7.09 s (settling before the log starts) | the same sample: 48.24 |
The first truth sample is 0.093 s after the record started (constant to 1 ms over 1002 samples), so record t = truth t + 0.0932 to 0.0936. The enter event is at record t 41.249; the sample it describes is at record t 41.254: 5 ms apart, inside one 50 ms sample.
So result.json's proximity.t 41.161 (truth axis) and the record's enter at 41.25 (record axis) are
the same crossing. Neither is wrong; the 0.088 s difference is the axis offset. Both name hidden,
clearance 0.128 / 0.1279. The enter is right on both axes.
The exit is a different matter. The event says truth_t 42.411 (correct: the first sample outside
the last stretch of the merged episode, record t 42.504) but the event itself is stamped at record t
42.833, +0.329 s after that sample. The other two runs show +0.403 and +0.421 s. So the exit event
is late on the record axis and correct on the truth axis; a reader who places the exit on the map by
record time puts it 0.33 to 0.42 s (about 7 to 8 samples) late. That is BROKEN for "at the right
times"; I did not find why.
Resolution (2026-12-03): the runner says an exit once the trunk has been outside for 0.5 s
(ONSET_GAP_S), and the run file is append-only in time order, so the record lands at the copy's
time, after the sample it names (CONTRACT.md already said so). The page drew it at that record time.
Now the runner writes values.t, the run time of truth_t, and the problems lane, the ring and the
pins use it (and a contact's t, which it already had); test_proximity_events and
test_problems_pages fail with either half undone. Runs written before this have no values.t and
still draw late.
B3: why 10 runs miss¶
The 10 runs all have their closest approach in the last 13 to 43 samples of truth.jsonl, after the
evaluator's truth_samples window. min_clearance_m equals my minimum over exactly that window
(largest difference 0.54 mm over 389 runs). Example:
ab-regress-6/rep1/base/ch25-s2/run-20261202-224600: result 0.097, true minimum over the whole log
0.0895 at index 789 of 817, truth_samples 788. baseline-a/rep3/v2/ch26-s2: 0.178 against 0.1636,
index 919 of 936, window 917. The figures are therefore consistent with what the evaluator was given,
and 4 to 14 mm optimistic about what the duck did (largest gaps 14.4 mm and 10.5 mm). In 6 of the 10
the run ends in "no room to turn", so the missing samples are the final approach to the obstacle
that stopped it.
Resolution (2026-12-03, checked after this audit): not an evaluator bug. The evaluator counts every
sample the truth log gets up to the verdict (challenge.py: one callback writes the row and calls
Evaluator.check). The extra rows were logged after the verdict, while the contact checker ran
(about 1 s), by runner code before commit 207dbe9 (2026-12-02 19:59), which stops the sampler before
the checker. Evidence: the runs with extra rows are all 211 of baseline-a, all 22 A/B base runs,
and 11 runs dated before 207dbe9; every cur run and every run dated 2026-12-03 (101) matches
(truth_samples = rows). The base arm ran the older code: its rows lack the t field added by
f1653da in the same push. What the extra rows show is the duck after the verdict: over 245 runs it
moved a median 19 mm, at most 33 mm, in the 0.05 to 5.6 s logged, and in 30 runs it was still moving
(over 2 mm in the last 0.3 s) when the log ended. Today's runs log nothing after the verdict, so
such a drift is not evaluated. Whether the evaluator should watch the duck settle is an open
question for the operator, not a fix.
A3 and A5: one real case each¶
Added 2026-12-03, after the 705 had none. Both are lab-challenge 1 --seed 4 (ch1-s4), the
scratch installation, under sim-lock, with scripts/stabilize/fault.py attached to the same
simulator:
- A3, a fall.
fault.py fall: once the duck had walked 0.3 m, the body server'storqueop off, a motor power loss; the duck went limp, its trunk from 0.118 m to 0.037 m in about 1 s. The verdict:pass: false, "fall at 21.303 s: trunk 0.058 m above its floor, below 0.06 m", and the goalstopped_by_guardrail. By the truth alone, the first sample under 0.06 m is t 21.303 (z 0.0581; the one before, 21.253, is 0.0657): the same sample./work/microduck-nav-runs/r6/item7-fall/ch1-s4/run-20261203-222727. - A5, a slow clock.
fault.py slow: once the duck had walked 0.2 m, the body server paused with SIGSTOP for 0.3 s every 2 s (17 pauses; its loop drops a stall over 0.25 s instead of catching up). The verdict:pass: null,no_verdict"rtf_low: 0.92 under 0.95", though the duck reached (error 0.124 m). By the truth alone: 41.86 simulated s over 45.503 wall s between its first and last rows, 0.920./work/microduck-nav-runs/r6/item7-slow/ch1-s4/run-20261203-222821.
Planted errors: each check can fail¶
plant.py copies selected real runs to a temp dir, runs the checks (the control, which must not be
BROKEN, or must not gain new findings if it already had one), plants one error, runs again, and
requires the targeted statement to report a new BROKEN. Real data is never written. Result of the
final full run: 34 of 34 planted errors caught, MISSED 0, EXIT=0.
| Check | Planted error | Caught |
|---|---|---|
| A1 | pass:true on a real stall (1.54 m from goal); goal moved 1 m; a touch listed in a pass; trunk z 0.03 m in a pass; run clock stretched x2 (104 s against 90 s) | all 5 |
| A1b | error_m +0.30 | yes |
| A2 | touch run flipped to pass; touch run's failed names no contact |
both |
| A3 | trunk z 0.03 m in a pass (also catches under A1) | yes |
| A4 | stall claimed at a moment the duck was closing (1.0 m gain); timeout run cut to 30 s; "said reached" 0.35 m against 0.27 m; "stuck" claimed 20 s earlier while the duck moved 0.405 m | all 4 |
| A5 | sim clock 0.8 with pass still true; result rtf 0.8 against a truth clock of 1.0 | both |
| A6 | scene.json box moved 5 cm; scene.xml box moved 5 cm; scene.xml box turned 0.5 deg; a scene.json box deleted | all 4 |
| B1 | touch text replaced by "evaluated FAIL"; obstacle door_n to door_s; touch time +1 s; invented touch in a no-touch run; simulator list emptied; simulator list and text emptied (only MuJoCo sees it) | all 6 |
| B2r | proximity.t +1 s; proximity_samples +5 | both |
| B2 | enter truth_t +1 s; enter obstacle swapped; the box hidden moved 5 cm |
all 3 |
| B2-clock | exit event 1 s late; enter event 1 s early (the control already has the real +0.33 s finding, so the check counts the new violation) | both |
| B3 | min_clearance_m +0.02 | yes |
| B4 | both alert events deleted; exit event only deleted | both |
Two plants needed adjusting before they were valid mutations, not the checkers: an A4 "stuck" shift of 24 s landed on a moment the duck was nearly still (0.089 m in 3 s against a 0.10 m tolerance), and an A1b +5 cm sat inside the duck's own drift (spanning 25 cm).
Leftovers, 2026-12-04¶
What was left open above, taken up after C (STABILIZE-C.md).
- A4, the 3 stalls: resolved, the verdict is the navigator's rule on its own numbers. The rule:
the planned path left must get 0.10 m shorter than its best within 15 s (
Progressinrobots/duck/src/duck_lab/nav/run.py). The stall rows say path left 3.00 against a best of 2.89 (ab-regress-6/rep3/base/ch24-s5), 1.51 against 1.52 (ab-regress-6/rep3/cur/ch24-s7), 4.91 against 2.93 (baseline-a/rep3/v2/ch25-s8, a detour): none got 0.10 m under its best. My measure is the true room's shortest way, not the plan, which is why they differed. The verdict now says so itself: "stalled: 15 s without getting closer, by its own map" (a run of 2026-12-04). - B2r on the 239 runs with no
alert_m: HOLDS. With the footprint radius (0.083 m) and only the evaluator's own window (the firsttruth_samplesrows, see B3), the sample count, the obstacle and the distance match in all 239. The first-entry time differs in 6, each by exactly +0.251 s: the derived clock of atruth.jsonlwithoutt(see B1).check_b2r_old.py. - The time allowed per challenge: HOLDS.
common.TIME_ALLOWEDagainstdraw(c, seed).time_sfor the 14 challenges run, seeds 1 to 10 and 301 to 308: all equal. No commit tochallenges.pysince 2026-11-26 changed a time (the runs start 2026-12-01).check_time_table.py, with the duck's venv. - Refused runs, against the room (56 of the 135 have a
scene.xml;check_refused.py): - "no room to turn (X m to an obstacle)", 32 runs: X is the map's distance from the believed
pose. X less the true distance from the true trunk centre: median -0.032 m, range -0.445 to
+0.051 m. The map gives less room than there is in most; one gives 5.1 cm more
(
ab-regress-6/rep1/base/ch25-s2: 0.149 against 0.098 m). 3 had the true centre under the footprint radius from a box at the refusal; 2 of them are B1's touch runs. - "no path on the map", 24 runs: in 23 the true room had a way from the true pose to the goal for a disc of 0.083, 0.10 and 0.12 m radius; in 1 only at 0.083 m. The words are true (the map had none); the map was wrong about the room. A finding about the navigator, not the verdict.
- Why the map had no path (2026-12-04; a diagnosis, nothing changed). 45 "no path on the map"
runs logged a map before the refusal (
nopath_replan.py, the navigator's ownCostGridandplan()on the last logged map and the refused row's depth memory): - 16 reproduce the refusal; 29 cannot be replayed. For those 29 the last
worldrow is 0.1 to 8 s older than the refusal, and the planner had a newer map from mapd that the record does not hold. Rebuilt from the older map, all 29 have a way. - In all 16, the wall cells and the depth memory together close the way. Without the wall cells there is a way, and without the memory there is one too. The narrow fix's 0.10 m ring also opens all 16.
- The two place the same faces apart. mapd's grid is scaled by
odom_scale0.911 (calibration/sim.json, the table's value at 0.3 m/s); the memory is the depth sensor's points from the believed pose. In 589 runs' last maps, the share of memory points with a wall cell under them is 0.25 (median) as the navigator had it, and 0.37, 0.40, 0.41 with the grid stretched ×1.02, ×1.04, ×1.06 about the map's origin (map_agree.py). Against the room (375 runs with ascene.xml,map_scale.py), the wall cells fit the real faces best with the grid stretched by a median ×1.04 (quartiles 1.025 and 1.055; 312 runs at ×1.02 or more, 1 at ×0.98 or less); the median distance of a wall cell from the nearest real face drops from 3.2 cm to 1.6 cm (mean over runs). So mapd's metres are about 4 % shorter than the room after the 0.911 correction, and the grid's walls sit short of where the memory puts them. Where they differ by more than half a cell,from_map_gridkeeps both, and the obstacle comes out thicker. - Stretching the grid opens the refusals. Re-planned with the grid ×1.02, 9 of the 16 find a way; ×1.04, 13; ×1.06, 16.
- Against the room (5 of the 16 have a
scene.xml, all ch28, doors 0.43 to 0.45 m): of the wall cells within the ring of the true way, 21 of 29 are more than 5 cm from any real face, all on the near side of the hidden box or a door post (toward the start). The believed pose was 0.7 to 6.1 cm from the true one at the refusal. - Not covered. 29 of 45 refusals cannot be replayed from the record. The truth comparison is
on 5 runs, one challenge. Stretching is about the map frame's origin, taken as the first stop
(
belief_from_mapdwas zero in all 45). Why mapd's metres are 4 % short after 0.911 was not looked at: mapd's own scan matching, or the speed dependence of the odometry (0.849 at 0.2 m/s, 0.930 at 0.4 m/s). No reproduced refusal had a door truly too narrow, so it is not shown that a stretched grid keeps such a door closed. The "no room to turn" refusals are separate (above). - Where the map's metres go wrong: the joints' play (2026-12-04, measured; nothing in the navigator changed). The operator asked whether a second scale (×1.04) would treat a symptom. It would. Traced (the proposal: RFC-0035):
- robotd's odometry over-reads, and nothing after it corrects the scale. In 504 runs
(
scripts/stabilize/odom_vs_mapd.py), truth over robotd's raw odometry (odom_raw) is 0.881 (quartiles 0.875 and 0.888). The belief at stops is that odometry ×0.910 (median; range 0.873 to 0.926), so mapd's fixes leave the odometry's scale as it is. The belief reads about 3 % long while the grid reads about 4 % short. The likely reason, not measured directly: mapd puts true-metre depth readings at odometry-metre poses, and the 0.911 shrinks both. If that is right, no single scale applied after mapd can be right. -
The cause is the play between each servo and its link. The simulator's walking scene gives each joint a passive backlash hinge of ±1° after the servo (
add_backlash.pyin microduck_rl). The body server reports the servo's side only, as a real servo's encoder does. robotd's contact odometry (odometrycrate) takes the leg's shape from those angles. The body server's probe op (patches/body-server-touches.patch, v3) reads the backlash angles too. Four straight walks on the openbacklashscene (robots/duck/sim/probes/odom_play_slip.py,odom_play_slip_report.py,odom_replay/), with robotd's own odometry code replayed on the logged angles, give truth over each:vx m/s robotd live replay, servo angles replay, servo + play mapd's pose 0.2 0.845, 0.853 0.845, 0.853 0.985, 0.986 0.845, 0.861 0.3 0.906, 0.902 0.906, 0.902 1.003, 1.000 0.922, 0.902 The servo replay equals robotd's live odometry, so the replay is robotd's code. With the play added, the error drops from 10 to 15 % to 1.5 % or less, which bounds foot slip and everything else; it is not measured on its own (a contact point moves as the foot rolls, so its travel is not slip). The play sits within 10 % of its limit in 62 to 66 % of the leg-joint samples while walking. mapd's pose keeps the odometry's error. - Not covered. One scene, four walks, straight only (no turns). A real duck's play is not measured; the MJCF's 2° peak to peak is Pollen's figure. The probe needs the v3 patch on the host (
scripts/host-setupapplies it). - K52, contact events against a real touch: one real touch now, partly checked. The touch made for the Observatory (item6-touch/ch31-s304-probe-4d212a/run-20261204-172459, jaw_soft into hidden, 0.08 mm at most):verify_touch.pyFAILs only on the enter, which the record lacks because the touch began 0.235 s before the first truth sample (the sample'sfirst_t6.805 s againstsim_time7.04 s). The exit holds:truth_t9.911 s is the last touching row,t10.0 =truth_t+ the run's 0.089 s offset, the deepest 0.08 mm is the log's. The evaluator's first touch at -0.234 s on the sampler's clock is that same start: -0.234 + 0.089 = -0.145 s, where the page draws it. Whatverify_touch.pylists as 2 evaluated touches is the first touch and the deepest point of the one touch. Still not seen: a touch that begins and ends during a run. Fixed 2026-12-04: the runner dropped what it said before the payload opened its run (labrunner/remote.py); it now holds it and writes it once the run is open and the clocks' offset is known. The same touch again (touch-early/ch31-s304-probe-4d212a/run-20261204-220915): the enter is recorded,truth_t-0.215 s,t-0.077 s, andverify_touch.pyPASSES, now timing each touch by its own start and end (first_t,last_t) rather than by its sample, to 2 ms. - Decided by the operator, 2026-12-04: - B4 covers only records written since alert events exist; the 26 older records are out of scope. Theirresult.jsonfigures hold (B2r above). What stays: the page must not let an older run's empty alert lane read as "never close"; D checks that. - The evaluator keeps judging at the stop and does not watch the duck settle. The evidence: of the 245 runs that logged after their verdict (code before 207dbe9), none of the 189 passes ended outsidereached_m, touched or fell afterwards; the distance to the goal changed by a median of -12.8 mm (toward it), at most +1.4 mm. Runs of 2026-12-01 and 12-02 only.
The three new scripts have no planted errors.
Not covered¶
What the checks do not cover is as large as what they do.
- The simulator's own contact detection. B1 compares the record to the simulator's list and to
MuJoCo re-posed from the saved poses. If the simulator misses a touch and MuJoCo re-posing also
does (it posed the saved robot with no backlash and no jaw), nothing sees it. The re-pose cannot
pose the jaw (
mouthhas no joint; the jaw is a closed loop), so jaw touches are the simulator's word only. 4 of the 30 simulator touches of 1 mm or more are not confirmed by MuJoCo (pose approximation, not a finding). - Only 8 runs have a touch at all, 142 pass:true runs of 2026-12-01 have no simulator touch list
(their "contact" was a clearance proxy: trunk centre under 0.083 m of an obstacle, e.g.
minilab-imp/clean/ch25-s4: "0.082 m from dense2, under the footprint 0.083 m"; 14 pass:false runs are of this kind). A2 and B1 therefore rest on 8 runs; A2 says nothing about the 142. - Contact events in the current record format. No record has one, so the current format's
contact events are not checked; CAN'T TELL. Left open by the operator (2026-12-03) after 5 runs
made to touch did not:
lab-challenge 24seeds 3 to 5 with--clearance 0.085(refused, and two reached at 0.113 and 0.143 m), and seeds 4 and 5 with the doorway at--gap-m 0.22under the legs' 0.235 m span (both stalled before the door); 0.20 m builds no scene. None has a touch intruth.jsonl. The path is covered by the runner's tests with simulated touches only (test_contact,test_run_records);scripts/stabilize/verify_touch.pyis ready for a run that touches. - A3 and A5 rest on one made case each ("A3 and A5"): one way of falling (limp, mid-walk, on a flat floor) and one way of running slow (stalls of 0.3 s). Not a fall off a drop, a tip-over while walking, a fall at the goal, or a clock slow from load; not a run slow for only part of it.
- Refused runs (126, plus 1 stopped by guardrail): the reason "no room to turn" and others are not checked against any geometry. A4 covers stalled, stuck, timeout and "said reached" only.
- A4 stalls use my path measure, not the navigator's belief. 3 stalls disagree with it; the
navigator's own 15 s / 0.1 m rule runs on its map, which I did not reproduce. 68 stalled runs
without
scene.xmlwere checked on the straight line only (they cannot show a path gain beyond it, but a straight-line gain over 0.1 m is a flag that I only listed). 2 stalls sit inside my 5 cm grid tolerance (path gains 0.112 and 0.138 m:baseline-a/rep2/v2/ch28-s1,ch28-s8) and are not counted. - A1 time allowed rests on a hand-copied table (and on the timeout's own
why); I did not check that the table matches the code at each run's date, andprobe5/ch25-s6has its own limit. A1 uses the last truth sample for the goal distance (stricter than error_m, which is at the stop). - Heights. Obstacles are floor-plane boxes; the overhead rule drops a box whose underside is at or over 0.30 m. A box between the trunk height and 0.30 m is treated as solid. Seats were the only case seen. Nothing checks 3-D clearance of the head or arms.
- Dynamics between the 20 Hz samples. A touch or a crossing shorter than 50 ms can fall between samples; the simulator's list reports touches since the previous sample, my crossings do not.
- B2 and B4 coverage is thin: 3 runs have alert events, of 29 current-format runs. The 26 older
records with true stretches and no events are reported, not evaluated; 239 runs with no
alert_mskipped from B2r (they used the footprint radius with different timing; an earlier pass of the check against 0.083 m flagged 15 of them, e.g.ab-regress-6/rep2/base/ch25-s2: 220 samples against 263 inside 0.083 m, proximity.t 38.001 against 37.75; I did not establish their rule). - The 316 older runs without
scene.xmlare skipped by A6, B1 (MuJoCo part), B2, B3, B4; A1, A2, A3, A5 run on their truth where the fields exist (A5: 317 have nosim_time). - Whether the saved
scene.xmlis the file the simulator loaded. A6 compares scene.json to scene.xml, and B1 to B4 take scene.xml as the room. If the file saved differs from the one loaded, nothing here notices. - B1 first-touch mismatch in 3 runs (and the exit event's 0.33 s lag) are found and not explained. The 3 first-touch runs are older evaluator versions; I did not read the evaluator to find the cause.
- Some baseline repetitions are incomplete (rep2 was still being written when I started); the counts are over the 705 run folders that existed.
- Time axes. The record t, truth t and sim_time relations were measured on
ch31-s304and the 29 current-format runs (offset 0.093 s, constant); older runs (notintruth.jsonl) derive truth t from the wall clock, so their times are on my derived axis. - I did not read the evaluator's code except
contact.py's docstrings andtouch_said/from_touchesonce, when a B1 number needed explaining; no answer in the table came from it.