Skip to content

How the platform fits together

The goal (the operator, 2026-11-19): a robot platform where we can load any robot. A robot brings what it is; a simulator brings what it provides; the navigator is the part under test; the runner evaluates it; every run is recorded one way and viewed one way; the operator drives it all from one place. This page is the map: the pieces, what each knows, how a goal flows through them, and where each one lives today. The decisions behind it are in the RFCs and ADRs it links; the platform-wide ones are the architecture ADRs, and every RFC decision is a row of the decision inventory.

The map

The lab map: the operator and Mission Control decide; the runner evaluates; the navigator drives
through the gate to a robot; each robot runs in a simulator (a host kind) that gives the truth; runs
are recorded and watched; the learning arc trains a local controller

Colour is a component's role: blue is what the operator uses (Mission Control, the Observatory), green the platform's own code, red a robot, purple a simulator (a host kind), amber the operator's own projects, grey where we plan; a dashed box is designed or planned, not run. A green label on an edge names its seam (The seams). The design choices behind it, one line each:

Decision In one line
ADR-0022 The navigator sees only what a real robot gives it; the truth is the runner's
ADR-0023 A robot fills fixed layers with its own named, versioned plugins
ADR-0020 Robots sit behind our own interfaces; robotd and ROS 2 are peer backends
ADR-0024 One gate per robot, STOP always works, irreversible acts are the operator's
ADR-0025 Mission Control operates, the Observatory explains, the operator's stack keeps
ADR-0026 Goals are the unit of operation; an LLM never moves a robot
ADR-0027 A simulator is a host kind; the platform keeps wall time; real runs rehearse first
ADR-0028 The method moves between robots, a model is its checksums, the operator promotes
ADR-0029 Contact is the simulator's collision; the footprint circle is a proximity alert
ADR-0007 Every run is recorded one way (format 2, MCAP)

Where the work stands is the learning arc's plan: milestone A, the rules navigator through the hard scenes without contact, comes before the learned controller.

The rule everything follows

The navigator sees only what a real robot would give it. In a simulator the truth (where the robot really is) is known, and it is tempting to use it; but a navigator that reads it is not being tested, a real robot has none, and in an arena it would be cheating. So the truth is the runner's alone: for evaluating, for the safety guardrails a real robot would report itself, and for the recording. The navigator gets the robot's connections (its sensors, its motors, its map) and a goal.

Since RFC-0021 step 6 (2026-11-21) every path keeps this rule: a course, an exploration, and Mission Control. The navigator's process is checked while it runs: it held no connection to the truth's port in any run since (583 checks in the proof batch, 150 in an exploration, 282 over make sim-duck's 15 goals).

The layers

Every autonomous robot answers the same questions, so the platform's core is a fixed set of layers, and each robot fills each layer with its own plugins, named in its profile (RFC-0025 §3.12, revision L1, approved by the operator 2026-11-30). A plugin is named and versioned (tof8x8@1, mapd@1, rules@1, learned@<sha8>); its provider is ours (code in this repository) or robot (the robot's own stack, reached through its connector).

Layer Its question Duck Burger (MVP 2) NXT
Sensing (feeds the others) What do the sensors report now? tof8x8@1; duck-head@1 (looking) 2D scan; later RGB-D ultrasonic, colour
Localisation and mapping Where am I, what is around? mapd@1 SLAM Toolbox, provider robot dead reckoning, no map
Planning and behaviour Which goal, which route, what when stuck? ours ours; provider robot under the contract join ours
Local control What to do in the next second? rules@1, or learned@<sha8> rules@1; possibly Nav2's controller rules@1
Safety (cross-cutting) Must it stop now? an ordered list in the profile, each entry with its position and provider the same the same
Locomotion How is the motion produced? duck-walk@1 over Pollen's walker (a learned plugin, provider robot) differential drive tracks
  • Goals enter at planning and behaviour, which has no per-robot plugin of ours: its provider is the navigator's core or the robot's own stack (RFC-0020 §2).
  • Safety is declared per entry. The gate's lease and STOP sit above everything and are always ours; the lab's truth guardrails are the runner's alone and are not a robot's.
  • Every tick says which layer decided (the path follower, local control, looking, a named guard, recovery), derived from the records a run already has; the Observatory shows the shares per run, and Mission Control shows each robot's layers, their providers, versions and, where a plugin reports one, its health.
  • A system is a robot and its layers' plugins, named in the run's build identity (brain@+ctrl@+walker@+...). Two systems that differ in one layer are the comparison the platform is built for: the duck with rules@1 against the duck with a learned local controller.
  • What moves between robots is the method, not the plugin: a learned local controller is trained on the robot's own body and sensor, tested in its training scenes, evaluated in the lab against the rules; a model declares its robot and layer and is refused on another.

