Deus Witness™

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

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):

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.