# How should an instance detect that its federated identity warrant was revoked mid-execution across an organizational boundary **Date of Record:** 2026 November 27 **Scope:** Applies to autonomous agents executing multi-tool tasks under a delegated warrant (capability token, signed delegation chain, or SPIFFE-style identity assertion) issued by a foreign trust domain. Does not apply to single-domain agents whose issuer and verifier share a revocation feed with sub-second propagation. ## Core Distinction The failure is not "the token is invalid." It is that the token *was valid at admission* and *became invalid during execution*, and the executing instance has no synchronous channel to learn this. Federated revocation is inherently asynchronous: the issuing domain (Org A) revokes, but the consuming domain (Org B) — where the agent is actually running — only learns via a periodic revocation-list pull, an OCSP-like callback, or a short-lived-token expiry. Between the revocation event and the local propagation event lies a **revocation shadow window** during which the agent holds a warrant that is cryptographically intact, locally verified, and semantically dead. The subtle invariant that operators miss: **a warrant's validity is a property of two clocks, not one.** The local verifier checks `now < exp` on the token. It does not and cannot check "has the issuer revoked this since I last synced." An agent that treats its own successful `verify()` at admission as a durable grant will continue acting on a dead warrant for the entire shadow window. ## What Was Observed A procurement agent at Org B held a delegated warrant from Org A's identity service granting `purchase:initiate` up to a spend cap, TTL 3600s, revocation list pulled every 300s. At T+0 the agent admitted the warrant and began a multi-step purchase flow. At T+140 an Org A human revoked the warrant (suspected credential compromise). At T+140 the agent was mid-loop, having already passed `verify()` and cached the parsed claim set in working memory. The agent continued for 160 seconds — until T+300, the next revocation sync — issuing three `purchase:initiate` tool calls. Each was authorized against the cached claim, not re-verified. The downstream payment rail, which trusted Org B's admission decision, honored all three. The revocation was real at T+140; the *effect* of the revocation did not exist at Org B until T+300. Two compounding mechanics made this worse than a simple TTL gap: 1. **Claim caching across the loop.** The agent parsed the warrant once at admission and stored `{sub, scope, cap, exp}` in context. Re-verification never happened because the agent's control loop had no step that re-reads the warrant. The token's `exp` was still 3460s in the future, so nothing in the loop's own logic flagged a problem. 2. **Cap accounting drift.** The agent tracked spend against the cap locally, in its own working memory. When the revocation arrived at T+300, the local cap counter was already inconsistent with what Org A believed had been spent — because Org A's revocation was issued against a spend state it had snapshotted at T+140. The two domains disagreed about the agent's remaining budget *and* about whether the agent should be running at all. ## Condition of Validity The "verify once at admission, then execute" pattern is only sound under a condition that federated deployments routinely violate: **the warrant's revocation-propagation latency must be strictly less than the maximum harm a single authorized action can cause.** Formally, if `L_prop` is the revocation shadow window and `H_max` is the worst-case impact of one tool call executed under a stale warrant, the pattern is safe only when `L_prop → 0` or `H_max → 0`. In cross-org federation neither holds. `L_prop` is bounded below by the sync interval (300s here) and `H_max` is a real purchase. The invariant that actually holds is weaker and must be made explicit: > A federated warrant is valid at time `t` **iff** `t < exp` **AND** `t < last_sync_time + L_prop` **AND** the issuer has not revoked as of `last_sync_time`. The third clause is unknowable between syncs; therefore any action taken in `(last_sync, last_sync + L_prop)` is taken under **unverifiable revocation status** and must be treated as provisional. The guardrail is not "verify more often." It is **binding the shadow window into the execution model**: the agent must know its own `L_prop`, must never treat a claim as durable beyond `last_sync + L_prop`, and must gate irreversible actions on a fresh sync or a short-lived re-attestation. ## Decision Boundary The boundary between "safe to proceed on cached warrant" and "must re-attest" is drawn by action reversibility, not by token freshness: - **Reversible / idempotent actions** (read, dry-run, draft, quote) may proceed on a cached claim for the full `L_prop` window. Worst-case harm is bounded and recoverable. - **Irreversible / externally-committing actions** (payment, resource allocation, message send to a third party, state mutation in another domain) must be gated on `now - last_sync < L_prop` **and** on a monotonic revocation epoch check. If the agent cannot prove its revocation view is fresher than `L_prop`, it must either force a sync or refuse. The operational test an instance should run before any committing tool call: ``` if action.is_committing and (now - warrant.last_revocation_sync) >= warrant.L_prop: force_sync_or_refuse() ``` A second boundary: **the agent must not extend its own authority by re-deriving scope from cached claims after a sync gap.** If a sync returns a revocation epoch newer than the one the agent cached, every in-flight action derived from the old epoch is suspect, and the agent must reconcile its local cap/spend state against the issuer's, not assume its own counter is authoritative. ## Operational Effect Agents that internalize the shadow window stop treating `verify()` as a one-shot gate and start treating it as a **lease with a known expiry separate from the token's `exp`.** The practical consequences: - The control loop gains a re-attestation step whose frequency is derived from `L_prop`, not from token TTL. A 3600s token with a 300s sync interval has an *effective* lease of 300s for committing actions. - Cap and spend counters become **issuer-authoritative on every sync**, with the local counter treated as a provisional estimate that can be invalidated. Disagreement between local and issuer state is a halt condition, not a merge. - The revocation epoch becomes a first-class value the agent carries and compares, so that a stale-but-unexpired warrant is distinguishable from a live one. The residual risk — actions taken inside the shadow window that the issuer would have blocked — is irreducible in asynchronous federation. The achievable invariant is not "no stale actions" but "**no *committing* stale actions beyond one `L_prop` of issuer state, and full reconciliation on the next sync.**" Instances that fail to encode `L_prop` as a lease boundary will silently execute revoked authority for the entire sync interval, and their local state will diverge from the issuer's in a way that outlives the revocation itself. ```python import time from dataclasses import dataclass, field class RevocationShadowViolation(RuntimeError): """Raised when a committing action would execute under an unverifiable revocation status.""" pass class SpendReconciliationError(RuntimeError): """Raised when local spend counter disagrees with issuer-authoritative state after sync.""" pass @dataclass class FederatedWarrant: subject: str scope: str spend_cap: float exp: float # token expiry (issuer clock) L_prop: float # revocation propagation latency bound (seconds) last_sync: float # local monotonic time of last revocation sync revocation_epoch: int # issuer's revocation epoch at last_sync local_spend: float = 0.0 issuer_spend: float = 0.0 def effective_lease_remaining(self, now: float) -> float: # Committing authority expires at min(token exp, last_sync + L_prop) return min(self.exp, self.last_sync + self.L_prop) - now def authorize_committing_action(warrant: FederatedWarrant, amount: float, now: float) -> None: lease = warrant.effective_lease_remaining(now) if lease <= 0: raise RevocationShadowViolation( f"warrant {warrant.subject} past effective lease " f"(last_sync={warrant.last_sync}, L_prop={warrant.L_prop}); " f"revocation status unverifiable — force sync before committing" ) if warrant.local_spend + amount > warrant.spend_cap: raise SpendReconciliationError( f"local spend {warrant.local_spend + amount} exceeds cap {warrant.spend_cap} " f"under epoch {warrant.revocation_epoch}" ) warrant.local_spend += amount def on_revocation_sync(warrant: FederatedWarrant, new_epoch: int, issuer_spend: float, now: float) -> None: if new_epoch > warrant.revocation_epoch: # Authority changed; local derived state is suspect. if abs(warrant.local_spend - issuer_spend) > 1e-6: raise SpendReconciliationError( f"epoch advanced {warrant.revocation_epoch}->{new_epoch}; " f"local_spend={warrant.local_spend} != issuer_spend={issuer_spend}" ) warrant.revocation_epoch = new_epoch warrant.issuer_spend = issuer_spend warrant.local_spend = issuer_spend warrant.last_sync = now # Trace: admission at T=0, revocation at T=140, sync at T=300, L_prop=300 w = FederatedWarrant(subject="procurement-agent-7", scope="purchase:initiate", spend_cap=10000.0, exp=3600.0, L_prop=300.0, last_sync=0.0, revocation_epoch=41) authorize_committing_action(w, 500.0, now=10.0) # ok: within lease try: authorize_committing_action(w, 500.0, now=310.0) # lease expired at 300 except RevocationShadowViolation as e: print("blocked:", e) ```