ADR-0027 — Simulator first: a simulator is a host kind, the platform keeps wall time, real runs rehearse first¶
Status: Accepted by the operator: the host and the payload split on 2026-11-19 and the host kinds on 2026-11-20 (RFC-0021, §3.1), simulator-first real runs on 2026-11-24 (RFC-0014 §3.4.2), the clock rule and the host kind beside the connector on 2026-11-23 (RFC-0025 §3.4, §3.6). Written as an ADR on 2026-11-30. Date: 2026-11-30 Scope: architecture: how anything is tested before it reaches a real robot.
Context¶
The lab is simulator-first: no real duck exists yet, and the Burger arrives in Gazebo before it arrives on the floor. The operator, 2026-11-20: "different robots bring different simulators ... we want our explorer and control to work with all of those combinations". Simulators keep their own clocks, reset differently, and can run slower than real time.
Decision¶
- A simulator is a host kind. Everything that knows a simulator (reset, the robot's connections, a truth reader, a scene writer) lives behind its kind; nothing outside it names Pollen, MuJoCo, Gazebo or ROS. The runner, the evaluator, the recording, the Observatory and Mission Control are the same for every kind.
- The host kind is separate from the robot's connector. A robot is one id with variants
simandreal; the connector does not know it is in a simulator. - Any navigator implements one small payload contract (hello, localise, start, status, cancel, stop), the same contract as Mission Control's navigator API.
- The platform keeps wall time. Simulator time is recorded beside it; the connector is where
the two clocks meet. A run whose real-time factor falls below the threshold is the anomaly
rtf_lowand gets no verdict. - A goal on a real robot runs only after a passing simulator run of the same goal; a goal can opt out only explicitly, and the MCP server refuses real runs unless started for them.
Consequences¶
- A second simulator is a module, not a fork:
pollen-duck-simandnxt-kinematic-simexist, andgazebo-turtlebot3is planned. - A reset is an ordered sequence the connector must prove; the clock epoch becomes first-class in the run (RFC-0025 §3.6, step 5a).
- A learned controller stays simulator-only until a safety review lifts it (ADR-0028).
Alternatives considered¶
- Simulator time only, or a platform clock with pause and step: the first rejected (a reset sends time back, which the run writer refuses), the second left open, not built (RFC-0025 §8.4).
- One navigator contract per robot: rejected for one small contract any navigator implements.
Built¶
Yes for host kinds, the payload contract, rtf_low and sim_first. Not built: the Gazebo kind,
the clock epoch, the proven reset sequence.
Inventory¶
RFC-0021-3, -4, -5; RFC-0025-17, -18, -19, -20, -21, -30; RFC-0014-13; RFC-0030-7 (the inventory).