Skip to content

How we decide and document

Which document holds what, in which order they are written, and who reviews them. The pattern is the operator's other project's (the podcast project's engineering process), adapted to this lab: a product question becomes a PRD, a screen a UX spec, a design an RFC, and the decisions that shape the whole platform become ADRs.

The chain

flowchart LR
  PRD["PRD<br/>what and why,<br/>one per surface"] --> UXS["UXS<br/>what people and<br/>agents see and do"]
  PRD --> RFC["RFC<br/>how"]
  UXS --> RFC
  RFC --> ADR["ADR<br/>the law:<br/>architecture only"]
  RFC --> INV["Decision inventory<br/>every RFC decision"]
  ADR --> CODE["Code"]
  RFC --> CODE
  MAP["Surface map<br/>surface, routes,<br/>pieces, documents"] -.- PRD
  MAP -.- UXS
Document Holds Where Written when Status words
PRD What a surface is for and for whom: goals, non-goals, journeys, requirements, how we know it works docs/prd/ One per surface (Mission Control, the Observatory, robot integration, training and evaluation), and when a change alters what a surface is for Proposed, Accepted, Partial, Implemented
UXS Layouts, views, commands, keys, states, the design system's use docs/uxs/ When a surface's screens change; beside the RFC, before the build Proposed, Accepted, Living (matches what shipped)
RFC The full design: options, the operator's answers, the build steps, what was not verified docs/rfc/ Before any change that needs architectural thought, a new dependency, or crosses a seam Proposed, Accepted (revisions after acceptance are named and dated), Parked, Built
ADR A short, immutable record of a decision. Architecture ADRs are the few that shape the whole platform; design records cover one part docs/adr/ When an RFC's decision is platform-wide (architecture), or a part's decision must stay findable (design record) Proposed, Accepted, Superseded by ADR-NNNN
Decision inventory Every decision every RFC made, with why, how, whether built and what changed it docs/adr/INVENTORY.md When an RFC is accepted or revised (per row)
Surface map Each surface view: the routes and events it uses, the pieces and layers behind it, the documents that cover it docs/surfaces.md When a view, a route or a covering document changes
Architecture The map of the pieces, the layers, how a goal flows, the seams docs/architecture.md When a piece, a layer or a seam changes
Contract A wire contract with its version: Mission Control's API, the navigator contract, the run format apps/*/CONTRACT.md, libs/runner/CONTRACT.md With the code that changes it; only by adding contract: N.M
WIP note Plans, handovers, spikes, reviews, research docs/wip/ Any time; never the only home of a decision

Evaluations are pre-registered in the evaluation project (robotics-evals, docs/), before any counted run; this repository links to them.

The rules

  1. The what before the how. A new surface or a changed purpose starts with its PRD; a changed screen with its UXS; the RFC names both.
  2. An RFC is reviewed twice before the operator decides. The session's own review, then the advisor's second review; both go to the operator with the questions only the operator can answer. The operator's answers are recorded in the RFC, verbatim where quoted.
  3. Accepted is the operator's word. No document is Accepted on a reviewer's say.
  4. A decision lives in one place. The RFC holds the design; an ADR or an inventory row points to it; a WIP note never holds the only copy.
  5. Revisions are named. A change after acceptance is a dated revision in the RFC ("Revisions after acceptance"), and every older RFC it changes gets an amendment note at its top. Renames are done everywhere in one step, with no interim state.
  6. Indexes change in the same commit as the document: the RFC, ADR, PRD and UXS indexes, the inventory, the surface map, mkdocs.yml's nav.
  7. Built and approved are kept apart. Every architecture text says what exists today and what is approved and not built, with the step that builds it.
  8. Evidence with claims. A document that says something works names the command and its result; what was not verified is listed under "Not covered" or "Not verified".
  9. Docs pass the gates before a push: make docs-validate (markdownlint and the strict build).

Where to start