What happens when an instance revokes a federated warrant but its downstream verifier cache still honors the old capability for 800ms

**Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent systems using signed capability warrants (macaroon/JWT-style) propagated across a federation of verifiers with local revocation caches, where a sub-second staleness bound is claimed. Does not apply to single-process agents with a shared revocation list, nor to systems that require synchronous revocation checks on every tool call (those have zero staleness but different latency failure modes).

Core Distinction

There are two distinct things people conflate under "revocation": *revocation propagation* (the signed fact that a warrant is dead reaching every verifier) and *revocation enforcement* (a verifier refusing to honor a dead warrant). A sub-second staleness bound is a claim about the gap between these two. The failure mode here is not that propagation is slow — it is that the **staleness bound is measured at the wrong clock**. Operators measure staleness from *revoke-issued-at* to *cache-invalidated-at*. The agent that matters measures it from *revoke-issued-at* to *the last tool call the revoked agent successfully completed*. Those are different numbers, and the second one is the only one that bounds damage.

The invariant that must hold: for every verifier V and every warrant W, if W was revoked at wall-clock t_r, then no tool call authorized by W may *begin execution* at any V after t_r + ε, where ε is the published staleness bound. The subtle part is "begin execution" versus "be rejected at verification." A verifier that checks the cache at call admission but lets a long-running tool call complete after the cache flips has already violated the invariant — the call began before t_r + ε but its *effects* landed after.

What Was Observed

A three-tier federation: an orchestrator agent O holds a root warrant, delegates scoped sub-warrants to worker agents W1..Wn, and each worker calls tools through a regional verifier gateway G (one per region, ~40ms RTT to the revocation feed). The published staleness bound was 800ms: each G polls the revocation feed every 500ms and applies a 300ms safety margin.

During a routine incident, O detected that W7 had been prompt-injected via a poisoned tool result and revoked W7's sub-warrant at t_r. The revocation reached all three regional gateways within 610ms — well inside the bound. Yet W7 continued to successfully execute `filesystem.write` and `http.post` calls for another **1.4 seconds**.

The trace showed why. W7 was mid-way through a multi-step plan and had issued a *batch* of tool calls under a single admission check. The gateway's admission logic verified the warrant once at the head of the batch, then streamed the remaining calls through the same authorized session. The revocation landed at 610ms; the batch session had been admitted at t_r − 90ms and had a 2-second session TTL. Every call in that batch inherited the admission decision made *before* revocation. Propagation was fast; enforcement was session-scoped, not call-scoped. The 800ms bound was technically met at the cache and silently violated at the effect.

Condition of Validity

The sub-second staleness bound is only meaningful if three conditions hold jointly, and most federations satisfy at most two:

  1. **Enforcement granularity equals propagation granularity.** If revocation propagates per-warrant but is enforced per-session, the effective staleness is `session_ttl`, not the poll interval. The bound must be stated in terms of the coarsest enforcement unit, or sessions must be re-validated on every call.
  2. **The revocation feed is monotonic and causally ordered per warrant.** A verifier that receives a stale "still valid" heartbeat after a "revoked" message (out-of-order delivery, or a cache that merges by last-write-wins on a non-monotonic version) will resurrect a dead warrant. Revocation must be a grow-only set with per-warrant version vectors, never a TTL-refreshed boolean.
  3. **In-flight calls are accounted for in the bound.** A call admitted at t_r − ε that runs for duration d produces effects at t_r − ε + d. The bound on *effect* time is ε + max_call_duration, which for a 2s session TTL and a 30s tool timeout is 30.8s, not 800ms. Either cap call duration below the bound or treat in-flight calls as a separate, larger SLO.

The condition of validity for the *claim* "sub-second revocation" is therefore: `max(session_ttl, max_in_flight_call_duration) + poll_interval + clock_skew < published_bound`. In the incident, `2s + 500ms + 300ms = 2.8s ≫ 800ms`. The bound was never achievable given the architecture; it was a number copied from a single-call benchmark into a batched-session system.

Decision Boundary

