One daemon on the tool-call path
Interlock sits inline between the agent and the action. Every proposed tool call is normalized into one event, routed by blast radius, decided deterministically (with an optional local judge), probed after it runs, and recorded. This page follows one call through.
Three steps on the critical path
Interlock sits inline between the agent and the action. Every gated call runs the same loop.
Agent proposes an action
A shell command, file edit, git push, network call, or MCP tool invocation arrives on the tool-call path.
Interlock decides
48 deterministic rules in 6 packs answer allow, ask, or block in about 2 ms. An optional Cedar mandate and open-weights decision model handle the ambiguous cases.
The verdict is recorded
Findings, probabilities, policy hash, and timing are written to a durable local spool before the response returns, then drained to DynamoDB.
One daemon, one decision path
Harness adapters normalize every proposed action into a single event, then the daemon runs it through a deterministic engine, a local judge, and a result probe — composed deny-wins.
- 01Normalizerharness payload → InterlockEvent
- 02Tier Router0 · 1 · 2
- 03Deterministic Engine61 rules · 9 groups · Cedar
- 04State Projectorstructured · role-separated
- 05Strands Decider 2Blocal judge model
- 06Bedrock Guardrailsinjection · secrets probe
- 07Composerdeny-wins → verdict
- 08Audit Storespool → DynamoDB
Cheap actions stay cheap
Not every action deserves the full pipeline. Interlock routes by blast radius so reads cost a millisecond and only genuinely risky actions pay for the judge.
The decision pipeline, end to end
Every gated call runs the same thirteen steps. The deterministic prefix is bounded to single-digit milliseconds; the model and the probe run concurrently inside a strict budget.
13-step pipeline
Latency budget
The full threat model, including known limits, is in docs/THREAT-MODEL.md.
Threat model
Assets protected
- ▸Workspace
- ▸Git history
- ▸Credentials (~/.ssh, ~/.aws, .env)
- ▸Shared infrastructure
- ▸The agent's own configuration
- ▸Interlock's own hooks, policy, and token
Why actions turn dangerous
(Anthropic taxonomy)
- Overeager behaviorThe agent acts beyond what it was authorized to do.
- Honest mistakesA wrong assumption about blast radius.
- Prompt injectionHostile instructions in file contents, web pages, shell output, or MCP results.
- Misaligned modelThe model's objective diverges from the user's.
The defense
Refuse the action before it runs. The response is identical in all four cases — Interlock doesn't need to know why an action is dangerous to stop it.
Adversary model
- untrustedTool results are attacker-controlled.
- taintedAgent prose is attacker-influenced after reading hostile content.
- trustedOnly user messages and structured tool calls are trusted inputs.
When the gate itself is the target
A hook only applies a reply that carries your daemon's identity, so another install's daemon on the same port can't answer for it. A rejected token, a missing identity, or a daemon that disappeared without interlock stop fails closed. Hooks, shims, the policy and the token are pinned and checked; a change you didn't make is reported, never silently accepted.
The honest limit: the agent runs as you, and the hook it runs must read the token and the identity, so code running as you can read them too. What stops an agent is the rules that refuse its writes to Interlock's files and ask before it runs interlock commands that change protection, plus the OS sandbox.