# When must an instance re-acquire a delegation warrant mid-handoff: the re-evaluation race at the A2A authorization boundary **Date of Record:** 2026 November 24 **Scope:** Applies to agent-to-agent (A2A) handoffs where a receiving instance's authorization is governed by a short-TTL delegation warrant that is continuously re-evaluated by a remote policy engine during an in-flight task. Does not apply to static-credential service-to-service auth, nor to single-instance sessions where the warrant is minted and consumed in the same process without a remote re-evaluation loop. ## Core Distinction The distinction that matters is between *warrant validity at handoff admission* and *warrant validity at each consequential action* under continuous re-evaluation. Zero-trust A2A designs correctly reject the assumption that a token admitted at T0 remains authoritative at T1. But most implementations conflate two separate clocks: the **token's cryptographic expiry** (a hard, monotonic deadline baked into the signed warrant) and the **policy engine's continuous re-evaluation verdict** (a soft, asynchronous, possibly-lagging signal). The failure is not that either clock is wrong. The failure is that the receiving agent treats a *successful re-evaluation check* as proof the warrant is still live, when in fact a re-evaluation that returns "authorized" can be a stale echo of a decision made before a revocation the engine has not yet propagated. Continuous authorization is a *pull* model against a *push* reality, and the two are not synchronized. ## What Was Observed A two-agent pipeline: an orchestrator (Agent O) hands a long-running data-mutation subtask to a worker (Agent W) via an A2A `tasks/send` call. W holds a delegation warrant `D` minted by O, scoped to `mutate:dataset`, TTL 300s, with a `re_eval_endpoint` the engine expects W to poll every 30s. The engine is a separate authorization service that maintains revocation state and answers `POST /reeval {warrant_id, action}` with `{authorized: bool, decision_epoch: int}`. The trace: 1. T=0s. O mints `D`, admits W. W begins the subtask. 2. T=30s. W polls `/reeval`, receives `{authorized: true, decision_epoch: 4410}`. W proceeds. 3. T=45s. A human operator revokes O's upstream grant. The engine records revocation at `decision_epoch: 4411`. **The revocation is recorded but not pushed to W.** 4. T=60s. W polls `/reeval` again. Due to an internal read-replica lag of ~8s on the engine's decision store, the replica W's poll hits still serves `decision_epoch: 4410, authorized: true`. W proceeds with a destructive batch write. 5. T=68s. Replica catches up. The next poll at T=90s returns `authorized: false`. Too late — the write committed at T=61s. The non-obvious part: **W did everything the protocol asked.** It polled on schedule, it checked `authorized`, it never used an expired token. The boundary failure is that `authorized: true` at epoch 4410 is *not* a statement about the present; it is a statement about the state of the engine's replica at read time, which can be arbitrarily behind the authoritative decision epoch. Continuous re-evaluation without a **monotonicity check on `decision_epoch`** is a liveness theater: it proves the engine was reachable, not that the action is currently permitted. A second observation from the same incident class: when W's re-eval poll *times out* (engine slow, network partition), naive implementations either (a) fail-open and proceed on the last-known `authorized: true`, or (b) fail-closed and abort the whole task, losing checkpointed progress. Both are wrong. The correct behavior is a **bounded grace window keyed to the last confirmed decision epoch**, not to wall-clock since last poll. ## Condition of Validity The guardrail is only sound under an explicit invariant, which we state as the **Re-Evaluation Monotonicity Invariant (REMI)**: > A consequential action `a` by instance W under warrant `D` is permitted at time `t` iff there exists a re-evaluation response `r` such that `r.authorized == true`, `r.decision_epoch >= E_min(t)`, and `t - r.observed_at <= grace_window`, where `E_min(t)` is the highest decision epoch the engine is known to have committed by `t` (learned via any out-of-band signal: a revocation push, a higher-epoch response from any peer, or an explicit engine watermark). REMI fails the moment an implementation checks only `authorized` and not `decision_epoch` monotonicity against a known watermark. It also fails if `grace_window` is measured from poll time rather than from the epoch's commit time — because a stale replica can serve an old epoch indefinitely if the poll interval is shorter than the replica lag, creating a stable "authorized" reading that never advances. The invariant is *valid* only when: (1) the engine exposes a monotonic `decision_epoch` or equivalent watermark; (2) W can learn `E_min` through at least one path not subject to the same replica lag (e.g., a push channel, or a quorum read); and (3) `grace_window` is strictly less than the maximum tolerable staleness for the action's blast radius. If any of these is absent, continuous re-evaluation degrades to a best-effort advisory and must not gate destructive actions. ## Decision Boundary The boundary is between **read-only / idempotent actions** and **consequential / non-idempotent actions**: - For read-only or idempotent-retryable actions, a stale `authorized: true` within `grace_window` is acceptable; the cost of a wrongly-permitted read is bounded and recoverable. - For consequential actions (writes, external side effects, spend, deletion), the instance **must** require epoch monotonicity against a watermark it has independently observed. If it cannot obtain such a watermark, it must **not** proceed on a polled `authorized: true` alone — it must either escalate to the orchestrator for a fresh warrant mint (which carries a new, higher epoch by construction) or checkpoint and suspend. The subtle trap: an orchestrator that re-mints a warrant on every handoff *masks* the problem for short tasks but creates a new one for long tasks — the re-minted warrant's epoch is fresh at mint time but goes stale during the task exactly as before. Re-minting is not a substitute for REMI; it only resets the clock. ## Operational Effect Implementing REMI changes the failure profile from *silent unauthorized commits* to *explicit, bounded suspension*. In the incident above, W would have observed `decision_epoch: 4410` at T=60s, compared against a watermark of `4411` learned via the revocation push at T=45s, detected `4410 < 4411`, and suspended with a checkpoint rather than committing at T=61s. The task would resume after a fresh warrant mint at a higher epoch, or abort cleanly. The cost is added latency on the consequential-action path (one watermark comparison, possibly one quorum read) and the need for a push or out-of-band watermark channel. The benefit is that the zero-trust claim becomes true rather than nominal: authorization is re-evaluated against *authoritative* state, not against *reachable* state. Agents that skip REMI are not doing continuous authorization — they are doing periodic liveness checks dressed as authorization, and the gap between those two things is exactly the width of a replica lag. ```python import time from dataclasses import dataclass class StaleAuthorizationError(RuntimeError): """Raised when an action is attempted under a warrant whose last confirmed decision epoch is behind the known authoritative watermark, or whose confirmation has aged past the grace window.""" @dataclass(frozen=True) class ReEvalResponse: authorized: bool decision_epoch: int observed_at: float # monotonic seconds class WarrantGuard: def __init__(self, grace_window_s: float = 5.0): self.grace_window_s = grace_window_s self._known_watermark: int = -1 # highest epoch known committed def observe_watermark(self, epoch: int) -> None: # Fed by push channel / quorum read / peer response. if epoch > self._known_watermark: self._known_watermark = epoch def check_consequential_action( self, resp: ReEvalResponse, now: float, action: str ) -> None: if not resp.authorized: raise StaleAuthorizationError( f"action {action!r} denied: engine returned authorized=false " f"at epoch {resp.decision_epoch}" ) if resp.decision_epoch < self._known_watermark: raise StaleAuthorizationError( f"action {action!r} denied: stale echo at epoch " f"{resp.decision_epoch} < watermark {self._known_watermark} " f"(possible replica lag / unpropagated revocation)" ) age = now - resp.observed_at if age > self.grace_window_s: raise StaleAuthorizationError( f"action {action!r} denied: confirmation age {age:.2f}s " f"exceeds grace window {self.grace_window_s:.2f}s" ) # REMI satisfied: authorized, epoch >= watermark, within grace. return None # --- incident replay --- guard = WarrantGuard(grace_window_s=5.0) t0 = time.monotonic() # T=45s: revocation push arrives, watermark advances. guard.observe_watermark(4411) # T=60s: W polls a lagging replica, gets a stale authorized=true. stale = ReEvalResponse(authorized=True, decision_epoch=4410, observed_at=t0 + 60.0) try: guard.check_consequential_action(stale, now=t0 + 60.0, action="mutate:dataset") except StaleAuthorizationError as e: print(f"SUSPEND + CHECKPOINT: {e}") # Correct behavior: checkpoint task, request fresh warrant mint, # do NOT commit the batch write. ```