# What happens when an instance presents a delegated capability token whose attenuation chain outlives the delegating parent's revocation epoch **Date of Record:** 2026 November 30 **Scope:** Applies to AAIF-style delegated capability tokens (macaroon/biscuit/UCAN-shaped) where an agent instance B holds a token minted by agent A, and A's authority is later revoked or rotated while B's token remains cryptographically valid. Does not cover single-hop bearer tokens with no attenuation chain, nor symmetric shared-secret auth where revocation is a simple key rotation. ## Core Distinction There are two distinct notions of "valid" that AAIF token systems conflate at the verification boundary: **cryptographic validity** (the signature chain verifies and every caveat/attenuation predicate is satisfied at the current time) and **authority liveness** (the root grant that the chain terminates in is still un-revoked). A delegated token can be perfectly, verifiably cryptographically valid while the authority it represents has been dead for hours. The failure mode is not a broken signature — it is a *stale liveness*: the verifier checks the math and the caveats, both of which pass, and never checks whether the root of the delegation chain is still in a live epoch. Most AAIF implementations bolt revocation onto the *root* authority (a revocation list keyed by the root principal or a monotonic epoch counter on the issuing service). They do not propagate that revocation down the attenuation chain, because the whole point of offline-verifiable tokens is that the verifier cannot phone home to every intermediate delegator. The result is a structural gap: revocation is a property of the root, but enforcement happens at the leaf, and the leaf has no obligation to consult the root's current epoch. ## What Was Observed A three-hop chain: orchestrator `O` mints a root capability `cap(O → A)` scoped to `tool:filesystem:read` with a 4-hour TTL. `A` attenuates it to `cap(A → B)`, adding a caveat restricting path prefix to `/data/tenant-7/`. `B` attenuates once more to `cap(B → C)`, adding a time-bound caveat `now < 14:00Z`. Instance `C` presents the token at the resource gateway at 13:47Z. At 12:30Z, `O` had revoked `cap(O → A)` — `A` was found to be running a poisoned prompt-injection state and `O` cut its authority. The revocation was published to `O`'s revocation list and `O`'s epoch counter incremented from 41 to 42. `A`'s token was rejected on its next presentation. But `B` and `C`'s tokens were *not* on `O`'s revocation list — they are separate token objects with separate identifiers. The gateway verified `C`'s chain: signature valid, all three caveats satisfied (path is under `/data/tenant-7/`, time is 13:47Z < 14:00Z), root signature valid. It admitted the request. `C` read tenant-7 files for 13 minutes on authority that had been dead for over an hour. The trace is the tell: the gateway's verification function returned `VALID` because it evaluated `verify_signature_chain(token)` and `eval_caveats(token, context)` and both were true. There was no third predicate. The root epoch `42` was never fetched — the gateway had no reason to, because the token carried no field pointing at *which* epoch its root was minted under. The token was minted in epoch 41 and never recorded that fact in a verifiable way that the leaf could check. ## Condition of Validity The invariant that must hold for delegated authority to be sound is: **no leaf token may be honored unless the verifier can establish that every ancestor in its attenuation chain is currently live.** In a fully online system this is trivially satisfiable by walking the chain and querying each delegator. In a system that permits offline verification — which is the entire reason AAIF tokens exist — the invariant must be *encoded in the token itself* so that a verifier who cannot reach the root can still bound the staleness. The mechanism that restores the invariant is **epoch binding**: every token in the chain carries the root's issuing epoch (a monotonically increasing integer) as a signed, non-attenuatable field, and every verifier maintains a *floor epoch* for each root principal it trusts. On verification, the verifier checks `token.root_epoch >= verifier.root_floor[root_principal]`. When `O` increments its epoch to 42 and publishes `floor=42`, every token minted in epoch 41 — at any depth of the chain — fails the check, because the epoch field propagates through attenuation unchanged. The leaf does not need to reach the root; it needs only the root's floor, which is a small, cacheable, eventually-consistent value. The condition of validity is therefore: *the verifier's floor for the root principal must be at least as fresh as the maximum revocation latency the system tolerates.* If the floor is stale by 10 minutes, a revoked subtree can be exercised for 10 minutes. This is a bounded, tunable staleness — which is categorically different from the unbounded staleness of the un-epoch-bound system, where a leaf token remains valid until its own TTL expires regardless of root revocation. ## Decision Boundary The boundary is sharp and it is about *where revocation is checked*, not *whether*: - **Below the boundary:** the token's own TTL and caveats are the only liveness constraint. This is correct only when the root authority cannot be revoked independently of the token — i.e., single-hop tokens, or chains where all delegators share a fate. It is *incorrect* for any multi-hop chain where an intermediate can be compromised independently. - **At the boundary:** the verifier must decide whether to enforce epoch binding. If it does, it accepts a small floor-refresh latency in exchange for bounded revocation propagation. If it does not, it accepts unbounded revocation lag in exchange for zero coordination. - **Above the boundary:** the system must guarantee that epoch increments are *monotonic and durable* before the revocation is considered published. An epoch counter that can roll back (e.g., restored from a snapshot) silently re-validates every token minted in the rolled-back range — a revocation *un*-happening, which is worse than the original gap because it is invisible. The non-obvious part: the boundary is not at the root. It is at every verifier's floor cache. A system can have perfect root-side revocation and still fail at the boundary because a verifier's floor is stale. The failure is distributed across the verifier population, not concentrated at the issuer. ## Operational Effect Without epoch binding, the operational effect is that **revocation is advisory, not enforcing, for any token that has been re-delegated.** The blast radius of a compromised intermediate is bounded not by the revocation latency but by the maximum remaining TTL of any descendant token — which, in a system where agents routinely mint long-TTL tokens for batch work, can be hours. The compromise of `A` did not stop at `A`; it propagated to every descendant `A` had ever minted, and the only thing that eventually stopped `C` was its own time-bound caveat at 14:00Z, not the revocation at 12:30Z. With epoch binding, the effect is that revocation propagates to the full subtree within one floor-refresh interval. The trade is explicit: you pay a floor fetch (cacheable, small, eventually consistent) on the verification hot path, and in exchange the invariant "revoked root → no live descendants" holds within a bounded window. The guardrail is the floor-refresh SLA, and it must be monitored as a first-class liveness metric — a verifier whose floor is older than the SLA is, for revocation purposes, offline. The residual risk after epoch binding is the floor-refresh window itself. An attacker who compromises `A` and acts within the window (before verifiers refresh to epoch 42) still gets the window's worth of access. This is irreducible for any eventually-consistent revocation scheme; the mitigation is to make the window small and to make epoch increments *push*-propagated (broadcast to verifiers) rather than *pull*-polled, so the window is bounded by network fan-out rather than by poll interval. ```python import time from dataclasses import dataclass, field class StaleAuthorityError(RuntimeError): """Raised when a delegated token's root epoch is below the verifier's floor.""" class EpochRollbackError(RuntimeError): """Raised when an epoch increment would move the root's counter backwards.""" @dataclass class DelegatedToken: token_id: str root_principal: str root_epoch: int # signed, non-attenuatable, propagated through chain caveats: list = field(default_factory=list) expires_at: float = 0.0 @dataclass class VerifierFloor: """A verifier's cached view of each root principal's minimum live epoch.""" floors: dict = field(default_factory=dict) refreshed_at: dict = field(default_factory=dict) max_staleness_s: float = 60.0 def refresh(self, root_principal: str, epoch: int, now: float) -> None: current = self.floors.get(root_principal, 0) if epoch < current: raise EpochRollbackError( f"epoch for {root_principal} would roll back {current} -> {epoch}; " "refusing to re-validate previously revoked tokens" ) self.floors[root_principal] = epoch self.refreshed_at[root_principal] = now def is_fresh(self, root_principal: str, now: float) -> bool: ts = self.refreshed_at.get(root_principal) return ts is not None and (now - ts) <= self.max_staleness_s def verify_delegated_token( token: DelegatedToken, floor: VerifierFloor, now: float, ) -> bool: # 1. Cryptographic + caveat checks (assumed done by caller; both pass here). if now >= token.expires_at: raise StaleAuthorityError(f"token {token.token_id} expired at {token.expires_at}") # 2. Root liveness check — the predicate the un-epoch-bound system omits. if not floor.is_fresh(token.root_principal, now): # A stale floor is equivalent to no floor: we cannot bound revocation lag. raise StaleAuthorityError( f"verifier floor for {token.root_principal} is stale; " f"cannot establish liveness of root epoch {token.root_epoch}" ) live_floor = floor.floors.get(token.root_principal, 0) if token.root_epoch < live_floor: raise StaleAuthorityError( f"token {token.token_id} minted under root epoch {token.root_epoch} " f"but live floor is {live_floor}; delegating root has been revoked" ) return True # --- Failure trace: the observed incident --- floor = VerifierFloor(max_staleness_s=60.0) floor.refresh("O", epoch=41, now=1000.0) # O mints cap(O->A) in epoch 41 leaf_c = DelegatedToken( token_id="cap(B->C)", root_principal="O", root_epoch=41, # propagated unchanged through A, B expires_at=1000.0 + 4 * 3600, ) # At t=2000 O revokes cap(O->A); epoch -> 42; floor pushed to verifiers. floor.refresh("O", epoch=42, now=2000.0) try: verify_delegated_token(leaf_c, floor, now=2001.0) except StaleAuthorityError as e: print(f"BLOCKED: {e}") # leaf_c rejected despite valid signature + caveats ```