RFC-0024: its decisions in full¶
Rows of the decision inventory, from the RFC.
RFC-0024-1: One web shell and library in front of two separate backends and one origin; Mission Control and the Observatory stay two processes¶
Architecture ADR: ADR-0025.
- Decided: Option B, "reached in C's order": a shared web library
libs/web(plain ES modules, no bundler: tokens, fonts, icons, theme switch, three.js, the robot body, alarm inspector, timeline) built first and served by both apps; then one origin and one navigation; folding the two shells is decided only after living with it. The two backends stay separate processes. - Why: the process that holds the lock "stays small and separate from the one that reads 1.9 GB of runs, and the read-only mount stays the container's guarantee" (§6); a body built once; it "answers the operator's question" about two "fully independent things" (§6). Constraints: viewer failure must not touch the lock or STOP; the Observatory's data stays read only in Docker (§3 items 1-2).
- How:
libs/web/(tokens.css, body/, stage/, fonts/, tests/); the Observatory's/control/proxy (RFC-0024-3);libs/web/tests(the missing tokens check, §4 B step 1). - Alternatives rejected: A one app and one process ("the largest rewrite for no new capability,
and it puts the STOP bar and the lock in the same process as the heaviest reader"); C alone (two
origins,
postMessage, a looser CSP); D status quo (the body built twice, tokens drift) (§6 "Not chosen"). - RFC status and section: Accepted; §4, §5, §6, §7 answers 1-2.
- Who decided and when: the operator, 2026-11-23: "I agree on B, reached in C's order, as next step here".
- Existing ADR: ADR-0021 (One design system and one 3D stage for both web apps) cites RFC-0024
and covers the shared tokens, status ladder,
libs/webmodules and stage: partly. The process split (two backends, never one process) and the shared-library- first order have no ADR. - Later changed by: RFC-0030 §8 and RFC-0031 §3 apply its reasoning (no new app, container or
origin);
docs/wip/RFC-0024-REVIEW- 2026-11-26.md(the advisor's review) concludes "RFC-0024 was right ... Not recommended: merging the two processes". RFC-0024 §9 reports step 3 built, steps 4 and 5 (one component for live and run; folding shells) not stated built. Not reversed. - In code: Yes.
libs/web/{body,stage,fonts,tokens.css,tests}exist;apps/observatory/web/shell/still holdsshell.jsandrobotcode (not extracted in full).
RFC-0024-2: One body component with a pose source: live from the state stream in Mission Control, recorded at the playhead in the Observatory¶
Architecture ADR: ADR-0025.
- Decided: The body is built once in
libs/web/body(meshes from the robot's description, one group per link, forward kinematics, health colour from RFC-0023 D4), with two pose sources, live (/events) and recorded (the run at the playhead); mounted in the robot page, the watch page and the alarm inspector. - Why: the wall: three.js lived only in the Observatory and Mission Control had no 3D; option D would build "the same body twice and lets the tokens drift" (§1, §4 D).
- How:
libs/web/body/{body,robot,inspector}.js; lazy loading in Mission Control (ADR-0021 decision 3). - Alternatives rejected: D (copy
robotbody.jsand the 2.1 MB three.js into Mission Control). - RFC status and section: Accepted; §6.2, §9 and steps 1-2 "built" per the header.
- Who decided and when: the operator, 2026-11-23, with the B-in-C's-order answer.
- Existing ADR: ADR-0021 decisions 3-4 partly (shared modules owned and frozen per unit; one 3D stage; lazy import so the phone overview fetches no three.js). The pose-source split is not stated in an ADR.
- Later changed by: ADR-0021 (adds the stage and camera presets). Not reversed.
- In code: Yes.
libs/web/body/body.js,robot.jsand Mission Control'sweb/bodyview.jsexist.
RFC-0024-3: The Observatory proxies Mission Control's API at /control/; Mission Control's process never fronts the run reader¶
Architecture ADR: ADR-0025.
- Decided: The Observatory serves the shared shell and forwards Mission Control's API and event
stream with the standard library (
http.client, any method, the body, six request headers, the stream a chunk at a time); Mission Control's own page still works on :8060. Configured byOBSERVATORY_CONTROL; no new dependency. - Why: the lock's process must not carry the run reader; "no new dependencies without the operator's approval" (§3 item 4). This was the operator's proposal, "not among the options" (§7 answer 3).
- How:
apps/observatory/src/observatory/server.py(/control/..., header comment lines 28-30);scripts/deploy.py:19,213; the wire inapps/observatory/CONTRACT.md(§9). - Alternatives rejected: Mission Control proxying the Observatory ("the lock's process then fronts the viewer"); a reverse proxy (Caddy or nginx: a new dependency and a new container) (§7 question 3 as asked).
- RFC status and section: Accepted, built 2026-11-24; §7 answer 3, §9.
- Who decided and when: the operator, 2026-11-23 (the proposal was theirs per §7); built 2026-11-24.
- Existing ADR: none.
- Later changed by: not found in my RFCs; RFC-0030 §8 and RFC-0031 §3 reuse the one-origin reasoning.
- In code: Yes.
apps/observatory/src/observatory/server.py:28-30,270andscripts/deploy.py:213(OBSERVATORY_CONTROL).
RFC-0024-4: One rule for who may look: reads are open on the LAN and tailnet, every action needs Mission Control's token, STOP is always allowed¶
- Decided:
mission-control serve --require-tokens actions(envMC_REQUIRE_TOKENS=actions): everyGETopen, every other call needs a token, STOP open; the Observatory holds no token and forwards the header. By method, not by route (POST routes that only read, like/plan, need a token too). The deploy turns it on when a token exists and warns otherwise; Mission Control refuses to start with tokens required and none made. - Why: one origin means one rule (§7 question 4); "kept simple" (§9).
- How:
apps/mission-control/src/mission_control/{auth,cli,api}.py(api.py:633-634scope check;cli.py:74,111);scripts/deploy.py. - Alternatives rejected: the Observatory's runs needing the same token (the asked alternative, §7 question 4).
- RFC status and section: Accepted, built; §7 answer 4, §9.
- Who decided and when: the operator, 2026-11-23.
- Existing ADR: none. ADR-0021 decision 8 states STOP rules for the UI, not this auth rule.
- Later changed by: not found in my RFCs; RFC-0017 (the lease and tokens) is the earlier base.
- In code: Yes.
api.py:633-634,cli.py:74.
RFC-0024-5: Mission Control reads runs only through the Observatory's API, never the files; the container mounts no data¶
Architecture ADR: ADR-0025.
- Decided: A standing rule "from now": Mission Control never reads a run file; the boundary
check forbids its source from importing
runfile.catalog,index,mcapio,store,truthcopyorsignals, and its container mounts no data folder and no index. - Why: "It would make A safer later" and keeps the two from sharing a folder (§7 question 5); the lock's process stays small.
- How:
scripts/check_boundaries.py(part ofmake lint);scripts/deploy.pyandcompose.ymlmounts (§9). - Alternatives rejected: Mission Control reading the run store directly (implied by the question).
- RFC status and section: Accepted, built; §3 item 6, §7 answer 5, §9.
- Who decided and when: the operator, 2026-11-23: "Yes, a rule from now" (as the RFC records the answer).
- Existing ADR: ADR-0012 covers the read-only data mount for the Observatory; the Mission Control rule is not in an ADR.
- Later changed by: not found in my RFCs; RFC-0022-2 added the unit pattern this rule uses.
- In code: Partial.
scripts/check_boundaries.pyexists; I did not grep the specific forbidden module list.
RFC-0024-6: The containers run on the host's network, loopback only, because the navigator is a TCP port¶
Architecture ADR: ADR-0025.
- Decided: Both containers run on the host's network and listen on 127.0.0.1 only; the
installation file's addresses mean the same inside and outside the container;
make stack-up(bridge network) names the other service. A Unix socket for the navigator (so the containers could bridge again) was not made. - Why: "the navigator is TCP": the installation file names it
127.0.0.1:8061, "a port on the host's loopback, which a bridged container cannot reach; only the gate is a socket" (§9). Cost accepted: shared host network namespace, checked by the deploy's tests. - How:
scripts/deploy.py; the installation file. - Alternatives rejected: a Unix socket for the navigator (a change to the runner and the adapter, not made).
- RFC status and section: Accepted, built; §9 "The navigator is TCP".
- Who decided and when: not stated as the operator's; recorded in the build section, 2026-11-24.
- Existing ADR: ADR-0012 (Docker: data read only, index in the host's state folder) covers mounts, not the network mode: partly at best.
- Later changed by: RFC-0025 §3.8 (placement setting, a connector reachable by a network address) bears on it; not found to reverse it.
- In code: Yes (existence).
scripts/deploy.py:213names127.0.0.1.
RFC-0024-7: Phone: Mission Control in full plus the Observatory's watch page; the workbench says "open on a larger screen"¶
Architecture ADR: ADR-0025.
- Decided: At phone width the shared navigation shows Mission Control and the watch page only.
- Why: "Mobile first for Mission Control (its STOP bar is always on screen); the Observatory is a workbench for a large screen" (§3 item 5).
- How: not built ("Not built here", §9); ADR-0021 lists it as not covered.
- Alternatives rejected: showing the whole Observatory at phone width, or only a link.
- RFC status and section: Accepted answer; §3 item 5, §7 answer 6, §9.
- Who decided and when: the operator, 2026-11-23.
- Existing ADR: none; ADR-0021 "Not covered" defers "a phone watch page and the shared Robots and Runs navigation (RFC-0024 question 6)".
- Later changed by: not found in my RFCs.
- In code: No. grep for a "Robots / Runs" navigation in
apps/observatory/web/shell/shell.jsfound nothing. All of RFC-0032 is stated "Nothing here is built" (header); the code check below shows parts since built.