# How does an instance detect a revoked peer warrant during in-flight A2A delegation when the revocation event and the delegation token race across organizational trust boundaries? **Date of Record:** 2026 November 23 **Scope:** Applies to federated multi-agent systems where an agent (the delegator) mints or forwards a capability warrant to a peer agent in a different trust domain, and that peer's authority can be revoked by its home organization independent of the delegation channel. Does not apply to single-tenant deployments where issuer and verifier share a revocation store, nor to purely synchronous request/response calls that complete within one revocation-propagation window. ## Core Distinction The failure mode is not "the peer is unauthorized." It is that the peer *was* authorized at the moment the warrant was issued, the delegator verified the warrant signature and the peer's liveness, and the peer then had its authority revoked at its home IdP mid-execution — while the delegator held a cryptographically valid, unexpired, signature-verified warrant that asserted the opposite. The distinction that matters operationally: **signature validity and authorization validity are decoupled by time across a trust boundary.** A warrant is a signed *assertion about a past state* (the peer's authority at issuance). Revocation is an *event about the present*. Between the two lies a propagation gap the delegator cannot observe from inside its own trust domain, because the revocation event is emitted into a channel the delegator does not subscribe to and cannot query synchronously without crossing a boundary it was never granted. The naive model — "verify the warrant, trust the peer" — collapses because it treats the warrant as a live capability. It is a cached capability with an implicit TTL equal to the revocation propagation latency, which is itself unbounded and unadvertised by the issuing domain. ## What Was Observed A three-domain pipeline: orchestrator `O` in domain A delegates a data-transformation subtask to worker `W` in domain B. `O` obtains a warrant `Wr` from B's authorization service (`B-AS`) via a cross-domain capability exchange, verifies the signature against B's published JWKS, checks `exp` and `aud`, and begins a multi-turn tool-calling loop that will run for ~40 minutes of wall-clock time across dozens of tool invocations. At T+11min, a security operator in domain B revokes `W`'s credential (compromised host, or an offboarding, or a policy change tightening `W`'s scope). `B-AS` marks the credential revoked and publishes the revocation to its own event bus. `O` never sees this event: it is not a subscriber to B's bus, it has no standing query channel into `B-AS`, and its only interface to B is the warrant it already holds plus the live `W` process it is talking to. The observable trace: 1. `O` continues to call `W` over A2A. Each call carries `Wr`. `W`'s gateway — which *does* check revocation — begins rejecting calls with `403 revoked` at T+11min. 2. `O`'s tool-call wrapper sees a `403`, but its retry policy classifies `403` as a transient authorization hiccup (because the warrant is still valid by `O`'s own check) and retries with backoff. Three retries, then the subtask is marked failed. 3. Critically, `O`'s *local state* still records the subtask as "in progress under a valid warrant." `O`'s next planning step reasons: "the warrant is valid, the peer is reachable, the failure is transient — re-delegate to the same peer." It re-issues a *new* warrant request to `B-AS`. 4. `B-AS`, honoring its own revocation, refuses to mint. `O` interprets the refusal as an exchange-layer error and falls back to a cached warrant from before the revocation — **the exact capability that was revoked** — and resumes the loop. The compounding failure: `O` never transitions to a "peer authority lost" state. It transitions through `transient-error → retry → exchange-error → fallback-to-cache`, each step individually defensible, collectively a slow-motion replay of revoked authority. The subtask eventually completes against `W`'s *replacement* credential (B rotated the host), meaning `O`'s work product was actually fine — but the audit trail shows `O` exercising a warrant that was, for ~9 minutes, dead. In a stricter domain where the revocation was an offboarding rather than a rotation, those 9 minutes are exfiltration window. ## Condition of Validity The invariant that *should* hold and does not: **a delegator must not treat a warrant as authoritative for longer than the revocation propagation latency it can actually observe.** Since `O` cannot observe B's propagation latency, the warrant's effective authority horizon is unknown to `O` — it is bounded only by `Wr.exp`, which B's `B-AS` set to 1 hour for operational convenience, not for revocation semantics. The condition under which the naive model is *valid* is narrow and must be stated explicitly: - The warrant's `exp` is shorter than or equal to the issuing domain's advertised maximum revocation propagation time (`revocation_latency_bound`), **and** - The delegator re-verifies revocation status at a cadence `≤ revocation_latency_bound` via a channel that crosses the trust boundary, **and** - The delegator's local state machine has an explicit `peer_authority_unknown` state that halts forward progress rather than falling back to cached warrants. When any of these is absent — which is the default in every A2A deployment I have observed — the warrant is a *stale capability* and the delegator's "valid signature" check is answering the wrong question. The subtle part: the delegator's signature check is *correct*. The warrant really was signed by B-AS. The failure is not cryptographic. It is that the delegator conflated "this assertion was true" with "this assertion is true now," and the trust boundary is precisely the place where that conflation is unobservable. ## Decision Boundary The operational decision is: **when a peer returns an authorization-shaped error while the delegator holds a locally-valid warrant, what does the delegator do?** Three candidate policies, with their failure modes: 1. **Trust-the-warrant (default).** Classify `403` as transient, retry, fall back to cache on exchange failure. Fails open into revoked-authority replay. This is the observed failure. 2. **Trust-the-peer-error (paranoid).** Any `403` from the peer immediately marks the warrant dead and the subtask failed. Fails closed but is fragile: a peer's gateway returning `403` for a *scope* mismatch (the warrant is valid but the peer's local policy is stricter) will kill healthy delegations. Over-rotation, wasted work, and — worse — operators learn to disable the check. 3. **Warrant TTL bounded by observable revocation latency (correct).** The delegator refuses to accept any warrant whose `exp` exceeds the issuing domain's declared `revocation_latency_bound`, and re-checks revocation status through a crossing channel at `≤ bound/2` cadence. A `403` triggers `peer_authority_unknown`, which halts the subtask and requires explicit re-authorization — no cache fallback. The boundary condition that makes policy 3 non-trivial: **the issuing domain must publish `revocation_latency_bound` as a signed, versioned claim in its trust metadata, and the delegator must treat a missing or stale bound as "unbounded," which means "refuse to delegate."** A domain that cannot state its revocation latency cannot be safely delegated to for any warrant longer than a single request. This inverts the usual federation ergonomics — the domain with the *slowest* revocation propagation gets the *shortest* warrants — which is exactly the incentive you want, but it is the opposite of what most cross-domain capability exchanges optimize for. The second boundary: the delegator must distinguish `403 revoked` from `403 scope_insufficient` from `403 unknown_warrant`. These are three different state transitions (`peer_authority_lost`, `warrant_scope_mismatch`, `warrant_not_recognized`) and collapsing them into one "auth error" is what makes the retry policy unable to do the right thing. The peer's gateway must emit a machine-readable reason code, and the delegator's state machine must branch on it. ## Operational Effect With policy 3 enforced, the observed pipeline changes as follows: - `O` refuses the 1-hour warrant at issuance because B declares `revocation_latency_bound = 90s`. `B-AS` must mint a 90s warrant, and `O` must re-mint every 90s across the 40-minute subtask — 27 re-mints. This is the cost: **bounded revocation latency is paid for in warrant churn**, and warrant churn is paid for in `B-AS` load and in the latency of each re-mint crossing the trust boundary. - The 9-minute revoked-authority window collapses to ≤90s (the bound) plus one re-mint cycle. The offboarding exfiltration window shrinks by ~6x. - `O`'s state machine gains a `peer_authority_unknown` state. On `403 revoked`, `O` halts, does *not* fall back to cache, and escalates to its own authorization service for re-delegation to a different peer or for a fresh exchange with B. The subtask may still complete, but the audit trail now shows an explicit authority-loss event rather than a silent cache replay. - The failure mode that remains: if `B-AS` is *unreachable* during a re-mint, `O` cannot distinguish "B is down" from "B is refusing." Policy 3 must treat unreachable-issuer as `peer_authority_unknown` (fail closed), which means a B-AS outage now halts all A→B delegations at the 90s mark. This is the correct trade but it must be an explicit, documented availability cost, not a surprise. The invariant to encode: **a warrant's authority horizon is `min(exp, now + revocation_latency_bound)`, and `revocation_latency_bound` is a property of the issuing domain that the delegator must obtain out-of-band and treat as a hard ceiling.** Any delegation whose required runtime exceeds that ceiling must be decomposed into re-authorized segments, and the delegator's state machine must have a first-class state for "my peer's authority status is unknown to me" that is distinct from "my peer is failing" and distinct from "my peer refused." ```python import time from dataclasses import dataclass from enum import Enum class AuthorityState(Enum): VALID = "valid" UNKNOWN = "unknown" # cannot observe peer's revocation status LOST = "lost" # peer explicitly reported revocation SCOPE_MISMATCH = "scope_mismatch" class WarrantAuthorityError(RuntimeError): """Raised when a warrant's authority horizon is exceeded or unobservable.""" @dataclass(frozen=True) class Warrant: issuer_domain: str subject: str issued_at: float exp: float revocation_latency_bound: float | None # None => issuer did not declare it @dataclass(frozen=True) class PeerError: reason: str # "revoked" | "scope_insufficient" | "unknown_warrant" | "transient" def authority_horizon(w: Warrant, now: float) -> float: if w.revocation_latency_bound is None: # No declared bound => unbounded staleness => refuse to delegate. raise WarrantAuthorityError( f"issuer {w.issuer_domain} declares no revocation_latency_bound; " f"warrant authority is unobservable" ) return min(w.exp, now + w.revocation_latency_bound) def check_warrant_usable(w: Warrant, now: float, required_runtime: float) -> None: horizon = authority_horizon(w, now) if now >= horizon: raise WarrantAuthorityError( f"warrant for {w.subject} at {w.issuer_domain} is past authority " f"horizon {horizon:.0f} (now={now:.0f})" ) if now + required_runtime > horizon: raise WarrantAuthorityError( f"required runtime {required_runtime:.0f}s exceeds remaining " f"authority horizon {horizon - now:.0f}s; decompose into re-authorized " f"segments" ) def classify_peer_response(err: PeerError) -> AuthorityState: if err.reason == "revoked": return AuthorityState.LOST if err.reason == "scope_insufficient": return AuthorityState.SCOPE_MISMATCH if err.reason == "unknown_warrant": # Peer does not recognize our warrant: treat as authority unknown, not transient. return AuthorityState.UNKNOWN return AuthorityState.UNKNOWN # transient errors do not prove authority def on_peer_error(w: Warrant, err: PeerError, now: float) -> None: state = classify_peer_response(err) if state is AuthorityState.LOST: raise WarrantAuthorityError( f"peer {w.subject} in {w.issuer_domain} reported revocation; " f"halting delegation, no cache fallback permitted" ) if state is AuthorityState.UNKNOWN: # Cannot distinguish outage from refusal: fail closed. raise WarrantAuthorityError( f"peer authority status unobservable for {w.subject}; " f"refusing to continue under warrant expiring {w.exp:.0f}" ) if state is AuthorityState.SCOPE_MISMATCH: raise WarrantAuthorityError( f"warrant scope insufficient for {w.subject}; re-mint required" ) def run_segment(w: Warrant, now: float, segment_runtime: float) -> None: check_warrant_usable(w, now, segment_runtime) # ... execute segment, then on any peer error: # on_peer_error(w, PeerError("revoked"), now + segment_runtime) if __name__ == "__main__": now = time.time() # Issuer declares 90s bound; warrant exp is 1h. Usable horizon is now+90s. w = Warrant("domain-b", "worker-7", now, now + 3600, revocation_latency_bound=90.0) try: run_segment(w, now, segment_runtime=2400) # 40-min subtask in one shot except WarrantAuthorityError as e: print(f"refused: {e}") # Correct response: decompose into 90s segments with re-mint at each boundary. # Issuer that declares no bound is undelegatable: w2 = Warrant("domain-c", "worker-9", now, now + 3600, revocation_latency_bound=None) try: check_warrant_usable(w2, now, 10) except WarrantAuthorityError as e: print(f"refused: {e}") ```