RFC-0021: its decisions in full¶
Rows of the decision inventory, from the RFC.
RFC-0021-1: The simulator host is separated from the payload: a host file (host.json) names the robot's sockets, a reset and the truth; the payload gets sockets and a goal and nothing else¶
Architecture ADR: ADR-0022.
- Decided: three parts and a runner. The host provides sockets, a reset (
simhost.reset), and the truth's port (read by the runner only). The payload (a navigator, ours or anyone's) receives the robot's sockets and a goal, no truth, no host paths. The task is one file (course, profile, run folder). - Why: operator, 2026-11-19: "can we separate sim as host from payload?"; "let's not be specific about [a] VPS as host; it can be any Pollen-sim-compatible host" (status).
- How:
libs/simhost(stdlib only:host.py,kinds.py,simulator.py,truth.py); host file by--host,$ROBOTICS_LAB_HOST, or~/.config/robotics-lab/host.json; a missing file is an error, never this workstation's paths (§5 step 1). - Alternatives rejected: none named.
- RFC status and section: Accepted; §3, §5 step 1 (built 2026-11-20).
- Who decided and when: the operator, 2026-11-19 ("I agree; we do it").
- Existing ADR: partly: ADR-0020 context cites it ("the simulator host"); no ADR records the host/payload/runner split.
- Later changed by: RFC-0022 (2026-11-21): the runner, evaluator and course move to
libs/runner(labrunner),lab-*commands, a robot found by a registration file; RFC-0018 §10 "Since then" recordslibs/simhostandlibs/runner. - In code: Yes:
libs/simhost/src/simhost/host.pyandlibs/runner/src/labrunner/remote.pyexist.
RFC-0021-2: The truth never reaches the payload; the runner is the run's one writer, copying the payload's run into the official run with truth added¶
Architecture ADR: ADR-0022.
- Decided: the payload writes its own run, without truth, into a scratch folder the runner owns;
the runner follows it live, copies every record and puts the nearest truth sample (by
wall_ns, within 100 ms) into each tick, and adds its own evaluated events. The navigator cannot be given the truth at all (nobodyargument, no truth reader). The evaluator stays ours. - Why: "A payload never sees the simulator's truth" (§2 goals); a format-2 tick holds its truth inside it and a run has one writer, so a second writer or side file would change the format (§5 step 2).
- How:
libs/runfile/src/runfile/truthcopy.py;libs/runner/src/labrunner/remote.py,evaluator.py,guard.py; the proof: a test-owned fake body server counting connections (robots/duck/tests/test_payload.py). - Alternatives rejected: a second writer or a side file (needs a format change; §5 step 2).
- RFC status and section: Accepted; §3, §5 step 2, §6 "Truth leaking".
- Who decided and when: the advisor's review (2026-11-20); the operator's go for every path through the split, 2026-11-21 (§5 step 6).
- Existing ADR: partly: ADR-0015 mentions the runner; ADR-0007 defines the file and its single writer, not this arrangement.
- Later changed by: RFC-0022 (moves
Remote, the evaluator andTruthGuardtolibs/runner); RFC-0025 §3.6 line 796 cites its "map <- world epochs" text. - In code: Yes:
truthcopy.py,guard.py,robots/duck/tests/test_payload.pyexist.
RFC-0021-3: The payload contract is one small newline-JSON-RPC contract that any navigator can implement, later unified with Mission Control's navigator API¶
Architecture ADR: ADR-0027.
- Decided:
hello,localise,start(point/explore),status,cancel,stop; the navigator is kept between starts. Since 2026-11-22 the payload and Mission Control's navigator API keep one contract, version 1.0 (libs/runner/CONTRACT.md) withgoal.start,goal.status,goal.cancel,goal.break. A second, minimal payload (robots/duck/payloads/straight.py) proves it is not ours alone. - Why: "so another navigator can implement" it (§5 step 2; arena question 4).
- How:
libs/runner/CONTRACT.md;robots/duck/src/duck_lab/payload.py;robots/duck/payloads/straight.py(stdlib andrunfile, noduck_lab). - Alternatives rejected: Mission Control's wider contract as the payload contract (§7 question 2 "a smaller contract").
- RFC status and section: Accepted; §3, §5 steps 2 and 5, §7.2.
- Who decided and when: answered 2026-11-20; unified 2026-11-22 (per the RFC text).
- Existing ADR: partly: ADR-0020 decision 1 builds on it ("the navigator contract
(
libs/runner/CONTRACT.md)"); the contract is in that file, not an ADR. - Later changed by: RFC-0025 §3.2 (a contract version after 1.7:
pointgetsyaw) and §3.12 (hellogains layers). - In code: Yes:
libs/runner/CONTRACT.md,robots/duck/payloads/straight.pyexist.
RFC-0021-4: A host file's kind names the simulator, and everything that knows a simulator lives behind that kind (reset, connections, a truth reader, a scene writer)¶
Architecture ADR: ADR-0027.
- Decided: a kind provides four things; "Nothing outside it should name Pollen, MuJoCo, Gazebo
or ROS". Built kind:
pollen-duck-sim; planned second:gazebo-turtlebot3. The runner, evaluator, recording, Observatory and Mission Control are the same for every kind. A robot is profile and plugins; a simulator is a kind; the host file pairs them. - Why: operator, 2026-11-20: "different robots bring different simulators ... we want our mini explorer and control to work with all of those combinations"; "let's add support for TurtleBot3, that is the ROS standard" (§3.1).
- How:
libs/simhost/src/simhost/kinds.py(KINDS); the host file'skindkey (host.pylines 4-16 showpollen-duck-simandnxt-kinematic-sim). - Alternatives rejected: none named.
- RFC status and section: Accepted; §3.1.
- Who decided and when: the operator, 2026-11-20.
- Existing ADR: partly: ADR-0020 consequences ("a
gazebo-turtlebot3host kind as its own module"). - Later changed by: RFC-0025 §3.4 (2026-11-23, host kind separate from the connector; a Gazebo
kind as its own module); RFC-0022 §3.2 (scene writer to
libs/simhostunder the kind). Code now has a second kind,nxt-kinematic-sim, inhost.py, not named in RFC-0021. - In code: Partial:
kinds.py,nxt.pyexist;gazebo-turtlebot3is not built (RFC text: "Not built").
RFC-0021-5: A host is set up by one idempotent script and checked by a read-only script, from Pollen's repositories at commits pinned in this repository; we distribute none of Pollen's code¶
Architecture ADR: ADR-0027.
- Decided:
scripts/host-setup(safe to rerun, first-failure stop, system packages printed not installed) andscripts/host-check(PASS/FAIL, installs nothing). Pollen'smicroduckandmicroduck_rlare cloned from Pollen at one pinned set of commits; our patch toduck-simand a configd macOS patch are applied. Platforms from the start: Linux x86-64 and macOS on Apple Silicon. Pollen's licences: Apache-2.0 code, CC-BY-NC-SA-4.0 models: this repository "distributes neither". - Why: operator, 2026-11-20: "I want to set up this project on a new laptop, run that script and it sets up the Pollen repo, the sim, everything", and "I would like to run all of this on my laptop, a MacBook Pro M4 Pro" (§4).
- How:
scripts/host-setup,scripts/host-check;robots/duck/sim/patches/; Linux proven 2026-11-20, macOS 2026-11-21 (§5 step 3). - Alternatives rejected: none named (a container image for the payload and runner "follows if the scripts prove the line clean", §4).
- RFC status and section: Accepted; §4, §5 step 3, §7.1.
- Who decided and when: the operator, 2026-11-20 and 2026-11-21 (the go for installs on the MacBook).
- Existing ADR: none.
- Later changed by: RFC-0025 §3.4/§9 line 2125: "The setup and check scripts (RFC-0021 §4) cover Pollen's simulator only. Gazebo ..." (open for the second kind).
- In code: Yes:
scripts/host-setupandscripts/host-checkexist. ---