Skip to content
The patent-pending delegated-authority engine

A deterministic foundation for autonomous action.

Underneath everything SafeShake does sits one strict engine. A person sets and signs the limits. On a supported path, every action an agent takes through its tools is checked against them before it runs, the same way every time, and every decision lands in a record anyone can verify.

Engine v5.10763 automated tests passingMeasured on one machine · results below
002Principles
002Why deterministic

Models are probabilistic.Authority shouldn't be.

Your agent's model is good at deciding what to try next. Whether it's allowed to is a different question, and the answer shouldn't change with how the request is worded.

01

Outside the model

The engine is deterministic code that runs apart from any language model. A clever prompt can't talk it round.

02

Same question, same answer

Given the same signed envelope and the same history, it reaches the same decision every time. That's what lets a decision be replayed later and checked against the record.

03

Authority comes from people

Only a person's signature grants authority. More budget, a wider scope or a longer window means a new signature. Nothing widens on its own.

003 / One action, start to finishIllustrative01 / 05

One action, start to finish.

  1. 01 · Propose

    The agent asks.

    It proposes an action: call a tool, push a branch, pay a supplier $120. On a supported path it holds no signing keys and no credentials for the action; it can only ask.

  2. 02 · Check

    The engine checks it.

    Against the envelope a person signed, and against everything already committed under it by every session and agent that shares it. Inside the limits, it's allowed. Outside, it's refused, with the reason.

  3. 03 · Sign-off

    A decision, signed.

    An allowed action gets a signed decision: this action, under this envelope, within the authority a person signed. On a supported path, nothing downstream moves without one.

  4. 04 · Execute

    A separate executor acts.

    The executor holds the credentials, not the agent. It acts only when it has a signed decision for the action in front of it.

  5. 05 · Record

    Everything lands in the record.

    Proposal, decision and outcome, each chained to the entry before and signed. Refusals too. Anyone can check it offline.

Who holds what

Proposing, deciding and acting sit in separate hands. On a supported path, a fooled agent can ask for anything. It can't approve its own request, and it can't carry one out.

PersonSigns the envelopeHolds

The signing key. Only a person grants authority, or widens it.

AgentProposes actionsHolds

No signing keys. On a supported path, no credentials for the action.

EngineDecides, and signs each decisionHolds

The signed envelopes and what's been committed under them. It decides; it doesn't act.

ExecutorActs on signed decisions onlyHolds

The credentials for your systems: API keys, payment access, deploy rights.

004The envelope
004Signed once, never edited

Authority, written downand signed by a person.

An envelope is the unit of authority: who delegated, what and how much, under which rules, for how long. A person sets it and signs it, and every action through a supported path is checked against exactly what it says.

  1. [01] Owner

    Who delegated

    A named person, who answers for what's done under it.

  2. [02] Allocation

    What, and how much

    What may be spent or used, as one total, shared by every agent that draws on it.

  3. [03] Rules

    Under which rules

    What's allowed and what's off-limits: payees, tools, branches, data.

  4. [04] Validity

    For how long

    When it starts and when it ends. After that, the answer is no.

  5. [05] Signature

    Signed by a person

    The owner's signature over all of it. Change a single character and it no longer verifies.

  6. [06] Record

    Every decision, chained

    Every decision made under it, chained in order and signed.

Why only a person can sign

Authority has to come from someone who can answer for it. Signing takes a person's key, and agents hold no keys, so an agent can't create an envelope, edit one or widen one. When the limits need to change, a person signs a new one, and the record shows both.

005In Claude Code
005Illustrative · one frame

Signed by you,where you already work.

In SafeShake for Claude Code, you set the limits on a card: task scope, tools allowed, a spend bound and a duration. Nothing runs until you sign, and the agent never holds the key.

006 / The checkLimits that add up

Checked before it runs.Against everything already spent.

