Stabilize: what "good" means, checked from outside the code¶
The operator, 2026-12-03: new Observatory stages are paused until the software that exists is shown to work. The stage 2 replay drew the duck outside its own proximity alert ring and every test passed, because the tests checked that the code did what the code said, not that the picture made sense. This note lists what "good" means for the parts the duck work depends on, and how each is checked without reusing the code under test.
How a statement is checked¶
- Independent: recomputed from the simulator's raw records and the room's layout with code written for the check, or read off the rendered page (where things are on screen), never by calling the function that produced the result.
- On real runs: the runs recorded on 2026-12-03 (172 under
/work/microduck-nav-runs/r6/scratch/data), not made-up test runs. A made-up run is used only where no real run has the case (no real run has a touch yet), and the report says so. - Result per statement: holds, broken, or can't tell, with the evidence. A broken one is fixed with a check that fails before the fix.
A. A run's verdict¶
| # | Good means | Checked by |
|---|---|---|
| A1 | PASS means the duck really reached the goal, touched nothing, did not fall, in the time allowed | the real path against the goal and the room; the simulator's touch list; the real trunk height |
| A2 | Any touch the simulator saw makes the run not PASS | every run with a touch in the simulator's list |
| A3 | A fall makes the run not PASS | the real trunk height over the run |
| A4 | The reason given for a failure is what happened (stalled: really no progress toward the goal for that long; timeout: really out of time) | the real distance to the goal over time |
| A5 | A run with a slow simulator clock (under 0.95 of real time) has no verdict | the run's clock figures |
| A6 | The room recorded with a run is the room the simulator ran | the scene file against the simulator's own layout for that run |
B. Touches and proximity alerts¶
| # | Good means | Checked by |
|---|---|---|
| B1 | Every touch the simulator saw is in the record, at the right time, body part and obstacle | the simulator's contact list against the record |
| B2 | An alert starts when the duck's real centre comes within the alert distance of an obstacle edge, and ends when it leaves | own distance from the real path to the room's boxes (one run checked: agrees within 0.3 mm) |
| B3 | The closest distance a run reports is the real closest distance over the run | same |
| B4 | No alert is missing: every stretch inside the alert distance has one | same, over all ticks |
C. The run record¶
| # | Good means | Checked by |
|---|---|---|
| C1 | The real path in the record is the simulator's real path, at the right times | the record against the simulator's own truth log |
| C2 | The believed path is what the navigator believed at that time | the record against the navigator's own log |
| C3 | Every event sits at the right moment of the path (a touch's position is where the real path was at its time) | the event's position against the real path at its time |
D. The replay page (what a person sees)¶
| # | Good means | Checked by |
|---|---|---|
| D1 | The solid duck is where the duck really was; the see-through duck is where it thought it was | the body's position on the page against the real and believed path |
| D2 | The alert ring is around the solid duck whenever an alert is on, and nowhere otherwise | the ring's centre against the solid duck, at every alert moment |
| D3 | A red X is where a touch happened, from the moment it happened | the X against the touch's position and time |
| D4 | Nothing is drawn that is not known (no made-up positions where the record has none), and nothing known is hidden by an absence: a run recorded before alert events says it has none rather than showing an empty alert lane (operator, 2026-12-04) | runs with gaps in the real path; the 26 older records with true stretches inside the alert distance |
| D5 | The numbers in the side panel describe what is drawn at that moment | panel values against the drawn positions |
| D6 | One colour and one shape mean one thing everywhere: real is green and solid, believed is blue and see-through, problems are red and orange with a key | every drawn layer and its legend |
| D7 | The room drawn is the room the run used, and the duck does not walk through a wall in the picture unless it did in the simulator | the drawn boxes against the scene, the path against the boxes |
| D8 | The timeline's bars start and end at the events' times | bar edges against event times |
E. Summaries¶
| # | Good means | Checked by |
|---|---|---|
| E1 | Every count in a summary (passes, touches, alerts, closest distances) equals the count taken from the runs themselves | own count over the runs |
Not covered in this round¶
Mission Control, the NXT robot and its page, the real duck on hardware, training on the DGX, the deploy, and live (still-recording) runs on the replay page. They get the same treatment after this round.
Order¶
A and B first: the 72-run baseline and its assessment depend on them. Then C, then D, then E.
The operator, 2026-12-04: the Observatory roadmap's stages 3 to 7 come first, then C, D and E (OBSERVATORY-ROADMAP.md); stage 3, the clearance lane, is the first, as scheduled. A and B's results: STABILIZE-AB.md; C's: STABILIZE-C.md.
The operator, 2026-12-04 (later): after C, D and E, and only once everything planned before them is
done, two reviews, each on its own: first how the data model and the application layer fit together;
then how the Observatory does its 3D scenes. What stage 4's tests showed for the second: a page
rebuilds the whole run (adapter.setRun) for any change that touches it (a live run on each anomaly
or contact event), and buildRunObjects removes the old groups without disposing them. A test hung
in 5 of 6 runs of test_look_3d_pages after such a rebuild; the cause was a test hook
(truthTrackMade counted up to a new track's draw count, three.js's Infinity until the next draw),
not the scene, and it is fixed; a rebuilt run's objects also showed every layer until that draw (now
they take the switches at once). Stage 4 draws its pins without a rebuild.