ADR-0025 — Three surfaces, one job each: Mission Control operates, the Observatory explains, the operator's stack keeps¶
Status: Accepted by the operator: Mission Control as its own app on 2026-11-17 and 2026-11-18 (RFC-0014), the three jobs on 2026-11-21 (RFC-0023, D1 and D2), one platform on 2026-11-23 (RFC-0024). Written as an ADR on 2026-11-30. Date: 2026-11-30 Scope: architecture: the product's user-visible structure; where any new feature lands.
Context¶
The lab grew two web apps (the Observatory, Mission Control) and an observability stack, and every new item (robot pages, calibration, alarms, learning, missions) has to land somewhere. Without a rule each lands where it was easiest, and the operator meets the same thing twice. The operator also asked whether the two apps should be one.
Decision¶
- Mission Control operates. It is the only surface that changes anything: robots, goals,
sites and areas, profile versions, calibration, STOP. It is its own app, with one HTTP JSON API
and one live event stream that every client uses equally (page, MCP server, agents), versioned
and written down in its
CONTRACT.md. Its own state is SQLite; a goal run points at the Observatory's run and does not store the record again. - The Observatory explains. It is read-only over runs, live or past, and shows a run's robot as it was. It never sends a command.
- The operator's observability stack keeps the long term: low-rate health and telemetry over weeks; the full record stays in the run.
- One platform in front, two processes behind. One web library and shell, one origin; the Observatory forwards Mission Control's API. The process that holds the lock and STOP stays small and separate from the one that reads gigabytes of runs, and Mission Control reads runs only through the Observatory's API, never the files.
- They link to each other at the same moment; neither copies the other's view.
Consequences¶
- A new feature is placed by its job: operating goes to Mission Control, understanding to the Observatory (learning: requests and promotion in Mission Control, the Learning view in the Observatory, RFC-0031).
- A viewer failure cannot take down the lock or STOP.
- The robot's page (live, editable) is Mission Control's; its Layers tab will show each layer's provider, plugins and versions (ADR-0023; not built: RFC-0025 step 5b).
- No third app, container or origin for a new feature unless a named trigger fires.
Alternatives considered¶
- 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" (RFC-0024).
- Goals inside the Observatory: breaks ADR-0005 (the viewer sends no commands).
- Growing the NXT's page into the control centre: it would carry an NXT-shaped API into a many-robot app (RFC-0014).
- JSON-RPC, WebSocket, gRPC or MQTT for clients: rejected for one HTTP JSON API with SSE.
Built¶
Yes: apps/mission-control, apps/observatory, libs/web, the /control/ proxy, the boundary
rule. ADR-0021 is the design system under it.
Inventory¶
RFC-0014-1, -2, -16, -17, -18, -20; RFC-0023-1, -2, -10; RFC-0024-1, -2, -3, -5, -6, -7; RFC-0006-1 (the inventory).