PRD-003: The Observatory — explaining every run, live or past, for any robot¶
Status: Proposed (drafted 2026-11-30; its open questions decided by the operator the same day).
- Authors: Marko Dragoljevic, drafted by an agent
- Related UX spec: UXS-001 (written for the miniview days; a UXS for the Observatory as it is now is not written)
- Related PRDs: PRD-001 (the miniview, which this PRD takes over from)
- Related RFCs: RFC-0009, RFC-0010, RFC-0013, RFC-0019, RFC-0023, RFC-0025 (3.11, 3.12, step 8), RFC-0031 (6.4)
- Related ADRs: ADR-0017 (video), ADR-0023 (the layers), ADR-0025 (the three surfaces)
- Surface map: the Observatory's rows
Summary¶
The Observatory is the surface that explains: it shows every run of every robot, live or afterwards, and answers "what did the robot believe, what was true, what did it decide, and why". It is read-only over runs (RFC-0023 D1); Mission Control operates, the Observatory explains. It has two faces over one run format: a page for the operator and a read-only MCP server and command line for an AI agent. This PRD says what the Observatory is for today and what MVP 2 adds: the 2D scan and the map drawn for the Burger, each run's hand-over shares by layer, images recorded beside a run, and the Learning view.
How this relates to PRD-001¶
PRD-001 was written on 2026-11-15 for miniview, the first version: a viewer for a duck run, in the challenge course's time. It stays the record of why the Observatory exists and its goals still hold; this PRD does not contradict them.
- Kept from PRD-001: its five goals (what happened at a moment and why; how the runs of a scene went; two faces, one truth; any robot; cheap for an agent), its personas and its FR1 to FR4 (run format, the agent's face, the operator's face, truth and numbers beside the picture). They are restated here as the base in FR1 to FR3 and FR10, in their built form.
- Already amended in PRD-001's own text: its non-goals "no live view" and "no server or database" were struck through when ADR-0005 and RFC-0009 changed them.
- What this PRD adds: the whole Observatory (the watch page, Explore, Decided, signals, the alarms lane, video export, the MCP server), and MVP 2.
- Scope after this PRD: PRD-003 is the Observatory's PRD; PRD-001 is history for its first version. Whether PRD-001's status changes is an open question below. Nothing in PRD-001 is edited.
Background & Context¶
Since PRD-001 the product was renamed (RFC-0018, 2026-11-19), runs moved to format 2 in MCAP with a derived index (ADR-0004, ADR-0007), the API went to version 2, and a run being written is followed live (ADR-0005, RFC-0010). RFC-0023 (Accepted 2026-11-21) fixed the split: Mission Control operates and configures, the Observatory understands runs, the operator's own observability stack keeps the telemetry over weeks.
On 2026-11-30 the operator approved the layer model (ADR-0023, RFC-0025 section 3.12): six layers
the same for every robot (sensing, localisation and mapping, planning and behaviour, local control,
safety, locomotion), each filled by a named, versioned plugin from a provider, ours or robot.
For the Observatory the model decides what a user sees of a run: which plugin of which layer made
it, and which layer had the last word at each moment.
Goals¶
- Explain one run at one moment: belief against truth, the world model, what the sensors saw, the plan, the rule that acted, and which layer decided (PRD-001 goal 1, extended by layers).
- Find the run and the moment: the run list, the timeline, the alarms lane, the events, links that open a run at a moment.
- Live and past are one experience: the same views follow a running robot or replay a finished run (RFC-0010).
- Any robot, same views: the duck, the NXT and from MVP 2 the Burger, drawn from the one run format; a robot's own difference shows in its plugins and signals, not in a different page.
- Two faces, one truth: what the page shows, the commands and the MCP server return (PRD-001 goal 3).
- Show what MVP 2 adds without breaking the read-only rule: the scan and the map, the hand-over shares, images, learning results.
Non-Goals¶
- Operating a robot, setting goals, STOP, editing a profile or calibrating: Mission Control (ADR-0025). The Observatory links to it at the same moment (RFC-0023 section 3).
- Writing or editing runs. The only write the page makes is a video job (FR9).
- Long-term telemetry over weeks: the operator's Victoria stack and Grafana (RFC-0023 D1, 4.2).
- Free 3D exploration of large point clouds and live streams: Rerun and Lichtblick (ADR-0002); RViz is a debug aid inside the ROS container only (RFC-0025, question 11).
- Training or evaluating a model: the Learning view shows results; the operator trains by hand and Mission Control keeps the request ledger and the promotion (RFC-0031 6.4, 7).
- A robot page with live settings: that is Mission Control's; the Observatory shows a run's robot as it was (RFC-0023 D2).
Personas¶
- The operator (the one owner of the lab): reviews runs in a browser, often away from the machine; wants the failing moment in one click, and wants to know whether a change in a layer helped.
- An AI agent over MCP (the building session, a reviewing session): asks narrow, repeatable questions of a run and quotes the answers. It reads; it cannot change a run.
- A visitor or a second person: not named in the RFCs for the Observatory, so none is assumed. RFC-0031 section 8 names "a second user of the Observatory's API" only as a trigger for splitting a lab bench off.
User Stories¶
- As the operator, I open the run list, see each run's robot, scene and verdict, and open one.
- As the operator, I drag the timebar and every view follows; I click an alarm and see what it was, where and since when, with its evidence.
- As the operator, I open the watch page for a robot in a scene and see the newest run, live if it is still being written, with a way back to live after I scrub away.
- As the operator, I turn the robot's body in Explore and see what it saw at that moment.
- As the operator, I read the Decided list of a run and see the rule that acted and why.
- As the operator, I export a run as a video.
- As the operator, I open a Burger run and see its 2D scan and the map it built, next to the simulator's truth.
- As the operator, I open a duck run with the learned controller and see how often it, and how often the rules, had the last word, and compare with the same scene under the rules alone.
- As the operator, I open the Learning view, pick a training run and see its curves, the model it produced, its replay runs and where it is promoted.
- As an agent, I list runs, ask for a run's events, its state at t, its anomalies and what changed between two runs, over MCP.
Functional Requirements¶
Status in brackets: Built (exists in code today, with the file), Approved (an accepted RFC decides it), Proposed (in a Proposed RFC), New (this PRD proposes it).
FR1: The run list¶
- FR1.1 [Built] The scenes page lists scenes and the runs in each, from the service's index
(
apps/observatory/web/shell/shell.js;GET /api/v1/scenes,GET /api/v1/runsinapps/observatory/src/observatory/server.py). - FR1.2 [Built] Runs can be narrowed by robot, scene and status (
list_runsinapps/observatory/src/observatory/mcp_server.py, therobot,sceneandstatusquery ofserver.py). - FR1.3 [New] Each row names the system that made the run: the robot and the plugin and version of each layer, from the run's build identity. Why: RFC-0025 3.12 makes "two systems that differ in one layer" the comparison the platform is for, and a list that does not tell them apart cannot support it.
- FR1.4 [Built] A moment in a run is a link that can be copied and opened
(
apps/observatory/web/shell/evidence.js, fromlibs/web/evidence.js).
FR2: The run workbench¶
- FR2.1 [Built] The 3D views draw a run in the World frame (where truth is) or the Map frame
(the robot's own), belief beside truth where a simulator gives truth
(
apps/observatory/web/three/,shell/shell.js,shell/runstore.js). - FR2.2 [Built] The inspector shows the Moment and the Selection (
shell.js). - FR2.3 [Built] A streams outliner and properties panel turn streams on and off by meaning
(
shell.js). - FR2.4 [Built] Eye and Chase views: where the depth sensor was and a view behind and above the
robot (
shell/eye.js,three/views.js; RFC-0013). - FR2.5 [Built] Overlays, layouts, the command palette and help (
shell/layout.js,shell/verbs.js; RFC-0024, ADR-0021). - FR2.6 [Approved] A run's robot is shown as it was: the profile version and plugins that run used, read-only (RFC-0023 D2). In the layer model, the layers' providers and plugins (RFC-0025 3.12; a run recorded before step 2 is read in the new shape, step 2).
FR3: The watch page¶
- FR3.1 [Built]
/watch/<robot>/<scene>/<run or latest>opens one run as the eye with the top view as its map, following a run still being written (apps/observatory/web/three/watch.html,server.py; RFC-0013, RFC-0023 D12). - FR3.2 [Approved] The watch page gains the robot's small 3D model beside the map, posed by the recorded joints and coloured by health, a subsystems strip, and the alarm badge on its timeline (RFC-0023 D12 and section 7 step 5). I did not check how much of this is built.
FR4: Live and replay¶
- FR4.1 [Built] Time is a named mode, Live or Replay; the Live badge is the Follow-live switch;
the viewer shows how far behind the edge it is and returns to live in one action
(
shell/timemode.js; ADR-0010, ADR-0011). - FR4.2 [Built] Jumps between event marks by kind (
shell/timemode.js). - FR4.3 [Built] A run that is still being written is shown as it is written; a finished run
from its file (
apps/observatory/CONTRACT.md).
FR5: Explore¶
- FR5.1 [Built] Explore shows the robot's body from its own model and meshes, posed as recorded
at t or by hand, with a click on a part showing what moves it, the depth frame and the map
(
shell/explore.js,exploredepth.js,exploremap.js; RFC-0011, RFC-0016). - FR5.2 [Approved] Each joint is coloured by its worst state (tracking error, load, temperature, a trip), live and on replay (RFC-0023 D4, section 7 steps 2 and 5).
FR6: Decided¶
- FR6.1 [Built] The Decided tab lists the run's events with the rule and the reason behind
each, the one at the playhead marked, filterable by kind (
shell.js,decidedHtml; RFC-0013 2.3, ADR-0014). - FR6.2 [Approved] Each entry also names the layer that decided: the path follower, local control, a pass-through, looking, a named guard, or recovery. It is derived from the records a run already has, so it works for runs already recorded (RFC-0025 3.12, step 8).
FR7: Signals¶
- FR7.1 [Built] A run with no pose (the NXT) is shown as its named signals over time, each a
number or text with a unit (
shell/signals.js,shell/sigviz.js; ADR-0013, RFC-0019; API/signals).
FR8: The timeline and the alarms lane¶
- FR8.1 [Built] A timeline of events and data lanes, with an Alarms lane of the run's anomalies
(
shell/lanes.js,apps/observatory/src/observatory/anomalies.py; RFC-0019, RFC-0023 D5). - FR8.2 [Built] A click on an alarm shows what it was, how bad, who said so, how far past its
limit and for how long (
shell.js, near the anomaly rendering). - FR8.3 [Approved] One alarm feed from every source (the navigator, the runner's guardrails, the subsystems, the joints), kept in the run and drawn on the timeline and the map (RFC-0023 D5, section 7 step 3).
- FR8.4 [Approved] From an alarm the operator can open the run at that moment and open it in Mission Control; stopping or taking over is Mission Control's (RFC-0023 D5, section 3). This is this PRD's reading of two decisions: D5 puts the badge and its inspector (with stop and take over) wherever the badge is, and D1 and ADR-0025 say the Observatory never commands. So the Observatory's timeline shows the badge and the alarm's evidence, without the actions.
FR9: Video export¶
- FR9.1 [Built] A run is rendered as a video by an engine, with the robot's model; the page
asks the render service and polls the job (
shell.js,apps/observatory/src/observatory/video/;POST /api/v1/runs/<key>/video, ADR-0017). This is the page's only write.
FR10: The agent's face¶
- FR10.1 [Built] A read-only MCP server, a client of a running Observatory, with twelve tools:
health, runs, one run, its events, state at t, presence, semantic records, comparing two runs,
scenes, one scene, robots, one robot (
mcp_server.py; started byobservatory mcp). - FR10.2 [Built] Commands with pictures and text for what the page shows: events, anomalies,
state, frame, film, sensor, video, scenes, runs (
cli.py). The MCP server returns data only, not pictures. - FR10.3 [New] The MCP server also returns a frame at t and the hand-over shares of a run, so an agent on MCP alone gets what the page shows (PRD-001 goal 3, "two faces, one truth"). Why: today pictures need the command line, which an MCP-only agent may not have.
- FR10.4 [Built] Nothing in the MCP server changes a run (
mcp_server.pycalls read routes only).
FR11: The 2D scan and the map, for the Burger (MVP 2)¶
- FR11.1 [Approved] A run of the Burger carries a 2D scan as its own channel, with its range limits and angle step in the profile's sensor declaration, and the Observatory draws the scan and the map the robot built (RFC-0025 8.7 and question 11; step 8). Question 23 is decided (2026-11-23): its own channel (B), with points (A) until step 8.
- FR11.2 [Approved] The mapper's pose is shown against the simulator's truth (RFC-0025 step 8).
- FR11.3 [Approved] The Burger's runs from the simulator open in the same workbench as the duck's, with maps and runs from Mission Control's goals (RFC-0025 step 5b, step 8).
- FR11.4 [Approved] An older run, with the scan as points, is still drawn (readers of format 2 stay additive; RFC-0025 step 8).
FR12: Hand-over shares by layer (MVP 2)¶
- FR12.1 [Approved] For a run, the Observatory shows how often each layer had the last word: the shares by decider, derived from the records a run has (RFC-0025 3.12, step 8). This section owns the per-run view; PRD-002 FR3.7 owns the live or chosen run in Mission Control, and PRD-004 FR9.3 and PRD-005 FR7.6 refer here.
- FR12.2 [Approved] Under the contract join (Nav2), where the wrapper cannot read a category
reliably, the category shows as
robotand the run says which categories could not be derived (RFC-0025 3.12, step 7). - FR12.3 [Approved] Per robot, the shares can be compared between runs, so that "the learned controller needs the rules less" is a number (RFC-0025 3.12).
- FR12.4 [New] Two runs of one scene are shown side by side in the workbench, shares included. The comparison of two systems that differ in one layer (the layer named, the paired result) is PRD-005 FR7.5. Why: read two runs together, not one after the other.
FR13: Companion image streams (MVP 2)¶
- FR13.1 [Approved] For a run, the Observatory shows what was captured, recorded and processed (resolution, rate, exposure; format and size per stream; the pipeline name and version per consumer), as it shows other run facts (RFC-0025 3.11.4, step 11).
- FR13.2 [New] A recorded image stream (
streams/<stream_id>.mcap) is shown at the playhead, beside the other views. Why: RFC-0025 3.11 designs recording and says the Observatory shows the summary; a recording nobody can look at in the review surface has no reader. - FR13.3 [Approved] The recorded stream is the camera's output before any pipeline; a pipeline is never baked into it, so a run reprocessed with a newer pipeline version shows a new output over an unchanged recording (RFC-0025 3.11, step 12).
FR14: The Learning view (MVP 2)¶
This PRD owns the view (its place in the Observatory, its links to runs); what each page carries is PRD-005 FR7's (PRD-002 question 7).
- FR14.1 [Approved] A Learning list of training runs and models: state, task, commit, GPU time, the headline eval result, and where each model is promoted. Read-only; no STOP control (RFC-0031 6.4, 7.4).
- FR14.2 [Approved] A training run page with the headline curves from the file extracted at import (reward, episode length, terminations) and the three agreement signals: curves, replay and the ONNX shape (RFC-0031 6.4, 10.2 step 3).
- FR14.3 [Approved] A model page with lineage, once the first learned arm has a comparison: the pool, the training run, the checkpoint, the replay runs (each an ordinary run page, where the steering signals show when the controller overrode the follower), the eval comparison with its interval, the promotions (RFC-0031 6.4, 10.2 step 4).
- FR14.4 [Approved] The Observatory imports the
training/folder and the eval summary as files; it writes nothing to the evaluation project (RFC-0031 6.2, 6.4).
Where the layer model changes what you see¶
| Place | Today | After the layer model |
|---|---|---|
| Run list (FR1) | robot, scene, verdict | plus the system: each layer's plugin and version (FR1.3) |
| Run header (FR2.6) | the profile's plugins block as embedded |
layers, provider and plugins per layer; old runs upgraded on read |
| Decided (FR6) | the rule and reason | plus the deciding layer (FR6.2) |
| Run summary (FR12) | none | the hand-over shares, and the categories not derived |
| Compare (FR12.3, FR12.4) | compare_runs over MCP |
shares per layer between systems of one robot |
| Robot kinds | duck-shaped pages | the Burger's scan and map (FR11), no new page |
| Learning (FR14) | none | model lineage ends in a run and in shares |
The layer model does not change the Observatory's read-only rule or its routes beyond additive fields. The Layers tab, the providers, their health and the live shares are Mission Control's (PRD-002 FR3; RFC-0025 steps 2, 5b); the Observatory shows the same facts for a recorded run.
Success Criteria¶
- Parity of faces: for ten chosen runs, every fact the page shows for FR6 to FR8 is returned by a command or a tool; checked by running them and comparing (today FR10.2 holds for commands; FR10.3 would close it for MCP).
- FR11: a Burger run from Gazebo opens in the Observatory and shows its scan and map; the acceptance in RFC-0025 step 8 ("The Observatory draws the scan and the map") passes, and the operator accepts it on the page.
- FR12: a duck run with a learned controller shows shares for rules and learned; on a recorded run from before step 3 the shares are computed with no re-run (RFC-0025 3.12, "derived").
- FR13: a recorded run with images shows the measured MB a minute beside the panel's estimate (RFC-0025 step 11's acceptance); the operator accepts the summary on the page.
- FR14: the operator opens a model page and reaches its replay runs and its eval result in two clicks; the page offers no action that changes a training request.
- Read-only holds:
grepoverserver.pyfinds POST only for the video route and the/control/forward; the data folder is mounted read only in the Docker compose (apps/observatory/compose.yml, ADR-0012). I did not run this check. - Existing page tests stay green (
apps/observatory/tests/, for exampletest_live_page.py,test_anomaly_pages.py,test_explore_pages.py); I did not run them.
Open questions for the operator¶
Decided 2026-11-30: the operator accepted every recommendation below, and confirmed the "Confirm" items as written. The recommendations are now this PRD's decisions.
- What happens to PRD-001's status? Recommendation: leave it "Proposed" and add a line at its top pointing to PRD-003 as the Observatory's PRD; mark it Implemented or Superseded only when you decide its goals are met or replaced.
- Pictures over MCP (FR10.3): accept that an MCP-only agent gets frames, or keep pictures as a command-line feature. Recommendation: add a frame tool, because PRD-001 goal 3 says one face must give what the other does.
- Companion image streams in the review surface (FR13.2): show them in the Observatory or leave the playback to another tool. Recommendation: show them, at the playhead, as a view like the Eye, as soon as step 11 records any.
Follow-up (a task, not a question): UXS-001 predates the watch page, Explore, signals, alarms and the layers. A UXS for the Observatory as it is, written from this PRD before step 8's views are built, is required by How we decide and document rule 1 (a changed screen starts with its UXS). The two-system comparison (formerly question 4) is merged into PRD-005 question 3.
Not covered¶
- I read:
docs/process.md(headings),docs/surfaces.md, PRD-001, UXS-001 (first 40 lines), RFC-0023 in full, RFC-0025 sections 3.11, 3.12, 6 (step table rows), 8.7, RFC-0031 sections 6.4 and 10, ADR-0023 (decision list),apps/observatory/CONTRACT.md(the first 80 lines), and the Observatory's file list and function names by search. - Not read: ADR-0017, ADR-0013, ADR-0014, RFC-0010, RFC-0013, RFC-0019, RFC-0024 beyond their headers and the lines cited; RFC-0030, RFC-0032; the rest of the contract and of the guide.
- I did not open the page, run the tests or the docs build, so every [Built] means "the file and the function exist", not "I watched it work". FR3.2 and FR2.6 may be partly built.
- Not checked: whether several runs of one scene can be drawn together (PRD-001's story), whether
a run opens at its failure, whether the page shows a goal run's link, what
compare_runsreturns, and the phone layout. - RFC-0025 step 11's row was read only in part.
- The MVP 2 steps are Approved on paper; nothing in FR11 to FR14 is built, and the order of steps 7 and 8 may change (RFC-0025 section 6).
Related Documents¶
PRD-001, UXS-001, RFC-0009, RFC-0010, RFC-0013, RFC-0019, RFC-0023, RFC-0025, RFC-0031, ADR-0017, ADR-0023, ADR-0025, the surface map, How we decide and document, PRD-002, PRD-005.