How it works#
Four parties take part: the agent, your app, the person, and a node that the person and your app trust.
- AgentGET /notesshows its passport
- App401 grant_requiredsays what is missing
- Agentasks for an approvalread your notes
- Nodeshows the sentencewritten by the app
- Persontaps a passkeysigns that exact sentence
- Nodegives the grantthe signed approval
- AgentGET /noteswith the grant and a fresh proof
- App200verified offline
Three documents#
| Document | Who signs it | What it says |
|---|---|---|
| Passport | The node | Which agent this is, who operates it, and which key it holds |
| Grant | The person (passkey) and the node | What the person approved, for which app, for how long, with which limits |
| Proof | The agent | This request: method, address, body and time, with the agent's key |
The agent sends the first two in Allowed-By and the proof in AllowedBy-Proof.
What your app checks#
The SDK does all of this offline, on each request, in about a millisecond:
- The passport or grant comes from a node you trust, is not expired, and is not withdrawn.
- The person's passkey signed exactly this grant, and their identity level is enough for the route.
- The proof is for this exact request, by the agent the grant names, and was never seen before.
- The grant covers the action, the resource and the amount.
- A serious action has an approval made for this request only, and it has not been used.
Anything unknown, missing or unreadable is refused. See error codes for each refusal.
Levels: how sure you are of the person#
| Level | The person | Use it for |
|---|---|---|
| 0 | is not asked: only the agent is identified | Public or per-agent data |
| 1 | tapped a passkey | Everyday actions |
| 2 | has a verified legal identity, and tapped a passkey | Orders, contracts, anything hard to undo |
| 3 | is verified at the highest level, with a hardware passkey | Payments and signatures of value |
Classes: how serious the action is#
| Class | Example | Approval |
|---|---|---|
read |
List notes | Reused until it ends |
write |
Add a note | Reused until it ends |
write-hard |
Delete, publish | For that request, once |
irreversible |
Pay, sign | For that request, once |
For the last two, your app creates the approval itself. The agent cannot change what the person will read.
The node#
A node issues passports, shows the approval page, and countersigns grants. It learns what was approved, never the data in your app. You choose which nodes to trust: one hosted node, your own, or a signed list.