How the checks work (technical)
The rules live in sawbones-interlock, written as one pure function, step, in no_std Rust. It takes the previous state, the inputs sampled this tick and at most one event, and returns the next state and which outputs to drive. It reads no clock and allocates nothing, so the same code runs in a laptop test and in the controller's firmware.
Panel, arm, key. Rail A (class 2) comes on only with the arm switch on, no fault, and a valid arm sequence behind it. Rail B (class 3) additionally needs the key switch on and a live lease. A lease is bound to one port and to the digest of one action, and is granted only by a fresh press of the panel button while a request is pending. It ends on use, on timeout, or when the key or arm switch goes off. A use that names a different target is refused and ends the lease. No event can turn a rail on by itself: rail A follows a hand on the arm switch, rail B a hand on the button.
Leases name one action. For bus writes, the policy engine (sawbones-policy) classifies a named write against a write map, and the lease is bound to the digest of that exact action. One shared encoder, sawbones-modbus-encode, means what was classified, what was approved and what goes on the wire are one action.
Heartbeat as a challenge. The interlock issues a fresh challenge every period. The supervisor on the Raspberry Pi must compute the reply and send it once, inside a window. A wrong, stale, early, repeated or missing reply counts as a lost heartbeat: every output goes off and a fault latches. This is the question-and-answer watchdog pattern from automotive and industrial controllers. We took it from there; it is not new here.
Faults are remembered. Outputs are off at power-on. A restart reads a fault record kept in non-volatile memory; a missing, unreadable or "was armed" record comes up with a fault latched. A fault clears only on a panel button press, never on a request from the supervisor. Each rail is also compared with what was commanded: a rail sensed live while commanded off latches a fault at once.
S.C.R.U.B. (Stop Commands Read from Untrusted Bytes). Text from the outside world (a device name, a label in a photo, a web page, another agent's notes) can contain instructions. The supervisor tracks this. Once outside content has entered the agent's context, class 2 and higher actions are refused until a fresh approval is seen after it: an arm cycle for class 2, a lease granted after the taint for class 3. Outside text can therefore never approve power. See latch.rs.
The bus guard. On Modbus, the danger is the message, not the power: one write function can change a harmless setting or a battery limit depending on the register address. sawbones-busguard sits in the transmit path and passes only well-formed frames. A write passes only if a rule allows it, a lease is live on that port, and the frame is byte for byte the one the approved action encodes to. Passing spends the lease. If another master is heard on the line, writes stop.
The external watchdog cut. The trust root is an RP2350 microcontroller. We decided to keep it, and to add a separate watchdog part with its own supply monitor that asks the RP2350 questions. The rail stays on only while the answers come back right and on time, so a frozen, glitched or misbehaving chip loses power by itself. This is required before any real power switching. The reasoning is in the threat model and the decision log.
Built on MCP Write Safety
Interlock applies the ideas of MCP Write Safety (MWS) to physical hardware. MWS is a draft specification for how an MCP server should behave when an agent writes to something: truthful results, exact targeting, safe retries. It covers digital state. It does not cover effects with physical consequences, and that is the layer Interlock adds: hazard classes, a physical approval path and facts that must be measured before a write is allowed. Read the specification at isokron.ai/mws.
Sawbones Labs and IsoKron share a founder. This page is not an independent endorsement of MWS, and MWS is not an independent review of Interlock.
What is built, and what is not
Built and tested in simulation: the interlock state machine, the policy engine and preflight, the bus guard logic, signed approvals, the supervisor skeleton with S.C.R.U.B., a read-only first version of the MCP server (T.R.I.A.G.E. v0, read tools only), and trust-root firmware logic that builds for the RP2350 in CI. The state machine is checked exhaustively one step at a time and against an independent model over long random sequences.
Not built yet: the physical panel, the arm and key switches, the external watchdog cut, the trust-root link protocol, the bus guard firmware, the write tools of the MCP server, and the durable fault-record store. Nothing has run on real hardware. Nobody has yet tried to glitch the board. The red-team catalog lists what is still open.
Interlock does not make live electrical work safe. It limits what the agent can do. Treat the equipment accordingly.