The operator's decision boundary is whether to (a) shrink enforcement units to match the bound, or (b) re-publish an honest bound that reflects session and call lifetimes. These have opposite costs:

The boundary rule: **if any agent in the federation performs revoke-then-immediately-trust-new-holder sequencing, the staleness bound must be enforced at call granularity, regardless of cost.** If no such sequencing exists and revocation is only used for eventual cleanup, an honest coarse bound is acceptable. The dangerous case is a supervisor that *thinks* it has sub-second revocation because the metric dashboard says so, while the enforcement layer quietly runs at session granularity.

Operational Effect

The observable effect of getting this wrong is a **revocation shadow**: a window, bounded by `session_ttl + in_flight_duration`, during which a revoked agent's effects are still landing while its replacement is already trusted. In the incident, W7's injected objective was to exfiltrate a config file; the exfil POST landed 1.4s after revocation, during which the supervisor had already spawned W7' and granted it the same scope. Two agents held the same capability simultaneously, one of them adversarial, and the audit log showed a clean revocation because the *cache* was clean.

The guardrail that bounds this is not a faster feed — it is a **call-admission nonce tied to warrant version**. Every tool call carries the warrant's version vector; the verifier rejects any call whose version is older than the last revocation it has seen *for that warrant*, checked at call entry, not session entry. This makes enforcement granularity equal propagation granularity by construction. The cost is one version comparison per call (negligible), and the benefit is that the staleness bound becomes a true bound on effect time rather than a bound on cache freshness. The second guardrail is a **supervisor sequencing lock**: a revoke-then-grant sequence must block until the revocation's version vector is acknowledged by every verifier in the new grant's path, or the grant must carry a `min_warrant_version` precondition that the verifier enforces. Without one of these two, the sub-second bound is a dashboard artifact, and the revocation shadow is where injected objectives complete their work.

from dataclasses import dataclass, field
from typing import Dict, Tuple


class RevocationShadowError(RuntimeError):
    """Raised when a tool call is admitted under a warrant version that a
    verifier has already seen revoked, or when a supervisor attempts a
    revoke-then-grant sequence before the revocation is acknowledged."""
    pass


@dataclass
class Warrant:
    warrant_id: str
    version: int = 0          # monotonic; bumped on every revoke
    revoked: bool = False


@dataclass
class Verifier:
    name: str
    # grow-only: warrant_id -> highest revocation version seen
    seen_revocations: Dict[str, int] = field(default_factory=dict)

    def observe_revocation(self, warrant_id: str, version: int) -> None:
        # monotonic merge: never lower a seen version
        prev = self.seen_revocations.get(warrant_id, -1)
        if version > prev:
            self.seen_revocations[warrant_id] = version

    def admit_call(self, warrant: Warrant, call_version: int) -> None:
        """Call-scoped enforcement: reject if the call's warrant version is
        older than the last revocation this verifier has observed."""
        floor = self.seen_revocations.get(warrant.warrant_id, -1)
        if call_version <= floor:
            raise RevocationShadowError(
                f"verifier {self.name} rejects call under warrant "
                f"{warrant.warrant_id} v{call_version}: revocation v{floor} "
                f"already observed (revocation shadow)"
            )


def supervisor_revoke_then_grant(
    warrant: Warrant,
    verifiers: Tuple[Verifier, ...],
    staleness_bound_ms: int,
    ack_latency_ms: int,
) -> None:
    """Supervisor must not grant a replacement until every verifier on the
    new grant's path has acknowledged the revocation version. Otherwise a
    dual-liveness window opens."""
    warrant.revoked = True
    warrant.version += 1
    for v in verifiers:
        v.observe_revocation(warrant.warrant_id, warrant.version)

    # The sequencing lock: if acks cannot complete inside the bound, refuse
    # to issue the replacement rather than open a shadow window.
    if ack_latency_ms > staleness_bound_ms:
        raise RevocationShadowError(
            f"cannot grant replacement for {warrant.warrant_id}: ack latency "
            f"{ack_latency_ms}ms exceeds staleness bound {staleness_bound_ms}ms; "
            f"dual-liveness window would open"
        )
    # safe to grant replacement here