RFC-0004: its decisions in full¶
Rows of the decision inventory, from the RFC.
RFC-0004-1: A mission in words becomes a fixed, validated spec; the LLM only translates and plans; the operator confirms a read-back¶
Architecture ADR: ADR-0026.
- Decided: An LLM planner turns an instruction into a mission spec in a fixed schema (
explore,report,end,limits). The spec is checked against the schema, anything outside it is refused, an unclear instruction gets a question not a guess, and the spec is read back in plain words for the operator to confirm. The end is one of three kinds:landmark(A),start(B),largest_room_doorway(C), A first. - Why: "a fixed schema is checkable, explainable to the operator, and testable offline" (§5); free-form plans were rejected.
- How: RFC-0004 §2.1;
libs/missions/src/missions/{planner,goals,guardrails}.py. - Alternatives rejected: free-form plans from the LLM with no spec (§5).
- RFC status and section: Proposed, revision 2, §2.1, §5.
- Who decided and when: the operator, 2026-11-14 ("missions in plain words, with end options A, B, C ... A first", §6).
- Existing ADR: none.
- Later changed by: RFC-0014 line 344 and 464 (a kind is a name plus a validated schema; "an unknown kind is refused, as RFC-0004 §2.1"; nothing runs until the operator confirms) keep it; RFC-0014 §2 C7 and §3.4.5 make the planner "an independent, optional module" and add goals by object and room; RFC-0030 (missions) is a separate later RFC and states it is "not built on" RFC-0005. The A/B/C end kinds are not mentioned in the RFC-0014 lines I read.
- In code: Yes:
libs/missions/src/missions/{planner,goals,guardrails}.pyexist.
RFC-0004-2: Models sit behind LiteLLM under aliases the brain owns, with a scoped key; open-weight models first¶
Architecture ADR: ADR-0026.
- Decided: The brain calls models only through the homelab's LiteLLM gateway under aliases
(
robot-vlm,robot-planner,robot-vlm-gemma) with a mode-600 key that reaches only these. Open-weight models runnable on the DGX are preferred (Qwen3-VL-30B-A3B, Gemma 4 26B-A4B); the aliases move to a local vLLM later "the aliases move, the code does not". - Why: "LiteLLM gives one endpoint, keys and budgets, and lets the model move without code changes" (§5); the operator chose open weights.
- How: RFC-0004 §2.2; the key file
~/robotics-brain-litellm.env(outside the repo). - Alternatives rejected: providers called directly from the brain; closed models first; an object detector only (§5).
- RFC status and section: Proposed, revision 2, §2.2, §5.
- Who decided and when: the operator, 2026-11-13 ("chose open-weight models runnable on the DGX and approved phase 1", §6).
- Existing ADR: none.
- Later changed by: RFC-0012 line 8 and RFC-0016 line 6 build on it (VLM object layer); not reversed. I did not read them for alias changes.
- In code: Partial:
grep -rli "robot-planner\|robot-vlm"found only docs/wip files outside docs/rfc; no code reference found.
RFC-0004-3: The vision model answers questions and labels objects; it never controls motion; image to map uses bearing from the box plus depth¶
Architecture ADR: ADR-0026.
- Decided: The VLM is asked "which room type is this?", "is there a coat rack and where?", "how big does this room look?". A bounding box plus the camera intrinsics gives a bearing, the depth sensor gives range when close, and the result is an object with a position. Visual odometry is out ("upstream found it fails on a bobbing biped").
- Why: models belong to seconds-scale planning, never to the control loop (§1, §3).
- How: RFC-0004 §2.3, §3;
robots/duck/src/duck_lab/nav/camera.py; RFC-0016 is the semantic map. - Alternatives rejected: an object detector only (cannot answer "which room is this?"; "may join later as a fast pass").
- RFC status and section: Proposed, revision 2, §2.3, §3, §5.
- Who decided and when: not stated as a decision.
- Existing ADR: partly: ADR-0019 "semantic map records" covers how objects are stored, not that the VLM only answers questions.
- Later changed by: RFC-0016 (objects and semantic map) extends it; RFC-0012, RFC-0013 (look far, robot eye). Not reversed.
- In code: Partial:
robots/duck/src/duck_lab/nav/camera.pyexists.
RFC-0004-4: The planner has a fixed tool allowlist and sees summaries, not raw frames or the full grid¶
Architecture ADR: ADR-0026.
- Decided: Planner tools are
set_mode,explore,survey,go_to/go_to_object,go_to_start,go_to_room_doorway,look,rooms/objects,report/stop. Every call is logged with latency and cost, and has a timeout. - Why: "The planner's tools are an allowlist; every model call has a timeout" (RFC-0002 §3.6); the planner sees summaries to stay bounded (§2.5).
- How: RFC-0004 §2.5;
libs/missions/src/missions/{planner,guardrails}.py. - Alternatives rejected: none named.
- RFC status and section: Proposed, revision 2, §2.5.
- Who decided and when: not stated.
- Existing ADR: none.
- Later changed by: RFC-0014 line 464: "the planner has no path to
drive" and its tools are Mission Control goals (the tool list differs:go_to_*become goal kinds). Reworked, not reversed. - In code: Partial:
libs/missions/src/missions/planner.pyandguardrails.pyexist; the tool list was not compared.
RFC-0004-5: The world model segments rooms from the map and the vision model labels them¶
- Decided: The world model is a copy of
map.grid, rooms as free-space segments split at doorways each with the vision model's label, objects with positions and last-seen, and mission progress. Room size is a segment's free area, "rough by design". - Why: rooms and sizes are what the mission reports (§2.4).
- How: RFC-0004 §2.4;
libs/worldmodel/. - Alternatives rejected: none named.
- RFC status and section: Proposed, revision 2, §2.4, §4.3 (open).
- Who decided and when: not stated.
- Existing ADR: none.
- Later changed by: RFC-0008 §8 (2026-11-19, operator): "the robot no longer segments rooms — the operator defines the areas (RFC-0014)"; RFC-0014 §3.5 (the site's map and naming). This reverses the segmentation part.
- In code: No for segmentation (RFC-0008 §8 says it was dropped);
libs/worldmodel/exists but its content was not read.