# mandates/revoked

https://toip.tools/spec/mandates/revoked/0.1

A delegator tells its delegate that a mandate was revoked, with the mandate's id and the delegator's newly signed status list. The receiver checks the sender signed the list, then checks its own mandate against it.

- **Sent**: delegator → delegate
- **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:15`](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/tasks.ts#L15) as `MANDATE_REVOKED`
- **Handled in**: [`packages/mandates/src/tasks.ts`](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/tasks.ts)
- **Design**: [10.1 Types](https://github.com/yourbuddyconner/toip-tools/blob/main/projects/agents/docs/design.md#101-types) in `projects/agents/docs/design.md`

Source documentation: “Delegator → delegate: a revocation notice, with the newly signed list.”

## Payload

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

```ts
export interface RevokedPayload {
  mandate: string;
  statusList: StatusListDoc;
}
```

### Types it uses

packages/trust-core/src/statusList.ts:8:

```ts
/** A signed revocation list: one bit per credential index. Our own format, after the W3C Bitstring Status List. */
export interface StatusListDoc {
  id: string;
  type: "status-list";
  issuer: string;
  issuedAt: string;
  length: number;
  bits: string;
  proof?: Proof;
}
```

## 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/revoked/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/revoked/0.1/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
