Skip to content

ADR-0028 — The learning lifecycle: the method moves between robots, a model is its checksums, the operator promotes

Status: Accepted by the operator: learning in the lab on 2026-11-26 (RFC-0031, all eight questions as recommended), the local-control layer and model identity on 2026-11-26 (RFC-0025 §3.7, revision R3), the declaration and the method on 2026-11-30 (RFC-0025 §3.12, revision L1, advisor's second review pending). Written as an ADR on 2026-11-30. Date: 2026-11-30 Scope: architecture: how a learned plugin is made, evaluated, identified and adopted.

Context

The duck's first learned local controllers were trained on a GPU box in the public microduck-nav, evaluated in the lab against the rules, and checkpoints that looked good in training did worse in the lab. A model is trained on one body and one sensor. The DGX is the homelab's, shared with production.

Decision

  1. What moves between robots is the method, not the model. For a learned local controller: train in simulation on the robot's own body and sensor, test it in its training scenes with the recipe-bar harness, evaluator it in the lab against the rules with the evaluation harness, then plug it into the layer (ADR-0023).
  2. A model is its files and checksums. It is named by the SHA-256 of its exported files, never "the newest run" and never a raw checkpoint; loading refuses a mismatch; the first eight characters are part of the run's build identity (learned@<sha8>).
  3. A learned plugin declares its robot and layer; a mismatch is refused. A model without the declaration loads when its sidecar supplies it.
  4. A learned controller never has the last word. The rules sit behind it and the navigator's guards after it; a failing model brakes and the failure is an anomaly.
  5. Promotion is the operator's, as a Mission Control record by a named identity, by a pre-registered rule on frozen scenario sets (beat the rules on the harder set, no regression and no collision on the safety set). An agent may propose a promotion, never make one.
  6. Simulator only until a safety review. A real profile naming a learned controller is refused at save, until the real-robot safety review and the operator lift it.
  7. Learning extends the two surfaces (ADR-0025): a request ledger and promotion in Mission Control, artefacts imported as files and a Learning view in the Observatory. No third app, no adopted model registry.
  8. Nothing in the platform touches the DGX. The homelab runs the swaps; the platform sends a commit, a task, arguments and a window that ends before the nightly, and waits.

Consequences

  • Rules against learned on the duck is a comparison of two systems that differ in one layer.
  • A model record carries its body (robot kind, walker, observation layout, policy step, lateral limit), so a promotion to a robot whose body disagrees is refused before a goal start.
  • The same approval shape extends to any artefact a robot runs (RFC-0032 §3.5).

Alternatives considered

  • A third app (a Lab Bench), MLflow or a registry: deferred or rejected; a second copy of a model's record "disagrees with the first the day someone forgets to update it" (RFC-0031 §5).
  • Training as a goal kind, or in the goal-run table: rejected; Mission Control can neither start, stop nor observe the trainer.
  • Automatic promotion by metric: rejected; it "hands a robot's limits to a metric".
  • Moving a trained model to another robot: rejected by decision 1.

Built

Partly: model checksums and learned@<sha8>, the braking, the recipe-bar harness (microduck-nav), the evaluation harness (robotics-evals), the challenge refusal of a real learned controller. Built with RFC-0033 gap 2 (2026-12-02): the robot-and-layer check (a model declares both, in its metadata or a duck-model declare sidecar); the profile naming the one model a run may load (models.local_controller.sha256), loading refusing any other file; and the refusal of a learned controller in a real profile, which validate_profile makes and a store save runs (test_model_check.py tests validate_profile, not the save itself). Not built: the failure as an anomaly (anomaly.py has no kind for it), libs/learning, the request ledger, the promotion record, the Learning view.

The duck's first application of this method, its steps and its gates (those in force and G1 to G6 to build) are in the learning arc's plan (2026-12-01).

Inventory

RFC-0031-1 to -13; RFC-0025-11, -12, -13, -40; RFC-0032-6, -7, -9 (the inventory).