Theme
Tier 6 · lesson 8 of 9 · 35 min

Serving, and noticing the question changed

You will: Serve whichever model is promoted, compare it live with the physics, and detect drift.

Builds on Shipping a model like software.

Serving knows nothing about which model it runs. It loads whatever the registry points at, so swapping models is a promotion and a restart — never an edit. What changes between a good deployment and a bad one is data in a directory, not code nobody reviewed.

It refuses to start when nothing is promoted, rather than picking a file — picking one is exactly the untracked deployment the registry exists to prevent. It refuses on a feature-contract mismatch, too, turning a subtle wrongness into a loud failure before anything moves.

It publishes what the physics would have said. The model's estimate goes out on one topic; the closed-form estimate goes out on another, costing one multiplication. On a robot there is no ground truth, so a model drifting away from the physics is otherwise invisible until something misses. Live, on this project's first robot, the two differed by 28 mm — and the model was the one closer to the truth. That gap is the correction it learned, visible at runtime. (Those figures are from this project's first robot; the SO-101's come with its model.)

A model has no way to say I have never seen anything like this. It returns a number for anything, with the same confidence. So a monitor compares live features with the training distribution recorded in the artefact, and names the feature that is out of range: "something is unusual" sends someone looking; "1/w is nine sigma out" says the target is a size the model never saw. It cannot say the answer is wrong. Only that the question changed — which is when a wrong answer becomes likely.

It is deliberately simple, and deliberately does not act. An untuned detector that fires constantly gets switched off, taking the real alarms with it. And a robot that rolls back its own model without a human can oscillate between two models in a loop.

Planned: the steps on the SO-101 are not written yet. Waits on the SO-101's model.

In the simulation

Drift is a question the training data never asked. Record a demonstration near the cube, read its range, then take the arm where it never went. The tf view is the physics' answer, the shadow baseline; the served model and its monitor are planned.

Kinematic: joints move at their real speed limit, but there is no gravity, no load and no physics.

The SO-101 loads as you reach it.

In this lesson

  1. Press Record, drive the tool to the cube on the left, and press Record again to stop.
  2. Open Inspect, then dataset, and read the range shoulder_pan covered in the rows.
  3. Swing shoulder_pan above +1.0 rad, far outside that range. A monitor would name this joint as out of range.

Terms

Shadow baseline
Publishing a simple reference answer alongside the model's, so their divergence is visible where there is no ground truth.
Data drift
Live inputs moving away from what the model was trained on. Makes a wrong answer likely, without saying the answer is wrong.