{
  "description": "A purge instruction token and its acknowledgement (A10). The token is a compact JWT signed by the provider; it is stored here in the RFC 7515 flattened JSON form, and a recipient receives protected.payload.signature. The acknowledgement is a detached JWS signed by the recipient.",
  "instruction": {
    "id": "purge-instruction",
    "description": "The purge instruction for the ended grant, a compact JWT signed by the active provider key with protected typ autonym-purge+jwt. Its signed time is iat. Verify it at its iat with the provider key set: the header has exactly alg, kid and typ, and the payload is the claims.",
    "checks": [
      "SIGN-01",
      "PURGE-01"
    ],
    "verify": {
      "key_set": "provider",
      "trusted_issuer": "https://autonym.example",
      "now": "2026-09-23T09:00:00Z"
    },
    "expected": {
      "valid": true,
      "kid": "mYO1BpXaL579Vtqrg7FdfvJt9y-uBrMaUE6_CW-DHWc",
      "signed_at": "2026-09-23T09:00:00Z"
    },
    "claims": {
      "iss": "https://autonym.example",
      "sub": "autonym:x6yn4kmlbpcobb3kujp2x6wzmotcbyfh@autonym.example",
      "aud": "https://recipient.example/client",
      "jti": "pi_01JVECT0RS00000000000000P1",
      "iat": 1790154000,
      "exp": 1792746000,
      "autonym_grant_id": "gr_01JVECT0RS00000000000000G1",
      "reason": "grant_ended",
      "scope": "all",
      "deadline": "2026-09-30T09:00:00Z"
    },
    "protected_header": {
      "alg": "ES256",
      "kid": "mYO1BpXaL579Vtqrg7FdfvJt9y-uBrMaUE6_CW-DHWc",
      "typ": "autonym-purge+jwt"
    },
    "token": {
      "protected": "eyJhbGciOiJFUzI1NiIsImtpZCI6Im1ZTzFCcFhhTDU3OVZ0cXJnN0ZkZnZKdDl5LXVCck1hVUU2X0NXLURIV2MiLCJ0eXAiOiJhdXRvbnltLXB1cmdlK2p3dCJ9",
      "payload": "eyJpc3MiOiJodHRwczovL2F1dG9ueW0uZXhhbXBsZSIsInN1YiI6ImF1dG9ueW06eDZ5bjRrbWxicGNvYmIza3VqcDJ4Nnd6bW90Y2J5ZmhAYXV0b255bS5leGFtcGxlIiwiYXVkIjoiaHR0cHM6Ly9yZWNpcGllbnQuZXhhbXBsZS9jbGllbnQiLCJqdGkiOiJwaV8wMUpWRUNUMFJTMDAwMDAwMDAwMDAwMDBQMSIsImlhdCI6MTc5MDE1NDAwMCwiZXhwIjoxNzkyNzQ2MDAwLCJhdXRvbnltX2dyYW50X2lkIjoiZ3JfMDFKVkVDVDBSUzAwMDAwMDAwMDAwMDAwRzEiLCJyZWFzb24iOiJncmFudF9lbmRlZCIsInNjb3BlIjoiYWxsIiwiZGVhZGxpbmUiOiIyMDI2LTA5LTMwVDA5OjAwOjAwWiJ9",
      "signature": "D1JEW5SWou9z0XKhmGp-Us8EB9QHl9-I-PA0aGnOi6hl3mVl-7H2_tWrfVA31b4oVvQHEbrcy9EHvfeBWEoIqQ"
    }
  },
  "acknowledgement": {
    "id": "purge-acknowledgement",
    "description": "The recipient's acknowledgement, signed by its registered key over the JCS bytes of the acknowledgement without proof (A10). It attests that the recipient purged; it does not prove that every copy has gone.",
    "checks": [
      "SIGN-01",
      "PURGE-01"
    ],
    "typ": "autonym-purge-ack+jws",
    "verify": {
      "key_set": "recipient",
      "trusted_issuer": "https://recipient.example/client",
      "now": "2026-09-23T15:01:00Z"
    },
    "expected": {
      "valid": true,
      "kid": "w7t35gDe7Lcp0DXE4NrgKar6duLgsJCrvmYyLuVjpIc",
      "signed_at": "2026-09-23T15:00:00Z"
    },
    "unsigned": {
      "instruction_id": "pi_01JVECT0RS00000000000000P1",
      "attestation": "purged",
      "at": "2026-09-23T15:00:00Z",
      "note": "Deleted the copy received under this grant."
    },
    "jcs": "{\"at\":\"2026-09-23T15:00:00Z\",\"attestation\":\"purged\",\"instruction_id\":\"pi_01JVECT0RS00000000000000P1\",\"note\":\"Deleted the copy received under this grant.\"}",
    "jcs_sha256": "82dfc816cc92fb9bcad365016d067a42a7a2e30d1aa0bf18ff983530210cccdb",
    "protected_header": {
      "alg": "ES256",
      "kid": "w7t35gDe7Lcp0DXE4NrgKar6duLgsJCrvmYyLuVjpIc",
      "typ": "autonym-purge-ack+jws"
    },
    "jws": "eyJhbGciOiJFUzI1NiIsImtpZCI6Inc3dDM1Z0RlN0xjcDBEWEU0TnJnS2FyNmR1TGdzSkNydm1ZeUx1VmpwSWMiLCJ0eXAiOiJhdXRvbnltLXB1cmdlLWFjaytqd3MifQ..ryMwdBH4V3e1zTuXZy5vkZRQl8d393gV8XnO0f7FAN_le71IWtv8qn0XAXgWamfPougyEOdfS6B3WNzgUvrV_g",
    "text": "{\"instruction_id\":\"pi_01JVECT0RS00000000000000P1\",\"attestation\":\"purged\",\"at\":\"2026-09-23T15:00:00Z\",\"note\":\"Deleted the copy received under this grant.\",\"proof\":{\"type\":\"jws\",\"alg\":\"ES256\",\"kid\":\"w7t35gDe7Lcp0DXE4NrgKar6duLgsJCrvmYyLuVjpIc\",\"jws\":\"eyJhbGciOiJFUzI1NiIsImtpZCI6Inc3dDM1Z0RlN0xjcDBEWEU0TnJnS2FyNmR1TGdzSkNydm1ZeUx1VmpwSWMiLCJ0eXAiOiJhdXRvbnltLXB1cmdlLWFjaytqd3MifQ..ryMwdBH4V3e1zTuXZy5vkZRQl8d393gV8XnO0f7FAN_le71IWtv8qn0XAXgWamfPougyEOdfS6B3WNzgUvrV_g\"}}"
  }
}
