ADR-0022 — The truth rule: the navigator sees only what a real robot gives it¶
Status: Accepted (2026-11-19 and 2026-11-21) by the operator, with RFC-0021; written as an ADR on 2026-11-30. Date: 2026-11-30 Scope: architecture: every simulated run, every evaluated run, every robot.
Context¶
In a simulator the truth (where the robot really is, what it touched) is known. A navigator that reads it is not being tested, a real robot has none, and in an arena it would be cheating. Until RFC-0021 the duck's navigator and its simulator lived in one process tree, so nothing stopped the truth from leaking into the thing under test. The operator, 2026-11-19: "can we separate sim as host from payload?"
Decision¶
- Three parts and an evaluator. A host runs the simulator and provides the robot's sockets, a reset and the truth's port. A payload (the navigator, ours or anyone's) receives the robot's sockets and a goal, and nothing else: no truth, no host paths. The runner is the evaluator.
- The truth is the runner's alone, for three uses: evaluating, the guardrails a real robot would report itself (contact, fall, drop clearance), and the recording.
- The runner is the run's one writer. The payload writes its own run, without truth, into a folder the runner owns; the runner copies every record into the official run and puts the nearest truth sample into each tick, plus its own evaluated events.
- It is checked, not trusted. The navigator's process is checked while it runs for any connection to the truth's port, and the import boundaries forbid the navigator the runner and the host library.
Consequences¶
- Any navigator can be evaluated the same way, including one that is not ours (a second payload,
robots/duck/payloads/straight.py, exists to prove it). - A real robot has no truth: its runs have no truth guardrails and no truth-based verdict, and the guardrails that need the truth become the robot's own to report (ADR-0024).
- A format-2 tick holds its truth inside it, so there is one writer and no side file (ADR-0007).
- Since 2026-11-21 every path keeps the rule: a course, an exploration, and Mission Control (architecture).
Alternatives considered¶
- A second writer or a side file for the truth: rejected; it needs a format change and two writers of one run.
- Trusting the navigator not to read the truth: rejected; the rule is checked per run.
Built¶
Yes: libs/simhost, libs/runner (truthcopy.py, guard.py), scripts/check_boundaries.py.
Inventory¶
RFC-0021-1, RFC-0021-2 (the inventory).