The short version
A USB stick works in any computer because everyone agreed on the shape of the plug and the words the two ends say to each other. If one company kept those secret, nobody else could make a stick.
Sawbones wants plug-in sensor modules the same way. The words a module says, the way it describes itself and the way every reading is labelled should be written down in public, so a maker can build a compatible module without asking us.
What is open today
Everything in the repository is under the Apache-2.0 licence, and the specifications are the code and its tests:
- The module protocol. Frame layout, calls, session and sequence rules, and the signed identity exchange are documented in
sawbones-module-protocol. Golden tests pin the byte layout, and a weekly fuzzer exercises the decoders. - Hazard classes 0 to 4. The class definitions and the rules each class carries are in
sawbones-interlockandsawbones-policy. See Interlock. - Signed approvals. One fixed-length message layout, an Ed25519 signature over a domain tag, a per-signer counter, an expiry and a device identity, in
sawbones-approvals. - Trust labels on readings. Five labels (measured, operator-attested, documented, agent-inferred, unverified) and a provenance record on every reading, in
sawbones-reading. Hashed readings contain no floating-point numbers, so the same reading hashes the same everywhere. - Register maps. Devices are described as TOML data, loaded strictly by
sawbones-regmap. - The plugin interface. The WIT definition of a decoder.
- The red-team catalog format. Plain TOML cards, described in the red-team README.
What is planned
The design document proposes that:
- Manifests describe each module: channels with unit, range, accuracy and calibration; operations with their hazard class, preconditions and safe state; absolute maximum ratings; firmware source and hash; and failure modes written for an agent to act on.
- Conformance levels run from "described" (a host driver and a valid manifest) to "agent-maintainable" (update with rollback, reproducible build, simulated driver, golden recording).
- Governance keeps short specifications, with specification text under CC BY 4.0, hardware under CERN-OHL-P and code under Apache-2.0, and every requirement in a specification traceable to a test that runs in CI against simulated modules.
These are proposals. The protocol crate is marked provisional and every type in it may change while the design is under review. Nothing here has been tested against a module built by anyone else.
Standards we build on
- MCP, the open protocol that lets an AI use tools, is how the agent will reach the system. The first version of the MCP server, T.R.I.A.G.E. v0, is built in simulation and is read-only; the write tools are not built yet.
- MCP Write Safety (MWS), a draft specification for safe agent writes to digital state, which the project design follows for its write surface. Interlock adds the physical layer MWS does not cover. Read about it on the Interlock page. Sawbones Labs and IsoKron, which stewards MWS, share a founder.
- WebAssembly components for plugins, Ed25519 for signatures and Modbus RTU for the first bus work.
How to propose a change
Open an issue or a pull request on GitHub. A change to a protected path, including the red-team catalog and CI, needs a guards-change label and a clean-room review. See Get involved.