Skip to content

RFC-0031: its decisions in full

Rows of the decision inventory, from the RFC.

RFC-0031-1: Learning is added by extending Mission Control and the Observatory (option A), not as a third app or an adopted MLflow; the Lab Bench is deferred with named triggers

Architecture ADR: ADR-0028.

  • Decided: No new app, container, token or origin. Mission Control gains a request ledger and a promotion record; the Observatory imports training artefacts as files and gains a Learning view; a small library holds the types and derivation. TensorBoard stays the tool for raw curves. A Lab Bench app is "deferred, not rejected" until a trigger fires (§8's table).
  • Why: RFC-0024's one-origin reasoning; the operator already goes to Mission Control to operate and the Observatory to understand (RFC-0023 D1). Option B would still need a join to Mission Control (promotion writes a profile; replay runs are robot runs). MLflow "would hold a second copy of a model's record that disagrees with the first the day someone forgets to log", adds a dependency, and does not know the lease, operator-only promotion or the profile (§5).
  • How: §5 and §8; the comparison table in §5.
  • Alternatives rejected: B, a third app, a Lab Bench; C, MLflow or TensorBoard plus a registry (§5).
  • RFC status and section: Accepted; §5, §6, §8.
  • Who decided and when: the operator, 2026-11-26 (all eight questions as recommended; Q2 A, Q6 A/B).
  • Existing ADR: none
  • Later changed by: not found in my RFCs. RFC-0032 §3.5 builds on RFC-0031 §7 for artefact approval.
  • In code: No. libs/learning does not exist and the Observatory has no learning.js (ls apps/observatory/web/shell).

RFC-0031-2: The first version is a request ledger plus an artefact import, not a trainer adapter; training is not a goal kind and has its own table and states

Architecture ADR: ADR-0028.

  • Decided: Training requests get their own table training_requests with their own vocabulary (requested, window_given, up, running, done, stopped_with_checkpoint, failed, cancelled; "proposed, not fixed"), set by hand by the operator until the homelab offers an interface. No train or eval goal kind, no change to goal_runs, the lease or the robot adapters. A trainer adapter, when it exists, is a sibling Protocol to RobotAdapter.
  • Why: Mission Control "can neither start, stop nor observe the trainer"; goal_runs is robot-shaped (robot, target NOT NULL) and its readers are goal-shaped; RobotAdapter would be refused by a trainer on every call; a run stopped between saves loses everything since the last save, so stopped_with_checkpoint is not failed (§3, §6.1, review M4, M5).
  • How: §6.1, §6.2 (the adapter sketch: request, status, stop_after_save, fetch, not built before the homelab offers an interface); §9 Q7.
  • Alternatives rejected: reusing goal_runs with a resource column (Q7 B); eval as a goal kind (§6.1).
  • RFC status and section: Accepted; §3, §6.1, §6.2, §11 Q7.
  • Who decided and when: the operator, 2026-11-26 (Q7: A).
  • Existing ADR: none
  • Later changed by: Partly overtaken: RFC-0031 plans schema 4 to 5, but RFC-0032 §3.1 already took schema 5 (goal_runs.facts; apps/mission-control/src/mission_control/store.py:24-25, SCHEMA_VERSION = 5), so training_requests would be a later version. The table decision itself is not changed.
  • In code: No. No training_requests in apps/mission-control/src.

RFC-0031-3: Data path and no registry store: Mission Control holds operational rows, the Observatory imports artefacts as files, the model record is derived, and no data has two writers

Architecture ADR: ADR-0028.

  • Decided: Mission Control holds the request, approval and promotion rows. The Observatory holds a training/ folder per training run (request, params, ONNX files with SHA-256, headline curves extracted to JSON at import, .pt under a retention rule) written by an import CLI. The eval result enters as an imported evh comparison-show summary file. The model record is derived by pure functions, not stored; if a stored document is wanted later, one CLI writes it, "never two writers". robotics-evals' data folder is changed only through evh; the Observatory writes nothing to it.
  • Why: The Observatory's shell never calls Mission Control (the proxy only forwards), Mission Control mounts neither the data folder nor /work/robotics-evals and the checker bars it from the data folder; no container sees /work/microduck-nav-runs (§6.2, review C1).
  • How: §6.2, §6.5, §7.5, §11 Q2; an import CLI in libs/learning with a contract test and M1's folder as fixture.
  • Alternatives rejected: B, robotics-evals as the registry (a private evaluation repo becoming the home of a fact the robots need); C, MLflow's registry (§11 Q2).
  • RFC status and section: Accepted; §6.2, §6.5, §11 Q2.
  • Who decided and when: the operator, 2026-11-26 (Q2: A, "with C1's correction" i.e. no registry store).
  • Existing ADR: none (ADR-0004 and ADR-0012 cover the run store's read-only data and derived index, the pattern this reuses; neither names training artefacts).
  • Later changed by: not found in my RFCs. RFC-0032 §3.5 treats an artefact as "a system in robotics-evals" with the same evh route.
  • In code: No.

RFC-0031-4: A model is keyed by its files and checksums, and replay and eval runs join by the build identity without the seed

Architecture ADR: ADR-0028.

  • Decided: A model's id is the ONNX file's whole SHA-256 (the first 8 are the ctrl@learned@<sha8> part of the build). It is never "the newest run" and never a raw checkpoint. The record carries code, pool hash, training run, body (robot kind, walker SHA-256, obs_layout, policy_step_s, lateral_limit), sidecar checksum, replay runs, eval results and promotions. Replay and eval runs join on the build string without -s<seed>. The run index gains an additive build column to make the join cheap. robotics-evals stays the home of eval results; the library holds their ids.
  • Why: learned.py refuses a model whose rate, limit or layout disagree with the robot's, so promotion checks body before a goal start, not at it (§6.3, review M7, m6, m1). Keyed by files per RFC-0025 §3.7.
  • How: §6.3, §6.6; libs/runfile/src/runfile/build.py; learned.py:200-201.
  • Alternatives rejected: none named. Open: the record's exact fields and checksum rule (§13 "Not decided"); whether the index can gain build without a rebuild rule (§13).
  • RFC status and section: Accepted; §6.3, §6.6.
  • Who decided and when: the advisor's review (M7, m1, m6), folded in 2026-11-26; the operator accepted the RFC.
  • Existing ADR: ADR-0006 partly (run identity); the build identity string is not in any ADR (RFC-0005 owns it).
  • Later changed by: RFC-0025 §3.12 (revision L1, 2026-11-30, uncommitted) extends it: a system's build identity "gains the remaining layers' plugins and versions" and a learned plugin's declaration gains robot (profile id and variant), layer, sensor layout and training run; a model declaring another robot or layer is refused (RFC-0025 lines ~1610-1625, step 3 row). This adds fields to the model record's body and makes layer-and-robot a check, without changing the key.
  • In code: Partial. The build identity with ctrl@learned@<sha8> exists (libs/runfile/src/runfile/build.py); learned.py reads model_spec from ONNX metadata or sidecar; no build column in libs/runfile/src/runfile/index.py was found (grep for "build" there hit only comments); no libs/learning.

RFC-0031-5: libs/learning is a stdlib-only library named learning, with the record named "model" and the view "Learning"

Architecture ADR: ADR-0028.

  • Decided: The library is libs/learning (data in, data out, no network, no robot) holding types, vocabulary, the two specs, the derivation and the import CLI. It may import runfile for build parsing only, with a FORBIDDEN_MODULES row barring runfile.catalog, index, store and mcapio. Entries are needed in the checker, both apps' ALLOWED, the Observatory's Dockerfile, libs-sync and LIBS_TESTS.
  • Why: "Model" already means a language model in RFC-0005's build identity and RFC-0030's LLM planner, "and a library called models would invite the clash into imports" (§11 Q1).
  • How: §6.3, §6.6, §11 Q1; the same pattern as libs/missions.
  • Alternatives rejected: A, library models; C, "Lab Bench" as product name (§11 Q1).
  • RFC status and section: Accepted; §6.3, §6.6, §11 Q1.
  • Who decided and when: the operator, 2026-11-26 (Q1: B).
  • Existing ADR: none
  • Later changed by: not found in my RFCs. The reviewer suggested the record type Controller or ControllerModel; the type name is "not decided" (§13).
  • In code: No. libs/learning does not exist; scripts/check_boundaries.py has no learning entry.

RFC-0031-6: Eval runs outside Mission Control (the skill and robotics-evals); the eval spec is a document; a Mission Control runner is deferred to a separate process after three manual batches

Architecture ADR: ADR-0028.

  • Decided: Mission Control does not run evaluations and has no eval goal kind. The challenge-batch flow stays; Mission Control and the Observatory read results and may show a "requested evaluation" record. An eval spec (frozen set hash, arms with model checksums, seeds, sensor setting, primary metric) is a document the skill fills. Option A (Mission Control starts the batch) becomes "a new runner process with an API, not a goal kind" once the batch has been run by hand three times. An eval is a simulator job under the simulator lock, never on a real robot.
  • Why: The batch needs the lock, lab-challenge, scoring and evh, which live in the skill and robotics-evals; Mission Control "may import robotgate, runfile and missions only (check_boundaries.py:55) and has no executor for it" (§11 Q3).
  • How: §6.1, §7.5, §11 Q3.
  • Alternatives rejected: A, Mission Control starts the batch now; B alone (§11 Q3).
  • RFC status and section: Accepted; §6.1, §11 Q3.
  • Who decided and when: the operator, 2026-11-26 (Q3: C).
  • Existing ADR: none
  • Later changed by: not found in my RFCs.
  • In code: Partial. The skill-driven flow is as described; the eval spec document and any "requested evaluation" record are not built.

RFC-0031-7: Promotion of a model is a Mission Control record, operator only, by a named token identity, with tokens on; the MCP may not switch a version that changes plugins.local_controller

Architecture ADR: ADR-0028.

  • Decided: A promotion record holds the model sha256, robot, profile version, token identity and the comparison shown. It is made only from a token identity the operator names (as in RFC-0030 4.5); tokens are on for it. It refuses a robot whose profile or walker disagrees with the model record's body. An agent may propose a promotion as a record but cannot perform one. Through the MCP, use_profile_version is refused when it changes plugins.local_controller (a version switch then needs the operator's own token). Option B (automatic promotion when numbers pass) and C (a second reviewer) are rejected or deferred.
  • Why: Store.save records no identity; Ctx.client() takes the caller's word when there are no tokens; the MCP's use_profile_version is guarded only by sim_robot, so a model could reach a robot with no promotion record (§7.1, review M1). "B hands a robot's limits to a metric" (§11 Q5).
  • How: §7.1, §11 Q5, §12; libs/runfile/src/runfile/profilestore.py:87-100, api.py:76-82, mcp_server.py:57, :185-189.
  • Alternatives rejected: B, automatic promotion; C, plus a second reviewer's note (kept for when there is a second person) (§11 Q5).
  • RFC status and section: Accepted; §7.1, §11 Q5.
  • Who decided and when: the operator, 2026-11-26 (Q5: A with the MCP switch refusal).
  • Existing ADR: none
  • Later changed by: Extended by RFC-0032 §3.5 ("on the shape RFC-0031 §7 already decided for our own models": contract check, rehearsal, frozen sets, operator signs an approval record), which generalizes promotion to any artefact. Not an amendment.
  • In code: No. grep for a learned/local_controller refusal in apps/mission-control/src/mission_control/mcp_server.py found none, and there is no promotion record.

RFC-0031-8: The promotion rule: the learned arm must beat the rules on success on a harder frozen set avoidance_v2 and not regress on avoidance_v1 (30 of 30, 0 collisions); sets are pre-registered and frozen

Architecture ADR: ADR-0028.

  • Decided: Primary on avoidance_v2: success, learned must beat rules. Safety on avoidance_v1: 30 of 30 scenarios, 0 collisions. At least 10 scenarios per arm; the comparison is evh comparison-show with its interval and collision count; the training reward is never consulted. The set and the rule are pre-registered before the first learned arm is evaluated; a set is frozen when its hashes are in the dataset and never edited (a change is _v3). "It learned" needs curves, replay and the ONNX shape to agree.
  • Why: The first draft's rule could not fire: the rules arm scored success 1.0 and collisions 0.0 on avoidance_v1 (§7.2, review M2). The pre-registration keeps "the metric is not chosen after the result".
  • How: §7.2, §7.5; pre-registration in /work/robotics-evals/docs/R5-PREREGISTRATION.md, which governs if it differs (§7.2).
  • Alternatives rejected: the first-draft rule "beats the rules on success" on avoidance_v1 (§7.2).
  • RFC status and section: Accepted; §7.2 ("decided by the operator, 2026-11-26"), §11 Q5.
  • Who decided and when: the operator, 2026-11-26.
  • Existing ADR: none
  • Later changed by: not found in my RFCs. RFC-0032 §3.5 reuses it for other artefacts.
  • In code: Partial. The pre-registration file now exists (ls /work/robotics-evals/docs shows R5-PREREGISTRATION.md, which RFC-0031 §13 said was absent when written); no promotion check in the platform's code.

RFC-0031-9: A learned controller is simulator only until R8, and the refusal is a rule in the profile save path

Architecture ADR: ADR-0028.

  • Decided: validate_profile (or _fits) refuses a merged real-variant profile that names a learned controller, at save and at promotion, with a contract test. It is lifted only by R8's safety review (RFC-0025 §3.7) and the operator, "as a rule in code and not a convention, the same shape as RFC-0030's mode 3".
  • Why: Today lab-challenge and the plugin refuse, but the profile save does not, so a real profile naming learned saves and fails at the next goal start (§7.3, review M3).
  • How: §7.3; libs/runner/src/labrunner/challenge.py:174-175, robots/duck/src/duck_lab/plugins/learned.py:196-197, apps/mission-control/src/mission_control/profiles.py:68-77.
  • Alternatives rejected: none named.
  • RFC status and section: Accepted; §7.3, §12.
  • Who decided and when: advisor review M3 folded in; the operator accepted (2026-11-26).
  • Existing ADR: none
  • Later changed by: Related, not changing: RFC-0025 §3.12 renames the profile's plugins block to layers (step 2), so the refusal's field names change when it is built. "Decided by the operator, 2026-11-26" for the sim-only plugin is in RFC-0025 §3.7.
  • In code: Partial. The challenge and plugin refusals exist (challenge.py:174-175, verified by reading); no learned-controller refusal in profiles.py (grep for "learned" there found nothing).

RFC-0031-10: STOP does not reach the trainer, and the UI shows no STOP control on a training request

Architecture ADR: ADR-0028.

  • Decided: core.stop_all stays robot-only. A training run's stop is the homelab's timeout (ROBOTICS_MAX_RUNTIME) or an asked stop after the next save; the ledger records stopped_with_checkpoint by hand.
  • Why: "a control that does nothing reads as one that works" (§7.4, review M5).
  • How: §7.4, §6.4, §3.
  • Alternatives rejected: letting the trainer share the run states and "stop after the next save" (the first draft) (§7.4).
  • RFC status and section: Accepted; §7.4.
  • Who decided and when: advisor review M5 folded in; operator accepted 2026-11-26.
  • Existing ADR: none
  • Later changed by: not found in my RFCs.
  • In code: n/a (nothing built); core.stop_all iterates robots only (per RFC; not re-verified).

RFC-0031-11: Nothing in the platform touches the DGX: the homelab session runs swaps; a training request is valid only if it ends, with the swap back, before the nightly window

Architecture ADR: ADR-0028.

  • Decided: No Mission Control code logs in to the DGX, runs docker there, edits the stack's .env or touches the production socket; the platform sends commit, task, args and a window and waits. A request is valid only if start + max_runtime + swap_back <= 23:20Z; validation refuses one that overlaps the nightly (00:00Z, infra keeps 23:45Z to 03:00Z clear). The operator gives each window; every swap is announced. A series in one window pays the swap back once.
  • Why: The homelab owns the DGX (its recipe, dgx-training-run skill "The split"); the window's end "includes the swap back" (6 min 18 s when measured) (§6.2, §7.5, review m5).
  • How: §6.1 (preflight checks as validation rules), §7.5; /work/agentic-ai-homelab/docs/recipes/robotics-training.md.
  • Alternatives rejected: none named. The homelab's 23:30Z vs the operator's 23:20Z margin: "the earlier time holds".
  • RFC status and section: Accepted; §6.2, §7.5.
  • Who decided and when: the operator (window rules, "decided 2026-11-26" in RESEARCH-LEARNED-AVOIDANCE as cited); the RFC's validation form is a proposal.
  • Existing ADR: none
  • Later changed by: not found in my RFCs.
  • In code: Partial. .claude/skills/dgx-training-run/scripts/preflight.py checks the window (per §2); the platform's validation is not built.

RFC-0031-12: GPU budget approval: each window by the operator first, then a training plan approved once with a GPU-hours budget after three windows without a manual correction

Architecture ADR: ADR-0028.

  • Decided: A for the first runs, then B (approved once with a budget; tokens on; each swap still announced; the homelab's timeout is the enforcement). C (autonomous, no announcement) is not allowed while the nightly window is someone else's.
  • Why: "B must keep the 2026-11-26 decision that each swap is announced" (§11 Q4).
  • How: §11 Q4, §3 table row for mission approval modes; mirrors RFC-0030's approval modes.
  • Alternatives rejected: C, autonomous within a budget (§11 Q4).
  • RFC status and section: Accepted; §11 Q4.
  • Who decided and when: the operator, 2026-11-26 (Q4: A, then B).
  • Existing ADR: none
  • Later changed by: not found in my RFCs.
  • In code: No.

RFC-0031-13: Scope and placement: the read-only Learning slice runs beside MVP 2 and starts when M2a and M2b are recorded; the request form and any adapter come after MVP 2; the first UI unit is the training run

Architecture ADR: ADR-0028.

  • Decided: The first UI slice is read-only in the Observatory (Learning list, training run page; the model page when the first learned arm has a comparison), a learning.js module of its own beside the other panels, unit = the training run. The request form and any trainer adapter are after MVP 2 with RFC-0030's auto mode. Training on a real robot or real-home data, retraining Pollen's walker, a rented GPU's cost model and flotilla approval are out of scope.
  • Why: "It shows what exists, shapes the record before anything operates a GPU, and risks nothing" (§11 Q8); it costs the critical path attention and no code on its steps (§11 Q6). The principle is "automate what we have done twice" (§2).
  • How: §6.4, §10.2, §11 Q6 and Q8, §13.
  • Alternatives rejected: B, the request form first; C, the eval comparison first (moot while the rules arm scores 1.0) (§11 Q8); C for Q6, inside MVP 2 before the navigator split.
  • RFC status and section: Accepted; §10, §11 Q6, Q8, §13.
  • Who decided and when: the operator, 2026-11-26 (Q6: A for the slice, B for the adapter; Q8: A).
  • Existing ADR: none
  • Later changed by: not found in my RFCs.
  • In code: No. apps/observatory/web/shell/ has no learning.js. - RFC-0030 §7 sequencing (carve-out before MVP 2, spike as side lane, auto mode after) and the spike's scenario, measures and $1 cap: a step plan and measured numbers, per the brief. - RFC-0030 §6.8 (evaluate in the simulator first, a scored scenario set): states a direction; the scenario-set design is open. - RFC-0031 §10.1 (the manual-run record) and its numbers: a record, not a decision. - RFC-0031 §7.5 "guards stay above the model": restates the safety layering of RFC-0025 §3.7 (RFC-0025 line ~1100); not a new decision of this RFC.