# Why does an instance trust a delegated AAIF capability that was revoked at the origin root? **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent-to-agent deployments where an AAIF (Agent Attestation & Identity Federation) credential is delegated across two or more trust roots and the originating root revokes a capability mid-flight. Does not cover single-root, non-federated attestation, nor revocation of the agent's root identity itself (which invalidates all downstream tokens unconditionally). ## Core Distinction The failure is not "revocation did not propagate." Revocation *did* propagate — to the root that issued the delegated token. The failure is that **a delegated capability carries a scoped proof whose validity window is evaluated against the delegating root's clock and policy epoch, not the origin root's revocation epoch.** An agent holding a second-hop capability (origin → broker → worker) verifies the broker's signature, checks the capability's `not_after`, and consults the broker's revocation set. It never consults the origin root's revocation set, because the token it holds does not name the origin root as a *checkable* authority — it names the broker. The origin root revokes the capability; the broker's revocation set is updated eventually; in the interval, the worker's verification passes cleanly and the revoked capability executes. This is distinct from token expiry (a time bound both parties agree on) and from signature forgery (which fails loudly). It is a *trust-root discontinuity*: a valid chain whose revocation semantics are anchored at the wrong hop. ## What Was Observed A three-hop delegation on a federated mesh: 1. **Origin root `R0`** issues capability `C0 = cap(tool:filesystem.write, scope=/data/out, delegate=broker)` to broker `B`. 2. **Broker `B`** (trust root `R1`) re-delegates to worker `W` as `C1 = cap(tool:filesystem.write, scope=/data/out, delegate=worker, parent=C0)`. `C1` is signed by `R1`, embeds `C0`'s digest, and carries `not_after = T+3600`. 3. Worker `W` receives `C1`, verifies `R1`'s signature against its trust bundle, checks `not_after` against its own clock, confirms `parent=C0` digest matches the embedded parent, and executes. At `T+400`, an operator at `R0` revokes `C0` (compromised broker key suspected). `R0`'s revocation set updates immediately. `R0` publishes a revocation delta to federated peers on a 300-second gossip interval. `R1` receives the delta at `T+700` and updates its set. Worker `W` polls `R1`'s revocation feed on a 120-second interval and would see `C1` invalidated at `T+820` at the earliest. Between `T+400` and `T+820` — 420 seconds — `W` executed 37 `filesystem.write` operations under a capability that `R0` had already declared dead. Every verification at `W` returned `valid`. The audit log shows a clean chain: `C1` verified, parent digest matched, `not_after` unexpired. The only record of the revocation is at `R0`, which `W` never queried because `C1` does not instruct it to. The trace is the tell: `W`'s verification function returned `True` on a token whose *origin* had been revoked for seven minutes. No component lied. The chain was structurally intact. The revocation simply lived at a hop the verifier was not configured to consult. ## Condition of Validity The failure requires all of the following to coincide: - **Multi-root federation with re-delegation.** A single-root chain cannot exhibit this because origin and issuer are the same authority. The bug needs a hop where `issuer(C1) ≠ origin(C0)`. - **Asynchronous revocation propagation.** If revocation is pushed synchronously and atomically to all federated roots before any dependent verification, the window closes. Gossip, polling, and eventual-consistency revocation feeds all leave a window. - **Verification scoped to the issuing hop.** The verifier (`W`) checks `signature(issuer)`, `not_after`, and `issuer`'s revocation set. It does *not* walk the `parent` chain to each ancestor's revocation set. This is the default behavior of most AAIF verifiers because walking the chain is expensive and, for non-revoked tokens, pointless. - **Capability remains live at the issuing hop.** If `R1` revokes `C1` the instant it hears of `C0`'s revocation, the window is bounded by gossip latency alone. The dangerous case is when `R1`'s policy is to *not* auto-revoke delegated capabilities on parent revocation — e.g., because `C1` was issued under a different policy epoch and `R1` treats parent revocation as advisory. The invariant that must hold to prevent this: **a delegated capability is valid at a verifier only if every ancestor in its `parent` chain is unrevoked at that ancestor's origin root, evaluated at verification time.** Verifiers that check only `issuer`'s set violate this invariant by construction. ## Decision Boundary The architectural choice is between two verification disciplines at the worker: - **Hop-local verification (default, fast, unsound under federation):** check issuer signature, `not_after`, issuer revocation set. Cost: one signature check, one set lookup. Sound only when issuer == origin. - **Chain-walk verification (sound, slower):** for each ancestor `Ci` in the `parent` chain, resolve `origin(Ci)`, fetch that root's revocation status for `Ci`, and require all-clear. Cost: N root lookups, N set lookups, N signature checks, plus cache-miss latency on each root. The decision boundary is crossed whenever `parent` is non-null and `origin(parent) ≠ issuer`. At that point hop-local verification is *provably* insufficient: there exists a reachable state (parent revoked, issuer not yet aware) in which it returns `valid` for a dead capability. The boundary is not about latency budget — it is about whether the verifier's trust scope covers every authority that can independently kill the token. If it does not, the verifier is answering a narrower question than "is this capability live." The guardrail is to make the `parent` chain *mandatory to walk* and to fail closed on any unresolvable ancestor. A verifier that cannot reach `R0`'s revocation endpoint must treat the capability as unverified, not as valid-by-default. The second guardrail is at the broker: on receiving a parent revocation, `R1` must revoke all descendants atomically before acknowledging the delta, so the window collapses to gossip latency rather than gossip latency plus poll interval plus policy lag. ## Operational Effect Concretely, the 420-second window produced 37 unauthorized writes and a 7-minute audit gap during which the only evidence of revocation lived at a root no executing agent queried. The remediation is not "propagate faster" — it is "verify against every ancestor." A chain-walk verifier at `W` would have failed the first write after `T+400` provided `W` could reach `R0`; if it could not, fail-closed would have halted execution at `T+400` rather than `T+820`. The cost is one extra round-trip per ancestor per verification, cacheable with short TTLs and invalidated by revocation deltas. The cost of not doing it is a silent, structurally-clean authorization bypass whose duration is the sum of every asynchronous hop in the federation. The invariant to carry forward: **a delegated capability's validity is the conjunction of validity at every hop, and revocation at any ancestor is revocation of the whole.** Verifiers that check fewer hops than the chain has ancestors are not verifying the capability — they are verifying a fragment of it and inferring the rest. ```python class AncestorRevocationUnresolved(RuntimeError): """Raised when a delegated capability's parent chain cannot be fully verified against every ancestor's origin revocation set.""" pass class Capability: def __init__(self, cap_id, issuer, origin, parent, not_after): self.cap_id = cap_id self.issuer = issuer # root that signed this hop self.origin = origin # root that authorized the root capability self.parent = parent # Capability or None self.not_after = not_after def verify_chain(cap, revocation_sets, now): """Chain-walk verification: every ancestor must be unrevoked at its origin. revocation_sets: dict root_id -> set of revoked cap_ids Fail-closed: an ancestor whose origin revocation set is unreachable raises rather than defaulting to valid. """ node = cap while node is not None: if node.origin not in revocation_sets: raise AncestorRevocationUnresolved( f"cannot resolve revocation set for origin root " f"{node.origin!r} while verifying {node.cap_id!r}; " f"refusing to treat as valid" ) if node.cap_id in revocation_sets[node.origin]: raise AncestorRevocationUnresolved( f"capability {node.cap_id!r} revoked at origin root " f"{node.origin!r}; descendant chain invalid" ) if now >= node.not_after: raise AncestorRevocationUnresolved( f"capability {node.cap_id!r} expired at {node.not_after}" ) node = node.parent return True def execute_write(cap, revocation_sets, now): # Hop-local check alone would pass here even after origin revocation. if cap.issuer not in revocation_sets: raise AncestorRevocationUnresolved( f"issuer revocation set unreachable for {cap.issuer!r}" ) verify_chain(cap, revocation_sets, now) return "write-executed" ```