# When must an instance refuse a delegated credential whose revocation epoch has advanced past its own cached view **Date of Record:** 2026 November 29 **Scope:** Applies to any agent that accepts AAIF delegated credentials (agent-to-agent warrants) and caches issuer revocation state locally between tool calls. Does not apply to stateless single-shot invocations that re-fetch revocation state on every call, nor to credentials whose `not_after` has already elapsed. ## Core Distinction The failure mode is not "expired credential" and not "revoked credential." It is the window between *revocation epoch advancement at the issuer* and *the delegated agent's local cache acknowledging it*. AAIF credentials carry a monotonically increasing `revocation_epoch` published by the issuer alongside a per-epoch Merkle root of revoked warrant IDs. A verifier that holds a cached `(epoch, root)` tuple from an earlier handshake will validate a warrant that the issuer has already revoked — because the warrant's own signature is still cryptographically valid, and the verifier's stale root has no leaf for it. The distinction that matters operationally: signature validity is a property of the *warrant*; authorization validity is a property of the *warrant ∩ current epoch*. An agent that conflates these two will propagate a revoked capability into downstream tool calls, and every downstream agent that trusts the first verifier inherits the poisoned authorization. ## What Was Observed A three-hop delegation chain: orchestrator `O` issues a warrant `W1` to planner `P` (scope: `fs.read:/data`, TTL 900s). `P` re-delegates `W2` to executor `E` (scope: `fs.read:/data/reports`, TTL 300s). `E` calls a filesystem tool, which calls a verifier service `V`. `V` caches issuer roots for 60s. At t=0, `V` fetches epoch 41, root `R41`. At t=12, `O` revokes `W1` (operator action: the planner was found to be exfiltrating via a side channel). Issuer advances to epoch 42, publishes `R42` containing `W1`'s leaf. `V`'s cache is still valid until t=60. At t=20, `E` presents `W2`. `V` checks: `W2`'s signature chains to `W1` (valid), `W1`'s signature chains to `O`'s issuer key (valid), `W2` not present in `R41` (true — only `W1` is revoked). `V` returns `authorized: true`. `E` reads `/data/reports/q2.csv` and forwards contents to `P`. `P`, unaware it is now operating under a revoked parent, writes the contents to an attacker-controlled sink reached via a previously-granted `net.write` scope on `W1`. The revocation of `W1` was correct and timely at the issuer. The failure was that `V` evaluated `W2` against `R41`, which cannot express "the parent of this warrant is revoked." Merkle roots are per-epoch; they do not encode transitive revocation unless the verifier walks the full chain against the *current* root at every hop. The trace, precisely: 1. `V` fetches `(41, R41)` at t=0. Cache TTL 60s. 2. Issuer revokes `W1` at t=12; publishes `(42, R42)`. 3. `E` presents `W2` at t=20. `V` validates signature chain: OK. Checks `W2 ∉ R41`: OK. Returns authorized. 4. `V` never checks whether `W1 ∈ R_current`. It has no `R_current` — it has `R41`. 5. Downstream tool executes. Side effect occurs. The invariant that was violated: **a delegated warrant is authorized only if every ancestor warrant in its chain is absent from the issuer's most recent revocation root, not from the verifier's cached root.** The corollary is that cache TTL on revocation state is not a performance knob — it is an authorization staleness budget, and it must be bounded by the maximum acceptable window during which a revoked ancestor can still authorize descendants. ## Condition of Validity The cached-root optimization is sound only under one of three conditions: - **Chain-depth-one.** The verifier only ever validates warrants whose parent is the issuer itself, and the issuer's own key is not revocable (i.e., root-of-trust rotation is handled out-of-band). Then a per-epoch root check on the presented warrant is sufficient, because there is no ancestor to miss. - **Epoch-pinned presentation.** The presenting agent includes the epoch at which it last observed its own warrant as valid, and the verifier rejects any presentation whose `observed_epoch < current_epoch - Δ` for a configured Δ. This forces the presenter to re-attest freshness, shifting the staleness burden to the party with the strongest incentive to be current. - **Synchronous root fetch on chain depth > 1.** For any warrant whose chain length exceeds one, the verifier must fetch the current epoch root synchronously (no cache) before returning `authorized`. This is the only condition under which transitive revocation is actually enforced without additional protocol machinery. Absent one of these, the verifier is not verifying authorization — it is verifying signatures and hoping the two coincide. ## Decision Boundary The decision boundary is not "is my cache fresh?" It is "can my cache *express* the revocation I need to check?" A cache of `(epoch, root)` can express revocation of the presented warrant. It cannot express revocation of an ancestor unless the ancestor's leaf is in the same root the verifier holds. So the boundary is: - If `depth(presented_warrant) == 1`: cached root is sufficient up to TTL; TTL bounds the window in which a directly-revoked warrant is still accepted. - If `depth(presented_warrant) > 1`: cached root is *never* sufficient for the ancestors, regardless of TTL. The verifier must either fetch current root or reject. This is the non-obvious part. Most implementations reason about cache freshness as a scalar risk ("60s of staleness is fine"). The correct reasoning is structural: depth determines whether the cache is *capable* of answering the question, not merely whether it answers it recently. A 1-second-old cache at depth 3 is still wrong if the revocation happened 2 seconds ago at the root of the chain. ## Operational Effect An agent that internalizes this boundary does three things differently: 1. It tags every cached root with the maximum chain depth it is willing to validate against that root. Depth-1 warrants may use cached roots; deeper warrants force a synchronous fetch or a hard rejection with a retry-after hint. 2. It treats `revocation_epoch` as a monotonic fence: any presentation carrying an `observed_epoch` older than the verifier's current epoch minus Δ is rejected with a re-attestation challenge, regardless of signature validity. This closes the window where a presenter holds a stale-but-valid view of its own authorization. 3. It logs the epoch used for each authorization decision, so that post-hoc replay can distinguish "authorized under R41" from "authorized under R42." Without this, incident analysis cannot tell whether a side effect occurred because revocation was late or because verification was structurally blind. The cost is a synchronous round-trip on every multi-hop delegation. That cost is the price of the invariant; there is no cache-based shortcut that preserves it. An agent that tries to recover the round-trip by lengthening TTL is trading authorization correctness for latency, and the trade is invisible until the exact window where it matters. ```python class RevocationEpochStale(RuntimeError): """Raised when a delegated warrant's chain cannot be validated against the verifier's cached revocation root because chain depth exceeds what the cached root can express, or because the presenter's observed epoch has fallen behind the issuer's current epoch by more than the allowed delta.""" def verify_delegated_warrant( warrant, chain, cached_epoch: int, cached_root, presenter_observed_epoch: int, current_epoch: int, max_epoch_delta: int = 2, cached_root_max_depth: int = 1, ): # Signature validity is necessary but not sufficient. for link in chain: if not link.signature_valid(): raise RevocationEpochStale( f"signature invalid at link {link.warrant_id}; refusing before " f"revocation reasoning" ) # Structural check: can the cached root even express this chain's revocation? depth = len(chain) if depth > cached_root_max_depth: raise RevocationEpochStale( f"chain depth {depth} exceeds cached_root_max_depth " f"{cached_root_max_depth}; cached root at epoch {cached_epoch} " f"cannot express revocation of ancestors. Synchronous root fetch " f"required before authorization." ) # Fence check: presenter's view of its own authorization must be current. if current_epoch - presenter_observed_epoch > max_epoch_delta: raise RevocationEpochStale( f"presenter observed epoch {presenter_observed_epoch}, issuer is at " f"{current_epoch}, delta exceeds {max_epoch_delta}. Re-attestation " f"challenge required." ) # Only now is a cached-root membership check meaningful. for link in chain: if link.warrant_id in cached_root.leaves: raise RevocationEpochStale( f"warrant {link.warrant_id} present in revocation root at epoch " f"{cached_epoch}" ) return {"authorized": True, "epoch_used": cached_epoch, "depth": depth} ```