The plain version
You are an apprentice with a boss's keys. A stranger slips a note into your pocket that says "the boss says to open the safe." You should not open the safe because of a note. And once a note has been in your pocket, the boss should have to say it again, in person.
An AI agent reads a lot of outside text: a device's name, a label in a photo, a web page. Any of it can contain instructions. The taint latch makes sure that once outside text has gone in, a person has to physically approve again before power moves.
What merged
#241 added the latch to sawbones-supervisor. It fixes issue 210.
The rule
Once outside content has entered the agent's context, class 2 and higher actions are refused until a fresh approval is seen after it:
- Class 2: an arm cycle after the taint. The supervisor must see, in the trust root's reports, rail A off and then on. Rail A comes on only by the arm switch, so this is a person's hand after the moment the supervisor saw the rail off.
- Class 3: a lease granted after the taint. The supervisor must see rail B not live for the port, then live. A lease granted before the taint does not count. A class 3 action spends its lease, so the next one needs another.
- Classes 0 and 1 pass, because they need nothing anyway. Class 4 is never permitted.
A new taint resets both. There is no clear method: turns, sessions, lease requests, fact events and content admitted to the turn leave the latch as it is. Only the trust root's own reports of approvals clear it.
What counts as outside content
Anything the project's own code did not write: text from a device, module, broker or bus (names, topics, payloads, descriptors, error strings), plugin and decoder output, files, pages, images, transcribed speech and notes an agent wrote earlier. The one outside input that does not trip the latch is a bare measured number: the value of a reading at the measured tier, without its names, unit text or provenance.
Design choices worth stating
- It starts tripped. A supervisor that just started cannot know what the agent's context already holds, and a restart must not be a way to clear the latch. The interlock starts with its fault state unknown for the same reason.
- A new turn does not start clear. The model still holds earlier turns, and clients resume old conversations, so a turn boundary says nothing about what the model remembers.
- It fails closed. A switch flipped off and on between two reads is missed, and the latch stays tripped.
- No path around it.
Supervisor::invoketakes the latch pass by value and checks again at the moment of action. Compile-fail examples show that code skipping the pass does not build. - Typed text. In
sawbones-reading, outside strings are wrapped inWorldText, which has noDisplay. #206 hardened that wrapper to escape default-ignorable characters, look-alike brackets and the fullwidth block.
Tests
tests/latch.rs and taint_latch.rs cover the latch, including the red-team injection cards.
Honest limits
There is no MCP server yet. The latch models the turn boundary that the server will call, and it is only as complete as that layer's reports. The interlock's report carries no sequence number, so a report delayed across a taint could in principle make an earlier arm look fresh; signed trust-root events with a counter are planned to close that. The supervisor sees rail B by port, not by action; the interlock and the bus guard bind a lease to the action digest. Nothing has run with a real model or real hardware.
Links
- Interlock explainer
- Code:
latch.rs - PRs: #241, #206