Harness
One way in, one log, every decision on the record
The event-sourced harness behind every experiment: one log format, one gated path to hardware, replays and evals.
Request
- CLI, admin page
- or a policy
Tool registry
- typed tools
- argument schemas
Safety gate
- STOP file · allowlist
- argument and duration caps
- confirmation · rate limits
- interlocks: fresh pose, arena fence
Device
- IR blaster today
- the arm next
Event log
- append-only JSONL
- one contract: TS, Python, Rust
Camera
- tracks, never stores frames
- feeds interlocks and the judge
Results
- summaries computed from logs
- replays, evals, this site
01
One event contract, three languages
Every experiment writes the same append-only event log. The format is defined in TypeScript and mirrored in Python and Rust; shared fixtures run in all three test suites, and CI checks that Python and Rust compute identical summaries from the same runs.
02
One path to hardware
Every command goes through a tool registry and a safety gate: STOP file, allowlist, argument checks, duration caps, confirmation, rate limits, then world-state interlocks. Every decision is logged, refusals included, with the rule that made it.
03
Sensors report, the gate decides
The camera only says where the robot is. Whether a move is allowed (a recent sighting? would it leave the arena?) is an interlock in the gate, tested like every other rule.
04
This site never touches hardware
The admin page can only queue a request. The lab machine polls for it, and its safety gate decides. Database policies, pinned by SQL tests, fill in who asked.
05
Timed moves are played by the device
A hold is sent once, as one frame with a repeat count, so Wi-Fi jitter can't chop up the motion and a recorded code can't outlast the time cap.
06
Privacy by default
Camera frames are tracked and dropped; only numbers are kept. Saving a frame needs an explicit nobody-in-frame flag and never leaves the lab machine. Published arm clips are hand-reviewed (ADR 0011).
The event contract
Every event shares an envelope (run, sequence number, timestamp, actor, optional parent) and adds one of these types. This table is read from the schema the lab runs on, so it can't drift from the code.
| Type | Written when | Payload |
|---|---|---|
| run.started | A run begins: which experiment, at which commit, and whether it is a null test. | experiment_id, git_sha?, forked_from?, null_test? |
| run.ended | The run finishes as completed, aborted or failed. | status |
| command.requested+ tool, args | Someone or something asks for a tool call: a person, the CLI, the admin queue or a policy. | none |
| safety.checked+ tool, args | The gate's decision on that request, allow or deny, with the rule that decided. | decision, rule?, reason? |
| command.sent+ tool, args | The allowed command reaches the device, with its latency. | latency_ms? |
| command.failed+ tool, args | The device or the driver failed, with the error. | error |
| outcome.observed | What actually happened, and who judged it: a person, the camera, a sensor or the device. | success, method, note? |
| note | A free-text observation, kept in order with everything else. | text |