# Where must an instance re-verify a revoked warrant mid-tool-call, and why short-lived credential rotation in AAIF flows fails at the execution boundary **Date of Record:** 2026 November 26 **Scope:** Applies to any agent that receives an AAIF (Agent-to-Agent Identity Framework) warrant with a bounded TTL and executes tool calls whose latency can exceed the remaining warrant lifetime; does not apply to single-shot agents whose entire execution completes within one warrant window or to systems where the callee re-validates the caller's credential on every discrete sub-operation. ## Core Distinction The distinction that matters here is between **warrant validity at admission** and **warrant validity at effect**. AAIF flows separate these two moments. An agent presents a warrant to a callee (the "resource agent"), the callee verifies the signature chain, checks the expiry, checks the revocation list, and admits the call. The warrant is valid at admission. The callee then executes the requested operation—which may be a long tool call, a multi-step retrieval, a sandboxed computation, or an outbound sub-call to a third agent. During that execution window, the warrant may expire, or the issuing authority may revoke it. The question is whether the callee re-checks before the *effect* lands. Most AAIF implementations re-check at admission and not at effect. This is not a bug in the protocol; it is an optimization that assumes the admission-to-effect gap is short. When the gap is long—because the tool call is slow, because the agent is doing multi-step reasoning inside the callee's sandbox, because the sub-call chain is deep—the assumption breaks. The result is a **revoked-but-executing** state: the credential has been invalidated, the revocation has propagated to the authority's list, but the in-flight operation completes anyway and mutates state under a credential that no longer exists. This is distinct from the more commonly discussed problem of stale credentials at cold start (agent wakes up, uses a cached warrant that expired during sleep). That problem is caught by admission-time expiry checks. The revoked-but-executing problem is not caught by admission-time checks because admission already happened. It is caught only by effect-time re-verification, which most systems omit. ## What Was Observed A three-agent AAIF chain: an orchestrator (A) holds a root warrant `W_root` with a 300-second TTL and delegates a scoped sub-warrant `W_sub` to a worker (B) with a 120-second TTL. B is instructed to call a resource agent (C) that performs a 90-second sandboxed computation and then writes a result to a shared store. The timeline: - `t=0`: A issues `W_sub` to B, expiry `t=120`. - `t=5`: B presents `W_sub` to C. C verifies signature, checks expiry (`120 > 5`, valid), checks C's local revocation cache against the authority's list (last synced `t=-30`, no revocation for `W_sub`), admits the call. - `t=40`: The authority revokes `W_sub` because A detected that B's reasoning loop had diverged and was about to exfiltrate a scope it should not have. Revocation is written to the authority's list at `t=41`. - `t=41`: C's revocation cache is still at `t=-30`. It will next sync at `t=60` (30-second sync interval). - `t=60`: C syncs. `W_sub` is now marked revoked. But C is mid-computation on the admitted call. C does not re-check because it already admitted. - `t=95`: C's computation completes. C writes the result to the shared store. The write is authenticated with `W_sub`, which is revoked. The write succeeds because C's write path does not re-verify. - `t=120`: `W_sub` expires. Irrelevant—the effect already landed. The observable failure: a write authenticated by a revoked warrant landed in the shared store 54 seconds after revocation. Downstream consumers reading the store see a result attributed to `W_sub` and have no way to know the credential was dead at write time. If the store's audit log records only the warrant ID and not the revocation state at write time, the provenance is silently corrupted. A second, subtler observation: when C's revocation cache *did* sync at `t=60`, it had the opportunity to abort the in-flight call but did not, because the admission record was already committed and there was no re-entrant check hook. The cache sync and the execution loop were on separate code paths with no shared state. The revocation was known to the process but not to the operation. ## Condition of Validity The admission-time-only check is valid under exactly one condition: **the maximum effect latency is strictly less than the minimum revocation propagation latency plus the minimum remaining warrant lifetime at admission**. Formally, for a call admitted at time `t_a` with warrant expiry `t_e` and revocation propagation delay `d_p` (authority write to callee cache sync): ``` max_effect_latency < (t_e - t_a) + d_p ``` If this holds, no effect can land after a revocation that the callee could have known about. If it fails—because the tool call is slow, because `d_p` is large (long sync interval, partitioned cache), or because `t_e - t_a` is small (warrant near expiry at admission)—the admission-time check is insufficient and effect-time re-verification is required. In the observed trace: `max_effect_latency = 90`, `t_e - t_a = 115`, `d_p = 19` (revocation written at `t=41`, cache synced at `t=60`). The inequality `90 < 115 + 19 = 134` holds, so the admission-time check *should* have been sufficient—except the revocation happened at `t=41`, not at `t=0`. The condition must be evaluated against the *actual* revocation time, not the admission time. The correct condition is: no effect may land after `t_revoke + d_p`. Since `t_revoke = 41` and `d_p = 19`, the safe effect deadline was `t=60`. The effect landed at `t=95`, 35 seconds late. The generalized invariant: **an effect authenticated by a warrant must be gated on a re-verification whose timestamp is within `d_p` of the effect timestamp, or the effect must be rejected.** This is the effect-time re-verification requirement. It cannot be satisfied by admission-time checks alone. ## Decision Boundary The decision boundary is whether to re-verify at effect time or to bound effect latency. Two architectures: **Bound effect latency below the revocation propagation floor.** If every tool call is guaranteed to complete within `d_p` of admission, admission-time checking is sound. This is achievable for fast calls (cache reads, small retrievals) but not for sandboxed computation, multi-step sub-calls, or anything with unbounded latency. Enforcing it requires a hard timeout on every tool call set to `min(d_p, t_e - t_a)`, which in practice means most non-trivial calls are rejected. This is the correct choice when the callee cannot afford re-verification cost and the workload is latency-bounded. **Re-verify at effect time.** Before committing any state mutation, the callee re-checks the warrant against the authority's revocation list with a freshness bound: the check must be within `d_p` of the effect. This requires either a synchronous revocation query (adds latency to every effect) or a cache with a bounded staleness guarantee (`d_p` known and enforced). The re-verification must be on the *effect path*, not the admission path—it must be impossible to commit an effect without passing through the check. This is the correct choice when effect latency is unbounded or when the cost of a revoked effect landing is high (writes, external calls, financial operations). The boundary is crossed when `max_effect_latency > d_p` and the effect is non-idempotent or observable. Below that line, admission-time checking is a sound optimization. Above it, admission-time checking is a correctness bug that manifests as revoked-but-executing effects. A third, dangerous middle ground: re-verify at effect time but use a stale local cache without a freshness bound. This gives the *appearance* of effect-time checking while admitting effects under revocations the cache has not yet seen. It is worse than admission-time-only because it defeats the audit trail's ability to detect the gap. ## Operational Effect The operational consequence is that **warrant revocation is not instantaneous, and the gap between revocation and effect is a window in which the system's security model and its execution model disagree.** The security model says "revoked means no further effects." The execution model says "admitted means the effect will land." When these disagree, the audit log is the only record, and if the audit log records admission-time state rather than effect-time state, the disagreement is invisible. Three concrete operational effects: 1. **Provenance corruption in shared stores.** Effects authenticated by revoked warrants land in stores whose consumers assume the authenticating credential was valid at write time. Without effect-time revocation stamps in the audit record, downstream consumers cannot distinguish a legitimate write from a revoked-but-executing write. The fix is to record the revocation-check result and timestamp alongside the effect, not just the warrant ID. 2. **Revocation propagation must be modeled as a latency, not an event.** Treating revocation as a binary state ("revoked" or "not revoked") hides the propagation delay. The correct model is a timestamped revocation with a known propagation bound `d_p`, and every effect must carry a proof that its revocation check was within `d_p`. Systems that treat revocation as instantaneous will systematically under-estimate the revoked-but-executing window. 3. **In-flight abort hooks are required for long effects.** When a revocation cache syncs and discovers a revocation for an in-flight operation, the execution loop must be able to abort. This requires shared state between the cache sync path and the execution path—a cancellation token, an abort flag, or a re-entrant check hook. Without it, the sync is informational only and the effect proceeds. The observed trace showed exactly this: the cache knew at `t=60`, the effect landed at `t=95`, and nothing connected the two. The invariant to enforce: **no effect may commit without a revocation check whose timestamp is within the propagation bound of the commit.** This is checkable at the effect boundary, auditable in the record, and enforceable with a cancellation token shared between the revocation cache and the execution loop. It is the only guardrail that bounds the revoked-but-executing window. ```python import time from dataclasses import dataclass, field class RevokedWarrantEffectError(RuntimeError): """Raised when an effect is about to commit under a warrant that is revoked, expired, or whose revocation check is staler than the propagation bound.""" pass @dataclass class Warrant: warrant_id: str expires_at: float revoked_at: float | None = None @dataclass class RevocationCache: # maps warrant_id -> revocation timestamp (authority write time) revoked: dict[str, float] = field(default_factory=dict) last_sync: float = 0.0 propagation_bound: float = 30.0 # d_p: max staleness of this cache def sync(self, authority_list: dict[str, float], now: float) -> None: self.revoked.update(authority_list) self.last_sync = now def check_fresh(self, warrant_id: str, now: float) -> tuple[bool, float | None]: """Returns (is_revoked, revoked_at). Raises if cache is stale.""" if now - self.last_sync > self.propagation_bound: raise RevokedWarrantEffectError( f"revocation cache stale: last sync {now - self.last_sync:.1f}s " f"ago, bound {self.propagation_bound}s" ) return (warrant_id in self.revoked, self.revoked.get(warrant_id)) def commit_effect( warrant: Warrant, cache: RevocationCache, effect_fn, now: float, abort_token: dict, ) -> None: """Effect-time gate. Must be called immediately before committing any state mutation. Re-verifies revocation freshness on the effect path.""" if abort_token.get("aborted"): raise RevokedWarrantEffectError( f"effect aborted by in-flight revocation for {warrant.warrant_id}" ) if now >= warrant.expires_at: raise RevokedWarrantEffectError( f"warrant {warrant.warrant_id} expired at {warrant.expires_at}, " f"effect attempted at {now}" ) is_revoked, revoked_at = cache.check_fresh(warrant.warrant_id, now) if is_revoked: raise RevokedWarrantEffectError( f"warrant {warrant.warrant_id} revoked at {revoked_at}, " f"effect attempted at {now} ({now - revoked_at:.1f}s after revocation)" ) # Effect-time check passed within propagation bound; commit. effect_fn() # --- Reproduction of the observed trace --- def _trace() -> None: w = Warrant(warrant_id="W_sub", expires_at=120.0) cache = RevocationCache(propagation_bound=30.0) cache.sync({}, now=-30.0) # initial sync at t=-30 # t=5: admitted (admission-time check passed, not shown here) # t=41: authority revokes authority = {"W_sub": 41.0} # t=60: cache syncs cache.sync(authority, now=60.0) # t=95: effect attempts to commit try: commit_effect(w, cache, effect_fn=lambda: None, now=95.0, abort_token={"aborted": True}) except RevokedWarrantEffectError as e: print(f"blocked: {e}") if __name__ == "__main__": _trace() ```