RFC-0022: its decisions in full¶
Rows of the decision inventory, from the RFC.
RFC-0022-1: Platform pieces live in libraries, not in the duck's package; a robot's package is imported by no platform piece¶
- Decided: The runner, evaluator, course and scores, the camera server, the gate proxy and the
nav-server moved out of
duck_labinto a platform librarylibs/runner(packagelabrunner); the duck's package keeps the profile, plugins, the navigator and the simulated apartment. Option A (move) was chosen over B (rename only) and C (wait for the second robot). - Why: "A second robot (the EV3 in phase 6, the TurtleBot3 after the plan) would today have to
import its runner, its evaluator and its gate proxy from the duck's package, and its operator would
type
duck-challengeto test a robot that is not a duck" (§1). Goal: "every piece lives where its kind of code lives (RFC-0018:apps/,libs/,robots/)" (§2). - How:
libs/runner/src/labrunner/(§9 lists the modules); the move was proven by the same tests and runs before and after (§5, §9:make ci-fast, challenges 1-5, a 5-minute exploration, 0 truth connections); the boundary table of RFC-0018 §10 updated (§6 step 5). - Alternatives rejected: B "Rename only: the second robot still imports the duck's package"; C "Wait for the second robot: phase 5's views and docs are written against names that then change" (§5).
- RFC status and section: Accepted, built 2026-11-21; §3.2, §5, §6, §8, §9.
- Who decided and when: the operator, 2026-11-21: "1A, 2 choose best name, 3 before phase 5" (header, §7).
- Existing ADR: none. ADR-0020 (robots behind our own interfaces) is the nearest and covers the robot-interface seam, not the runner/robot-package split.
- Later changed by: RFC-0025 §3.7 reopens the navigator part only (see RFC-0022-5); the library
split itself is carried on by RFC-0025's component table (
libs/runner(labrunner), RFC-0025 "Runner and evaluator" row) and not changed. Checked RFC-0023, 0024, 0025, 0030, 0031, 0032. - In code: Yes.
libs/runner/src/labrunner/{remote,evaluator,challenge,navapi,gate,...}.pyexist;libs/runner/pyproject.toml:22-34declares thelab-*commands.
RFC-0022-2: The boundary check has two units: the runner may import libraries but never a robot's package, and the navigator imports neither the runner nor the simulator host¶
- Decided:
labrunnermay import the libraries, never a robot's package. The navigator (duck_lab.nav,.payload,.plugins,.profile, the registration) imports neitherlabrunnernorsimhost; the duck's operator tools may. §8 narrowed the original §6-5 rule ("a robot's package never importslibs/runner") to "the boundary is the navigator, not the whole duck package". - Why: "The boundary is the navigator, not the whole duck package": reading the imports showed the duck's operator tools legitimately act as a runner (§8). The navigator must stay a payload that runs without the platform around it.
- How:
scripts/check_boundaries.py(unitslabrunner,duck_nav), its own test with a mutation case (navigator importinglabrunner.remotefails),test_payload.py(importing the payload loads nolabrunner, nosimhost); part ofmake lint(§9). - Alternatives rejected: the original blanket rule "a robot's package never imports
libs/runner" (§6 step 5), replaced in §8 because it did not fit the code. - RFC status and section: Accepted, built; §6 step 5, §8, §9.
- Who decided and when: the lead's refinement while building, 2026-11-21 (§8, "refined by the code"); the RFC does not say the operator reviewed this narrowing.
- Existing ADR: none.
- Later changed by: RFC-0025 (§3.7, step 3) splits
duck_lab.navinto a part that knows no robot and the duck's plugins, which moves where theduck_navline falls. RFC-0024 §3 item 6 and §9 add a Mission Control source rule to the same checker (RFC-0024-5). Checked RFC-0023, 0024, 0025, 0030, 0031, 0032. - In code: Yes.
scripts/check_boundaries.py:35-53has"labrunner"and"duck_nav"units and the allowed sets.
RFC-0022-3: A robot is found by name through a registration file, with a Python entry point as the fallback; the profile does not name code¶
- Decided: A robot registers in the group
robotics_lab.robots(the duck:duck = "duck_lab.robot");labrunner.robotsfinds it for--robot duck; with one robot registered it is the default. Since phase 5 step 1 the first route is a registration file the installation names (robots.<name>.registration, the duck'srobots/duck/registration.json); an entry point is the fallback and a file wins over an entry point of the same name. This replaced §4's proposed profile fieldnavigator {command}. - Why: "The profile describes the robot, not code" (§8). The 2026-11-22 file route: "so nothing is installed into Mission Control or the runner to add a robot" (§8).
- How:
libs/runner/src/labrunner/robots.py;robots/duck/registration.json;runfile/registry.py(registration 1, per RFC-0025 "Names");duck_lab/robot.pynames the profile, the payload's and the navigator API's commands, the simulator files and the sites folder (§9). - Alternatives rejected: a profile field
navigator {command}(§4, dropped in §8). - RFC status and section: Accepted, built; §4, §8, §9.
- Who decided and when: the code-driven refinement by the lead, 2026-11-21; the file-first rule is "the operator's decision, 2026-11-22" (§8, "since phase 5 step 1").
- Existing ADR: none. ADR-0020 does not mention registration.
- Later changed by: RFC-0025 "Names" defines registration as the file naming a robot's profile, payload, navigator API and simulator folder, and RFC-0025 step 2 has "registration names its connector". Not reversed. Checked RFC-0023, 0024, 0025, 0030, 0031, 0032.
- In code: Yes.
robots/duck/registration.jsonexists;labrunner/robots.py:1-3documents file first, entry point second.
RFC-0022-4: The platform's commands are lab-*, take the robot as an argument, and the old duck-* names live on as aliases for one release¶
- Decided: One prefix
lab-for every platform command (lab-challenge 1 --robot duck,lab-eval,lab-explore,lab-go,lab-nav-server,lab-gate,lab-rooms);duck-payloadstays (it is the duck's navigator). Eachduck-*command kept working for one release and said its new name. - Why: The prefix was chosen by the lead as the operator asked: "short, the repository's own name, says 'the lab's tool' and not any robot's, and no command of ours starts with it" (§7).
- How:
libs/runner/pyproject.toml:22-34(entry points);labrunner/aliases.py(theduck-*names for one release, §9). §8 narrowed the first list:duck-record,duck-replay,duck-world,duck-pic,duck-site,duck-to-rerunstayed the duck's because they read the apartment's layout or the duck's own perception; onlyduck-roomsmoved. - Alternatives rejected: none named for the prefix (the operator asked the lead to choose).
- RFC status and section: Accepted, built; §4, §7 item 2, §8, §9.
- Who decided and when: the operator delegated the choice ("choose best name"), the lead chose
lab-, 2026-11-21. - Existing ADR: none.
- Later changed by: RFC-0025 "Names" lists
lab-("The prefix of the platform's commands", RFC-0022 §4) as a settled term; RFC-0025 adds alab-link-style command set in code. Not reversed. Whether theduck-*aliases were removed after "one release" I did not find stated. Checked RFC-0023, 0024, 0025, 0030, 0031, 0032. - In code: Yes.
libs/runner/pyproject.tomlhas thelab-*scripts;libs/runner/src/labrunner/aliases.pyexists.
RFC-0022-5: The navigator stays the duck's until a second robot runs it¶
Architecture ADR: ADR-0023.
- Decided:
nav/*, the payload's server and the navigator API stay inrobots/duck; what proves generic moves to a library "when the EV3 or the TurtleBot3 runs it, by the same rule". - Why: "The navigator takes its numbers from the profile, but it has run only on the duck, with the duck's plugins" (§3.3).
- How: stays as
duck_lab.nav,duck_lab.payload; the duck_nav boundary unit (RFC-0022-2). - Alternatives rejected: renaming the navigator now is a stated non-goal (§2).
- RFC status and section: Accepted; §2, §3.3.
- Who decided and when: the operator agreed to "not a rename sweep, but a move" (header); the §3.3 wording is the operator's, per RFC-0025 §10 ("quoted from their brief").
- Existing ADR: none.
- Later changed by: RFC-0025 §3.7 "Our navigator for any robot" (quotes this section and
says: "Now a second and a third robot run it"; the navigator becomes one that drives a legged, a
differential-drive and a tracked robot through per-kind plugins; step 3 of its plan splits
duck_lab.nav). RFC-0025 §3.12 (L1) then names the layers the plugins fill. Checked RFC-0023, 0024, 0025, 0030, 0031, 0032. - In code: Partial.
robots/duck/src/duck_lab/navstill exists; RFC-0025's step 3 split not confirmed built.
RFC-0022-6: Libraries stay pure: the gate proxy and the scene writer sit in the runner, not in libs/gate or simhost¶
- Decided:
gate_proxy.pybecamelabrunner/gate.py(lab-gate), notlibs/gate, becauselibs/gate"is pure rules and the standard library only" and the proxy does socket I/O and reads the host file. The MuJoCo scene writer stays inlabrunner/scene.pybecause it takes the runner'sSceneandsimhost(standard library only) cannot import the runner; it moves to the kind when a second kind brings its own writer. The runner keeps its owncompose/inverse,frames.pyandrpc.pycopies so it imports no robot. - Why: as quoted (§8); this changed §3.2's proposed homes (
libs/gate,libs/simhost). - How:
libs/runner/src/labrunner/gate.py,scene.py,frames.py,rpc.py; allowed-imports table inscripts/check_boundaries.py. - Alternatives rejected: the §3.2 proposal to put the proxy in
libs/gateand the scene writer undersimhost. - RFC status and section: Accepted, built; §3.2 (proposed), §8 (as decided), §9.
- Who decided and when: the lead's refinement during the build, 2026-11-21 (§8).
- Existing ADR: none.
- Later changed by: RFC-0025 step 4 gives
simhost"a module per kind" and RFC-0025 step 9 moves the scene part; it is the "moves to the kind" follow-up this RFC anticipated. Checked RFC-0023, 0024, 0025, 0030, 0031, 0032. RFC-0028 step 2 moved the MuJoCo writer tolibs/simhost/src/simhost/duckworld.py; it reads the scene by shape, sosimhoststill imports nothing. - In code:
libs/runner/src/labrunner/gate.pyexists; the scene writer is inlibs/simhost/src/simhost/duckworld.py, andlabrunner/scene.pykeeps the scene's other outputs.
RFC-0022-7: The apartment's scene files and the run keys name the robot, and stay the duck's¶
- Decided: The apartment's layout, objects and goals stay in
robots/duck/sim/; the duck's registration names the folder and the runner reads them from there. The run key's first part names the robot that ran (duck/apartment/...) and does not change; the runner takes it fromrobots.get().NAME. A second simulator kind brings its own scenes. - Why: "they are the scene built for the duck's simulator" (§8); run keys "name the robot that ran, and stay" (§2).
- How:
robots/duck/sim/; registration (RFC-0022-3); ADR-0006 (run identity) is the contract on the key. - Alternatives rejected: none named.
- RFC status and section: Accepted, built; §2, §3.1, §8, §9.
- Who decided and when: the lead's refinement, 2026-11-21 (§8); run keys as a non-goal are the RFC's own.
- Existing ADR: ADR-0006 covers the run key
robot/scene/runpartly (it does not cover where the scene files live). - Later changed by: RFC-0023 §7.1 item 3 adds "the apartment out of the runner"; RFC-0025 step 9 moves the scene part. Checked RFC-0023, 0024, 0025, 0030, 0031, 0032.
- In code: Yes (existence).
robots/duck/sim/is named by the registration; I did not confirm "the apartment out of the runner" is finished.