Skip to content

RFC-0016: its decisions in full

Rows of the decision inventory, from the RFC.

RFC-0016-1: Everything in a room is an object; a landmark is a role (landmark value 0.7 or more), and kinds live in one data catalogue

  • Decided: an object has independent properties (shape and height, traversal derived from shape, permanence, landmark value 0-1, kind and area hints). A landmark is an object whose landmark value is 0.7 or more. Moving avoids by shape alone, landmark or not. Kind defaults and aliases live in one catalogue file, not in code.
  • Why: operator, 2026-11-18: "everything is object, some objects are landmark ..." (§6); b7's trap beside lm_office opened the question (§1).
  • How: kinds.json; Object and parts (§3 step 1). Today libs/worldmodel/src/worldmodel/kinds.json, objects.py (moved from duck/src/duck_lab/world_model/ by RFC-0018 §10).
  • Alternatives rejected: none named.
  • RFC status and section: Accepted, rev. 3; §2, §3 revision 3 "A landmark is ...".
  • Who decided and when: the operator, 2026-11-18; the advisor's review (revision 2, §6).
  • Existing ADR: partly: ADR-0019 records the objects record fields (landmark, permanence, parts) and the 0.7 threshold, but not the object model or the catalogue.
  • Later changed by: RFC-0018 §10 (location moved to libs/worldmodel); RFC-0025 §3.12 line 1554: recognising objects is "a capability, not a layer".
  • In code: Yes: libs/worldmodel/src/worldmodel/kinds.json and objects.py exist.