On a supported path, each action is checked against the envelope and against everything already committed under it. A budget holds as one total: not per session, not per agent.

  • Across sessions

    Tomorrow's session starts from what today's has already spent. Restarting doesn't reset anything.

  • Across parallel agents

    Many agents can draw on one envelope. Their spending adds up to one total.

  • The last dollar

    Two agents asking for the same last dollar at the same moment can't both have it. One is allowed; the other is refused.

  • Before, not after

    The check happens before the action runs, so a limit stops the spend instead of reporting it afterwards.

The measured version of this, with 50 processes against one envelope, is in the results below.

007Two modes
007Always labelled which

Enforced where it's wired in.Observed where it isn't.

We're precise about which is which. Enforcement applies on a supported path, where an action has to pass the engine before it runs. Observation sees and records; it doesn't stop anything.

ObserveIn pilot

Sees and records. Nothing is blocked.

  • Every action SafeShake sees is recorded, with its owner and its cost
  • Shows what your limits would have done
  • Advisory: the action runs, whatever the answer
EnforceBuilt · rolling out

Checks first. Then it runs, or it doesn't.

  • On a supported path, the action waits for the engine
  • Outside the envelope, it doesn't run
  • No signed decision, no action
Same action, two modes
AgentPay a new supplier · $900
EnvelopeApproved suppliers only · this one isn't on the list
ObserveRan · recorded · flagged: your limits would have refused it
EnforceRefused before it ran · supplier not in the envelope · recorded

Illustrative

A supported path is a route where SafeShake sits in front of the action: an agent's tools through SafeShake, the SDK, or a gateway policy that asks first. An action that never passes through one isn't enforced, and we don't say it is.

008The record
008Tamper-evident

A record you can checkwithout us.

Every decision, allowed or refused, becomes an entry chained to the one before and signed. Change or delete an entry and the chain shows it.

  • Tamper-evident

    Each entry carries the fingerprint of the one before it. Edit, reorder or remove one and verification fails from that point on.

  • Verifiable offlineVerifier coming soon

    Hand the record to an auditor. They check it on their own machine, with no account and no access to SafeShake.

  • Decisions you can replay

    Same envelope, same history, same decision. Replay any entry with the engine and check it reaches the decision the record shows.

ops-december · recordIllustrative
#0411Allowed$300 · cloud creditsAgent Aprev a41c…09e2
#0412Allowed$120 · approved supplierAgent Bprev 9f3a…c21e
#0413Refused$900 · new supplierAgent Bprev 57d0…b6a8
#0414Allowed$60 · API usageAgent Cprev e2b9…4f17
$ safeshake verify ops-december PASS envelope signed by its owner PASS every entry chained to the one before PASS every decision signed VERIFIED · offline

009The adaptive layer
009Proposes, never grants

The adaptive layer proposes.The engine decides.

SafeShake's adaptive layer helps your agents do their best work, on the model you already use. To the engine, it's one more proposer: it goes through the same check as any agent.

01

Runs on your model

The adaptive layer uses the model you already use. The engine doesn't use a model at all.

02

No authority of its own

It holds no keys and can't sign, so it can't grant itself authority. Only a person's signature changes the limits.

03

The engine stands alone

Use the engine on its own, through the SDK or a gateway policy, with or without the adaptive layer. Same envelopes, same record.

010 / Measured resultsWith their conditions

Measured,with the conditions attached.

Every figure here comes from the engine's recorded run, on one machine. Here's what we measured, and what it doesn't tell you.

Enginev5.10Recorded2 Nov 2026MachineOne Apple M1 Pro
Test suite763

Automated tests passing on the recorded build.

Overspend attackNever exceeded

50 OS processes against one GBP 2,000 envelope, together asking for about 25 times the budget. Committed spend never exceeded it.

Decision latency · p501.7ms

At 4 agents, rising to 28.4 ms at 50 agents.

What these results don't show
  • Distributed performance. These are single-machine results. They don't establish how the engine performs across machines, networks or regions.
  • Your workload. Latency rises as more agents run at once: 1.7 ms at 4, 28.4 ms at 50. Yours will depend on your setup.
  • Anything not on this page. If a figure isn't here with its conditions, we don't claim it.