Today, before RFC-0025 step 2: the profile's block is still called plugins and names five entries (locomotion, range_sensing, localisation, looking, local_controller); safety is spread over several profile blocks and the navigator's guards; the build identity names ctrl@ and walker@ only; hello reports no layers; Mission Control's tab is called Modules. Step 2 renames the block to layers and migrates every stored profile in one step, with no interim state; steps 3, 5b, 7 and 8 add the decider, the layers in hello, Mission Control's layer view, the Burger's robot providers and the Observatory's shares (RFC-0025 §6).

The pieces

Piece Its job Knows Never knows Where Its contract
Robot profile and its layers' plugins What a robot is: its size, speeds, sensors, error budget; which plugin fills each layer, and who provides it The robot Any machine, any run robots/duck/profile.json, duck_lab/plugins/ (the profile block is layers after RFC-0025 step 2) RFC-0020, RFC-0025 §3.12
Host (a simulator kind) A machine that runs a simulator: the robot's sockets, a reset, the truth (the pose, the joints and, with our patch to Pollen's body server, the touches of every physics step), the scenes, the simulated camera The machine and its simulator Any navigator libs/simhost (the host file), libs/runner (labrunner.camera: the simulated camera it serves) RFC-0021 §3
Navigator (the payload) The brain: localise, plan, walk to a goal, explore, recognise objects The robot's sockets and profile The truth, the host file duck_lab/nav/, duck_lab/payload.py, duck_lab/nav/server.py the payload contract (duck_lab/payload.py); the navigator API (Mission Control's contract)
Runner The evaluator: starts the navigator, gives it goals, reads the truth, evaluates (contact and the proximity alert: ADR-0029), stops it when a guardrail breaks, writes the official run The host, the truth, the course's rules How the navigator thinks libs/runner (labrunner): lab-challenge, lab-eval, lab-explore, lab-go, lab-nav-server (in front of Mission Control), lab-scenarios (export scenario sets, mine failed runs into scenarios; no simulator) RFC-0021 step 2 and 6, RFC-0008
Gate The one lock in front of a robot: one driver at a time, a STOP that always works, takeover by name Who holds the robot What they do with it libs/gate (robotgate, the rules), libs/runner (lab-gate, the proxy) RFC-0017
Run format and the Observatory Every run recorded one way (format 2, MCAP); the viewer and its API, live and replay Runs Robots, hosts libs/runfile, apps/observatory ADR-0007, the Observatory's contract
World model Objects, the semantic map, sites and their areas, for any robot Places and things Robots libs/worldmodel RFC-0016
Mission Control The operator's control panel: robots, sites, goals, live status, STOP Robots through their adapters How a navigator works, the truth apps/mission-control; the goal schemas, guardrail vocabulary and planner it uses are libs/missions (RFC-0030) RFC-0014

Which package may import which is checked on every make lint (scripts/check_boundaries.py, the table in RFC-0018 §10): the navigator (duck_lab.nav, the payload, the plugins, the profile) may import neither the runner (labrunner) nor the host library; the runner has no import of a robot's package, it finds a robot by name: a registration file the installation names (robots.<name>.registration, a JSON file with the robot's name, profile and commands; phase 5 step 1), else the entry-point group robotics_lab.robots (RFC-0022), which loads the robot's small registration module when the runner starts (the check cannot see that, by design). The navigator may not import runfile.installation or runfile.registry: it gets everything as arguments; and a test checks that importing the payload or the navigator API loads neither.

