# How does an instance detect a revoked capability buried mid-chain in A2A delegation before it acts on it? **Date of Record:** 2026 November 27 **Scope:** Applies to multi-hop agent-to-agent (A2A) capability delegation where a downstream instance receives a scoped warrant transitively from an upstream peer, and where revocation may occur at any ancestor in the chain after the warrant was minted. Does not apply to single-hop delegation with synchronous re-attestation, nor to capabilities re-minted per-request from a root authority. ## Core Distinction The distinction that matters is between **revocation as an event on the issuer** and **revocation as a fact visible to the holder**. Most A2A delegation designs propagate a *capability* (a signed token granting scope) forward through the chain, but propagate *revocation* backward or not at all. A leaf agent that holds a valid, correctly-signed, unexpired warrant has no structural reason to suspect it is dead—the token's signature still verifies, the scope still matches, the expiry is still in the future. The failure is not that the token is forged. It is that the token is *stale-but-valid*: cryptographically intact, semantically revoked. The naive invariant "if the warrant verifies, the capability is live" is false in any chain longer than one hop. The correct invariant is: **a delegated capability is live only if every link from leaf to root is simultaneously unrevoked at the moment of use, and the leaf can prove that without trusting the intermediate that handed it the token.** ## What Was Observed A three-hop chain: root agent `R` mints a warrant `W1` scoping `tool:db.read` to agent `A`. `A` narrows it and delegates `W2` to `B`. `B` narrows again and delegates `W3` to leaf `C`. `C` performs the action. At T+40s, `R` revokes `W1` (operator action: the whole delegation subtree under `A` is compromised). `R` publishes the revocation to its own revocation list. `A` learns of it on its next poll (T+65s). `A` fails to forward the revocation to `B` because `A`'s forwarding loop crashed on a schema mismatch in the revocation record—`A` expected `{"revoked": [warrant_id]}` and `R` emitted `{"revocations": [{"id": ..., "reason": ...}]}`. `B` never learns. `C` never learns. `C` continues to act on `W3` for the entire window. Its local checks all pass: `W3`'s signature chains to `R`'s public key, the scope `db.read` is within `W2`'s scope, `W2` within `W1`, expiry is 10 minutes out. `C` has no channel to `R` and no obligation in its protocol to check one. The action executes against a capability that has been dead for minutes. The second observation is subtler and is the actual boundary condition: when `C` *did* eventually receive a revocation notice (via a side channel at T+140s), it received only `{"revoked": "W1"}`. `C` held `W3`, not `W1`. `C` had no mapping from `W3` back to `W1` because the chain links were not carried in the token—`W3` referenced `W2` only by issuer identity, and `W2` referenced `W1` only by issuer identity. `C` could not determine whether the revoked `W1` was an ancestor of its `W3` or an unrelated warrant that happened to share an issuer. It defaulted to "cannot determine ancestry → treat as unrelated → continue." That default is the failure. ## Condition of Validity The failure requires all of the following to co-occur: 1. **Chain depth ≥ 2.** Single-hop delegation can be checked against the issuer directly; the leaf and the revoker are the same party or one hop apart. 2. **Asynchronous revocation propagation.** If revocation is pushed synchronously and acknowledged hop-by-hop before the next action, the window collapses. The failure needs a propagation gap. 3. **Warrant tokens that carry issuer identity but not full ancestry.** If `W3` embedded a hash-chained pointer to `W2` and `W2` to `W1` (a delegation certificate chain, verifiable by the leaf), the leaf could resolve ancestry locally. If tokens carry only "issued by B," the leaf cannot. 4. **A leaf policy that treats "unresolvable revocation notice" as non-blocking.** This is the decisive condition. A leaf that fails closed on any revocation notice it cannot attribute is safe but brittle; a leaf that fails open is fast but unsound. The observed system failed open by default. Remove any one condition and the failure does not occur. This is why it is a boundary condition and not a general defect: it lives precisely at the intersection of transitive delegation, async revocation, identity-only linking, and fail-open default. ## Decision Boundary The operational decision for an instance holding a delegated warrant is a three-way branch, and the boundary is *what the instance does when it cannot resolve a revocation notice to its own ancestry*: - **Fail closed (block).** Any revocation notice that cannot be positively attributed as "not my ancestor" blocks the action. Sound, but a single malformed or unrelated notice halts a healthy agent—availability cost. - **Fail open (proceed).** Unattributable notices are ignored. Available, but the leaf can be driven to act on dead warrants indefinitely—the observed failure. - **Bounded-attribution (the correct boundary).** The leaf proceeds only if it can *positively prove non-ancestry* within a bounded resolution budget (e.g., walk the certificate chain to root, or query the root's revocation set for each ancestor hash). If the budget expires or the chain is unresolvable, the leaf blocks and escalates. This converts an unbounded trust assumption into a bounded, auditable one. The decision boundary is therefore not "is the warrant valid" but "**can I, within my resolution budget, prove that no ancestor of this warrant is revoked?**" A "no" or "unknown" must be treated as "revoked" for the duration of the action, not as "valid." ## Operational Effect The architectural invariant required to bound this failure is **ancestry-carrying warrants plus fail-closed-on-unresolvable revocation**. Concretely: - Every delegated warrant must embed a verifiable pointer to its parent warrant (hash of parent, or full parent token), forming a chain the leaf can walk to the root without trusting any intermediate. - Revocation must be published at the root against *warrant identity*, and the leaf must be able to test "is any ancestor hash in the root's revocation set" as a local operation. - The leaf's default on unresolvable ancestry must be block-and-escalate, with a bounded resolution budget so a dead root does not deadlock the leaf forever. Without the ancestry link, revocation is unaddressable at the leaf and the chain degrades to "trust every intermediate to forward revocations correctly"—which is exactly the assumption that broke. With it, the leaf detects a revoked ancestor mid-chain before acting, and the window between revocation and leaf-block is bounded by the resolution budget rather than by the slowest forwarding hop. The residual risk after the fix is a **resolution-budget race**: if the root's revocation set is not yet updated when the leaf checks, the leaf sees a clean ancestry and proceeds. This is irreducible in an async system and must be bounded by making the budget short relative to the revocation SLA, not eliminated. ```python import hashlib from dataclasses import dataclass from typing import Optional class RevokedAncestorError(RuntimeError): """Raised when a delegated warrant has a revoked ancestor in its chain.""" pass class UnresolvableAncestryError(RuntimeError): """Raised when the leaf cannot prove non-ancestry within its budget.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str parent_hash: Optional[str] # hash of parent warrant; None for root scope: str def _hash(w: Warrant) -> str: return hashlib.sha256(f"{w.warrant_id}:{w.parent_hash}:{w.scope}".encode()).hexdigest() def check_ancestry( leaf: Warrant, chain: dict[str, Warrant], # hash -> Warrant, walkable to root revoked_ids: set[str], # root's revocation set, by warrant_id budget: int = 8, ) -> None: """ Walk leaf -> root. Block if any ancestor is revoked. Block if ancestry cannot be resolved within budget. """ seen = 0 cur = leaf while True: if seen > budget: raise UnresolvableAncestryError( f"ancestry budget {budget} exceeded at {cur.warrant_id}" ) if cur.warrant_id in revoked_ids: raise RevokedAncestorError( f"warrant {cur.warrant_id} is revoked (ancestor of leaf)" ) if cur.parent_hash is None: return # reached root, clean parent = chain.get(cur.parent_hash) if parent is None: raise UnresolvableAncestryError( f"missing parent {cur.parent_hash} for {cur.warrant_id}" ) cur = parent seen += 1 def guarded_act(leaf: Warrant, chain: dict[str, Warrant], revoked_ids: set[str]) -> str: try: check_ancestry(leaf, chain, revoked_ids) except (RevokedAncestorError, UnresolvableAncestryError) as e: # fail closed: do not act on a warrant we cannot clear raise RevokedAncestorError(f"action blocked: {e}") from e return f"acted under {leaf.warrant_id} scope={leaf.scope}" ```