RFC-0020: its decisions in full¶
Rows of the decision inventory, from the RFC.
RFC-0020-1: A robot brings two things, a profile (data) and capability plugins (code); the shared parts hold no robot's numbers¶
Architecture ADR: ADR-0023.
- Decided: planning, exploring, the safety rules, anomalies, goals and the views read from the profile and call plugins. "A lesson learned on one robot becomes a number in its profile or code in its plugin; it reaches another robot only when that robot's profile or plugin says so."
- Why: operator, 2026-11-19: "I also want not to apply in practice things that we really learned on one robot only, and instead I want each robot to bring its impact on planning in some way, like a little plugins of some sort"; the goal "robot platform where we can load any robot".
- How: profile
robots/duck/profile.json; schema and validatorlibs/runfile/src/runfile/profile.py; the navigator readsNavigator.configure(build status). - Alternatives rejected: none named (§1 describes the cost of the duck-only navigator).
- RFC status and section: Accepted (2026-11-19); §2.
- Who decided and when: the operator, 2026-11-19 ("Yes to all 3", §7).
- Existing ADR: partly: ADR-0020 consequences cite "RFC-0020's plugins, not the duck's alone"; the principle is in no ADR.
- Later changed by: RFC-0025 §3.12 revision L1 (the uncommitted "Amended 2026-11-30" paragraph
in this RFC, the operator's decision): the plugins are grouped by six layers, the profile's
pluginsblock becomeslayers(RFC-0025 §3.12; "no profile is read in two shapes"), "Planning and behaviour has no per-robot plugin of ours" (RFC-0025 line 1556, restating §2). RFC-0025 §2.4 and step 2 shrink the required blocks. - In code: Yes:
robots/duck/profile.json,libs/runfile/src/runfile/profile.pyexist. Thelayersrename is not in code yet:profile.pylines 11, 276, 534 still sayplugins.
RFC-0020-2: One profile file per robot under robots/<robot>/, with a variant block per environment (sim, real)¶
Architecture ADR: ADR-0023.
- Decided: one profile replaces three pieces (the description, the Mission Control robot file,
calibration/<robot>.json); measured numbers that differ per environment live in a variant, named at goal start. Every measured number keeps itsmeasuredandwhy. - Why: questions 1 and 2 answered with the operator's "Yes to all 3"; "expand [the] existing robot profile we have been developing" (status).
- How:
robots/duck/profile.json(variantssim,real);robots/duck/tests/test_profile.pycompares every number with the constant it replaced (status). - Alternatives rejected: none named.
- RFC status and section: Accepted; §3, §7.1-7.2.
- Who decided and when: the operator, 2026-11-19.
- Existing ADR: none.
- Later changed by: RFC-0025 §2.4 item 4 and §3.12 (2026-11-30): "Profile v2: required blocks shrink to identity, factsheet, control, capabilities, layers"; "A plugin's settings live under it"; RFC-0022 §8 (a robot is found by a registration file, not a profile field).
- In code: Yes:
robots/duck/profile.jsonhas"variants"perprofile.py'sTOPset.
RFC-0020-3: Four capability plugin interfaces (locomotion, range sensing, localisation and map, looking); the shared navigator decides, plugins only answer¶
Architecture ADR: ADR-0023.
- Decided: the navigator calls plugins instead of assuming the duck. The duck's plugins are
today's code moved behind them (
duck-walk@1,tof8x8@1,mapd@1,duck-head@1). - Why: "How the robot does the few things no number can describe" (§2); the duck's mapd, 8x8
sensor, head and
robotdAPI are assumed outright (§1). - How:
robots/duck/src/duck_lab/plugins/interfaces.pyandduck_walk.py,tof8x8.py,mapd.py,duck_head.py;profile.pyINTERFACES. - Alternatives rejected: none named.
- RFC status and section: Accepted; §4, §6 step 3.
- Who decided and when: the operator, 2026-11-19.
- Existing ADR: none.
- Later changed by: RFC-0025 §3.7 adds a fifth interface,
local_controller(INTERFACESinprofile.py:165shows five); RFC-0025 §3.12: the plugins group under six layers (sensing, localisation and mapping, planning and behaviour, local control, safety, locomotion), each with a provideroursorrobot; Mission Control's Modules tab becomes Layers. - In code: Yes:
plugins/interfaces.py,duck_walk.py,duck_head.py,mapd.py,tof8x8.pyexist;INTERFACEShas five.
RFC-0020-4: Plugins are Python classes named name@version in the profile and loaded by name; a process boundary comes later only if a robot needs one¶
Architecture ADR: ADR-0023.
- Decided: question 3: "Plugins in Python only for now"; a plugin as its own service later, if a robot driven by another runtime needs one. The Observatory's run adapter and Mission Control's robot adapter are the same kind of named plugin (as RFC-0018 decided).
- Why: question 3 answered with the operator's "Yes to all 3" (§7).
- How:
PLUGIN = re.compile(r"^[a-z][a-z0-9_-]*@[1-9][0-9]*$")inlibs/runfile/src/runfile/profile.py; each run'scalibrationevent records profile and plugin versions. - Alternatives rejected: a process boundary now (§7.3).
- RFC status and section: Accepted; §4, §7.3.
- Who decided and when: the operator, 2026-11-19.
- Existing ADR: none.
- Later changed by: RFC-0025 §3.2 (a ROS robot's own stack behind our contracts, "provider
robot") and §3.12 ("Plugin" keeps this RFC's meaning; a plugin's provider isoursorrobot). - In code: Yes: the
PLUGINpattern exists inprofile.py.
RFC-0020-5: Each run records the profile and plugin versions it ran with, and the views draw a robot from its profile, not from the duck's constants¶
Architecture ADR: ADR-0023.
- Decided: a run shows what the robot was believed to be then; the Eye, the video, the robot page and the challenge course read the profile (sensor cones, footprint, heights).
- Why: "a change of profile between two runs shows as a difference" (§5).
- How: a run's
calibrationevent (build status);robots/duck/profile.json; views are step 4 (not started in the status). - Alternatives rejected: none named.
- RFC status and section: Accepted; §5, §6 step 4.
- Who decided and when: the operator, 2026-11-19 ("augment [the] view surfaces", status).
- Existing ADR: none.
- Later changed by: RFC-0023 (2026-11-21, Accepted, the views round: RFC-0020's robot page is an
input); RFC-0025
libs/runfile/src/runfile/build.pyidentity gains per-layer plugins (§3.12). - In code: Partial: the
calibrationevent is built per the status; the robot page is "not started" per the status (step 4). ---