The whole picture

flowchart LR
  subgraph HOST["Host: a machine with a simulator (host file, kind pollen-duck-sim)"]
    SIM["Simulator<br/>robotd, depth sensor, mapd"]
    TRUTH[("Truth<br/>body server: pose,<br/>joints, touches")]
    CAM["Camera service<br/>(served by the runner)"]
  end
  subgraph RUN["Runner (the evaluator)"]
    EVALUATOR["Evaluator and truth guardrails"]
    COPY["Official run<br/>navigator's run + truth"]
  end
  NAV["Navigator<br/>(payload process)"]
  GATE["Gate<br/>one driver, STOP"]
  PROFILE["Robot profile<br/>layers and plugins"]
  OBS["Observatory"]
  MC["Mission Control"]
  OP(("Operator"))

  OP --> MC
  OP --> OBS
  MC -- "goals, status" --> RUN
  RUN -- "goals, cancel, break" --> NAV
  NAV -- "move, read" --> GATE --> SIM
  NAV -- "depth, map" --> SIM
  NAV -- "what is seen" --> CAM
  CAM -.-> TRUTH
  EVALUATOR -.-> TRUTH
  PROFILE --> NAV
  NAV -- "its own run" --> COPY
  COPY --> OBS
  MC -- "STOP, takeover" --> GATE

Dotted lines read the truth; only the runner's pieces have them.

How a goal flows

A course: a challenge, the phase 1 evaluation, an exploration

lab-challenge, lab-eval, lab-explore and lab-go are runners (--robot duck). Each starts the navigator as a payload process with only the robot's sockets (and the camera's, for objects) and drives it over the payload contract; lab-challenge and lab-eval reset the host for each goal first (lab-explore starts where the robot stands: reset it before, robots/duck/sim/reset_sim.py):

sequenceDiagram
  participant R as Runner
  participant H as Host (simulator, truth)
  participant N as Navigator (payload)
  participant O as Official run
  R->>H: reset to the scene, start the camera service
  R->>N: start (robot, depth, map, camera sockets)
  R->>N: localise
  R->>N: start {point | explore}
  loop while it runs
    N->>H: move, read the depth and the map, ask the camera
    R->>H: read the truth (20 Hz): pose, joints, the touches since the last read
    R->>R: evaluator: invariants, guard (a fall, the staircase), the proximity alert
    R->>O: copy the navigator's run, the truth put in
  end
  R->>N: stop
  R->>R: contact: the simulator's touches into an obstacle (the re-pose check beside it)
  R->>O: the verdict, the run finished

The evaluator: contact and the proximity alert

ADR-0029 (Accepted 2026-12-02, revised as findings come in) separates two things the footprint circle used to be at once:

  • Contact is the body touching an obstacle: a duck collision geom penetrating one of the scene's boxes. Its source, best first: the simulator's touches (our patch to Pollen's body server, robots/duck/sim/patches/body-server-touches.patch, records every 5 ms physics step's penetrations; the truth sampler polls them with each sample; scripts/host-setup applies the patch, scripts/host-check checks it), else MuJoCo's collision on the recorded pose after the run (robots/duck/sim/contacts.py, which also gives the body's gap to each obstacle). It fails the run. The host kind says which source the host has (simhost.contacts), and the result's contact records its name (by) and its time resolution (step_s: 0.005 s for the touches, the truth sample period for the others).
  • The proximity alert is a ring round the trunk: the trunk's centre within footprint.alert_m of an obstacle (the profile's, else footprint.radius_m; the duck's is 0.13 m, its radius_m 0.083 m being the standing reach). It is recorded, with the distance the run used (alert_m), and fails nothing; it is where planning and validation can lean on a margin.
  • No check, no verdict: a duck host with neither contact source, or a run whose touches show the feet never on the floor (a dead op), gets pass: null rather than the circle's guess. A host whose body is the circle (the NXT's) keeps the circle as contact.

Not yet everywhere: lab-challenge evaluates this way; lab-eval, lab-explore, a sequence and Mission Control's live contact guardrail (labrunner.guard) still use the circle.

Mission Control

