RFC-0009: its decisions in full¶
Rows of the decision inventory, from the RFC.
RFC-0009-1: One run format for every robot, one adapter per robot, with a scene builder that all views share¶
- Decided: A run is versioned (v1 here, later format 2), with metadata (robot, footprint, scene,
start, frames: which is truth and which is belief) and time-stamped records (
pose,world,sensor,plan,decision,event); SI units, named frames, all in the run's map frame; readers ignore what they do not know. "A new robot needs an adapter and nothing else." Truth is optional. - Why: the first miniview was duck-shaped and read the navigator's tick log directly (§1); "the viewer should be shaped before the logs that feed it" (§1).
- How: RFC-0009 §2.1, §2.2, §5;
libs/runfile/,docs: ADR-0007 (the run file, format 2). - Alternatives rejected: none named for the format itself (storage is in 0009-4).
- RFC status and section: Proposed, §2, §5.
- Who decided and when: not stated as a separate decision; the operator's review was asked.
- Existing ADR: partly: ADR-0007 (the run file, format 2) and ADR-0006 (run identity) supersede the v1 content list; the adapter-per-robot rule is in ADR-0013 for the NXT.
- Later changed by: RFC-0010 §2 and ADR-0007 (format 2 replaces v1, no
preparestep); RFC-0009 line 66 "RFC-0010: there is noprepare". Checked: RFC-0010 to RFC-0032 by grep. - In code: Yes:
libs/runfile/exists.
RFC-0009-2: One scene builder, two renderers, so the agent's pictures and the operator's page cannot disagree¶
- Decided: A single builder turns a run at time t into shapes independent of how they are drawn; the agent renderer (SVG rasterized by Chromium, plus JSON) and the page renderer share it. "A view exists in both faces or in neither." Stable outputs: the same run and command give the same bytes.
- Why: "Two pictures that can disagree" is the stated problem with Rerun's own data API for the agent; Matplotlib would be "a second drawing path from the page's" (§6).
- How: RFC-0009 §2.3 to §2.5, §5;
apps/observatory/web/,apps/observatory/src/. - Alternatives rejected: Rerun alone driven by Playwright; Rerun's data API for the agent; Matplotlib; a web app with a server (the last one later reversed, see 0009-3) (§6).
- RFC status and section: Proposed, §2, §5, §6.
- Who decided and when: the drawing library is the operator's (§7, 2026-11-15, "a framework from the start (no hand-drawn canvas)").
- Existing ADR: ADR-0003 covers it ("draws with three.js, the same page for the operator and the agent"; Accepted for this step, 2026-11-15, reviewed mid-term).
- Later changed by: RFC-0013 (robot eye) and RFC-0021 not checked; ADR-0021 "one design system and 3D stage" is later. Not found reversed.
- In code: Yes:
apps/observatory/webexists.
RFC-0009-3: One API over one database, two pages, live from the start (SSE); this replaces "files in, files out, no server"¶
- Decided: The three.js and deck.gl pages read the same HTTP API and the API reads one database (the index over the runs). The pages hold no data logic. Streaming is supported from the start: a live run is a run that has not ended; the robot appends to its MCAP and the service follows the file and sends new data as Server-Sent Events.
- Why: the operator, 2026-11-15; the RFC records it as replacing the earlier principle (§2.7, §5).
- How: RFC-0009 §2.7;
apps/observatory/CONTRACT.md. - Alternatives rejected: "A web app with a server. More to run and secure, for no answer the files do not give" (§6, reversed by §2.7).
- RFC status and section: Proposed, §2.5, §2.7, §5.
- Who decided and when: the operator, 2026-11-15 (§2.7: "operator, 2026-11-15").
- Existing ADR: ADR-0005 covers it ("one API over the run store, live from the start"), Accepted 2026-11-15, "in part superseded by RFC-0010".
- Later changed by: RFC-0010 (the API becomes version 2: ADR-0010; loading by window then record: ADR-0011); RFC-0014 line 215 reuses SSE.
- In code: Yes:
apps/observatory/CONTRACT.md.
RFC-0009-4: Runs are stored as MCAP, with a derived SQLite index (the "storage of runs" decision)¶
Architecture ADR: ADR-0004.
- Decided: Storage candidates (MCAP, DuckDB over Parquet or Arrow, SQLite, time-series database, JSON lines) were left open in §7; the choice made later is MCAP as the record of truth with a SQLite index derived from it.
- Why: RFC-0009 §7 lists MCAP as "already ours for
nxt-web, read by Foxglove, Lichtblick and Rerun"; the final reasons are in ADR-0004, not in this RFC. - How: RFC-0009 §7; ADR-0004;
libs/runfile/. - Alternatives rejected: DuckDB over Parquet or Arrow, SQLite alone, a time-series database, JSON lines (listed, not argued in this RFC).
- RFC status and section: Proposed, §7 (open decision "to be chosen with care").
- Who decided and when: the operator, 2026-11-15 (ADR-0004 header).
- Existing ADR: ADR-0004 covers it fully; ADR-0009 (index and lifecycle).
- Later changed by: RFC-0010 (format 2, ADR-0007).
- In code: Yes:
libs/runfile/andapps/observatory/exist.
RFC-0009-5: Scenes are named, first-class things that runs refer to; a run with no known scene is shown as its data alone¶
- Decided: A scene is a place with what is really there (geometry, hazards, origin, frame) and, for a challenge, its mission and invariants; written once (the simulator layout, a challenge generator, later a recorded map); runs refer to theirs by name.
- Why: the operator, 2026-11-15; the RFC gives no further reason.
- How: RFC-0009 §2.6;
scenes/;libs/runfile; ADR-0006 (runs arerobot/scene/run). - Alternatives rejected: none named.
- RFC status and section: Proposed, §2.6.
- Who decided and when: the operator, 2026-11-15.
- Existing ADR: partly: ADR-0006 (run identity robot/scene/run). The scene definition is not recorded there as far as I read the README line.
- Later changed by: RFC-0010 and ADR-0006; RFC-0022 (layout,
scenes/at the repository root). - In code: Yes:
scenes/at the repo root exists.
RFC-0009-6: The viewer is its own package that the robots depend on for adapters, and it depends on neither; Docker runs one image on loopback port 8070¶
- Decided: The viewer is its own package at the repository root (
viewer/, Python, uv, CLIminiview), "not inside the duck"; the duck and the NXT depend on it for adapters, it depends on neither. Docker: one image onpython:3.12-slimwithuv, port 8070 published on127.0.0.1only, the data mounted from the host and followed by polling every quarter second (file events are unreliable across mounts), the agent's pictures stay outside the image because Chromium would make it several times larger. - Why: "The duck and the NXT both depend on it for their adapters" (§3); the smallest image (§3).
- How: RFC-0009 §3;
apps/observatory/{Dockerfile,compose.yml}(the package moved:viewer/no longer exists). - Alternatives rejected: none named.
- RFC status and section: Proposed, §3 (marked "Decided", and a Docker plan).
- Who decided and when: the operator, 2026-11-15 (§3, twice).
- Existing ADR: partly: ADR-0012 changes the mount to read-only data (index in the host state folder); nothing records the package boundary or port.
- Later changed by: RFC-0018 (renamed to the Observatory) and RFC-0022 (layout:
apps/observatory); ADR-0012 (mount read-only); the mount rule here ("the mount is read-write") is reversed by ADR-0012. - In code: Yes:
apps/observatory/compose.ymlpublishes127.0.0.1:...:8070;DockerfilehasEXPOSE 8070. - RFC-0001 §3.5: link choice (USB first, rfcomm); §3.4 CSV layout; §4 measured timings: tool and measurement choices. - RFC-0002 phases 0 to 5 and their bars; §3.5 simulator prerequisites (mapd command line, backlash scene); §3.8 numbers (10 cm cells, 15 cm margin): a step plan and tuning. - RFC-0003 §2.2 ESP32 model (M5Stack Atom Lite): a part choice. - RFC-0004 §2.2 model names and the $10 cap: a one-off choice (kept only as the alias rule, 0004-2). - RFC-0005 §2.5 Order and §2.4 asks (E1 to E14, F1 to F16): a step plan and requests to other projects. - RFC-0007 §7 Order: a step plan. - RFC-0008 §3 table of 23 challenges and the 80 % coverage bar (set from ten seeds, "provisional"): a list and a measured number. - RFC-0009 §4 versions v0.1 to v0.3: a step plan.