# mandates/approval/deny

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

The approver tells the delegate it refused a pending request, with an optional reason.

- **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:21`](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/tasks.ts#L21) as `APPROVAL_DENY`
- **Handled in**: [`packages/mandates/src/tasks.ts`](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/tasks.ts)
- **Design**: [9.3 The exchange](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#93-the-exchange) in `projects/agents/docs/design.md`

Source documentation: “Approver → delegate.”

## Payload

packages/mandates/src/tasks.ts:45:

```ts
export interface ApprovalDenyPayload {
  request: string;
  reason?: string;
}
```

## Document envelope

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

Shape of a document of this type:

```json
{
  "id": "urn:uuid:…",
  "type": "https://toip.tools/spec/mandates/approval/deny/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…"
  }
}
```

---

This is the Markdown version of https://toip.tools/spec/mandates/approval/deny/0.1/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
