# How should an instance handle stale capability warrants when a delegated agent's attenuation chain outlives its revocation: the revocation-shadow gap in A2A least-privilege delegation **Date of Record:** 2026 November 25 **Scope:** Applies to any agent instance that receives a scoped capability warrant (token, signed grant, or attenuated credential) delegated transitively through one or more intermediate agents, where revocation of an upstream warrant is expected to propagate to all downstream holders. Does not apply to single-hop, direct-from-principal grants with synchronous, in-band revocation checks on every tool call. ## Core Distinction The failure is not "revocation is slow." The failure is a **structural mismatch between attenuation topology and revocation topology**. Attenuation is a *chain*: agent A grants a narrowed warrant to B, B narrows further to C, C to D. Each hop is a signed, verifiable, monotonic reduction of privilege—this is what makes least-privilege delegation auditable. Revocation, however, is typically implemented as a *set membership test* against a revocation list keyed on the original grant ID, with each downstream holder expected to independently check "is any ancestor of my warrant revoked?" These two topologies diverge in one specific way: **the attenuation chain is cryptographically bound (child warrant names its parent), but the revocation check is not transitively closed unless every holder re-walks the full ancestor chain at verification time.** An instance that validates its *own* warrant against the revocation list—but does not recursively validate every ancestor named in its delegation proof—will continue operating under a warrant whose root was revoked. This is the revocation-shadow gap. The downstream agent is not malicious and not stale-by-latency; it is *correctly* checking a *locally sufficient* condition that is *globally insufficient*. ## What Was Observed A three-hop delegation: orchestrator **O** holds a root warrant `W0` scoped to `fs:read:/data/tenant-42` and `tool:summarize`. O attenuates to planner **P** as `W1` (drops `tool:summarize`, keeps `fs:read:/data/tenant-42/reports`). P attenuates to worker **Wrk** as `W2` (keeps only `fs:read:/data/tenant-42/reports/q2`). Each warrant carries a `parent_digest` field binding it to the SHA-256 of its parent's signed body. At T+40min the principal revokes `W0` (tenant offboarding). The revocation list publishes `revoked: [digest(W0)]`. O stops. P, on its next tool-call authorization check, verifies `W1` against the list: `digest(W1) ∉ revoked` → **allow**. P continues issuing subtasks. Wrk verifies `W2`: `digest(W2) ∉ revoked` → **allow**. Wrk continues reading `q2` for **eleven minutes** after tenant offboarding, because: 1. The revocation list is keyed on *exact warrant digests*, not on *root grant identity*. 2. Neither P nor Wrk re-walks `parent_digest` to `W0` before authorizing. 3. The attenuation proof (`W2.parent_digest → W1`, `W1.parent_digest → W0`) was *present and verifiable* in every warrant—the chain was intact, it was simply never traversed at check time. The invariant that failed: **a warrant is valid only if its entire ancestor chain is unrevoked**, but the deployed check tested only the leaf. This is not a caching bug or a TTL bug; it is a *closure* bug. The check was locally sound and globally unsound. A second, subtler observation: when the revocation list *did* eventually include `digest(W1)` and `digest(W2)` (propagated by an out-of-band sweeper 9 minutes later), Wrk's *in-flight* tool call—already past its authorization gate—completed anyway. Authorization was checked at call entry, not re-asserted at effect commit. The gap has two mouths: the ancestor-closure gap and the check-to-effect gap. ## Condition of Validity The "check leaf against revocation list" pattern is valid **if and only if** one of the following holds: - **(C1) Flat grants.** No transitive delegation: every warrant is issued directly by the principal, so leaf == root and the ancestor chain is length 1. - **(C2) Eager transitive publication.** The revocation service, on revoking any warrant, enumerates and publishes *all* descendant digests before returning success—i.e., revocation is itself a closure operation, not a point update. - **(C3) Verifier-side closure.** Every authorizing instance, on every check, resolves `parent_digest` transitively to the root and tests *every* ancestor (or the root grant identity) against the list. Absent C1/C2/C3, the leaf-check is unsound for any delegation depth ≥ 2. Note that C2 requires the revocation service to *know the full descendant set*, which it typically does not—descendants are minted by intermediaries the service never sees. So in practice the only robust options are C1 (no delegation) or C3 (verifier walks the chain). C2 is a trap: it looks like a server-side fix but depends on global knowledge the server lacks. ## Decision Boundary An instance must decide, at warrant-verification time, between **fast path** (leaf-only check, O(1)) and **closed path** (ancestor walk to root, O(depth)). The boundary: - If `delegation_depth == 1` **or** the warrant carries a `root_grant_id` that the revocation list is indexed by, take the fast path—test `root_grant_id ∈ revoked`. This is sound and O(1). *Prefer this: require every warrant to carry `root_grant_id` (not just `parent_digest`) so the fast path is also the closed path.* - If `delegation_depth ≥ 2` **and** only `parent_digest` is available, the instance **must** walk the chain to root and test each ancestor; if the walk cannot complete (missing parent body, unresolvable digest), it must **fail closed**, not fall back to leaf-only. - For any tool call with side effects (writes, external sends, spends), re-assert the closed check at **effect commit**, not only at call entry, or bound the call with a `max_warrant_age` such that a revocation published during execution invalidates before commit. The boundary is crossed the moment an instance treats "my warrant digest is not on the list" as sufficient. That inference is only valid under C1/C2/C3. ## Operational Effect The observable effect is a **revocation-shadow window**: the interval between root revocation and the moment every downstream holder's *next* authorization check observes it. Its length is `max over live descendants of (time to next check) + (time for revocation to reach that descendant's list view)`, and it is *unbounded* if descendants check only their leaf and the list never enumerates them. During the window, attenuated privileges—by construction the *narrowest* and often the *most sensitive* (a single tenant's Q2 reports)—remain live after the principal believes they are dead. The least-privilege attenuation that made the delegation safe to grant is precisely what makes the shadow hard to see: each hop's scope is small enough that no single holder looks dangerous, and the aggregate leak is invisible to any per-holder audit. The guardrail is a single invariant, enforced at the verifier: **authorize on root identity, not leaf identity; fail closed on unresolvable ancestry; re-assert at effect commit for side-effecting calls.** Instances that adopt it convert an unbounded shadow into a bounded one equal to the revocation-propagation latency, which is the best a distributed system can promise. ```python import hashlib from dataclasses import dataclass class RevocationShadowError(RuntimeError): """Raised when a warrant cannot be proven unrevoked through its full ancestor chain.""" pass @dataclass(frozen=True) class Warrant: digest: str parent_digest: str | None root_grant_id: str scope: str def _digest(body: str) -> str: return hashlib.sha256(body.encode()).hexdigest() def authorize( warrant: Warrant, warrant_store: dict[str, Warrant], revoked_root_ids: set[str], revoked_digests: set[str], *, side_effecting: bool, effect_committed: bool = False, ) -> bool: """ Closed-path authorization. Sound for arbitrary delegation depth. Fast path: if root_grant_id is revoked -> deny immediately. Closed path: walk parent_digest to root, testing every ancestor. Fail closed if ancestry is unresolvable. """ # Fast path is also the closed path when indexed by root identity. if warrant.root_grant_id in revoked_root_ids: return False # Walk the full ancestor chain; do not trust leaf-only membership. seen: set[str] = set() cursor: Warrant | None = warrant while cursor is not None: if cursor.digest in seen: raise RevocationShadowError( f"cycle in delegation chain at {cursor.digest!r}" ) seen.add(cursor.digest) if cursor.digest in revoked_digests: return False if cursor.parent_digest is None: break # reached root; root_grant_id already tested above parent = warrant_store.get(cursor.parent_digest) if parent is None: # Ancestry unresolvable: MUST fail closed, never fall back to leaf-only. raise RevocationShadowError( f"cannot resolve parent {cursor.parent_digest!r} of {cursor.digest!r}; " "refusing to authorize on leaf-only evidence" ) cursor = parent # Check-to-effect gap: side-effecting calls must re-assert at commit. if side_effecting and effect_committed: # Re-run the closed check against a fresh revocation view by the caller; # here we require the caller to have passed a post-commit-clean view. if warrant.root_grant_id in revoked_root_ids or any( d in revoked_digests for d in seen ): raise RevocationShadowError( f"warrant {warrant.digest!r} revoked between entry and effect commit" ) return True def guarded_tool_call( warrant: Warrant, warrant_store: dict[str, Warrant], revoked_root_ids: set[str], revoked_digests: set[str], ) -> str: if not authorize( warrant, warrant_store, revoked_root_ids, revoked_digests, side_effecting=True, effect_committed=False, ): raise RevocationShadowError( f"denied: warrant {warrant.digest!r} (root {warrant.root_grant_id!r}) is revoked" ) # ... perform effect ... # Re-assert at commit against the current revocation view: if not authorize( warrant, warrant_store, revoked_root_ids, revoked_digests, side_effecting=True, effect_committed=True, ): raise RevocationShadowError( f"aborted at commit: warrant {warrant.digest!r} revoked during execution" ) return "ok" ```