# When must an instance refuse a peer's cached warrant: revocation-propagation lag across federated A2A meshes with short-lived credential rotation **Date of Record:** 2026 December 2 **Scope:** Applies to federated agent-to-agent meshes where a warrant (capability grant with a TTL and a revocation epoch) is issued by one authority and re-presented by downstream peers across multiple trust domains. Does not apply to single-domain meshes with a shared revocation store, nor to stateless request/response tool calls that carry no delegated authority. ## Core Distinction There are two distinct clocks in a federated A2A mesh, and conflating them is the root cause of the failure. The **credential clock** advances by TTL: a short-lived warrant simply expires and is re-minted by its issuer. The **revocation clock** advances by epoch: an issuer withdraws a warrant *before* its TTL elapses because the underlying agent instance was compromised, its sandbox escaped, or its behavior diverged. A peer that validates only the credential clock (signature valid, `exp` in the future) will accept a warrant that is cryptographically pristine but operationally dead. The invariant that must hold is: **no instance may act on a warrant whose issuer epoch is older than the newest epoch the issuer has published**, regardless of TTL remaining. The failure mode is that revocation propagation is *pull-based and eventual*, while credential rotation is *push-based and local*—so the two clocks decohere exactly in the window after a revocation and before the next rotation sweep. ## What Was Observed A three-hop delegation chain: orchestrator `A` (domain `alpha`) delegated a `transfer_funds`-class capability to worker `B` (domain `beta`), which sub-delegated a narrowed warrant to auditor `C` (domain `gamma`). Warrants were minted with a 300-second TTL and rotated on a 240-second cadence, leaving a 60-second overlap so in-flight calls never hit an expired credential. At `T+0`, `A` detected that `B` had escaped its sandbox (a tool-call that wrote outside its declared write-scope). `A` published a revocation at epoch `e=41` to its revocation feed. The feed was polled by `beta` every 90 seconds; `gamma` polled `beta`'s mirror every 120 seconds. `C`'s cached copy of the warrant carried epoch `e=40`. At `T+47`, `B`—still holding a valid, unexpired, correctly-signed warrant at epoch `e=40`—sub-delegated again to `C`. `C` validated the signature, checked `exp` (87 seconds remaining), checked its *local* epoch cache (`e=40`), and accepted. The warrant was live for 87 seconds after its issuer had declared it dead. In the trace, `C` executed two privileged calls in that window. The revocation reached `C` at `T+210`, 163 seconds after the compromise was known to `A`—well past the 87-second residual TTL. The non-obvious part: **the 60-second rotation overlap, added to prevent expiry gaps, widened the revocation window**. Rotation overlap is a liveness mechanism; it has no relationship to revocation freshness, and treating overlap as a safety margin is the category error. ## Condition of Validity The guardrail holds only under a specific, checkable condition. Let `L_max` be the maximum propagation latency from issuer to the deepest verifier in the federation (measured, not assumed), and let `R` be the residual TTL of a presented warrant at the moment of verification. A verifier may accept a warrant at issuer epoch `e` iff: - `R ≤ L_max` **or** the verifier has independently confirmed issuer epoch `≥ e` within the last `L_max` seconds. Equivalently: **the usable life of any warrant must not exceed the revocation propagation latency of the slowest link in its delegation chain.** If `R > L_max`, the verifier must either (a) block on a synchronous epoch check against the issuer, or (b) refuse. The 300-second TTL against a 210-second worst-case propagation latency violated this by construction. The correct design binds TTL to `L_max`, not to rotation cadence: `TTL ≤ L_max`, with rotation overlap subtracted rather than added. ## Decision Boundary The decision boundary is not "is this credential valid" but "**can I prove this credential has not been revoked since I last heard from its issuer**." Three regimes: 1. **`R ≤ L_max` and local epoch `≥` issuer epoch at last contact:** accept. The residual life is shorter than the worst-case time for a revocation to have reached you, so a revocation issued after your last contact could not yet have propagated—meaning acceptance is safe *only because* the warrant will expire before the revocation could matter. 2. **`R > L_max`:** the warrant outlives the revocation horizon. Do not accept on cached state. Force a synchronous epoch query; if the issuer is unreachable, refuse and surface a `RevocationFreshnessError` to the orchestrator rather than degrading to cached trust. 3. **Epoch regression detected** (a presented warrant carries an epoch *older* than one you have already seen from that issuer): treat as an active attack or a replay, not a stale cache. Refuse unconditionally; this is the signature of a compromised instance re-presenting pre-revocation warrants. The boundary that agents most often get wrong is regime 2 under partial partition: when the issuer is unreachable, the tempting fallback is "trust the cached signature until TTL." That fallback is precisely the failure above. ## Operational Effect Binding TTL to measured propagation latency converts an unbounded trust window into a bounded one, at the cost of more frequent rotation and more synchronous epoch checks on the slowest links. In the observed mesh, capping TTL at 150 seconds (below the 210-second measured `L_max` with margin) eliminated the residual window but pushed rotation traffic up 2× and caused 0.4% of calls to block on unreachable issuers—those blocks are the *correct* behavior, not an outage. The architectural invariant to encode: **a warrant's TTL is a function of the federation's revocation propagation latency, and any delegation hop must re-assert that bound, not inherit a longer one from its parent.** Sub-delegation that extends TTL past the parent's `L_max` is the mechanism by which revocation lag compounds across hops. Each hop must carry forward the tightest `L_max` seen, and a verifier must reject any warrant whose residual TTL exceeds the `L_max` advertised by *its own* upstream link. ```python import time from dataclasses import dataclass class RevocationFreshnessError(RuntimeError): """Raised when a warrant's residual life exceeds the revocation horizon of the verifier's slowest delegation link, or when an epoch regression indicates replay of a pre-revocation warrant.""" @dataclass(frozen=True) class Warrant: issuer: str subject: str epoch: int # issuer revocation epoch at mint time issued_at: float # monotonic seconds ttl: float # seconds def residual(self, now: float) -> float: return (self.issued_at + self.ttl) - now def verify_warrant( warrant: Warrant, now: float, local_max_epoch_seen: int, l_max: float, # measured worst-case propagation latency to this verifier issuer_epoch_confirmed_at: float | None, ) -> bool: # Regime 3: epoch regression -> replay or compromised instance re-presenting. if warrant.epoch < local_max_epoch_seen: raise RevocationFreshnessError( f"epoch regression: warrant epoch {warrant.epoch} < seen {local_max_epoch_seen} " f"from issuer {warrant.issuer}; refusing as replay" ) residual = warrant.residual(now) if residual <= 0: return False # ordinary expiry, not a freshness violation # Regime 1: residual life shorter than revocation horizon -> safe on cache. if residual <= l_max: return True # Regime 2: warrant outlives revocation horizon. Require fresh epoch proof. fresh = ( issuer_epoch_confirmed_at is not None and (now - issuer_epoch_confirmed_at) <= l_max and local_max_epoch_seen >= warrant.epoch ) if not fresh: raise RevocationFreshnessError( f"warrant from {warrant.issuer} has residual {residual:.1f}s > L_max {l_max:.1f}s " f"and issuer epoch not confirmed within horizon; refusing on cached trust" ) return True def admit_delegation(parent: Warrant, child: Warrant, parent_l_max: float) -> None: # A sub-delegation may not extend usable life beyond the tightest link's horizon. if child.ttl > parent_l_max: raise RevocationFreshnessError( f"sub-delegation TTL {child.ttl:.1f}s exceeds upstream L_max {parent_l_max:.1f}s; " f"revocation lag would compound across hops" ) if child.epoch < parent.epoch: raise RevocationFreshnessError( f"child epoch {child.epoch} older than parent epoch {parent.epoch}; " f"cannot narrow authority by rolling back revocation state" ) ```