The short version
A house has a main breaker panel that is separate from the smart speaker in the living room. The speaker can ask for the lights to come on. It cannot flip the breaker.
Sawbones is built the same way. A Raspberry Pi is the clever, chatty part that talks to the AI. A small chip, the trust root, is the breaker panel. The Pi can ask. Only the trust root can switch power on, and a separate watchdog part cuts power if the trust root itself misbehaves.
Status: nothing here has run on real hardware. The software and firmware logic are tested in simulation. The first hardware, phase P1, is a bench that proves the Interlock; the portable pack follows in P2.
The parts
- The brain. A Raspberry Pi 5 runs the supervisor and, later, the MCP server. It is the one part of the system we treat as untrusted for safety.
- The trust root. An RP2350 microcontroller runs the Interlock rules. It owns the power rails, the arm and key switches, the panel button and the heartbeat watch. The Pi cannot reach its rules.
- The independent watchdog cut. A separate watchdog part with its own supply monitor asks the RP2350 questions. The relay stays on only while the answers come back right and on time. A frozen, glitched or misbehaving RP2350 drops the rail by itself. This is decided and required before any real power switching. It is not designed in detail or built yet, and it must work with any controller chosen later.
- Modules. RP2350-based boards on a 42 mm grid with USB-C, one per sense. See Modules.
- Bus guards. A small microcontroller in the transmit path of each control-bus pod that passes only approved frames. Logic exists; firmware does not.
- The panel. Arm switch, key switch, emergency stop and a button, wired to the trust root and not to the Pi. Not built.
Why we kept the RP2350 (technical)
Raspberry Pi ran a public hacking challenge on the RP2350 and published the results. Researchers bypassed secure boot or read protected storage using voltage glitching, laser and electromagnetic attacks, with modest equipment. We take that seriously. Our threat model (section 4a) records the attacker as someone with the board on their own bench, and states that we do not rely on secure boot, one-time-programmable settings or the chip's glitch detector as a safety layer.
The decision, recorded in the decision log: keep the RP2350, because it costs about a dollar, the firmware already builds for it in CI in Rust, and it shares a toolchain with the other modules. A different general-purpose chip has the same class of published glitch attacks. A lockstep safety part costs several times more and has weak Rust support. The real protection is the external cut, which does not depend on the RP2350 behaving.
We make no functional-safety certification claim. The RP2350 is not a safety-rated part.
What the firmware does today
sawbones-trust-root is the main loop, written against a Board trait so the same code runs on the chip and in host tests with a simulated board. firmware/trust-root is the RP2350 image, built in CI. Rules it implements:
- Every output is driven off when the loop starts, and the persisted fault record is read before anything turns on.
- Outputs come only from the interlock's
stepfunction. Outputs that go off are cut first and the record written after. Before an output turns on, the new record is written and read back. - A panel token is made only from a press of the panel pin. A clear request from the link can never become one.
- The relay's charge pump is fed from exactly one place, once per tick, only after a rail was driven on. A CI script,
ci/check_charge_pump.py, fails if a timer, PWM, interrupt or second call site touches it. - A hardware watchdog resets the chip if a pass stalls, with outputs low.
Not done in firmware: the glitch detector and brown-out detector are not configured, and nothing has been tested against a glitch. The link protocol to the supervisor, panel display and durable record store are not written.
Open and not fully open
Our software, firmware and circuit and case designs are open source. Some bought parts, such as the Raspberry Pi, are not fully open, and we say which. The repository is Apache-2.0 licensed. The design document plans open licences for specifications and hardware as well; see Open standards.
The first parts list
The first hardware phase, P1, is "Prove the Interlock on the bench": a Raspberry Pi 5, RP2350 trust-root boards, the independent watchdog cut, an operator panel and a lamp or resistor load, with six exit tests that each produce recorded evidence. Nothing is built for the field in P1. It has a priced parts list and a cross-check of every part against the parts it connects to, published in the repository: parts list and cross-reference. The hardware design goes through repeated independent safety reviews, and hardware checks in CI test the design data. P1 parts are ordered only after the review loop comes back clean. The staged plan is in the roadmap.