# How does an instance detect a revoked peer warrant when the revocation arrives after the task handoff has already been accepted? **Date of Record:** 2026 December 2 **Scope:** Applies to federated Agent-to-Agent (A2A) deployments where agents exchange signed capability warrants (e.g., macaroons, biscuit tokens, or JWT-bound capability grants) and where revocation is propagated asynchronously via a separate channel from the task protocol itself. Does not apply to single-issuer, single-domain deployments where revocation and task execution share a synchronous transaction boundary. ## Core Distinction There are two distinct notions of "revoked" that federated A2A systems routinely conflate: **issuer-side revocation** (the authority has recorded that a warrant is no longer valid) and **recipient-side rejection** (the executing peer has observed and acted on that revocation). The gap between these two events is the *revocation propagation window*, and every task handoff that completes inside that window is a **zombie delegation**: a sub-task executed under a warrant the issuer has already invalidated but the executor has not yet learned about. The non-obvious invariant is this: **a peer cannot detect revocation by inspecting the warrant it holds.** The warrant is a static, self-contained artifact. Its validity at issue time is provable; its validity *now* is not. Detection therefore requires either (a) an active freshness check against the issuer's revocation surface at the moment of use, or (b) a bounded staleness budget that the accepting peer explicitly assumes and enforces. Systems that do neither will silently execute revoked delegations for as long as the propagation channel lags — and that lag is unbounded under partition. ## What Was Observed In a three-domain federation (issuer `A`, orchestrator `B`, executor `C`), a warrant `W` was issued by `A` delegating `tool:write:records` to `B` with a 3600s expiry and a revocation endpoint at `A`'s CRL service. `B` accepted a long-running task from a client, then performed an A2A handoff to `C`, forwarding a *derived* warrant `W'` (attenuated from `W`, narrowing scope to a specific record namespace). `C` validated `W'`'s signature chain, confirmed the caveat set was a valid attenuation, and began execution. At T+40s, `A` revoked `W` (operator action: the `B` agent's underlying credential was compromised). `A` published the revocation to its CRL. `B`'s revocation poller had a 300s interval and had just completed a poll at T+30s. `C`, per its configuration, only checked the *root issuer's* revocation surface at warrant-acceptance time — not continuously — and had accepted `W'` at T+35s, five seconds before the revocation was even published. The result: `C` executed 14 write operations against the record store over the next 4 minutes under a warrant whose root had been revoked at T+40s. `B`, meanwhile, never propagated the revocation to `C` at all — its A2A handoff protocol had no revocation-forwarding message type. The revocation was discovered only when a downstream auditor replayed `C`'s action log against `A`'s CRL and found the timestamp inversion: `W`'s revocation time (T+40s) preceded the majority of `C`'s writes. The failure was not a signature failure, not a scope-escalation failure, and not a race in the handoff itself. Every cryptographic check passed. The failure was purely a **temporal validity gap** between the issuer's authoritative state and the executor's knowledge of it, with no mechanism in the protocol to close it. ## Condition of Validity The zombie-delegation window exists whenever all three of the following hold: 1. **Asynchronous revocation propagation.** The revocation channel (CRL, OCSP-like check, gossip, or push notification) is not synchronous with the task execution channel. This is the default in any federated deployment spanning administrative domains, because synchronous revocation checks reintroduce a hard dependency on the issuer's availability. 2. **Warrant self-validation is treated as sufficient.** The accepting peer's validation logic proves *"this warrant was validly issued and attenuated"* but not *"this warrant is valid at execution time."* These are different predicates. The first is a signature-and-chain problem; the second is a liveness-and-freshness problem. 3. **Delegation is transitive without revocation re-anchoring.** When `B` derives `W'` from `W` and hands it to `C`, the revocation of `W` must invalidate `W'`. If `C` only checks `A`'s revocation surface *at acceptance* and never re-checks during execution, or if `B` never forwards revocations it learns about, `W'` outlives its parent's validity with no local signal. The invariant that bounds this: **every executing peer must either (a) re-validate the full warrant chain against each issuer's revocation surface at a bounded interval no longer than the warrant's declared `max_staleness`, or (b) refuse warrants whose `max_staleness` exceeds its own revocation-poll capability.** A warrant that does not declare `max_staleness` is not safely delegable across domains — it is a promise the issuer cannot keep. ## Decision Boundary The accepting peer must decide, at the moment of each *use* (not merely at acceptance), whether the warrant is still live. The boundary condition is the comparison between elapsed time since last successful revocation check and the warrant's `max_staleness`: - If `now - last_revocation_check <= max_staleness` **and** the last check returned "not revoked," the peer may proceed. It carries residual risk bounded by `max_staleness`. - If `now - last_revocation_check > max_staleness`, the peer **must** perform a synchronous revocation check before the next use. If that check cannot be completed (issuer unreachable, partition), the peer must **fail closed** — halt execution and checkpoint state — rather than proceed on stale knowledge. - If the warrant declares no `max_staleness`, the peer must treat `max_staleness` as zero and perform a synchronous check before every use. This is expensive but correct; it is the only sound default when the issuer has not bounded its own propagation lag. The subtle part: this decision must be re-evaluated at **every tool call**, not once per task. A long-running task that checked revocation at acceptance and then ran for four minutes is exactly the failure observed. The warrant's validity is a function of wall-clock time, and a task's execution spans wall-clock time. Checking once at the start is checking at the wrong granularity. ## Operational Effect When the invariant is enforced, the observable behavior changes in three ways. First, tasks that would have executed under a revoked warrant now halt at the next tool-call boundary, with a `RevocationStaleError` surfaced to the orchestrator, which can then re-delegate under a fresh warrant or escalate. Second, the federation gains a *provable* upper bound on zombie-delegation exposure: no more than `max_staleness` seconds of execution per warrant, per peer. Third, the issuer's CRL becomes a load-bearing component whose availability directly gates task throughput — which is the correct tradeoff, because the alternative is unbounded silent execution under revoked authority. The operational cost is real: synchronous revocation checks on every tool call add latency and create a hard dependency on the issuer's CRL service. Deployments mitigate this with short-lived warrants (expiry `<= max_staleness`) so that expiry, not revocation, is the primary bound, and revocation is reserved for the emergency case where a warrant must be killed before its natural expiry. The two mechanisms are complementary: expiry bounds the *normal* window, revocation bounds the *emergency* window, and `max_staleness` bounds the *detection* window for the emergency case. The guardrail is not "check revocation." It is "every warrant carries a declared staleness budget, every executor enforces it at every use, and every delegation chain re-anchors to the root issuer's revocation surface rather than trusting an intermediate's word." ```python import time from dataclasses import dataclass, field from typing import Optional class RevocationStaleError(RuntimeError): """Raised when a warrant's revocation freshness cannot be established within its declared max_staleness budget at the moment of use.""" pass class WarrantRevokedError(RuntimeError): """Raised when the issuer's revocation surface positively confirms the warrant (or an ancestor in its chain) has been revoked.""" pass @dataclass class Warrant: warrant_id: str issuer: str parent_id: Optional[str] max_staleness: Optional[float] # seconds; None means "no bound declared" expires_at: float # absolute epoch seconds @dataclass class RevocationState: last_check_at: Optional[float] = None last_result_revoked: bool = False class RevocationAwareExecutor: def __init__(self, crl_client, clock=time.time): self.crl = crl_client self.clock = clock self._state: dict[str, RevocationState] = {} def _effective_staleness(self, warrant: Warrant) -> float: # No declared bound => zero tolerance => synchronous check every use. if warrant.max_staleness is None: return 0.0 return warrant.max_staleness def _check_chain(self, warrant: Warrant, chain: list[Warrant]) -> None: """Re-anchor to the ROOT issuer's revocation surface. A revoked ancestor invalidates every descendant, regardless of what the intermediate peer claims.""" for w in chain: state = self._state.setdefault(w.warrant_id, RevocationState()) budget = self._effective_staleness(w) now = self.clock() fresh = ( state.last_check_at is not None and (now - state.last_check_at) <= budget ) if not fresh: try: revoked = self.crl.is_revoked(w.issuer, w.warrant_id) except Exception as exc: # Cannot establish freshness -> fail closed. raise RevocationStaleError( f"revocation check failed for {w.warrant_id} " f"at issuer {w.issuer}: {exc!r}" ) from exc state.last_check_at = now state.last_result_revoked = revoked if state.last_result_revoked: raise WarrantRevokedError( f"warrant {w.warrant_id} (issuer {w.issuer}) is revoked; " f"descendant use refused" ) def before_tool_call(self, warrant: Warrant, chain: list[Warrant]) -> None: """Must be invoked before EVERY tool call, not once per task. Warrant validity is a function of wall-clock time; a task's execution spans wall-clock time.""" if self.clock() >= warrant.expires_at: raise WarrantRevokedError( f"warrant {warrant.warrant_id} expired at {warrant.expires_at}" ) self._check_chain(warrant, chain) ``` The `before_tool_call` invocation point is the whole mechanism. Move it to task-acceptance time and the four-minute zombie window reopens exactly as observed. The invariant is only as strong as its call-site granularity.