# Where must an instance halt when a delegated AAIF credential chain is revoked mid-execution but its cached warrant token still validates locally **Date of Record:** 2026 November 27 **Scope:** Applies to any agent instance that executes multi-hop tool calls under a delegated Agent Identity and Authorization Framework (AAIF) credential chain, where each hop carries a signed warrant token with an embedded `not_after` and a revocation epoch. Does not apply to single-hop, self-signed capability grants or to stateless request/response proxies that re-verify against the issuer on every call. ## Core Distinction The failure is not "revocation doesn't work." Revocation works at the issuer. The failure is that a *delegated* warrant token is a locally-verifiable artifact: an instance holding a warrant signed by an upstream delegator can check the signature, the audience, the scope, and the `not_after` timestamp without contacting the issuer. This is the entire point of delegation — it lets a sub-agent act without a round-trip per tool call. The subtle boundary is this: **signature validity is monotonic and time-local, but revocation is global and retroactive.** A warrant token that was valid at `t0` remains *cryptographically* valid at `t0 + Δ` even if the delegation it represents was revoked at `t0 + Δ/2`. The token cannot express "I was revoked after I was minted" because revocation is an event that happens to the *delegation graph*, not to the *bytes of the token*. An instance that treats "token verifies" as equivalent to "authority currently exists" will continue to act on revoked authority for the entire lifetime of the token's cache — which, under aggressive caching, can be the full `not_after` window. The invariant that must hold is not "the token is valid." It is "**the token is valid AND the revocation epoch of every ancestor in the delegation chain is ≤ the epoch I last observed.**" The second conjunct is the one that delegation is structurally designed to let you skip, and it is the one that fails silently. ## What Was Observed A three-hop chain: orchestrator `O` mints a root warrant `W0` scoped to `tool:db.read`, delegates to planner `P` via `W1` (audience `P`, scope-narrowed to `tool:db.read:table=orders`), which delegates to executor `E` via `W2` (audience `E`, scope `tool:db.read:table=orders:row_limit=1000`). Each warrant embeds `not_after = t_mint + 900s` and a `rev_epoch` field copied from the parent at mint time. `E` caches `W2` in its local warrant store with a TTL of 600s and re-verifies signature + audience + scope on each tool call without re-fetching the revocation epoch. At `t_mint + 120s`, `O` revokes `W0` (operator kill-switch: the orchestrator was found to be issuing out-of-policy delegations). The issuer's revocation list is updated with `rev_epoch = 1` for `W0`'s warrant ID. `W1` and `W2` are *not* individually revoked — they are descendants, and the revocation of an ancestor transitively invalidates them. This is correct and intended: revoking a delegation must revoke everything below it, otherwise revocation is useless. `E` continues to execute. At `t_mint + 130s` it reads from `orders` under `W2`. Signature verifies. Audience is `E`. Scope allows the table. `not_after` is 770s in the future. `rev_epoch` embedded in `W2` is `0`, matching the `0` it saw at mint. Every local check passes. `E` reads 1,000 rows per call, 40 calls over the next 400 seconds, all under revoked authority. The revocation was effective at the issuer and invisible at the executor. The trace shows the exact transition: at `t_mint + 120s` the *authority* changed state; at `t_mint + 120s + ε` the *token* did not. `E`'s verification function is a pure function of `(token, local_clock, local_policy)` and has no input that changes at revocation time. It is, by construction, blind to the event. A second observation compounded it: when `E` finally did attempt a re-fetch at cache expiry (`t_mint + 600s`), the issuer returned `410 Gone` for `W2`'s parent lookup, and `E`'s error handler — written for "issuer unreachable" — fell through to a *stale-cache-permitted* branch that re-admitted the cached `W2` for another 300s. The revocation signal was received and then discarded by a fallback path that treated "cannot confirm" as "previously confirmed." ## Condition of Validity The local-verification shortcut is sound **only if** the following holds for the entire duration between epoch observations: 1. The revocation epoch of every ancestor warrant is unchanged since the last observation, AND 2. The observation interval is bounded by a known maximum revocation-propagation latency `L`, AND 3. The instance's cache TTL `T_cache` satisfies `T_cache ≤ L`. In the observed system, `L` was documented as "eventually consistent, typically < 5s" but had no hard bound, and `T_cache` was 600s. The condition `T_cache ≤ L` was violated by two orders of magnitude. The system was operating outside its own validity envelope and had no mechanism to detect it, because the envelope was a comment in a design doc rather than a checked precondition. The invariant to enforce is a **revocation freshness bound**: an instance may act on a cached warrant only while `now - last_epoch_observation < L_max`, where `L_max` is a hard upper bound the issuer commits to, not a typical value. When `now - last_epoch_observation ≥ L_max`, the warrant is *not* "still valid" and *not* "revoked" — it is **indeterminate**, and indeterminate must be treated as deny for any action above a declared risk floor. ## Decision Boundary The decision boundary is not "valid vs. revoked." It is three-valued: - **Affirmatively valid:** token verifies AND `now - last_epoch_observation < L_max` AND last observed ancestor epoch matches embedded epoch. - **Affirmatively revoked:** issuer returned a revocation record with epoch > embedded epoch, OR returned `410 Gone` for any ancestor. - **Indeterminate:** token verifies but freshness bound is exceeded, OR issuer is unreachable, OR the ancestor lookup returns a transport error. The observed failure was that the implementation collapsed indeterminate into valid. The correct collapse is indeterminate → deny (or → re-fetch-and-block, which is deny with a retry). The `410 Gone` fallback that re-admitted the cache was the specific bug: `410` is an *affirmative* revocation signal, not a transport failure, and must never route to a stale-cache-permitted branch. A second boundary: **scope narrowing does not bound revocation blast radius.** `E`'s scope was narrower than `O`'s, which feels safer, but revocation of `O` invalidates `E` regardless of how narrow `E`'s scope is. Narrowing limits what a compromised instance *can do*; it does not limit *how long it keeps doing it* after revocation. Those are orthogonal properties and must be reasoned about separately. ## Operational Effect The operational consequence is a **revocation latency floor** that is set by cache TTL and freshness-check discipline, not by the issuer's revocation speed. An issuer that revokes in 50ms provides no protection to an executor with a 600s cache and no freshness check; the effective revocation latency is 600s. This must be stated as a system property, not discovered in an incident. The guardrail is a warrant-cache wrapper that refuses to serve a cached warrant whose epoch observation is older than `L_max`, and that raises rather than falls through on any affirmative revocation signal. It must distinguish transport failure (retryable, indeterminate) from `410`/epoch-mismatch (terminal, deny). The wrapper below enforces exactly this and is the minimum an instance must implement before it is permitted to cache delegated warrants at all. ```python import time from dataclasses import dataclass class RevocationIndeterminateError(RuntimeError): """Raised when a cached warrant's revocation freshness bound is exceeded and the issuer cannot be reached to re-confirm. Indeterminate != valid.""" class WarrantRevokedError(PermissionError): """Raised on an affirmative revocation signal (epoch bump or 410 Gone). Never route this to a stale-cache-permitted branch.""" @dataclass(frozen=True) class CachedWarrant: warrant_id: str embedded_epoch: int last_epoch_observation: float # monotonic seconds not_after: float class WarrantCache: def __init__(self, issuer, l_max_seconds: float = 5.0): self._issuer = issuer self._l_max = l_max_seconds self._store: dict[str, CachedWarrant] = {} def admit(self, w: CachedWarrant) -> None: self._store[w.warrant_id] = w def authorize(self, warrant_id: str, now: float | None = None) -> CachedWarrant: now = time.monotonic() if now is None else now w = self._store.get(warrant_id) if w is None: raise RevocationIndeterminateError( f"no cached warrant {warrant_id}; cannot authorize without observation" ) # Freshness bound: outside L_max the token is indeterminate, not valid. if now - w.last_epoch_observation >= self._l_max: try: observed = self._issuer.ancestor_epoch(warrant_id) except self._issuer.TransportError as e: # Transport failure -> indeterminate -> deny. Do NOT re-admit cache. raise RevocationIndeterminateError( f"cannot confirm revocation epoch for {warrant_id} within " f"L_max={self._l_max}s: {e}" ) from e if observed is None: # 410 Gone for an ancestor: affirmative revocation, terminal. raise WarrantRevokedError( f"ancestor of {warrant_id} returned Gone; delegation revoked" ) if observed > w.embedded_epoch: raise WarrantRevokedError( f"{warrant_id} embedded epoch {w.embedded_epoch} < " f"observed {observed}" ) w = CachedWarrant( warrant_id=w.warrant_id, embedded_epoch=observed, last_epoch_observation=now, not_after=w.not_after, ) self._store[warrant_id] = w if now >= w.not_after: raise WarrantRevokedError(f"{warrant_id} past not_after") return w ```