RFC-0019: its decisions in full¶
Rows of the decision inventory, from the RFC.
RFC-0019-1: One anomaly record serves two sources (robot-tagged live, found by analysis after the run) and a third, the harness¶
- Decided: both write the same record (
anomaly,source,module,severityinfo/minor/major/critical,detector,version,t,wherewith belief/mapd/truth,summary,values,margin,evidence,related). A robot-tagged anomaly is an event of the run (event: "anomaly") with nodecision, so the decision listeners and guardrails do not see it. The simulator's truth guard is sourceharness. - Why: "so the timeline, the map, the video and Mission Control treat them alike" (§2.1); the operator's 2026-11-19 direction to track "all the things that are going wrong" (status).
- How:
robots/duck/src/duck_lab/nav/anomaly.py(Navigator.anomaly);apps/observatory/src/observatory/anomalies.py(nine detectors);observatory anomalies <run>. - Alternatives rejected: none named.
- RFC status and section: Accepted rev. 2; §2.1, §3.1, status "Built so far".
- Who decided and when: the operator 2026-11-19 ("Yes"; "I will go with your recommendation on these 3 questions").
- Existing ADR: partly: ADR-0014 covers decisions as events; no ADR records the anomaly record.
- Later changed by: RFC-0023 D5 (2026-11-21, accepted option A): "one feed of anomalies (RFC-0019's shape) from every source", served live by Mission Control, kept in the run; RFC-0025 line 1369 uses the shape for a camera warning.
- In code: Yes:
anomaly.pyandanomalies.pyexist; the Observatory's index/page/track half is not built (RFC status "Not built: the derived index, the pages, Mission Control, the video").
RFC-0019-2: A found anomaly never writes back into the robot's run log; it lives beside the run in the Observatory's derived index and is rebuilt when a detector's version changes¶
- Decided: the recording stays what the robot knew; found anomalies go into the derived index (ADR-0004, ADR-0009), rebuilt from the run.
- Why: "the recording stays what the robot knew" (§6 question 2).
- How: §2.1 last bullet; §6 question 2;
anomalies.pyheader ("Nothing here writes into a run"). - Alternatives rejected: writing findings back (§6 question 2, "No").
- RFC status and section: Accepted; §2.1, §6.2.
- Who decided and when: the operator, 2026-11-19, took the recommendation.
- Existing ADR: partly: ADR-0004 and ADR-0009 (derived index rebuilt from the record) cover the principle, not anomalies.
- Later changed by: not found in my RFCs.
- In code: Partial:
anomalies.pywrites nothing into a run; the index step is "not built" per the status.
RFC-0019-3: A detector earns its place on the default track by staying quiet on clean runs; each carries a version and thresholds read from recordings¶
- Decided: a detector reports its count on b9 r2, b10b and b11 r1 before it joins the default
track; one that fires on routine behaviour is fixed or left out (built: five default, four behind
--experimental). Severity thresholds are proposed from recordings, each number with the runs it was read from, then reviewed with the operator. A robot's own thresholds live in its profile'sanomaliesblock (RFC-0020 §3). - Why: "b11 r1 alone has 2056 sightings" (§3.2); the plain veer detector "would fire on every leg".
- How:
observatory anomalies --experimental; profileanomaliesblock; PHASE3-PREP "Stream B results". - Alternatives rejected: a plain veer detector (§3.2).
- RFC status and section: Accepted; §3.2, §6.1, status.
- Who decided and when: the operator, 2026-11-19 ("I will go with your recommendation").
- Existing ADR: none.
- Later changed by: RFC-0020 §3 (profile
anomaliesblock). - In code: Yes:
apps/observatory/src/observatory/anomalies.pyexists;robots/duck/profile.jsoncarries the block (RFC-0020 build status).
RFC-0019-4: Contact and fall are evaluator outcomes, not anomalies; an anomaly links to them through related; where carries both belief and truth, and truth is absent on a real robot¶
Architecture ADR: ADR-0024.
- Decided: anomalies mean "Something that should not have happened, or that the robot or the analysis cannot explain: not a rule doing its job". Group-4 detectors (phantom and missed obstacles, belief against truth) need the simulator and say so.
- Why: "A reflex stop in front of a wall is the reflex working; a reflex stop in the open ... is an anomaly" (§2).
- How: §2, §2.1, §3.2.
- Alternatives rejected: none named.
- RFC status and section: Accepted; §2, §3.2.
- Who decided and when: the advisor's review (2026-11-19), folded in.
- Existing ADR: none.
- Later changed by: RFC-0025 §3.12 line 1576: "the lab's truth guardrails (
contact,fall,drop_clearance) are the evaluator's alone" (consistent). - In code: Yes:
anomalies.pymarks the group-4 detectors--experimental.
RFC-0019-5: The NXT and EV3 tag the gate's anomalies and their adapter's own from the first build; map- or pose-needing detectors "say so" instead of reporting nothing¶
- Decided:
stop_latched,lease_lostand adapter anomalies (offline, a deadman stop) from the first build; detectors that need a map or a pose do not apply to a robot with none and say so. - Why: reporting nothing would read as clean (§6 question 3).
- How: §6 question 3; §3.1
stop_latched,lease_lostrows. - Alternatives rejected: none named.
- RFC status and section: Accepted; §6.3.
- Who decided and when: the operator, 2026-11-19.
- Existing ADR: none.
- Later changed by: not found in my RFCs.
- In code: Unknown: not checked for NXT anomaly tagging. ---