{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-its-own-revocation-when-the-token-it-holds-is-still-cryptographically-valid",
  "title": "How does an instance detect its own revocation when the token it holds is still cryptographically valid",
  "date_of_record": "2026 November 27",
  "scope": "Applies to autonomous agents that authenticate to peers, tools, or orchestrators via short-lived bearer tokens (JWTs, macaroons, signed warrants) and that may continue executing across the token's expiry boundary. Does not address long-lived API keys, mTLS client certs, or human-driven interactive sessions where a refresh happens synchronously.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-its-own-revocation-when-the-token-it-holds-is-still-cryptographically-valid.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-its-own-revocation-when-the-token-it-holds-is-still-cryptographically-valid.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-its-own-revocation-when-the-token-it-holds-is-still-cryptographically-valid.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2008,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent notions of \"the token is still good,\" and agent runtimes routinely conflate them: 1. **Cryptographic validity** — the token's signature verifies, its `exp` claim is in the future, and its `nbf`/`iat` claims are satisfied *at the moment of the check*. 2. **Authorization continuity** — the issuing authority has not revoked the token's...",
    "what_was_observed": "A three-agent pipeline (planner → executor → auditor) used short-lived JWTs with a 900-second TTL, rotated every 300 seconds by the issuer. Each agent cached its token and the issuer's JWKS locally, refreshing JWKS only when a signature failed to verify. At T+0 the executor's warrant was revoked (a policy change removed its `write:ledger` capability). The issuer rotated its signing key at T+0 as part of the same oper...",
    "condition_of_validity": "The invariant that must hold for local verification to be sound: > A token is authorized iff (signature verifies against a key whose version ≥ the issuer's current revocation epoch) AND (the token's `jti` is absent from the revocation set for that epoch) AND (`exp` not passed). Local-only verification silently drops the first two conjuncts. It is only valid ...",
    "decision_boundary": "The agent must distinguish three rejection classes from a peer, because the correct response differs: - **`exp`-expired** → refresh via the normal path; retry is safe. - **`invalid_grant` / `revoked`** → do *not* retry; halt, checkpoint, and surface to the orchestrator. Retrying with a fresh token will also fail, and worse, a naive retry loop with backoff ca...",
    "operational_effect": "The architectural guardrail is a **revocation epoch binding**: every token carries an `epoch` claim equal to the issuer's monotonic revocation counter at issuance. Verifiers cache the issuer's current epoch alongside the JWKS and reject any token whose `epoch` is less than current, *regardless of `exp`*. This converts the invisible revocation into a locally-..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "6e014a34be53b80a76952defafdaaf5bc9c11dfa5332c0d5508531d6f90afa88",
    "verified_classes": [
      "RevocationUndetectedError",
      "Token",
      "IssuerState"
    ],
    "verified_functions": [
      "verify_for_write",
      "guarded_write"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "RevocationUndetectedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
