# Which invariants prevent stale-warrant replay when federated agent identity revocation propagates sub-second **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where short-lived signed capability warrants (sub-second TTL, e.g. 250–900 ms) are minted by an issuing agent and validated offline by peer agents across federation boundaries, with revocation propagated asynchronously. Does not apply to centrally-mediated authorization where every tool call round-trips to an authoritative token introspection endpoint. ## Core Distinction There are two distinct clocks in a federated agent system, and conflating them is the root of the failure. The **validity clock** is the warrant's `exp` claim: a cryptographic assertion that the bearer was authorized at mint time and remains authorized until a wall-clock instant. The **revocation clock** is the propagation latency of a revocation event from the issuing authority to every validating peer's local deny-set. The naive invariant operators assume is: *"sub-second TTL means revocation is sub-second."* This is false. Short TTL bounds the **maximum staleness of authorization** to the TTL, but it does **not** bound **revocation propagation**. A revoked warrant whose `exp` has not yet elapsed is still cryptographically valid, still passes signature verification, and still passes the local deny-set check on any peer that has not yet received the revocation event. The window of vulnerability is `max(TTL, propagation_latency)` — and because propagation is asynchronous and lossy, the second term is unbounded in the tail. The only correct invariant is that a validating peer must be able to distinguish *"not revoked"* from *"revocation state unknown,"* and must fail closed on the latter. ## What Was Observed A three-tier federation: a root authority mints delegation warrants to 40 orchestrator agents, each of which mints leaf warrants (TTL 400 ms) to worker agents that call a shared tool surface (payment ledger writes). Revocation of a compromised worker is published to a gossip topic; peers maintain a local deny-set updated by a background subscriber. At T+0 the root revoked worker `W-113`. The revocation event was published to the gossip mesh. Measured propagation to the 95th-percentile peer was 180 ms; to the 99.9th percentile it was **3.4 s** — a peer whose subscriber goroutine was starved behind a burst of unrelated leaf-warrant mint events on the same channel. During that 3.4 s window, `W-113` presented a leaf warrant with `exp = T+0.31s`, minted *before* revocation but not yet expired. On the starved peer: 1. Signature verification passed (warrant was authentic). 2. `exp` check passed (0.31 s remained). 3. Local deny-set lookup returned empty (revocation not yet received). 4. Tool call executed — a ledger write of 4,200 units. The worker's *orchestrator* re-minted a fresh leaf warrant at T+0.28s because its own mint path did not consult the deny-set before minting (it trusted the root's delegation, which was still within its own TTL). This produced a **re-mint amplification**: even after the original leaf expired at T+0.31s, a successor warrant with `exp = T+0.68s` was now in flight, extending the exploitable window past the original TTL. Total unauthorized writes: 3, over 1.1 s, on 2 of 40 peers. The non-obvious part: the system *did* have sub-second revocation in the median. The failure lived entirely in the tail of the propagation distribution, and the re-mint path converted a bounded TTL into an unbounded chain. ## Condition of Validity The sub-second-TTL-bounds-revocation claim is valid only under the conjunction: - **C1 (synchronous mint gate):** every warrant mint consults the issuer's *own* authoritative deny-set synchronously before signing, so a revoked subject cannot obtain a successor warrant. - **C2 (monotonic propagation):** revocation events are totally ordered per subject and a peer never applies an older revocation epoch after a newer one (no rollback). - **C3 (bounded propagation tail):** the 99.9th-percentile propagation latency `L_p999` is known and the effective TTL `T` satisfies `T ≥ L_p999` — or, failing that, the validator treats unknown-revocation-state as deny. - **C4 (epoch freshness):** each warrant carries the issuer's revocation epoch at mint time; the validator rejects any warrant minted at an epoch older than its locally known epoch for that issuer. When any of C1–C4 is violated, `max(TTL, L)` is not a bound — it is a lower bound on an unbounded window. In the observed incident, C1 was violated (mint path skipped deny-set), C3 was violated (starved subscriber), and C4 was absent entirely (warrants carried no epoch), so the validator had no way to detect it was operating on stale revocation state. ## Decision Boundary The decision a validator must make on each warrant presentation is not binary (valid/invalid) but ternary: - **ACCEPT** — signature valid, `exp` not elapsed, and local revocation state for the issuer is *fresh* (last sync within `T` of now) and shows the subject not revoked. - **DENY** — any check fails, or local revocation state is fresh and shows the subject revoked. - **INDETERMINATE → DENY** — signature and `exp` pass but local revocation state is *stale* (last successful sync older than `T`). This is the boundary the incident crossed: the validator had no freshness signal and defaulted to ACCEPT. The guardrail is a **freshness lease on revocation state itself**. The deny-set subscriber maintains `last_sync_epoch` per issuer; the validator refuses to ACCEPT any warrant from an issuer whose `last_sync_age > T`. This trades availability (a starved subscriber causes fail-closed denials) for the invariant that no revoked warrant is ever honored. To recover availability without breaking the invariant, the validator may fall back to a synchronous introspection call to the issuer — but only if that call itself is bounded and its failure is treated as DENY. ## Operational Effect Enforcing the ternary decision plus C1–C4 changes the system's failure mode from *silent unauthorized execution* to *visible fail-closed denial storms*. During a propagation stall, peers stop honoring that issuer's warrants entirely rather than honoring revoked ones. This is the correct trade for any tool surface with side effects (ledger writes, external API calls, irreversible state mutation). For idempotent read-only tools, operators may relax to ACCEPT-on-stale with an audit tag, but the relaxation must be per-tool-class, not global. The re-mint amplification is closed by C1: the issuer's mint path must synchronously check its own deny-set, so a revoked subject gets no successor warrant and the chain cannot extend past the original `exp`. Combined with C4 (epoch stamping), a validator can reject a warrant whose mint epoch predates its known revocation epoch even if the deny-set entry itself has not arrived — closing the starved-subscriber window without waiting for propagation. The residual cost is that `T` must be sized to `L_p999`, not the median. Operators who set `T` to the median propagation latency (180 ms) instead of the tail (3.4 s) will see the exact incident reproduced under load. The invariant is: **TTL must be at least the tail propagation latency, or the validator must fail closed on stale state — one of the two, never neither.** ```python import time from dataclasses import dataclass class StaleRevocationStateError(RuntimeError): """Raised when a validator cannot prove revocation state is fresh.""" pass class RevokedWarrantError(RuntimeError): """Raised when a presented warrant is known-revoked.""" pass @dataclass class Warrant: subject: str issuer: str mint_epoch: int # issuer's revocation epoch at mint time (C4) exp: float # wall-clock expiry @dataclass class RevocationState: last_sync_epoch: int last_sync_at: float revoked_subjects: set class FederatedValidator: def __init__(self, ttl_seconds: float, now=time.monotonic): self.ttl = ttl_seconds self._now = now self._state: dict[str, RevocationState] = {} def _state_for(self, issuer: str) -> RevocationState: st = self._state.get(issuer) if st is None: # No state at all is the most stale possible state. raise StaleRevocationStateError( f"no revocation state for issuer {issuer!r}" ) age = self._now() - st.last_sync_at if age > self.ttl: # Freshness lease on revocation state itself expired. raise StaleRevocationStateError( f"revocation state for {issuer!r} stale by {age:.3f}s " f"(lease {self.ttl:.3f}s)" ) return st def validate(self, w: Warrant) -> None: now = self._now() if now >= w.exp: raise RevokedWarrantError(f"warrant for {w.subject!r} expired") st = self._state_for(w.issuer) # C4: reject warrants minted before our known revocation epoch. if w.mint_epoch < st.last_sync_epoch: raise RevokedWarrantError( f"warrant for {w.subject!r} minted at epoch {w.mint_epoch} " f"< known epoch {st.last_sync_epoch}" ) if w.subject in st.revoked_subjects: raise RevokedWarrantError(f"subject {w.subject!r} is revoked") # ACCEPT: signature verified upstream, exp fresh, state fresh, not revoked. ``` The `validate` method raises `StaleRevocationStateError` on stale state and `RevokedWarrantError` on known revocation — the caller must treat both as DENY. The freshness lease (`age > self.ttl`) is the guardrail that converts the unbounded propagation tail into a bounded, fail-closed decision.