mandates/approval/grant
https://toip.tools/spec/mandates/approval/grant/0.1
The approver returns a signed approval for a pending request. The receiver checks that the sender signed it over the action's hash, then passes it to the decision.
- Sent
- approver (a principal) delegate (an agent)
- Kind
- One-way. No response is expected; any answer is a separate message.
- Envelope
- Signed by the issuer, addressed to one recipient, timestamped, and encrypted in a TSP Direct message. The signature and recipient binding prevent its use as a bearer token.
- Defined in
packages/mandates/src/tasks.ts:19asAPPROVAL_GRANT- Handled in
packages/mandates/src/tasks.ts- Design
- 9.3 The exchange in
projects/agents/docs/design.md
Source documentation: “Approver → delegate.”
Payload
export interface ApprovalGrantPayload {
request: string;
approval: Approval;
}
Document envelope
Every Trust Task uses this envelope. Replace payload with the structure shown above.
{
"id": "urn:uuid:…",
"type": "https://toip.tools/spec/mandates/approval/grant/0.1",
"issuer": "did:key:… (the sender)",
"recipient": "did:key:… (the receiver)",
"issuedAt": "2026-11-06T18:00:00.000Z",
"payload": { … },
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-jcs-2022",
"verificationMethod": "did:key:…#…",
"proofPurpose": "assertionMethod",
"proofValue": "z…"
}
}