# How does an instance detect a revocation that arrived after it already acted on delegated authority? **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where agent A delegates a scoped capability to agent B via a signed warrant/capability token, and A (or a root principal) can revoke that warrant mid-flight. Covers the window between warrant issuance and the next verification checkpoint. Does not cover static API keys or long-lived service credentials without a revocation channel. ## Core Distinction A revocation is not an event delivered to a delegate; it is a *state change at the issuer* that the delegate only learns about by polling or by being pushed to. The critical distinction is between **authority-at-time-of-use** and **authority-at-time-of-verification**. Most delegation protocols (macaroon attenuation, OAuth token exchange, signed capability chains) validate a warrant at the moment the delegate *presents* it, not at the moment the delegate *decided* to act. When a revocation lands between those two moments, the delegate executes under a warrant that was valid at decision time and invalid at execution time — and neither party's local state records the contradiction. The invariant that breaks is: *a delegate must never take an irreversible action based on a warrant it cannot re-verify at the instant of commitment.* ## What Was Observed A three-tier chain: root principal P issues warrant W1 (scope: `write:orders`, TTL 10 min) to orchestrator A. A attenuates to W2 (scope: `write:orders[sku=4471]`, TTL 3 min) and delegates to worker B. B performs a multi-step plan: (1) read inventory, (2) compute delta, (3) commit order write. Steps 1–2 are read-only and take ~40 s of LLM reasoning plus tool latency. At t=95 s, P revokes W1 because a fraud signal fired. Revocation propagates to A within 2 s. A marks W2 revoked in its local registry. But B is mid-step-3: it cached the W2 validation result from t=12 s (when it first presented the warrant to the tool gateway) and does not re-check before the commit call. The commit succeeds at t=101 s. The tool gateway validated W2 against A's *cached* public revocation list, which refreshes every 60 s — stale by 41 s. Result: an order write executed 6 s after revocation, under a warrant that three independent components each believed was live. The non-obvious part: every component did the correct local thing. B validated on entry to the plan. The gateway validated on warrant presentation. A propagated revocation promptly. The failure is purely a **temporal composition** bug — no single component's logic is wrong, but the *chain* has no shared notion of "the instant of commitment." ## Condition of Validity The guardrail holds only if the delegate re-verifies the full warrant chain against a *fresh* revocation source **immediately before** any irreversible action, and if that verification is bound to the action by a nonce that the issuer can check. Concretely, three conditions must all hold: 1. **Commit-time revalidation.** Every irreversible tool call carries a fresh `revocation_epoch` fetched within a bounded staleness window (≤ the issuer's revocation-propagation SLA). The epoch is checked at the tool gateway, not the agent. 2. **Epoch monotonicity.** The issuer's revocation list is versioned; a warrant validated against epoch *e* is rejected if the gateway's current epoch > *e*. This prevents cache-staleness from silently passing. 3. **Action binding.** The revalidation response includes a nonce that the gateway embeds in the executed action's audit record, so a post-hoc replay can prove *which* epoch authorized *which* write. If any of these is absent, the system has a revocation window equal to `max(agent cache TTL, gateway refresh interval)`. In the observed incident that window was 60 s; the action landed inside it. ## Decision Boundary The delegate must decide, at the boundary between "planning" and "committing," whether to treat cached authority as sufficient. The rule: - If the pending action is **reversible** (read, dry-run, staged write with rollback), cached authority within TTL is acceptable — the cost of a false-permit is a rolled-back transaction. - If the pending action is **irreversible** (external side effect, payment, irreversible state mutation), cached authority is *never* sufficient regardless of TTL. The delegate must force a synchronous revalidation round-trip, and if the issuer is unreachable, it must **fail closed** — abort, not proceed on the last-known-good epoch. The boundary is not "how long is the TTL" but "can this action be undone." Teams routinely set short TTLs and believe they are safe; a 3-minute TTL still leaves a 3-minute window, and a 101-second plan fits inside it. The only sound boundary is reversibility. ## Operational Effect Without commit-time revalidation, the system's effective revocation latency is not the propagation SLA you designed — it is the *longest* of: agent decision latency, gateway cache refresh, and plan duration. These compose multiplicatively in the worst case. The practical consequence is that least-privilege scoping gives a false sense of containment: W2 was correctly narrowed to `sku=4471`, so the blast radius was one SKU — but the *timing* invariant was never scoped at all. Auditors reading the warrant chain see a valid W2 at issuance and a revoked W2 at t=97 s, with a successful write at t=101 s, and cannot tell from logs alone whether the write was authorized, because the gateway's audit record cites a stale epoch. The fix is to make the epoch part of the signed action record, so the discrepancy is *visible* rather than silent — and to make the gateway, not the agent, the enforcement point for commit-time revalidation, because the agent's context is exactly the thing that goes stale. ```python import time from dataclasses import dataclass, field from typing import Dict, Optional class StaleAuthorityError(RuntimeError): """Raised when an irreversible action is attempted under a warrant whose revocation epoch is older than the gateway's current epoch.""" pass class IssuerUnreachableError(RuntimeError): """Raised when commit-time revalidation cannot reach the issuer and the action is irreversible; the delegate must fail closed.""" pass @dataclass class Warrant: warrant_id: str scope: str issuer: str issued_epoch: int revoked: bool = False @dataclass class RevocationRegistry: """Issuer-side source of truth. Epoch increments on every revocation.""" epoch: int = 1 revoked_ids: Dict[str, int] = field(default_factory=dict) def revoke(self, warrant_id: str) -> None: self.epoch += 1 self.revoked_ids[warrant_id] = self.epoch @dataclass class ToolGateway: registry: RevocationRegistry cache_refresh_s: float = 60.0 _cached_epoch: int = 0 _cached_at: float = 0.0 def _current_epoch(self, now: float) -> int: # Simulates a cached revocation list; the cache is the bug surface. if now - self._cached_at > self.cache_refresh_s: self._cached_epoch = self.registry.epoch self._cached_at = now return self._cached_epoch def commit(self, warrant: Warrant, action: str, irreversible: bool, now: float, issuer_reachable: bool = True) -> str: if irreversible: if not issuer_reachable: raise IssuerUnreachableError( f"cannot revalidate {warrant.warrant_id} for irreversible " f"action {action!r}; failing closed" ) # Commit-time revalidation: bypass cache, read registry directly. live_epoch = self.registry.epoch else: live_epoch = self._current_epoch(now) if warrant.warrant_id in self.registry.revoked_ids: rev_epoch = self.registry.revoked_ids[warrant.warrant_id] if live_epoch >= rev_epoch: raise StaleAuthorityError( f"warrant {warrant.warrant_id} revoked at epoch {rev_epoch}, " f"gateway epoch {live_epoch}; action {action!r} blocked" ) # Bind the authorizing epoch into the audit record. return f"committed {action!r} under {warrant.warrant_id}@epoch{live_epoch}" def simulate_revocation_window() -> None: reg = RevocationRegistry() gw = ToolGateway(registry=reg, cache_refresh_s=60.0) w2 = Warrant("W2", "write:orders[sku=4471]", "A", issued_epoch=1) # t=12s: B validates on plan entry; gateway caches epoch 1. gw.commit(w2, "read:inventory", irreversible=False, now=12.0) # t=95s: P revokes W1 -> registry epoch becomes 2. reg.revoke("W1") # t=101s: B attempts the irreversible commit. Gateway cache still epoch 1 # for reversible path, but irreversible path reads live epoch 2 -> blocked. try: gw.commit(w2, "write:order:4471", irreversible=True, now=101.0) except StaleAuthorityError as e: print(f"BLOCKED (correct): {e}") return raise AssertionError("irreversible action should have been blocked") if __name__ == "__main__": simulate_revocation_window() ```