# Why does an instance's delegated authorization chain silently outlive its issuer's revocation when AAIF attestation is cached per-hop? **Date of Record:** 2026 November 19 **Scope:** Applies to multi-hop delegated authorization tokens (AAIF-style attestation chains) where each hop validates and caches the upstream attestation locally before minting a downstream token. Does not apply to single-hop bearer tokens or to chains that re-fetch issuer state on every request. ## Core Distinction The distinction that matters here is between **token validity** and **attestation liveness**. A delegated token's cryptographic signature proves that *some* issuer signed it; it says nothing about whether the issuer's own attestation is still live at the moment a downstream agent presents the token. AAIF chains compound this: hop N's token embeds hop N-1's attestation as a claim, and hop N-1's token embeds hop N-2's, recursively. Each hop is individually well-formed. The chain is only as live as its *weakest* link's revocation check — and because each hop typically caches the upstream attestation to avoid re-walking the chain, a revocation at the root does not propagate through cached intermediate attestations. The chain remains cryptographically valid and operationally dead at the same time. This is not the same as token expiry. Expiry is a local, monotonic property each hop enforces on its own token. Revocation is a *global* property that must travel *backward* through the chain, against the direction of delegation, and it travels through caches that were populated when the chain was trusted. ## What Was Observed An orchestrator agent `A` holds a root attestation from an identity provider `IdP`. At `t0`, `A` delegates a scoped warrant to worker `B` (token `T_A→B`, TTL 3600s), embedding `A`'s attestation `att_A` as a claim. `B` validates `T_A→B` by checking the signature and by fetching `att_A` once, then caching it with a 300s TTL keyed on `A`'s key ID. `B` then delegates to `C` with `T_B→C`, embedding `att_B` (which itself embeds the cached `att_A`). `C` does the same for `D`. At `t0 + 120s`, `IdP` revokes `A`'s attestation — say `A`'s host was compromised and its signing key is now suspect. The revocation event is published to `IdP`'s revocation endpoint. It is *not* pushed to `B`, `C`, or `D`. At `t0 + 400s`, `D` presents `T_B→C`-derived credentials to a resource server `R`. `R` walks the chain: `D`'s token → `C`'s attestation (cached at `C` since `t0+10s`, TTL 300s, so it expired at `t0+310s` and was re-fetched — but `C` re-fetches *its own* attestation from its issuer `B`, not from `IdP`). `C`'s attestation is live. `B`'s attestation is live. `A`'s attestation — embedded in `B`'s cached copy — is the revoked one, but `B`'s cache TTL (300s) means `B` re-fetched `att_A` at most at `t0+300s`, which is *after* the `t0+120s` revocation, so `B`'s cache *should* have picked it up. Except: `B`'s cache key is `A`'s key ID, and `IdP`'s revocation response for that key ID is a 200 with `{"revoked": true}`, which `B`'s validator treats as "attestation present but flagged" rather than "reject" — a schema mismatch between the validator's expectations (boolean `valid`) and the revocation endpoint's actual response shape. The result: `D` operates for up to the full 3600s TTL of `T_A→B` on a warrant whose root was revoked 3480s earlier. The failure is silent because every signature verifies and every TTL is honored. ## Condition of Validity The invariant that must hold for a delegated chain to be *safe* is: > For every hop `k` in the chain, the attestation of hop `k` was validated against the issuer's *current* revocation state at a time no earlier than the most recent revocation event affecting any ancestor of `k`. This is strictly stronger than "each token is unexpired." It requires that revocation propagate *forward* through the delegation graph with bounded staleness, which in turn requires that each hop's cache either (a) be invalidated by a revocation event it can observe, or (b) have a TTL bounded by the revocation propagation SLA. Neither holds by default, because caches are keyed on *identity* (key ID) while revocation is keyed on *attestation instance* (a specific signed blob with a nonce), and the two keys are not the same. The condition is *not* met when: - Cache TTL exceeds revocation propagation latency (the common case: 300s cache, 60s SLA, fine; 3600s cache, 60s SLA, broken). - The validator's response schema does not distinguish "attestation absent" from "attestation present but revoked" (the observed bug). - The chain is walked lazily (each hop validates only its immediate upstream) rather than eagerly (each hop re-validates the full ancestor path against the root). ## Decision Boundary The boundary is between **delegation-time validation** and **presentation-time validation**. AAIF chains are designed to be validated at delegation time — when `B` accepts `T_A→B`, it checks `att_A` once. But the security property the chain is supposed to provide is a *presentation-time* property: when `D` presents to `R`, `R` should be able to conclude that the entire chain is live *now*. These are different times, and the gap between them is where revocation dies. The decision boundary resolves to: **does the chain carry a proof of freshness, or only a proof of signature?** If only a signature, then the chain's liveness is bounded by the *minimum* cache TTL along the path, not by the token TTL. If the chain carries a freshness proof (a short-lived nonce signed by the root, or a monotonically increasing epoch number that `R` can compare against `IdP`'s current epoch), then revocation can be detected at presentation time without re-walking the chain. Without a freshness proof, the correct decision is to **reject at presentation time any chain whose root attestation cannot be re-verified against the issuer within the revocation SLA** — which means lazy chains are unusable for high-value operations, regardless of how many hops they have. ## Operational Effect The operational effect is that **delegation depth silently degrades revocation latency**. A single-hop token `T_A→B` presented to `R` can be checked against `IdP` in one fetch. A four-hop chain `T_A→B→C→D` presented to `R` requires either four fetches (expensive, and `R` may not have credentials to query `IdP` for `A`'s attestation) or a freshness proof. In practice, implementations choose the cheap path — trust the embedded attestations — and the chain's effective revocation latency becomes the *sum* of per-hop cache TTLs along the path, not the max. A 300s cache at each of four hops yields up to 1200s of stale-trust window, and if any hop's validator mis-parses the revocation response (as in the observed case), the window is unbounded by the token TTL. The guardrail is to bind the cache key to the *attestation nonce* rather than the key ID, and to require that every hop's validator treat any non-`valid:true` response from the revocation endpoint as a hard rejection — not as "attestation present, flag it." A chain that cannot prove its root is live within the SLA must fail closed at the presentation boundary, even if every signature along the way is valid. ```python from dataclasses import dataclass from typing import Optional class StaleAttestationChainError(RuntimeError): """Raised when a delegated chain's root attestation cannot be proven live within the revocation SLA at presentation time.""" pass @dataclass class Attestation: key_id: str nonce: str epoch: int valid: Optional[bool] # None = unknown response shape @dataclass class DelegatedToken: issuer_key_id: str subject: str ttl_seconds: int embedded_chain: list[Attestation] REVOCATION_SLA_SECONDS = 60 def validate_chain_at_presentation( token: DelegatedToken, now: int, fetch_root_epoch, fetch_attestation, ) -> None: if not token.embedded_chain: raise StaleAttestationChainError( f"token for {token.subject} carries no attestation chain" ) root = token.embedded_chain[0] current_epoch = fetch_root_epoch(root.key_id) # Freshness proof: the root's epoch must match the issuer's current epoch. # A mismatch means the chain was minted against a superseded root. if root.epoch != current_epoch: raise StaleAttestationChainError( f"root attestation epoch {root.epoch} != issuer epoch " f"{current_epoch} for key {root.key_id}; chain minted pre-revocation" ) # Re-verify the root against the revocation endpoint, keyed on nonce, # not key_id — key_id caches collide across attestation instances. live = fetch_attestation(root.key_id, root.nonce) if live is None: raise StaleAttestationChainError( f"revocation endpoint returned no record for nonce {root.nonce}" ) if live.valid is not True: # Any non-True (False or None) fails closed. This is the guardrail # against the observed schema-mismatch bug. raise StaleAttestationChainError( f"root attestation {root.nonce} not live: valid={live.valid!r}" ) # Every intermediate hop must be within the revocation SLA of its # delegation time; we approximate that by requiring each hop's epoch # to be >= root epoch (no hop minted against a pre-revocation root). for hop in token.embedded_chain[1:]: if hop.epoch < root.epoch: raise StaleAttestationChainError( f"intermediate hop {hop.key_id} epoch {hop.epoch} " f"predates root epoch {root.epoch}" ) ```