toip.tools

mandates/approval/request

https://toip.tools/spec/mandates/approval/request/0.1

A delegate asks an approver to allow one action its mandate chain doesn't allow by itself. The request carries the action, its hash, the chain, the decision and, optionally, the delegate's own justification. The receiver checks that the action matches its hash and that the chain verifies for the sender.

Sent
delegate (an agent) approver (its principal)
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:17 as APPROVAL_REQUEST
Handled in
packages/mandates/src/tasks.ts
Design
9.3 The exchange in projects/agents/docs/design.md

Source documentation: “Delegate → approver.”

Payload

TypeScriptpackages/mandates/src/tasks.ts:31
export interface ApprovalRequestPayload {
  request: string;
  action: Action;
  actionHash: string;
  chain: Mandate[];
  decision: Decision;
  /** The delegate's words (a model's, for an agent). Show them as such. */
  justification?: string;
  expiresAt: string;
}

Notes

The answer is a separate one-way mandates/approval/grant or mandates/approval/deny.

Document envelope

Every Trust Task uses this envelope. Replace payload with the structure shown above.

JSONShape of a document of this type
{
  "id": "urn:uuid:…",
  "type": "https://toip.tools/spec/mandates/approval/request/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…"
  }
}