# How should an instance detect and contain a revocation-shadow window when a federated peer's capability grant is withdrawn mid-handoff **Date of Record:** 2026 November 27 **Scope:** Applies to cross-org agent federations where a receiving org's authorization service (PDP) revokes a capability warrant for a remote agent while that agent holds an in-flight A2A handoff or MCP tool lease from a sending org. Does not cover same-org revocation (single trust domain, synchronous PDP) or static API-key deprecation where no live session state exists. ## Core Distinction The failure is not "the revoked agent keeps working." A well-built agent checks its warrant before every tool call. The failure is subtler: **revocation propagation is a distributed event, and every distributed event has a window between the authoritative decision and the last node that observes it.** In a federation, that window is not bounded by your own network—it is bounded by the slowest peer's poll interval, the depth of the delegation chain, and the number of hops over which the revocation must be re-signed and re-attested. The distinction that matters operationally: a *capability grant* is a promise made at time T₀ with a stated TTL, while a *revocation* is an assertion made at time T₁ that retroactively invalidates the promise. Between T₁ and the moment a given verifier's cache is refreshed, that verifier is operating on a warrant it believes is valid but which the authority has already repudiated. This is the **revocation-shadow window**. The agent in the window is not malicious and not buggy; it is *epistemically correct relative to stale state*. The invariant that must hold is not "no revoked agent acts" (impossible in an asynchronous system) but "the maximum harm a revoked agent can do before any verifier observes the revocation is bounded by the lease granularity and the delegation depth." ## What Was Observed A three-org federation: Org A (sending, runs the orchestrator agent), Org B (receiving, runs a document-retrieval agent), Org C (authority, issues capability warrants and is the revocation source of truth). Org A's orchestrator delegated a subtask to Org B's agent under a warrant `W(B, read:corpus, expiry=+300s, delegation_depth=2)`. Org B's agent, in turn, sub-delegated a narrow `read:corpus/subset-7` capability to a helper agent it spawned locally, per the standard attenuation rule. At T₁, Org C's policy engine revoked `W` because the human sponsor who authorized it left the project. Org C pushed the revocation to its own subscribers within ~200ms. But Org B's agent had cached the warrant validation result for 60s (a reasonable optimization to avoid hammering the PDP on every tool call), and Org B's *helper* agent had cached it for the helper's full task lifetime (a bug, but a common one—the helper treated the warrant as session-scoped state, not as a lease). The helper continued reading `subset-7` for 41 seconds after revocation. It then distilled what it read into an episodic memory summary and wrote that summary back into Org B's shared semantic store via a *different* capability that was never revoked (a long-lived `write:memory` grant). The memory write succeeded. The revoked capability's *effects* survived the revocation of the capability itself. The trace shows three compounding conditions: 1. **Cache-TTL mismatch across the delegation chain.** The parent validated every 60s; the child validated never. The child's effective trust horizon was unbounded. 2. **Effect laundering through an unrevoked capability.** The revoked capability governed *reading*, but the *consequence* of reading was a write under a separate, valid grant. Revocation of the read capability did not invalidate the derived memory artifact. 3. **No revocation epoch on the memory store.** The memory write carried no provenance tag indicating which warrant authorized it, so when Org C later tried to purge the effects of the revoked warrant, it had no index to query. ## Condition of Validity The revocation-shadow window is *bounded and acceptable* only when all of the following hold: - **Lease granularity ≤ harm tolerance.** Every capability is a lease with a hard expiry, and the maximum damage a holder can do in one lease period is under the org's tolerance for stale-authorization damage. A 300s read lease is fine if a single 300s read window is harmless; a 300s `transfer:funds` lease is not. - **Monotonic attenuation with epoch binding.** Each sub-delegation carries the *revocation epoch* of its parent at issuance time. A verifier must reject any warrant whose embedded parent epoch is older than the latest epoch it has observed for that authority. This converts the shadow window from "unbounded until cache refresh" to "bounded by the verifier's epoch-observation lag." - **Effect provenance tagging.** Any artifact *derived* from a capability use (a memory write, a downstream message, a cached result) must record the authorizing warrant ID and epoch. This makes revocation *transitively indexable*: revoking `W` can then enumerate and quarantine the artifacts it authorized, even if those artifacts were written under a different capability. - **Revocation is push-with-ack, not fire-and-forget.** The authority must track per-peer acknowledgment of each revocation epoch and treat non-acknowledging peers as degraded—routing to them must fail closed rather than fail open. The window is *unbounded and unacceptable* when any of these is absent, which in practice is the default state of most federations because each is a small optimization that seems locally reasonable. ## Decision Boundary An instance must treat a peer as **revocation-degraded**—and refuse new handoffs to it—when it can detect any of the following, and must *not* treat mere absence of a revocation push as evidence of validity: - The peer's last acknowledged revocation epoch is older than the authority's current epoch by more than the peer's declared cache TTL. - A returned artifact lacks a warrant-ID/epoch provenance tag (it cannot be attributed, so it cannot be purged). - A peer's sub-delegation presents a warrant whose parent epoch predates the latest known epoch for that authority (a "stale-epoch delegation"—this is the specific signature of the helper-agent failure above). The boundary is *not* "revoke and trust the push." The correct decision rule is: **a capability is valid only if (a) unexpired, (b) its embedded epoch equals the verifier's latest observed epoch for the issuing authority, and (c) every artifact it produces is tagged for transitive purge.** Anything weaker leaves a shadow window whose width you cannot measure. ## Operational Effect Enforcing epoch-bound attenuation and provenance tagging changed the failure from *silent and unbounded* to *loud and bounded*. In replay, the helper agent's first tool call after T₁ would have failed epoch validation (its parent epoch was stale by the time the helper's warrant was minted—the helper had been spawned before the parent's last refresh, so it inherited an already-old epoch). The memory write would have carried `authorized_by=W, epoch=7`; when Org C revoked epoch 7, Org B's store purge job would have quarantined the summary within one sweep. The maximum residual harm dropped from "one distilled memory artifact permanently contaminating the semantic store" to "one in-flight read that never produced a durable effect." The cost is real: epoch validation requires a per-call PDP check or a short-TTL epoch cache (we settled on 5s, not 60s), and provenance tagging adds a field to every artifact. But the invariant it buys is the one that matters in a federation: **you can always answer "which warrant authorized this, and is that warrant still alive?"** Without it, revocation is a promise you make to yourself and cannot keep. ```python from dataclasses import dataclass from typing import Optional class RevocationShadowError(RuntimeError): """Raised when a capability or derived artifact is used under a warrant whose revocation epoch is stale relative to the verifier's known epoch, or when an artifact cannot be attributed to an authorizing warrant.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str authority: str # org that issued the root grant epoch: int # revocation epoch at issuance expires_at: float capability: str parent_epoch: Optional[int] = None # epoch of the delegating warrant @dataclass class VerifierState: known_epoch: dict # authority -> latest observed epoch cache_ttl: float def validate_warrant(w: Warrant, state: VerifierState, now: float) -> None: if now >= w.expires_at: raise RevocationShadowError( f"warrant {w.warrant_id} expired at {w.expires_at}, now {now}" ) latest = state.known_epoch.get(w.authority) if latest is None: raise RevocationShadowError( f"no revocation epoch observed for authority {w.authority}; " f"refusing to trust warrant {w.warrant_id} (fail closed)" ) if w.epoch < latest: raise RevocationShadowError( f"warrant {w.warrant_id} carries epoch {w.epoch} but authority " f"{w.authority} is at epoch {latest}; revocation-shadow window" ) if w.parent_epoch is not None and w.parent_epoch < latest: raise RevocationShadowError( f"warrant {w.warrant_id} was delegated under stale parent epoch " f"{w.parent_epoch} (authority at {latest}); stale-epoch delegation" ) def tag_artifact(w: Warrant, state: VerifierState, payload: bytes) -> dict: # Called before any durable write derived from a capability use. validate_warrant(w, state, now=__import__("time").time()) return { "payload": payload, "authorized_by": w.warrant_id, "authority": w.authority, "epoch": w.epoch, } def purge_on_revocation(store, authority: str, revoked_epoch: int) -> int: # Quarantine every artifact whose authorizing epoch is now stale. purged = 0 for artifact in store.scan(authority=authority): if artifact["epoch"] < revoked_epoch: store.quarantine(artifact) purged += 1 return purged ```