RFC-0010: its decisions in full¶
Rows of the decision inventory, from the RFC.
RFC-0010-1: A run is robot/scene/run and says who it is¶
Architecture ADR: ADR-0006.
- Decided: Run ids are the triple
robot/scene/run; therunrecord carries format, uuid, wall-clock start and origin. - Why: The review found run ids collide across robots and a run's time has no wall-clock anchor (§1; findings 4).
- How: ADR-0006;
libs/runfile/src/runfile/keys.py. - Alternatives rejected: none named.
- RFC status and section: Accepted, §3 table.
- Who decided and when: the operator, 2026-11-15 ("decided to fix all of them", §1).
- Existing ADR: ADR-0006 covers it fully.
- Later changed by: not found in my RFCs (RFC-0011 §3.4 adds origin
sim/realand the description hash to the run record). - In code: Yes,
libs/runfile/src/runfile/keys.pyexists.
RFC-0010-2: The run file, format 2: one writer, a lock, flushed per tick, absolute time, segments, Foxglove shapes, nothing dropped, compacted at the end¶
Architecture ADR: ADR-0007.
- Decided: Format 2 of the MCAP run:
run.live.mcapbecomesrun.mcap; one writer under a lock; the importer keeps everything. - Why: Findings 4, 5, 10 of the miniview review; "now, before the navigator writes runs itself (RFC-0008 step 1) and before hundreds exist, when changing the layout is still cheap" (§1).
- How: ADR-0007;
libs/runfile/src/runfile/{mcapio,build,store}.py; layout in §2. - Alternatives rejected: none named in RFC-0010.
- RFC status and section: Accepted, §2 and §3.
- Who decided and when: the operator, 2026-11-15.
- Existing ADR: ADR-0007 covers it fully.
- Later changed by: not found in my RFCs (RFC-0021 §recording and RFC-0019 build on it; neither amends it).
- In code: Yes,
libs/runfile/src/runfile/mcapio.pyexists.
RFC-0010-3: Reading is validated and isolated: a bad run is "broken", never fatal; rewrites are detected¶
Architecture ADR: ADR-0008.
- Decided: Every record is validated on read; a bad file or record marks that run broken and never stops the service or freezes live runs.
- Why: "one bad file stops the service and one bad record freezes every live run" (§1; findings 1, 4).
- How: ADR-0008;
libs/runfile/src/runfile/validate.py; fault tests per finding (§5). - Alternatives rejected: none named.
- RFC status and section: Accepted, §3.
- Who decided and when: the operator, 2026-11-15.
- Existing ADR: ADR-0008 covers it fully.
- Later changed by: not found in my RFCs.
- In code: Yes,
libs/runfile/src/runfile/validate.pyexists.
RFC-0010-4: The index lives outside the data, is owned by the service, is read, and run states and a memory-bounded cache are defined¶
Architecture ADR: ADR-0009.
- Decided: A derived index (runs, streams, events, segments) owned by the service outside the data folder, actually read; run states (crashed runs are stopped, not polled forever); a cache bounded by memory with live runs pinned.
- Why: "every run once opened stays in memory and crashed runs are polled forever"; "the index is written but never read" (§1; findings 3, 6, 9).
- How: ADR-0009;
libs/runfile/src/runfile/index.py. - Alternatives rejected: none named.
- RFC status and section: Accepted, §2 and §3.
- Who decided and when: the operator, 2026-11-15.
- Existing ADR: ADR-0009 covers it fully.
- Later changed by: not found in my RFCs.
- In code: Yes,
libs/runfile/src/runfile/index.pyexists.
RFC-0010-5: API version 2: windows with their own plans and maps, snapshots outside the lock, JSON errors, live by record with resume, gzip¶
Architecture ADR: ADR-0010.
- Decided:
/api/v1serves windows and records, errors as JSON, gzip, and live by record with resume (Last-Event-ID). - Why: "a live page downloads the whole run again every second" and the agent's interface can quietly show the wrong run (§1; findings 2, 8, 13).
- How: ADR-0010;
apps/observatory/CONTRACT.md,apps/observatory/src/observatory/server.py. - Alternatives rejected: none named.
- RFC status and section: Accepted, §3.
- Who decided and when: the operator, 2026-11-15.
- Existing ADR: ADR-0010 covers it fully.
- Later changed by: RFC-0013 §2.3 and RFC-0011 §3.2 add endpoints (
/watch/..., robots, link windows) but do not change the decision. - In code: Yes,
apps/observatory/CONTRACT.mdandserver.pyexist.
RFC-0010-6: The page loads a run by window first, then by record; appends; follow is a mode¶
Architecture ADR: ADR-0011.
- Decided: The page's run store loads the window around the playhead first, the rest after; live records are applied as they arrive; renderers take appends.
- Why: Findings 2, 7, 8 (the whole run downloaded every second; the agent's interface showing the wrong run).
- How: ADR-0011;
apps/observatory/web/shell/runstore.js. - Alternatives rejected: none named. "Which renderer stays" is explicitly not decided (§6).
- RFC status and section: Accepted, §2, §3.
- Who decided and when: the operator, 2026-11-15.
- Existing ADR: ADR-0011 covers it fully.
- Later changed by: ADR-0021 / RFC-0024 change the renderer and stage question (outside this RFC's scope; not read here).
- In code: Yes,
apps/observatory/web/shell/runstore.jsexists.
RFC-0010-7: Docker: the data is mounted read only, the index sits on its own volume, imports happen on the host¶
Architecture ADR: ADR-0012.
- Decided: The service container mounts the run data read only and keeps its index in the host's state folder.
- Why: Finding 9; the RFC gives no further reason.
- How: ADR-0012;
apps/observatory/compose.yml,apps/observatory/Dockerfile. RFC-0014 §3.13 relies on it. - Alternatives rejected: none named.
- RFC status and section: Accepted, §3.
- Who decided and when: the operator, 2026-11-15.
- Existing ADR: ADR-0012 covers it fully.
- Later changed by: not found in my RFCs (RFC-0024 §"mounted read only" repeats it for
robots/). - In code: Yes,
apps/observatory/compose.ymlexists.
RFC-0010-8: Every review finding gets a fault test; no fixed sleeps; a perf check outside CI¶
- Decided: A real run (explore9) as a committed fixture; a fault test per finding; every wait is
for a condition with a timeout, never a fixed sleep;
make perf-vieweris not in CI. - Why: The RFC gives no reason beyond the list in §5.
- How: §5;
apps/observatory/tests/,apps/observatory/perf/. - Alternatives rejected: none named.
- RFC status and section: Accepted, §5.
- Who decided and when: the operator accepted the RFC 2026-11-15; the testing rules have no separate attribution.
- Existing ADR: none (a testing convention; ADR-0008 may name the fault tests, not checked).
- Later changed by: not found in my RFCs.
- In code: Partial,
apps/observatory/testsandapps/observatory/perfexist; I did not check the fixture or the no-sleep rule.