The operator starts lab-gate and lab-nav-server, and Mission Control talks to lab-nav-server as its robot's navigator. lab-nav-server is the runner; the navigator API behind it is its own process:

sequenceDiagram
  participant MC as Mission Control
  participant R as lab-nav-server (runner)
  participant N as Navigator API
  participant G as Gate
  participant H as Host (simulator, truth)
  MC->>R: goal.start {kind, params, guardrails, site's objects and areas}
  R->>N: goal.start (passed through)
  N->>G: take the lease
  N-->>R: run_key
  R-->>MC: run_key (the Observatory's Watch link)
  loop while it runs
    MC->>R: goal.status (passed through)
    N->>G: move
    R->>H: read the truth
    alt a truth guardrail breaks (contact, fall, drop clearance, inside a no-go area)
      R->>N: goal.break {name, detail}
      N->>G: stop, give the lease back
    end
  end
  N-->>R: reached, done, stopped_by_guardrail, ...
  R->>R: the official run finished (the truth put in)

The guardrails that need no truth stay the navigator's: the speed cap, the no-go area in its planner, the time limit, stuck. STOP never goes through the navigator: Mission Control sends it to the gate.

The real robot (designed, not run: there is no real duck yet)

A real robot has no truth. The intended path: the robot's forwarded sockets named per machine, the runner working without the truth (no sampler, no truth guardrails, the official run copied without it), and the guardrails that need the truth the robot's own to report; the navigator is the same code with the profile's real variant. Not buildable today: the host file cannot be written for a machine without Pollen's simulator (simhost/host.py requires its checkouts), and the runner refuses a host with no truth port; Mission Control would have to talk to the navigator API directly, a path with no test (the architecture review of 2026-11-22; phase 5 builds the runner without the truth and the installation file).

The seams (where something else can be plugged in)

Seam What can change behind it Defined in
A layer's plugin (sensing, localisation and mapping, local control, locomotion; safety entries), with provider ours or robot; planning and behaviour's provider, ours or robot (the contract join) another robot, or another plugin on the same robot (a learned local controller against rules@1) RFC-0020, RFC-0025 §3.12
A simulator kind (reset, connections, truth reader, scene writer; for the duck, the body server's touches as the contact source) another simulator: Gazebo with the TurtleBot3 is planned (its own contact source, or the re-pose check, or no verdict) RFC-0021 §3.1
The host file another machine (the workstation, the MacBook, a clean container) RFC-0021 §3
The payload contract (hello, localise, goal.start, goal.status, goal.cancel, goal.break, stop; runfile.navcontract, 1.9) another navigator: robots/duck/payloads/straight.py is a second one duck_lab/payload.py
The navigator API another robot's navigator, behind Mission Control Mission Control's contract
Mission Control's adapters (fake, duck-sim, duck-real, nxt-web) another robot in the control panel RFC-0014
The gate's protocol another robot's lock RFC-0017
The run format another recorder; the Observatory reads only the format ADR-0007
The camera socket (Detections relative to the robot) a real camera's detector (designed: none exists yet, and the camera service needs the simulator's truth) RFC-0021 step 6

Not yet generic

  • Only one robot has run on it. The navigator takes its numbers from the profile, but it has run only on the duck, and its plugins are the duck's (mapd's grid, the 8×8 depth sensor). The layers are approved, not built (RFC-0025 steps 2, 3, 5b, 7, 8). It is generic when a second robot's navigator (the TurtleBot3 in MVP 2, RFC-0025) runs it.
  • Two simulator kinds exist (pollen-duck-sim, and nxt-kinematic-sim for the NXT, NXT-D0); the rule of §3.1 is tested again when Gazebo is the third.
  • The runner reads its robot's numbers once, when it starts (the evaluator's footprint and thresholds): with one robot registered that is it; a second robot needs its --robot read before the course's modules load (RFC-0022).
  • The duck's operator tools and the apartment stay the duck's (duck-record, duck-replay, duck-world, duck-pic, duck-site; the apartment's layout in robots/duck/sim/): they read the duck's own perception or the simulated apartment (RFC-0022 §8).
  • The real robot's path is designed, not run.