The surface map¶
What the operator and agents see and use, and what each view depends on: the API routes and live events it calls, the platform pieces and navigation layers behind it (How the platform fits together), and the documents that cover it (PRD, UX spec, RFC, ADR, contract). It is where the architecture and the product meet: a change to a route, a piece or a layer shows here which views it reaches, and a view shows which documents must change with it (How we decide and document).
Mapped from the code on 2026-11-30. File names are given, line numbers are not (they go stale). The piece and layer of each view are an assignment, not a fact read from the code.
The surfaces at a glance¶
| Surface | Job (ADR-0025) | Code | PRD | UX spec | Contract | Guide |
|---|---|---|---|---|---|---|
| Mission Control (page) | Operate: robots, goals, sites, profiles, calibration, STOP | apps/mission-control/src/mission_control/web/ |
PRD-002 | none | apps/mission-control/CONTRACT.md |
Mission Control |
| Mission Control (MCP) | The same API for an agent, simulator by default, no fire | mission_control/mcp_server.py (42 tools) |
with PRD-002 | n/a | the same, "MCP" | none |
| The Observatory (page) | Explain: every run, live or past | apps/observatory/web/ (shell/, three/) |
PRD-003 (PRD-001 for the miniview) | UXS-001 | apps/observatory/CONTRACT.md |
The Observatory |
| The Observatory (MCP) | Read runs, scenes and robots for an agent | observatory/mcp_server.py (12 tools, read only) |
with PRD-003 | n/a | the same | none |
| nxt-web | The NXT's own playground: drive, sensors, programs, setup | apps/nxt-web/src/nxt_lab/ |
none | none | none | nxt-web |
| The command line | Runners, the gate, measurements, run tools | libs/runner, libs/simhost, robots/duck, the apps' CLIs |
PRD-004, PRD-005 | n/a | libs/runner/CONTRACT.md (navigator) |
Command line |
| The operator's observability stack | Keep the long term: health and telemetry | mission_control/telemetry.py (to the homelab's stack) |
none | none | the homelab's | none |
Layers: SEN sensing, LOC localisation and mapping, PLAN planning and behaviour, CTRL local control, SAFE safety, LOCO locomotion (ADR-0023).
Mission Control¶
Every call goes to /api/v1 (api.py); the live stream is GET /api/v1/events (events.py), and
the page subscribes to state, map, robot-online, robot-offline, lock, stop,
stop-all, goal-run, decision, anomaly, objects, object-named. The page is also served
behind the Observatory at /control/.
The overview page¶
| View | Web file | Routes | Events | Piece | Layer | Defined in |
|---|---|---|---|---|---|---|
| STOP and STOP ALL (always visible) | index.html, app.js |
POST /robots/{id}/stop, POST /stop |
stop, stop-all |
Gate, Mission Control | SAFE | RFC-0014 §3.8, RFC-0017, ADR-0024 |
| Alarms badge and inspector | app.js |
none (events) | anomaly |
Mission Control; links to the Observatory | SAFE | RFC-0019, RFC-0023 D5 |
| Robots list | app.js |
GET /robots, GET /robots/{id} |
state, robot-online/offline, lock |
Mission Control, Gate | - | RFC-0014 §3.3 |
| Map: site, map, objects, areas; tap for a point goal | app.js |
GET /robots/{id}/map, GET /sites, GET /sites/{s}/objects, GET /sites/{s}/areas, PUT /robots/{id}/site, POST /sites |
map, objects, object-named |
World model | LOC | RFC-0014 §3.5-3.6, RFC-0016 |
| Goal: in words or by kind, must-not, simulator first, run or save | app.js |
POST /plan, POST /goal-runs, POST /goals |
goal-run |
Mission Control (libs/missions), the navigator through lab-nav-server |
PLAN | RFC-0014 §3.4, RFC-0030, ADR-0026 |
| Goal runs: list, decisions, cancel, save | app.js |
GET /goal-runs, GET /goal-runs/{id}, POST .../cancel, POST .../save |
goal-run, decision, anomaly |
Mission Control, Navigator, the Observatory (run link) | PLAN | RFC-0014 §3.4.3 |
| Library of saved goals | app.js |
GET /goals, POST /goals/{id}/runs, DELETE /goals/{id} |
goal-run |
Mission Control | PLAN | RFC-0014 §3.4.6 |
| Areas: draw, rename, delete; export and import a site | app.js |
POST/PUT/DELETE /sites/{s}/areas[/{a}], POST /sites/{s}/export, POST /sites/{s}/import |
objects |
World model | LOC | RFC-0014 §3.5 |
| Events log; command palette (never starts a goal) | app.js, palette-verbs.js |
none | all | Mission Control | - | RFC-0024, ADR-0021 |
The robot page (#robot/<id>/<tab>)¶
| Tab or panel | Web file | Routes | Events | Piece | Layer | Defined in |
|---|---|---|---|---|---|---|
| Header: readiness verdict, facts line, holder, profile version | app.js, readiness.js |
GET /robots/{id} |
state, lock, anomaly |
Mission Control, Robot profile, Gate | - | RFC-0023 D3 |
| Overview: Readiness, Alarms (60 s), Parts | app.js, readiness.js |
GET /robots/{id} |
state, anomaly |
Robot profile (subsystems), Gate | SAFE | RFC-0023 D3, §7 item 4 |
| Overview: Facts (hidden when the robot has none) | app.js |
GET /robots/{id}/facts |
robot-online |
the robot (RFC-0032 facts) | - | RFC-0032 |
| Body: 3D model, joints | bodyview.js, libs/web/body |
GET /robots/{id}/description, GET /robots/{id}/meshes/{file} |
state, anomaly |
Robot profile and description | LOCO | RFC-0011, RFC-0023 D4, RFC-0024 |
| Modules (becomes Layers: provider, plugins, versions, health, hand-over shares) | settings.js |
GET /robots/{id}/profile |
none | Robot profile and its layers' plugins | all | RFC-0020, RFC-0023 D3, RFC-0025 §3.12 (steps 2 and 5b), ADR-0023 |
| Settings: versions, variants, edit, compare, make current, import, export | settings.js |
GET/POST /robots/{id}/profile, PUT .../profile/current, GET .../profile/export, POST .../profile/import, GET .../profile/diff |
none | Robot profile | all | RFC-0023 D10 |
| Calibration: procedures, run, keep | settings.js |
GET/POST/DELETE /robots/{id}/calibration, POST .../cancel, .../reference, .../keep |
none (polled) | Robot profile (measured), Runner (navigator contract) | LOCO, LOC, SEN | RFC-0023 D11 |
| Actions (only with an action catalogue) | app.js |
GET /robots/{id}/actions |
none | Robot abilities | - | RFC-0032 |
| Layout menu | layout.js, libs/web/layout |
none (browser storage) | none | Mission Control | - | RFC-0024 |
Routes no page uses¶
POST /robots/{id}/drive and the lock routes (POST/DELETE /robots/{id}/lock, .../renew,
.../takeover): the page never drives; the MCP server and other clients do.
GET /robots/{id}/sighting, GET /sites/{s}, GET /sites/{s}/areas/at, GET .../areas/{a},
POST /sites/{s}/objects/{o}/label, GET /sites/{s}/inventory and GET /sites/{s}/guardrails: the
MCP server only (its allow-list, mcp_server.py ALLOWED). PUT/DELETE /sites/{s},
PUT /sites/{s}/guardrails, POST .../areas/{a}/merge and .../split: no client in this
repository. GET/POST/DELETE /tokens: the mission-control token command. The page does
not subscribe to the stream's error and gap events.
The MCP server¶
An HTTP client of the same API, simulator by default (MC_MCP_ALLOW_REAL=1 lifts it), with no
fire tool. Its 42 tools by group: robots (list, get, map, sighting, facts, actions, description,
alarms, health); profile (get, version, diff, use) and calibration (get, start, cancel, keep), the
robot profile; lock, renew, release, drive, stop, stop all, the gate and SAFE; goals and goal runs
(list, get, create, run, run ad hoc, cancel, save), PLAN; sites, areas, objects, inventory,
guardrails, export, label, the world model. Defined in RFC-0014 §3.2, §3.8 and §3.9.
The Observatory¶
One workbench (web/shell/shell.js) with one renderer adapter (three/, ADR-0032), over a read-only
API (server.py: /api/v1/scenes, /api/v1/runs and each run's frames, signals, sensor,
state, events, semantic, presence, and live as a stream; /api/v1/robots; video export,
its only POST). It forwards Mission Control at /control/.
| View | Web file | Routes | Piece | Layer | Defined in |
|---|---|---|---|---|---|
| Scenes page (the run list) | shell.js |
GET /scenes |
Run format and the Observatory | - | RFC-0009, RFC-0010, PRD-001, UXS-001 |
| Run workbench: 3D views, World or Map frame | three/, shell.js, runstore.js |
GET /runs/{key}, /presence, /frames, /semantic, /signals, GET /scenes/{id} |
Run format, World model | LOC, PLAN, SEN | RFC-0010, RFC-0016, UXS-001 |
| Eye and Chase views | shell/eye.js, three/views.js |
GET /runs/{key}/sensor |
Run format | SEN | RFC-0013 |
Watch page /watch/<robot>/<scene>/<run or latest> |
three/watch.html |
GET /runs?robot=&scene=, the run routes, /live |
Run format | SEN, PLAN | RFC-0013, RFC-0023 D12, UXS-001 |
| Live or replay, jump between events | shell/timemode.js |
/live, /events |
Run format | - | RFC-0010 (ADR-0010, ADR-0011) |
| Inspector: Moment, Selection | shell.js |
loaded frames | Run format | LOC, PLAN, CTRL | UXS-001 |
| Explore: robot body, depth frame, map | shell/explore*.js |
GET /robots, GET /robots/{name}, meshes, /sensor |
Robot description, Run format, World model | LOCO, SEN, LOC | RFC-0011, RFC-0016 |
| Decided (the navigator's decisions; per-layer hand-over shares planned) | shell.js |
the run's events | Run format, Navigator | PLAN (all layers after RFC-0025 step 8) | UXS-001, RFC-0025 §3.12 |
| Signals view (a run with no pose) | shell/signals.js, shell/sigviz.js |
/signals |
Run format | all | RFC-0019 |
| Timeline: events, Alarms lane, data lanes | shell/lanes.js |
/presence, /events |
Run format, anomalies | SAFE | RFC-0019, RFC-0023 D5 |
| Streams outliner and properties | shell.js |
none | Run format | - | UXS-001 |
| Export video | shell.js |
GET /render, POST /runs/{key}/video, GET /videos/{id}[/file] |
Run format, the render service | - | ADR-0017 |
| Overlays, layouts, palette, help | shell/layout.js, shell/verbs.js |
none | the Observatory | - | RFC-0024, ADR-0021 |
There is no robot page, anomalies page or scenarios page: the robot is Explore's body, anomalies
are the Alarms lane and the anomaly events (computed further by observatory anomalies), and
scenario sets are lab-scenarios on the command line. /web/mockup/ and /web/proto/ are
prototypes, not the product. The Observatory's MCP server reads runs, scenes and robots only.
nxt-web¶
One page, four tabs, polling (no stream): header with lock, STOP, status, connect (/api/lock,
/api/stop, /api/status, /api/connect), SAFE; Drive (/api/drive, /api/fire), LOCO;
Sensors and log (/api/live, recording, /api/events), SEN; Programs on the brick
(/api/files*, /api/program/*); Setup (/api/config, /api/linktest, /api/diagnostics).
Defined in RFC-0001 and RFC-0014 §3.7; fire moves under Mission Control by RFC-0032.
The command line¶
| Command | Piece | Defined in |
|---|---|---|
lab-challenge, lab-eval, lab-explore, lab-go, lab-rooms, lab-scenarios |
Runner | RFC-0008, RFC-0021, RFC-0022 |
lab-nav-server |
Runner in front of Mission Control | RFC-0021 step 6 |
lab-gate |
Gate | RFC-0017 |
lab-link |
the robot's link | RFC-0021 |
lab-measure-cpu, lab-measure-range, lab-measure-walk, lab-score-sheet |
Robot profile (measured) | RFC-0023 D11 |
simhost |
Host | RFC-0021 |
mission-control serve, token, mcp |
Mission Control | RFC-0014 |
observatory (import, index, runs, events, anomalies, state, frame, sensor, video, serve, mcp ...) |
Run format and the Observatory | RFC-0009, RFC-0010 |
nxt-web |
the NXT | RFC-0001 |
duck-record, duck-to-rerun, duck-replay, duck-world, duck-site, duck-pic, duck-payload |
the duck's tools | RFC-0022 §8 |
duck-go, duck-eval, duck-explore, duck-rooms, duck-challenge, duck-gate, duck-nav-server |
aliases of the lab-* names |
RFC-0022 |
What the map shows¶
- nxt-web has no PRD; Mission Control, nxt-web and the command line have no UX spec, and the Observatory's (UXS-001) is written for its miniview days. PRD-002 to PRD-005 (2026-11-30) cover the other surfaces; their follow-ups name the UX specs to write before a changed screen.
- nxt-web has no contract file, and neither do
libs/gate,libs/missions,libs/runfileandlibs/simhostoutside what the three contracts cover. - Approved, not built: Mission Control's Layers tab with providers, health and hand-over shares
(RFC-0025 steps 2 and 5b), the Observatory's per-layer shares (step 8), the Learning view
(RFC-0031), actions you can run and
fireunder Mission Control (RFC-0032). - Routes without a page: several site and area routes are used only by the MCP server or by nothing in this repository.
Not covered¶
The shared web library's modules (libs/web) are mapped only through the pages that import them.
Mission Control's robot adapters (duck, duck_real, nxt, fake) and telemetry.py are not
mapped to routes. The documents that cover each view were found by searching for the view's name
and by reading the RFC headings, not every section in full. Makefile targets that start the
surfaces are not listed.