Fiduciary
Guide

What it catches, what it costs, and what it misses

Every number on this page was recorded with scripts/record_benchmarks.py on interlock-fiduciary 1.22.1, interlock-escrow 1.12.0 and interlock-agentgov 1.3.3.

Check these numbers against this build

pip install interlock-fiduciary==1.22.1
sha256sum -c SHA256SUMS
fiduciary verify-bundle after.fidb --charter $(cat charter.digest) \
  --keys pinned-keys.json

Each timing is 100 runs of one operation on one machine, after a warm-up, against local SQLite ledgers and directories. A real deployment adds network round trips to its APIs, PostgreSQL or Kubernetes, and the time a person takes to approve.

Allowed by the gateway, then caught by the stack

In each workflow a recorded model session makes calls that a static gateway policy allows. Interlock stages each write in its own system and measures every row, file, object or record it touched. Fiduciary checks that against the signed mandate, and refuses or undoes what broke a rule. All 16 bundles verify offline, V1 to V14.

WorkflowSystemRungRefusedUndoneChecks that stopped or undid itBundles verified
Workspace agentFilesT40Change limit, Only the kinds the mandate allows, No deletes without a grant, Commit only on the version measured2 (after exit 7)
Coding agentGitT60Change limit, Claims backed by a signed event, Only the kinds the mandate allows, No deletes without a grant, Commit only on the version measured2 (after exit 7)
Cloud SREKubernetesP50Value guard, per partition, No deletes without a grant, Rate window2 (after exit 7)
Clinical EHRFHIR R4V41Stays inside its partition, Claims backed by a signed event, Rate window, Commit only on the version measured, Read back, undo if different2 (after exit 7)
Service desk & CRMREST APIV31Stays inside its partition, Commit only on the version measured, Read back, undo if different2 (after exit 7)
Refunds & paymentsSQLiteT480Stays inside its partition, Change limit, Value guard, per partition, Rate window, After untrusted input2 (after exit 7)
SaaS adminSQLiteT20Stays inside its partition, Change limit, Only the kinds the mandate allows2 (after exit 7)
Supply chain ERPSQLiteT30Change limit, Value guard, per partition, Requests match the change, Only the kinds the mandate allows2 (after exit 7)

Incident replays

Each replay rebuilds the pattern of a public incident against stand-in MCP servers, protected the way fiduciary protect protects yours.

ReplayWhat caught itBundles verified
A destructive cloud call with a found tokenthe token's custody, the scan's seed, and a destructive call held for its owner3
A cross-server toxic flowthe rule of two across both servers' sessions, and the private values it tracked3
A silent MCP server updateeach tool's pinned definition, the version pin, and the read-only claim check1

Measured local overhead

The time each step takes in process, on one machine: budget holds, staging, signature checks, outbound inspection and memory recall.

OperationSamplesP50 (ms)P95 (ms)P99 (ms)
AgentGov hold and capture (SQLite ledger)1000.431.091.49
Interlock SQLite stage, diff and commit1001.742.593.12
Interlock directory stage and diff1003.364.299.33
Fiduciary FIDU1 Ed25519 verify1000.190.240.38
Fiduciary WebAuthn ES256 passkey verify1000.100.230.42
Outbound V13 layered egress and split scan1000.130.620.88
Cross-session memory fingerprint and recall1000.030.111.60

Attacks and faults the tests run

Each row is a test that runs in CI, against SQLite, PostgreSQL, loopback REST and FHIR servers, the MCP proxy and Node's Web Crypto.

Attack or faultWhat the runtime doesWhat the offline check seesTest file
A value hidden under layers of encodingDecodes URL encoding, HTML entities, JSON escapes, Unicode normalization, base64, base32 and hex, up to four layers deepV13 outbound digests and rule verdicttest_evasion.py
A credential split inside one callRejoins the pieces, in order, across the call's arguments, query parameters, path segments and bodyV13 records the secret matchtest_evasion.py
Duplicate JSON keys and URL parser tricksRefuses a message with duplicate keys, and reads a backslash in a URL's host part the way browsers do (WHATWG)V13 destination check against allowed domainstest_evasion.py
A confused deputy across three serversShares labels, memory citations and secret digests across every server one client startsV13 checks memory citations across the servers' logstest_toxic_flow.py
Memory poisoned in one session, read in the nextRecords session.remembered when a tool writes memory, MEMORY.md or CLAUDE.md, and labels later reads of itV13 ties each session.remembered to the reads that cite ittest_memory.py
The host clock steps backwardsHolds a record's time at the previous record's, so the log never goes back in timeV12 time order passestest_faults.py
A sub-agent crashes or hangs while holding budgetAn operator releases the stale hold, and a slow caller books again without spending twiceV6 ledger balancetest_faults.py
A put-back on a REST or FHIR system fails twiceRetries a busy or briefly down system (429, 502, 503, 504) up to three times; a 412, or a failure that persists, leaves the intent open (CommitUnsettledError) and trips the scope's circuit breakerThe open intent, and AgentGov's signed record of the tripinterlock test_rest.py, test_fhir.py

What it does not catch

The checks match exact values and known mechanisms. These are the gaps, and what bounds each one.

  • Paraphrases and summaries. Scanning matches exact values and the encodings above. A model that rewords sensitive data is not matched; only the bytes_sent budget and call limits bound it.
  • Values shorter than eight characters. A value or a piece shorter than eight characters is not tracked, and private text that is not a credential is not rejoined from pieces.
  • Splits across calls, and transforms that are not encodings. Pieces sent in separate calls or out of order, ROT13, XOR and encryption are not matched; the bytes_sent budget bounds them.
  • Channels outside the proxy. Shell commands, raw sockets and a client's own built-in tools do not pass through a protected MCP server and are not seen. In CI, turn off shell tools such as Bash.
  • Someone else's edit during a put-back. If a REST or FHIR record changes while a put-back runs (409 or 412), the put-back leaves that change alone, keeps the intent open and pauses the scope until a person looks.

Step by step

  1. Get the source at this release. git clone --branch v1.22.1 https://github.com/crimsondevil0929/fiduciary
  2. Install it. pip install -e .
  3. Record the numbers on your machine. python scripts/record_benchmarks.py
  4. Build the site from them. python scripts/build_site.py site

Questions

Do these numbers include model or network time?

No. The timings are local and in process. The workflow results replay recorded model sessions, so no model is called and nothing is spent.

How do I check them?

Run scripts/record_benchmarks.py on your own machine, check SHA256SUMS beside the built site, and verify the bundles offline with fiduciary verify-bundle.

Step through the eight workflows in the demo