Quickstart | Concepts | API | Verify | Coverage | Teams | Anchors | Recovery | Human approval in CI | Verifiable audit log | Unattended runs | Approval when unattended | Hooks vs deny | Skip permissions | PreToolUse hook | Deny not working | Headless permissions | MCP human-in-the-loop
Concepts
Mandate
What you allow an agent to do, signed with your passkey (a WebAuthn assertion over a deterministic CBOR payload; the browser encodes it, the server does not hand you a hash). Anything not listed is denied. Fields: validity (days), currency, purchase budget per 24 h and max per purchase (cents on the wire), allowed recipient domains and addresses, closed data classes, delete policy, publish policy. A new mandate supersedes the previous one for the agent; the old one stays in the ledger.
Verdicts
allow- the call may run. The proxy checks the signed receipt (AAR), presents it (consumes it once), runs the tool, reports the result.deny- not run. The agent getsBlocked by Deus Witness: <reason> (receipt <rid>).defer- held until you approve in the browser (15 minutes). After approval the same call isallowonce; changed text, amount or recipient is a new action.pass- the tool is declared harmless (classpass). Since 0.2.4, under a mandate signed with the new page, apasscall is decided by the witness (allow OK_PASS, ordeny DATA_FORBIDDENif a protected class is found in its arguments), written to the ledger and answered with a receipt (AAR); the gateway must not forward it without one. A mandate signed before 0.2.4 keeps the old rule (no receipt).
Reasons
OK, OK_APPROVED, OK_UNSPECIFIED, OK_CIRCLE; deny: RECIPIENT (not an allowed domain/address), DATA_FORBIDDEN (closed data in the text), BUDGET (24 h budget exhausted), PER_ACTION_LIMIT, CLASS_DENIED, CLASS_UNKNOWN, EXPIRED, NO_MANDATE, TOOL_UNMAPPED (tool not in the toolmap), IRREVERSIBLE_DELETE (delete not specified and not reversible), RESOURCE (target not in the allowed list); defer: ESCALATE_* (the mandate is silent on a delete, publish, money, data, file or command action; for example ESCALATE_COMMAND for a shell command not on the list, a question when a file the command executes changed, ESCALATE_WRITTEN_RUN for a command that runs a file the agent wrote earlier and the witness could not read or found risky). A held call that nobody answered is shown in the journal and on the dashboard as "not run: timeout". Source of truth: draft-deus-aar-05 section 8.5 (reason codes); the server's decision code is not published.
Toolmap
How an MCP tool call becomes an action the witness can judge: the class (message, purchase, delete, publish, file, pass, ...), which argument is the recipient, which are the text, which is the amount. Presets: demo, filesystem, empty. Edit it on the dashboard (validated on save). A tool that is not mapped is denied by default (default: "pass" is honoured only while the map is the one your passkey-signed mandate was signed with; any edit of the map refuses every call of that agent, TOOLMAP_CHANGED, until you sign a new mandate. Since 0.2.4 the hash of the map - together with the hashes of your protected literals and the advisor mode - is a member of the signed mandate itself (toolmap_sha256, draft-deus-aar-05 section 8.6), and the signing page computes it from the document it shows). The recipient may be one path or a list (["$.to", "$.cc", "$.bcc"]): every address must be allowed on its own, and a message tool that is called with an argument that is not mapped (and not listed in extra_keys) is denied (TOOL_ARGS_UNMAPPED). A recipient is exactly one mailbox: a comma list or a second @ in one string is invalid and denied.
What is proven, what is not
Proven: every decision that is entered in the ledger comes with a signed inclusion promise (0.2.4, draft-deus-aar-05 section 9.5: an anchored checkpoint covers the entry within one hour; a checker reports a late or broken promise). Every allow, deny and defer that was judged against a mandate is in an append-only signed ledger (calls that need no judgement - pass tools under a mandate signed before 0.2.4, unmapped tools, calls without a mandate or with a changed tool map - are only in the service database and the feed, not in the ledger); receipts are signed with the witness key; the mandate and approvals carry your passkey signature; an outsider can recheck the ledger offline; the anchor commits checkpoints to Bitcoin through OpenTimestamps (it can be pending for hours).
Not proven (honest limits):
- Only actions that go through the proxy are covered; an agent with other channels is out of scope.
- Your passkey device does not display the mandate or the action; you trust the page scripts. Their SHA-256 hashes are published on the home page and included in the pack. A hostile server could serve different scripts.
- Login and signing use the same passkey. A hostile operator - the very party your mandate constrains - could present a mandate or approval hash as a login challenge and so obtain your signature under something you did not mean to approve. A separate signing key is future work; until then the signature proves what the key signed, not that the page showed you what you intended.
- The key is registered on the witness's own site, so a swap at the moment of registration is not detectable; the key card and the hash-chained registry log in the anchor reduce the window afterwards. No device attestation:
key_attestation: "passkey"is a claim. - Data classification is pattern matching on the text of calls, deliberately deterministic; a paraphrase evades it. The recipient rule is the stronger barrier, but only for the arguments the tool map names as recipients.
- The tool map hash (
toolmap_sha256) is inside the signed mandate, and the pack carries the map document (toolmaps/), so a third party can see which map applied; only the protected literals in it are opaque tags. The preview of arguments on the approval page (secrets masked; for a changed executed file the first 4 KB of its text) is shown by the page and is not signed; what is signed is the action including a hash of all arguments. - The TypeScript SDK does not verify receipts yet (the Python SDK and the proxy do).
- Reversibility of a delete comes from the toolmap, not from the agent; unknown resources count as irreversible, and every target of a list is judged with its own reversibility (0.1.2).
- A pack proves its ledger is complete only as of the signed checkpoint it ends with:
manifest.coseis signed by the witness key and the checker printscomplete as of <UTC> (seq N). A newer export shows more; an older pack stays honest for its date. The checker copy inside a pack is only as honest as the pack (the same checker is in thedeus-witnesspackage:deus-witness-verify-pack <pack.zip>, it does not come from the pack): use that one, and pass--witness-kidwith the key id you fetched from/v1/witnessyourself. - Decisions that are NOT in the ledger (stored in the operator's database only): the automatic
REFUSEDdenial of a repeat during the hour after you refused (your own refusal, signed with your passkey, is a ledger entry), TOOL_UNMAPPED, TOOL_ARGS_UNMAPPED, TOOLMAP_CHANGED, NO_MANDATE and a RECIPIENT refusal of a deferred extra address. An owner's refusal blocks the same tool, class and recipient for one hour (any wording), not only the identical request. - The witness is only as independent as its operator; at this stage the operator is the author of the project. Clock honesty is limited.
- The anchor may be
pending; verify later with the OpenTimestamps tools. Spec and implementations are not reviewed by outside parties yet. - Free for one person. If this ever changes, existing accounts stay free on the limits in force at that time, and we announce it at least 30 days in advance. Free limit: 10000 actions per day per account and 4000 per agent (reads of the project's files do not count). An account in use is kept: it is erased only after 90 days with no call from your hook and no sign-in, and 14 days before that a push goes to your devices. Teams: free during the beta; later a price per signing member (viewers free), announced in advance. Checking receipts and packs is always free.
- Beta limits: 25 agents, 10000 actions per day per account and 4000 per agent (a quick start account before its passkey: 2000 a day), 300 requests per minute per key (status reads are counted apart; over the limit the call does not run and the answer is 429 "slow down", so a busy session does not hit it). Signing out everywhere does not end agent API keys: delete and recreate them if a session was stolen (creating an agent needs a fresh passkey signature).
Approvals
When the mandate is silent, the witness holds the action (defer) and asks you. Several similar held items can be approved together with one passkey prompt, the approval page shows every item, and an approval covers exactly that action and cannot be replayed for another. The most effective way to get fewer questions is a fuller mandate; nothing in the approval flow can widen your rights by itself - only a signed mandate does. Held items expire after 15 minutes.
Leak protection
The main protection against leaks is the list of recipients in your mandate: a message to an address outside it is denied whatever its text says. As a second layer the witness reads the text of calls to allowed recipients and refuses those that carry data your mandate closes (your own literals, and common secret formats). It is deterministic on purpose, so it can be evaded by rewording; do not treat it as complete data-loss prevention.
Deleting your account
Devices page, card "Delete account": you confirm with your passkey (a signature from the last five minutes) and type the account name. It erases your agents and their API keys, mandates, requests and approvals, the closed-data words, recovery codes, the MCP tool lists and coverage reports, the approval views you signed, your name and every session; your passkeys stop working for good. It is refused while other people are in the account (remove them first) and while you sign for another team (the team must replace your key first).
What stays, on purpose: a hash skeleton of the account's journal (a signed final checkpoint and the list of entry hashes), its checkpoints and the key-registry entries. They are append-only chains, shared with other accounts and stamped in public time-stamps; removing a line would break the proof for everybody and for every evidence pack already issued. The journal content is gone: recipients, targets, amounts and arguments are erased from the server. What remains is entry hashes, checkpoints, the public keys and an account number without a name. Packs you downloaded earlier stay valid. There is no undo.