Skip to content

Review of RFC-0031 (learning in the lab), 2026-11-26

The operator asked for a review of the draft RFC-0031 by the advisor (Fable 5.1). Read-only, in the mission-control worktree at 224e7d5, plus /work/robotics-evals, /work/microduck-nav, /work/microduck-nav-runs and the homelab recipe. Each finding is VERIFIED (the code path was read) or SUSPECTED. Nothing was run.

Verdict: accept option A, with changes to the data path, the promotion rule and the first slice

  • Option A is right for the reasons the RFC gives, and B and C are rightly deferred or rejected. The mapping "training is a run on a resource" holds for the record (a request, states, artefacts, a verdict) and breaks for control (Mission Control can neither start, stop nor observe the trainer). The RFC should say it once and name the first version what it is: a request ledger plus an artefact import, not an adapter.
  • One critical gap: the read-only slice has no data path. The registry is placed in Mission Control's store (Q2 A), the views in the Observatory, and nothing connects them.
  • "Promotion is operator only" is not enforceable as written: the profile store records no author, identity is self-declared with tokens off, and the MCP allow-list carries PUT /robots/{id}/profile/current.
  • The promotion rule "beats the rules on success" cannot fire on avoidance_v1: the rules arm scored success 1.0 there today.
  • "Sim only until R8" holds at plugin load and in lab-challenge, not in the profile save, which is where the RFC places promotion.

Findings

# Severity Finding Fix
C1 CRITICAL, VERIFIED No data path for the read-only slice. The Observatory's shell never calls Mission Control (the proxy forwards only, apps/observatory/src/observatory/server.py:28-29, :464-472); Mission Control's compose mounts /config/robots (ro) and /state only (apps/mission-control/compose.yml:22-29) and FORBIDDEN_MODULES bars it from the data folder (scripts/check_boundaries.py:74-76); no container mounts /work/robotics-evals or /work/microduck-nav-runs Mirror goal runs: Mission Control holds the operational rows (request, approval, promotion); the Observatory imports and serves the artefacts as files (a training/ folder beside runs: request.json, params/, ONNX files and SHA-256, headline curves extracted to JSON at import, the .pt by a retention rule). The eval result enters as an imported summary file (the evh comparison-show output with evh run ids and the robotics-evals commit). The model record is a derived document assembled by pure functions in libs/learning; drop "store" from Q2 A
M1 MAJOR, VERIFIED Promotion identity has no source: profilestore.Store.save records no identity (libs/runfile/src/runfile/profilestore.py:87-100); Ctx.client() takes the caller's word without a token (api.py:76-82), require_tokens defaults to False (api.py:661); the MCP allow-list carries ("PUT", "/robots/{id}/profile/current") (mcp_server.py:57, tool use_profile_version :185-189, guarded by sim_robot only) Promotion is a Mission Control record (model sha256, robot, profile version, token identity, the comparison shown), only from a token identity the operator names, as RFC-0030 4.5 does for approvals; tokens on. Decide the MCP case: refuse a version switch whose plugins.local_controller differs, or record it as a switch, not a promotion
M2 MAJOR, VERIFIED The promotion rule is unsatisfiable on the only frozen set: rules scored success 1.0, collisions 0.0 on avoidance_v1 Pre-register before the first learned arm: a harder set (avoidance_v2) on which the rules fail, or non-inferiority with a margin plus a pre-registered secondary
M3 MAJOR, VERIFIED The sim-only refusal is at plugin construction (robots/duck/src/duck_lab/plugins/learned.py:195-197) and in lab-challenge (libs/runner/src/labrunner/challenge.py:173-175), not in the profile save (apps/mission-control/src/mission_control/profiles.py:68-77); a real-variant profile naming learned saves and fails at the next goal start validate_profile (or _fits) refuses a merged real variant naming a learned controller, lifted by R8; a contract test
M4 MAJOR, VERIFIED An eval goal kind run by Mission Control has no executor: the batch is lab-challenge under scripts/sim-lock; mission_control may import robotgate, runfile, missions only (check_boundaries.py:55); a goal run goes through rt.navigator.goal_start(spec) (core.py:500-506) Q3 C; "A later" is a new runner process with an API, not a goal kind. Keep the eval spec as a document in libs/learning that the skill fills
M5 MAJOR, VERIFIED Run-state sharing does not hold: ACTIVE is in the app (goals.py:11), TERMINAL = navcontract.ENDS (libs/runfile/src/runfile/navcontract.py:14); training states differ; core.stop_all iterates robots only (core.py:171-183) A training-request vocabulary in libs/learning (with stopped_with_checkpoint distinct from failed); its own list in Mission Control; state that STOP and STOP ALL do not reach the trainer and the UI shows no STOP control on a training request
M6 MAJOR, VERIFIED The "twice" premise is not shown by evidence on disk: at 16:40Z only m1/ and r5/rules_v1 were in /work/microduck-nav-runs/ Section 10.1, before any code: a record of smoke, M1, M2a, M2b with actual arguments, seed, window start and end, swap-back time
M7 MAJOR, VERIFIED The model record lacks what promotion must check: learned.py refuses a model whose policy_step_s, lateral_limit or obs_layout disagree; the record has no body or robot kind, policy rate, sidecar, training seed Add body (robot kind, walker sha, obs_layout, policy_step_s, lateral_limit), sidecar checksum, seed, actual iterations; promotion refuses a robot whose profile or walker disagrees
m1 MINOR, VERIFIED No index column to join replay runs by ctrl@learned@<sha8>: RUN_COLS (libs/runfile/src/runfile/index.py:48-49) has no build An additive index column
m2 MINOR, VERIFIED Checker: ALLOWED[unit] is indexed directly (check_boundaries.py:164); learning needs MODULES["learning"], ALLOWED["learning"], learning in ALLOWED["mission_control"] and maybe ALLOWED["observatory"] (:54), the Observatory Dockerfile copying libs/learning, libs-sync and LIBS_TESTS (Makefile:80-84) List them; learning may import runfile for build parsing, with a FORBIDDEN_MODULES row barring runfile.catalog, index, store, mcapio
m3 MINOR, VERIFIED pool exists in the working tree (libs/runner/src/labrunner/scenarios.py:331-366, uncommitted) Update; the pool manifest's sha256 is the record's pool
m4 MINOR, VERIFIED 6.3 cites learned.py:150; the sha and ident are at :199-201 Fix
m5 MINOR, SUSPECTED The window's end must include the swap back (6 min 18 s measured) start + max_runtime + swap_back <= 23:20Z
m6 MINOR, VERIFIED Build string form (runfile/build.py:3, :83); robotics-evals imports it without -s<seed> Say the record keys on the form without the seed
m7 MINOR, VERIFIED The Observatory's shell is already modular by panel (web/shell/*.js) A learning.js module is additive; weaken the dependency on step 8