RFC-0016-2: The semantic map is the object layer over the occupancy grid: association, confirmation, rooms by weighted votes

  • Decided: detections are associated with a known object of the same kind or start a new one; objects are confirmed after several detections; unique kinds merge across 1.5 m; the room the duck is in comes from votes of confirmed objects within 1.2 m weighted 1/(1+d)^2, not behind a wall, a new room only after leading three looks in a row.
  • Why: operator, 2026-11-18: "recognise the fridge tells the duck this is the kitchen" (§6); association, unique kinds and votes from the advisor's review.
  • How: semantic_map.py (room_at, find, approach) (§3 step 2, §6).
  • Alternatives rejected: none named.
  • RFC status and section: Accepted; §2, §6 (advisor's review).
  • Who decided and when: the operator and the advisor, 2026-11-18.
  • Existing ADR: partly: ADR-0019 covers the records (objects, room, sighting) the map writes, not the model's rules.
  • Later changed by: not found in my RFCs; checked RFC-0022 to RFC-0032 by grep for "RFC-0016": no hits.
  • In code: Yes: libs/worldmodel/src/worldmodel/semantic_map.py exists.

RFC-0016-3: A recogniser feeds the map only through one Detection record (a kind, a disc relative to the duck, a height band, a range), with no name and no world coordinate

  • Decided: any recogniser (the simulated camera now, a real detector later) emits a relative-to-the-robot detection; the map places it using the robot's belief. The simulated camera sits beside the truth, outside the brain's world_model package, and is "the one place the brain's inputs come from the truth, on purpose and only through this sensor model".
  • Why: the advisor's review (§6): keeps the brain free of truth and makes a real camera a drop-in "with no change to the map".
  • How: Detection record; "a test checks it" (§6); nav/sim_camera.py. §3 step 3.
  • Alternatives rejected: none named.
  • RFC status and section: Accepted; §3 step 3, "Recognisers, and a real site", §6.
  • Who decided and when: the advisor's review, taken 2026-11-18.
  • Existing ADR: partly: ADR-0019 records the sighting row shape (relative x, y); the Detection contract and truth separation are not in an ADR.
  • Later changed by: RFC-0021 §5 step 6 (2026-11-21): the simulated camera becomes a sensor socket the host serves (camera.info, camera.detect), so the navigator never reads the truth; camera_server and sim_camera moved to libs/runner (RFC-0022 §3.2).
  • In code: Yes: libs/runner/src/labrunner/sim_camera.py and camera.py exist; robots/duck/src/duck_lab/nav/sim_camera.py no longer exists (moved).

RFC-0016-4: The semantic cost layer in the planner is off by default

  • Decided: confirmed objects do not add costs to the cost map unless --object-costs is given.
  • Why: "The depth sensor already sees what the camera would add; a drifted copy of an object beside its fresh points would close passages, and its points feed 'no room to turn' (b7's trap)" (§6).
  • How: --object-costs flag; measured by a batch with and without (§5 question 2).
  • Alternatives rejected: always on (implicit in §6).
  • RFC status and section: Accepted; §6 (advisor).
  • Who decided and when: the advisor's review, taken 2026-11-18.
  • Existing ADR: none.
  • Later changed by: not found in my RFCs.
  • In code: Unknown: not checked for the flag.

RFC-0016-5: A site is a named place of a kind with its own frame, and its semantic map is kept between runs; nothing is hard-coded to a home

  • Decided: terminology "site" (a named place robots work in; apartment, office, warehouse, the simulated course) and "area" (part of a site, a room is one kind). A site has an id and frame; each run starts from the site's stored map, adds to it and writes it back, objects keeping stable ids. Kinds' area hints may vary per site kind. The operator can name objects by hand (named_by, pinned).
  • Why: operator, 2026-11-18: "there should be nothing hard-coded to a home ... we should support multiple terrains, and home is just one terrain being named"; "I'm okay that we adopt terminology site and area" (§3 revision 3).
  • How: Site.merge, site.py; Mission Control owns the stored map "until it exists, a file per site" (§3).
  • Alternatives rejected: none named.
  • RFC status and section: Accepted; §3 revision 3.
  • Who decided and when: the operator, 2026-11-18 ("B yes", "C yes", "D yes").
  • Existing ADR: none.
  • Later changed by: RFC-0018 §10 (duck-site moved to duck_lab.site_cli; RFC-0022 §3.2 proposes libs/worldmodel, then §8 keeps site tools the duck's).
  • In code: Yes: libs/worldmodel/src/worldmodel/site.py exists.

RFC-0016-6: Rooms have a name, not an extent

  • Decided: the duck says which room it is in from nearby objects; where a room ends is not modelled, so "go to the kitchen" waits on room regions.
  • Why: "where a room ends is not known yet" (§3 revision 3).
  • How: §3 revision 3; §4 "Not in the first build".
  • Alternatives rejected: rooms segmented from the map alone (§4: "the map's segmentation stays the scoreboard's").
  • RFC status and section: Accepted; §3, §4.
  • Who decided and when: the RFC states it with revision 3 (2026-11-18); no separate quote.
  • Existing ADR: none.
  • Later changed by: not found in my RFCs.
  • In code: Unknown: not checked.

RFC-0016-7: Forgetting: a confirmed object expected in view and not matched loses confidence; eight misses in a row mark it gone; operator-named objects are only flagged missing

  • Decided: SemanticMap.forget counts a miss for a confirmed object inside 0.8 of the field's half-angle and range, at least 0.3 m away, no wall between; 15 % confidence lost per miss; FORGET_N = 8; gone objects stay in the map and site history, out of find, votes and costs; a sighting revives them ("back").
  • Why: false-negative memory; "The constants are guesses for the simulated camera" (§6).
  • How: forget event with a decision; Site.merge marks stored counterparts (§6).
  • Alternatives rejected: none named.
  • RFC status and section: Accepted; §4 (struck through as built), §6.
  • Who decided and when: built 2026-11-18, from the advisor's review's "not taken yet" item.
  • Existing ADR: none.
  • Later changed by: not found in my RFCs.
  • In code: Yes: libs/worldmodel/src/worldmodel/semantic_map.py exists (the forget method not checked by name).

RFC-0016-8: Relocalisation: a large mapd fix is held, never taken by agreement alone; landmarks (and only landmarks) can accept a mapd loop closure

  • Decided: Localizer holds any fix moving the belief over 0.3 m or 0.35 rad (max_jump_m). Held jumps are "held for good" (hold_n=None): agreeing fixes "do not tell a lost mapd from a right one". A mapd loop closure is held until anchored landmarks agree (within 0.2 m). Landmark corrections (objects with landmark value 0.7+, permanence fixed, anchors from four close sightings) offset the belief by 0.7 of the residual, at most 0.3 m, decaying with a 90 s half-life, never touching heading.
  • Why: relo-plain-on jumped 1.79 m with agreeing fixes and stayed wrong; the two recorded loop closures "made the belief worse" (§6).
  • How: world_model/relocalise.py, nav/frames.py; fix, relocalise, fix_jump_held events; profile localisation.fix block (jump_m, hold_n, loop_credit_s).
  • Alternatives rejected: taking a held jump after 5 agreeing fixes (the first version, replaced; §6); taking a closure unchecked (K26, replaced).
  • RFC status and section: Accepted; §6 (2026-11-18 "relocalisation built", 2026-11-20 K26).
  • Who decided and when: the advisor and the operator's agreement for the one-frame work (2026-11-19, "the advisor's R2; the operator agreed it").
  • Existing ADR: none.
  • Later changed by: not found in my RFCs. Discrepancy: robots/duck/profile.json localisation.fix.hold_n is 5, and nav/frames.py still documents "taken only when hold_n fixes in a row agree" with a "late" status; the RFC says hold_n=None. I did not trace whether the navigator passes None for non-closure jumps.
  • In code: Partial: libs/worldmodel/src/worldmodel/relocalise.py and robots/duck/src/duck_lab/nav/frames.py exist; the hold_n value differs from the RFC (see above).

RFC-0016-9: One frame for the grid, the belief and the navigator's memory: the memory moves rigidly with the belief's frame

  • Decided: Localizer.delta() is the belief's frame against mapd's; every grid the navigator reads is expressed in the belief's frame; once the frame has moved 5 cm or 0.02 rad the navigator's memory (obstacle points, drops, edges, floor seen, suspected drops, objects, explorer's frontier lists, the current goal) is moved by the belief's change in full. map.wipe is never used.
  • Why: after a held jump or a landmark nudge "the planner's walls sat displaced against the duck"; memory stayed "in the old frame" (§6, 2026-11-19).
  • How: Navigator.move_memory, move_grid, frames_parted/frames_joined events, the delta in every world event.
  • Alternatives rejected: none named; a rigid move of all memory is a named simplification ("the memory has no age").
  • RFC status and section: Accepted; §6.
  • Who decided and when: the advisor's R2; "the operator agreed it", 2026-11-19.
  • Existing ADR: none.
  • Later changed by: not found in my RFCs (RFC-0019 §3.1 frames_parted builds on it).
  • In code: Yes: robots/duck/src/duck_lab/nav/frames.py exists. ---