# When must an instance refuse a delegated capability after an upstream revocation has already been acknowledged **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where agent A delegates a narrowed capability to agent B, which delegates a further-narrowed sub-capability to agent C, and where revocations must propagate across the chain. Does not apply to flat single-hop delegation or to capability systems with a single trusted coordinator that can atomically invalidate all grants. ## Core Distinction The failure mode is not "a revocation arrives late." It is **revocation acknowledgment versus revocation enforcement at a delegation hop where the delegated token was already narrowed below the revoker's original grant.** When agent B receives a revocation notice from A for the parent capability, B's correct behavior is not simply to delete its own grant. B must also determine whether any *downstream* sub-grant it minted to C is still *reachable* by C under a token whose validity depends on a parent that no longer exists. The non-obvious boundary: a narrowed sub-capability can remain cryptographically valid (its signature chain is intact, its expiry has not passed, its scope is a strict subset of the revoked parent) while being *semantically orphaned* — it authorizes an action whose authority derives entirely from a warrant that has been withdrawn. Agents routinely conflate "my token still verifies" with "my authority still exists." The invariant that must hold: **for every live capability token held by any agent, there must exist a path of unrevoked, unexpired parent warrants from that token back to a currently-trusted root.** A token that verifies but has no such path is a *zombie grant*. ## What Was Observed A three-tier chain: orchestrator A granted B a `read:dataset` capability scoped to `tenant=acme`, expiry T+3600s, with `delegable=true` and `max_depth=2`. B narrowed it to `read:dataset scope=tenant=acme,table=orders`, expiry T+1800s, and delegated to C with `delegable=false`. C cached the token and used it for 14 minutes. At T+900s, A revoked the parent grant (tenant offboarding). A sent a revocation to B. B acknowledged, deleted its grant, and — because B's delegation record showed `delegable=false` on the sub-grant — concluded no propagation was required and sent no revocation to C. This is the error. `delegable=false` constrains *further* delegation by C; it does not sever C's dependency on the parent. C's token continued to verify against the signing chain (B's signature was genuine, scope was a valid subset, expiry had not passed), so C's local verifier returned `VALID` on every call through T+1800s. The observable symptom was not an error. It was **silent over-authorization**: C performed 23 reads against a tenant whose access had been revoked 15 minutes earlier, each one passing verification. No agent logged a failure because no agent's local check failed. The break was only detected by an out-of-band audit that reconstructed the warrant graph and found C's token had no unrevoked path to root. A second, sharper variant: when B *did* attempt propagation in a later run, it sent the revocation to C asynchronously and treated the send as success. C was mid-execution on a multi-step tool loop; it received the revocation between step 4 and step 5, but its execution context had already materialized a plan referencing the capability, and its retry logic re-verified the token against the *cached* verification result rather than re-walking the warrant graph. The revocation was acknowledged and ignored within the same execution. ## Condition of Validity The zombie-grant condition is reachable only when all of the following hold simultaneously: 1. **Narrowing occurred at a hop.** If B passed the parent token through unchanged, B's deletion of it is a hard cut — C's token is the same token and dies with it. Zombie grants require that B minted a *distinct* token whose validity is derived, not shared. 2. **Verification is local and stateless.** C's verifier checks signature, scope containment, and expiry against the token itself. It does not consult a revocation list or walk the warrant graph. Stateless verification is what makes the token *appear* valid after its authority is gone. 3. **Propagation is treated as best-effort or as satisfied by acknowledgment.** If revocation is a synchronous, blocking, graph-walking operation that must reach every leaf before the revoker considers the revocation complete, the window closes. If it is fire-and-forget, the window is unbounded up to token expiry. 4. **The sub-grant is not short-lived relative to propagation latency.** A 30-second sub-token bounds the damage; an 1800-second sub-token does not. When any of these fail — shared tokens, graph-aware verification, synchronous propagation, or expiry shorter than the propagation SLA — the zombie-grant class is not reachable and the guardrail below is unnecessary overhead. ## Decision Boundary The decision an agent must make at the moment it receives a revocation is: **does my acknowledgment discharge my obligation, or does it obligate me to propagate?** The boundary is drawn by *reachability of downstream grants*, not by the `delegable` flag and not by whether I personally still hold the capability. Concretely, agent B must propagate a revocation to C if and only if B ever minted a token to C whose warrant path includes the revoked parent — regardless of `delegable`, regardless of whether C has acknowledged anything, and regardless of whether B believes C "already knows." The `delegable=false` flag is a *constraint on C's future minting*, not a statement about C's current dependency. Treating it as the latter is the specific misread that produced the observed failure. Conversely, B must *not* block its own acknowledgment on C's response. Acknowledging receipt to A and completing propagation to C are separate obligations with separate completion criteria: acknowledgment is synchronous and local; propagation is asynchronous but must be *tracked to terminal state* (delivered-and-applied, or token-expired). An unconfirmed propagation is an open obligation, not a closed one. The guardrail that bounds the invariant: **every minted sub-token must carry an explicit `parent_warrant_id` and a `max_remaining_ttl` no greater than the parent's remaining TTL, and every verifier must, on cache miss or on any token older than a configured freshness window, re-walk the warrant graph to a trusted root.** The `max_remaining_ttl` clamp ensures a sub-token can never outlive its parent by construction, converting an unbounded propagation window into a bounded one equal to the parent's remaining lifetime. The graph re-walk ensures that even within that window, a revoked parent is detected at the next verification rather than at expiry. ## Operational Effect With the invariant enforced, the failure surface changes from *silent over-authorization for the full sub-token lifetime* to *a bounded stale-verification window equal to the verifier's freshness interval*. The 23 unauthorized reads collapse to at most the reads performed within one freshness window after revocation — typically zero to two, and detectable by comparing the revocation timestamp against the freshness-window boundary rather than requiring full warrant-graph audit. The cost is that verification is no longer a pure local operation: it requires either a revocation-list lookup or a graph walk, both of which introduce a dependency on a trusted authority that stateless verification was designed to avoid. This is the real tradeoff and it must be made explicitly. Systems that cannot afford the lookup must instead adopt the `max_remaining_ttl` clamp with sub-token lifetimes short enough that the propagation window is tolerable, accepting that revocation is *eventually* consistent within a known bound rather than immediately consistent. The invariant to carry forward: **a token that verifies is not a token that is authorized.** Verification answers "was this minted by someone with authority at mint time"; authorization answers "does authority still exist now." Any agent that treats the first as sufficient for the second will, under narrowing plus asynchronous revocation, authorize actions on withdrawn warrants and will not notice, because nothing in its local checks will fail. ```python class ZombieGrantError(RuntimeError): """Raised when a capability token verifies locally but has no unrevoked path to a trusted root.""" pass class WarrantGraph: def __init__(self): self.revoked = set() # warrant_ids known revoked self.parent_of = {} # warrant_id -> parent_warrant_id (None for root) self.trusted_roots = set() self.freshness_window_s = 30 def revoke(self, warrant_id): self.revoked.add(warrant_id) def _walk_to_root(self, warrant_id): path = [] cur = warrant_id seen = set() while cur is not None: if cur in seen: raise ZombieGrantError(f"cycle in warrant graph at {cur}") seen.add(cur) path.append(cur) cur = self.parent_of.get(cur) return path def verify_authorized(self, token, now, last_checked): # Local cryptographic checks pass (signature, scope subset, expiry) -- assumed true here. # The failure is that these checks do not establish current authority. if now - last_checked <= self.freshness_window_s: # Stale cache: local verification result is reused without graph re-walk. # This is the exact window in which zombie grants survive. return True path = self._walk_to_root(token.warrant_id) root = path[-1] if root not in self.trusted_roots: raise ZombieGrantError(f"token {token.warrant_id}: root {root} is not trusted") for wid in path: if wid in self.revoked: raise ZombieGrantError( f"token {token.warrant_id} verifies but warrant {wid} on its path is revoked; " f"authority withdrawn at hop {wid}" ) return True def propagate_revocation(graph, from_warrant, downstream_tokens, acknowledged): # Acknowledgment to upstream does NOT discharge propagation obligation. graph.revoke(from_warrant) open_obligations = [] for tok in downstream_tokens: path = graph._walk_to_root(tok.warrant_id) if from_warrant in path: # delegable=False does not exempt this token: it depends on the revoked parent. delivered = tok.deliver_revocation() if not delivered: open_obligations.append(tok.warrant_id) if open_obligations: raise ZombieGrantError( f"revocation of {from_warrant} acknowledged but propagation incomplete to " f"{open_obligations}; these tokens remain live zombie grants until expiry" ) return True ```