Data model

Separate table versus goal_runs: Q7 A, agree (robot TEXT NOT NULL, target TEXT NOT NULL, store.py:45-50; goal-shaped readers core.py:641-657, 681-683, 546-549). Migration 4 to 5 (SCHEMA_VERSION = 4, store.py:10). It is a training_requests table. The registry is not a store: the model record is derived from the training artefact (Observatory), replay and eval runs by build, the eval summary (imported file) and promotions (Mission Control). If a stored document is wanted, a CLI writes it into the Observatory's data folder with a contract test; never two writers.

First UI slice

The unit is the training run, not the model. Order: (1) the record by hand for smoke, M1, M2a, M2b (no code); (2) libs/learning schemas and the import CLI, with M1's folder as the fixture; (3) the Observatory imports the folder and shows a training run page (headline curves from a JSON extracted at import in microduck-nav's venv; the Observatory reads no tfevents); (4) the model page when the first learned arm has a comparison. Mission Control's request form after the homelab's answer on a machine interface, or as a ledger form with hand-set states.

The reviewer's answers to the questions

  1. B, agree; the record type Controller or ControllerModel.
  2. A with C1's correction.
  3. C, agree (M4).
  4. A then B; B needs tokens on; the homelab's timeout is the enforcement.
  5. A with M2's rule, M3's refusal, M7's checks; C when there is a second person.
  6. A for the read-only slice, B for the adapter; the slice starts when M2a and M2b are recorded.
  7. A with M5.
  8. A as modified above.

Not covered

Nothing was run. Not read: api.py beyond auth and profile routes, profiles.py beyond _fits and save, shell.js, runstore.js, the Observatory importer, runfile/profile.py beyond grep, the skill scripts, the homelab swap script, eval-harness comparison code, docs/training/ beyond running-and-results.md, microduck-nav source. Not verified: whether M2a or M2b finished; whether the run index can gain a column without a rebuild rule; the size of an M2 artefact folder.