Skip to content

RFC-0002: its decisions in full

Rows of the decision inventory, from the RFC.

RFC-0002-1: Two modes, one switch: the duck's own autonomy and our navigator never drive at the same time

Architecture ADR: ADR-0024.

  • Decided: Mode auto (the duck's autod drives and explores, the brain watches and collects data) and mode brain (our navigator drives, mapping on). The switch is robot.autonomous, flipped by the brain or the operator. A mission may use both.
  • Why: the duck has "no arbitration — last writer wins"; autod yields only to the gamepad (§2 item 2, §3.1). Running both together was rejected because "they would alternate" (§6).
  • How: RFC-0002 §3.1; navigator and explorer under robots/duck/src/duck_lab/nav/ (explore.py, explore_run.py, run.py).
  • Alternatives rejected: give autod goals (not possible, it listens on no socket); run both together (§6).
  • RFC status and section: Proposed, revision 3, §3.1, §6.
  • Who decided and when: the operator, 2026-11-14 ("two modes (auto / brain) with a switch, watching and collecting data during auto", §7).
  • Existing ADR: none.
  • Later changed by: RFC-0014 §2 C7 and RFC-0008 §7 (autod only as a comparison point, "a comparison point, not a replacement"). RFC-0014 mentions the planner's "mode for exploring". Not found reversed. Checked: RFC-0010 to RFC-0032 by grep.
  • In code: Partial: nav/explore_run.py exists; whether the auto / brain switch with the flashlight exists was not checked.

RFC-0002-2: Layers: the LLM never sends a twist; the navigator moves; the robot balances

Architecture ADR: ADR-0026.

  • Decided: Four layers: planner (words to spec to tool calls, seconds), brain (world model, perception, mode, run log, 0.5 to 2 Hz), navigator (path, depth and cliff stop, limits, deadman refresh, 10 to 20 Hz), robot (50 Hz). No model call is in the motion loop; a slow or failed model call means the robot stands and waits. An operator STOP sends robot.stop directly, never through the planner.
  • Why: "model latency is seconds, the deadman 0.5 s, and a stop must not wait for a model" (§6).
  • How: RFC-0002 §3.2, §3.6; libs/missions/src/missions/{planner,guardrails}.py (planner side), robots/duck/src/duck_lab/nav/.
  • Alternatives rejected: let the LLM send twists (§6); everything over the Hugging Face relay (rate limits, no pixels).
  • RFC status and section: Proposed, revision 3, §3.2, §3.6, §4, §6.
  • Who decided and when: stated as the proposal; RFC-0004 §3 and RFC-0005 §3 repeat it as non-goals ("models in the walking or navigation loops", "flotilla in the motion loop"). Operator decision not cited.
  • Existing ADR: none (ADR-0020 covers robots behind our own interfaces, not this layering).
  • Later changed by: RFC-0014 §3.4.5 and RFC-0014 line 464 repeat "the planner has no path to drive"; not reversed. Checked: RFC-0010 to RFC-0032 by grep.
  • In code: Yes: libs/missions/src/missions/{planner,guardrails}.py and robots/duck/src/duck_lab/nav/ exist.

RFC-0002-3: The navigator is ours, in pure functions, and closes its loop on measured odometry, never on commanded speed

  • Decided: We build the navigator in Python as pure functions (state in, command out, no sockets inside), replayable offline: A* on map.grid at 10 cm, pure pursuit, frontier exploration, surveys, a depth stop and a cliff check every frame. It closes on measured odometry and logs commanded against measured speed per run. Nav2 is not used now.
  • Why: upstream lists "go there" as not built; "the simulator walks at about 44 % of what is asked"; Nav2's defaults assume a 360° range sensor, not a 45° short-range depth sensor, and it means installing ROS 2 (§2, §3.2, §3.8).
  • How: robots/duck/src/duck_lab/nav/ (grid.py, follow.py, explore.py, guardrails.py, decision.py); contract in libs/runner/CONTRACT.md.
  • Alternatives rejected: Nav2 now (§3.8, §6, ADR-0001); the navigator as a daemon on the robot "not needed" (§6, but see 0002-6).
  • RFC status and section: Proposed, revision 3, §3.2, §3.8.
  • Who decided and when: "The navigator is ours" is an operator decision of 2026-11-14 (§7).
  • Existing ADR: partly: ADR-0001 covers "ROS 2 is not the foundation" and ROS-aligned shapes; nothing records "our own navigator, measured odometry, pure functions" (ADR-0020 and RFC-0025 build on it as the navigator contract).
  • Later changed by: RFC-0015 (Nav2 comparison) keeps Nav2 as a comparison; ADR-0018 allows ROS 2 in a container; ADR-0020 and RFC-0025 line 104 make our navigator "ours for any robot", with a ROS robot's Nav2 behind the same contract. RFC-0008 §4 replaces the margin rules (one clearance model, error budget).
  • In code: Yes: robots/duck/src/duck_lab/nav/{grid,follow,explore,run}.py, libs/runner/CONTRACT.md.

RFC-0002-4: The same code drives the simulator and the real duck: ssh-forwarded sockets, JSON-RPC unchanged

  • Decided: The duck's daemons listen on Unix sockets that are files on the duck. Our software connects to local socket files and ssh forwards them (ssh -L) for the real duck; in the simulator they are local files, so "the same code drives both; only the paths change". The camera frame comes through the same ssh session.
  • Why: the duck is unreachable over the network on purpose; this is "upstream's documented developer path" (§3.3, §3.9).
  • How: RFC-0002 §3.3 table; robots/duck/src/duck_lab/nav/client.py; Mission Control's duck.py and duck_real.py.
  • Alternatives rejected: everything over the Hugging Face relay for the navigator (rate limit, no pixels); the navigator as a daemon on the duck "not needed" (§6).
  • RFC status and section: Proposed, revision 3, §3.3, §3.9.
  • Who decided and when: "ssh-forwarded sockets for the real duck" is an operator decision of 2026-11-14 (§7).
  • Existing ADR: none (ADR-0020 states the interface principle for robots but I did not find the socket/ssh choice in it).
  • Later changed by: RFC-0014 §3.8 line 673 ("The navigator on ssh-forwarded sockets (RFC-0002 §3.3), later on the robot"); RFC-0017 (robot access) is the later treatment of reaching the duck; not read in full by me. Checked: RFC-0010 to RFC-0032 by grep.
  • In code: Yes: apps/mission-control/src/mission_control/duck_real.py and robots/duck/src/duck_lab/nav/client.py exist.

RFC-0002-5: Frames follow ROS (trunk, odom, map); position is dead reckoning with fixes

  • Decided: Three frames: trunk (body), odom (smooth, drifts), map (mapd's plan, jumps when corrected, no drift). The navigator keeps one offset, offset = map pose minus odom pose at the same t_ns, and between fixes position on the map is latest odometry plus offset. Concepts and names follow ROS 2 so moving to Nav2 stays possible.
  • Why: "the standard arrangement (ROS: map → odom → base_link), and what autod does" (§3.7).
  • How: robots/duck/src/duck_lab/nav/frames.py.
  • Alternatives rejected: none named.
  • RFC status and section: Proposed, revision 3, §3.7, §3.8.
  • Who decided and when: the operator asked for the explanation and the sailing analogy is the operator's (§7, 2026-11-14); no explicit "decided".
  • Existing ADR: partly: ADR-0001 decision 2 covers ROS-aligned frame names and message shapes; the offset method is not in an ADR.
  • Later changed by: RFC-0008 §4 (localization error budget, "p95 belief error"), RFC-0020 error_budget. The frames are not reversed. Checked: RFC-0010 to RFC-0032 by grep.
  • In code: Yes: robots/duck/src/duck_lab/nav/frames.py exists.

RFC-0002-6: The navigator moves onto the robot mid-term; the brain stays off-board

  • Decided: Mid-term the navigator runs on the duck beside autod (on the NXT, onto a Pi riding on the brick); the brain stays off-board and reaches it through the relay, WebRTC, or our own JSON-RPC. The v1 non-goal "no code of ours on the duck" holds until then.
  • Why: "fast loops on the robot, slow thinking off it" is the pattern across robotics; the reflex loop should not cross Wi-Fi (§3.9).
  • How: RFC-0002 §3.9 item 3, §5 item 6.
  • Alternatives rejected: ssh-forwarded sockets as the end state ("a developer tool, not the end state").
  • RFC status and section: Proposed, revision 3, §3.9, §4 (non-goals), §5.6 (marked decided).
  • Who decided and when: the operator, 2026-11-14 ("the navigator moves onto the robot mid-term", §3.9 and §7).
  • Existing ADR: none.
  • Later changed by: RFC-0014 §3.8 line 673 still has "later on the robot"; RFC-0017 and RFC-0025 treat on-robot placement; I did not find a reversal. RFC-0014 line 925 says "the brain's long-term place stays open, RFC-0002 §5.5". Checked by grep only.
  • In code: No: the navigator runs from the workstation (robots/duck/src/duck_lab/nav/ has server.py, but I did not find an on-duck deployment).

RFC-0002-7: The brain's API is the one door and every UI is a client; one driver per robot with a lock

Architecture ADR: ADR-0024.

  • Decided: The brain has an API (mission.start, mission.stop, status, an events stream) and every UI (the mission control page, Slack, flotilla, the CLI, an MCP server) is a client of it. The brain holds several robots and oversees one mission per robot, with a lock per robot. If move.source is not us, stop and report; runs are named robot-brain-<run-id>.
  • Why: several UIs must not drive a robot at the same time; the duck has no arbitration (§2.2, §3.6, §3.10).
  • How: RFC-0002 §3.6 table, §3.10; apps/mission-control/src/mission_control/{api,core,store}.py, apps/nxt-web/src/nxt_lab/lock.py.
  • Alternatives rejected: none named.
  • RFC status and section: Proposed, revision 3, §3.6, §3.10.
  • Who decided and when: the operator, 2026-11-14 ("the brain oversees several missions", §7).
  • Existing ADR: none.
  • Later changed by: RFC-0014 §2 C6 (one driver at a time now holds per robot across apps: a lock, §3.3.3) and docs/rfc/RFC-0014 line 215 (clients speak HTTP+SSE with JSON, not JSON-RPC; JSON-RPC stays the robot-side interface). RFC-0002's mission.start JSON-RPC shape is superseded for clients.
  • In code: Yes: apps/mission-control/src/mission_control/{api.py,mcp_server.py} exist (HTTP and MCP).

RFC-0002-8: Odometry is calibrated per robot, and mapd's poses and grid are scaled by the measured factor

  • Decided: Odometry is calibrated per robot; the scale is applied to odometry, mapd's poses and its grid (0.91 at 0.3 m/s for the simulated duck), stored in duck/calibration/sim.json.
  • Why: the first runs showed the duck's odometry about 11 % long against truth (§7, 2026-11-14).
  • How: robots/duck/calibration/ and nav/calibration.py.
  • Alternatives rejected: option "a" versus others were offered; the RFC names options 2 and 3 chosen together but does not list the rest.
  • RFC status and section: Proposed, revision 3, §3.4 phase 1 bar, §7.
  • Who decided and when: the operator, 2026-11-14.
  • Existing ADR: none.
  • Later changed by: RFC-0020 profile calibration (profiles carry calibration per robot, RFC-0020 line 96 area); not reversed.
  • In code: Yes: robots/duck/calibration/ and robots/duck/src/duck_lab/nav/calibration.py exist.