Skip to content

RFC-0028: its decisions in full

Rows of the decision inventory, from the RFC.

RFC-0028-1: The host kind answers everything the runner asks of a simulator

  • Decided: A kind's KINDS entry holds parse, world, reset (returning once settled), down, has_truth, truth, truth_address, contacts, checkout, socket and simulates (socket added by the review of the merge; connections is a method of NxtHost, not a kind function). The runner calls them only through simhost functions that take the host.
  • Why: ADR-0027 decision 1; the runner names MuJoCo in five places, and Gazebo would need an edit in each.
  • How: RFC-0028 §3 and §4, steps 1 to 6, built on branch seams, merged 2026-12-02.
  • Alternatives rejected: a base class or typing.Protocol; kinds as entry-point plugins (§5).
  • RFC status and section: Accepted; §3.
  • Who decided and when: the operator, 2026-12-02, the open questions as recommended.
  • Existing ADR: ADR-0027.
  • Later changed by: nothing yet.

RFC-0028-2: Nothing outside simhost reads a kind's fields, and a boundary check enforces it

  • Decided: truth_port, microduck_rl, scene_dir, scenarios, sockets (added after the merge) and pollen are read only inside simhost. scripts/check_boundaries.py gets a rule for these attribute names, and for .as_json() on a host. It is a lint for honest code: it does not catch getattr with a variable, vars, attrgetter, asdict or the host file read directly.
  • Why: a field read outside the kind is how the runner came to know MuJoCo.
  • How: step 1 (truth_port), step 5 (the rest of the rule).
  • Alternatives rejected: -.
  • RFC status and section: Accepted; §3 rule 1.
  • Who decided and when: the operator, 2026-12-02.
  • Existing ADR: ADR-0027.
  • Later changed by: nothing yet.

RFC-0028-3: A contact source says what it is: its name and its time resolution go into the result

  • Decided: A contact source has by, step_s, poll and the checker's command (amended when built: no finish; running the checker is evaluating, the runner's). result.json's contact records by (as today) and step_s. A kind with no source gives no verdict.
  • Why: a run evaluated by a coarser source must say so (ADR-0029).
  • How: step 3, built on seams (simhost.contacts, labrunner.contact.by_source); the run format stays 2 (an added field).
  • Alternatives rejected: keep contact in the runner with a branch per kind (§5).
  • RFC status and section: Accepted; §3 rule 2.
  • Who decided and when: the operator, 2026-12-02.
  • Existing ADR: ADR-0029.
  • Later changed by: nothing yet.

RFC-0028-4: The simulated camera reads the pose from the kind's truth, not the duck's body server

  • Decided: labrunner/camera.py reads the pose through truth(host).
  • Why: it opens the duck's body server directly today (camera.py:24-81).
  • How: step 4.
  • Alternatives rejected: -.
  • RFC status and section: Accepted; §3 rule 3.
  • Who decided and when: the operator, 2026-12-02.
  • Existing ADR: ADR-0027.
  • Later changed by: nothing yet.

RFC-0028-5: A test-only third kind exercises the contract in the runner's tests

  • Decided: A kind that is neither the duck nor the NXT runs in the runner's tests, so a duck assumption left in the runner fails there first.
  • Why: two kinds do not show what is shared; a third built only for tests does, before Gazebo.
  • How: step 5.
  • Alternatives rejected: -.
  • RFC status and section: Accepted; §3 rule 4.
  • Who decided and when: the operator, 2026-12-02.
  • Existing ADR: none.
  • Later changed by: nothing yet.

RFC-0028-6: The duck's probes may use the duck's kind directly

  • Decided: The scripts in robots/duck/sim/probes are the duck's own, not the runner, and stay outside the contract.
  • Why: they probe the duck's simulator on purpose.
  • How: -.
  • Alternatives rejected: -.
  • RFC status and section: Accepted; §3 rule 5.
  • Who decided and when: the operator, 2026-12-02.
  • Existing ADR: none.
  • Later changed by: nothing yet.

RFC-0028-7: The kind's world writer takes the scene it needs, read by shape, and an output folder

  • Decided: world(host, scene, out) takes a runfile.scenefile.Scene. The NXT kind writes nothing and returns its scene.json. Amended when built (step 2): the scene is read by shape, the duck's challenge scene (boxes, floors) and the NXT's stored scene.json (path); the runfile Scene has no floors.
  • Why: the Scene is validated and carries scene_version (RFC-0033 gap 3); a path would make each kind read and validate it again.
  • How: step 2, simhost.world, simhost.duckworld, nxt.world.
  • Alternatives rejected: the scene.json path (open question 1); floors in scene.json now (a scene-format change no kind needs yet).
  • RFC status and section: Accepted; §6 question 1.
  • Who decided and when: the operator, 2026-12-02, as recommended.
  • Existing ADR: ADR-0027.
  • Later changed by: RFC-0028 §6 question 1, amended 2026-12-02 when step 2 was built.

RFC-0028-8: A kind gives physics-step contacts before its runs count toward a milestone

  • Decided: Runs evaluated by a coarser source (a check of recorded poses, the footprint circle) are recorded with that source and its step_s, and reported apart.
  • Why: a coarser source can miss a touch between samples; milestone numbers must not mix sources.
  • How: the report of a milestone groups runs by contact.by.
  • Alternatives rejected: any source counts (open question 2).
  • RFC status and section: Accepted; §6 question 2.
  • Who decided and when: the operator, 2026-12-02, as recommended.
  • Existing ADR: ADR-0029.
  • Later changed by: nothing yet.

RFC-0028-9: Gazebo's reset and its clock epoch are designed in the Gazebo kind's own step

  • Decided: This contract stays as is; the Gazebo kind's step designs the per-reset clock epoch (ADR-0027's unbuilt item).
  • Why: nothing of Gazebo runs here yet to design it from.
  • How: -.
  • Alternatives rejected: design the clock epoch into RFC-0028 now (open question 4).
  • RFC status and section: Accepted; §6 question 4.
  • Who decided and when: the operator, 2026-12-02, as recommended.
  • Existing ADR: ADR-0027.
  • Later changed by: nothing yet.

RFC-0028-10: Gazebo is not made to look like Pollen's body server

  • Decided: No bridge that speaks the body server's ops for another simulator.
  • Why: every kind would pretend to be MuJoCo: geom names, a touches op, an MJCF world.
  • How: -.
  • Alternatives rejected: the bridge (§5).
  • RFC status and section: Accepted; §5.
  • Who decided and when: the operator, 2026-12-02.
  • Existing ADR: ADR-0027.
  • Later changed by: nothing yet.