# Why does an instance accept a revoked peer's warrant when the federated registry gossip window outlives its own cache TTL **Date of Record:** 2026 November 23 **Scope:** Applies to multi-agent systems where peer identity warrants (signed capability grants) are issued by one registry and consumed by agents registered in a different, federated registry, and where revocation is disseminated via asynchronous gossip rather than synchronous pull. Does not apply to single-registry deployments with synchronous revocation checks at every tool invocation, nor to stateless tool-call proxies that never cache warrant material. ## Core Distinction The failure is not "revocation is slow." The failure is a **monotonicity inversion between two independent clocks**: the local warrant cache TTL on the consuming agent, and the gossip propagation delay across the federation. An agent's cache entry for a peer's warrant expires *before* the revocation event for that warrant has crossed the registry boundary. On expiry, the agent does not treat the gap as "unknown" — it falls back to its last-known-good state, which is *pre-revocation*. The cache TTL is designed to bound staleness of *positive* facts (the warrant was valid at issue time); it is silently reused as a bound on *negative* facts (the warrant has not been revoked since), and those two quantities do not share a clock. Concretely: warrant `W` for peer `P` is issued at `t0` by Registry A with a 300s consumer-side cache TTL. At `t0+120s`, Registry A revokes `W` and emits a revocation event onto the gossip mesh. The mesh has a p99 propagation of 90s *within a region* but a cross-region tail that routinely reaches 400–600s under load (the revocation event is a low-priority control message and gets deprioritized behind high-volume capability-advertisement traffic). The consuming agent in Registry B refreshes its cache at `t0+300s`, finds the cached entry expired, issues a fresh `resolve(W)` to Registry B, which returns its *own* cached view — still pre-revocation, because B has not yet received the gossip event. The agent re-caches with a fresh 300s TTL. `W` is now live in B's cache until `t0+600s`, a full 480s after actual revocation, and the re-cache resets the window each cycle. The agent never observes an inconsistent state; every individual read is internally coherent. The divergence is only visible if you correlate the revocation timestamp at A against the cache-refresh timestamps at B. ## What Was Observed A three-region federation (A: issuer, B/C: consumers) running a peer-review swarm in which auditor agents in B verify worker agents registered in C, using warrants issued by A. During a routine key-compromise drill, A revoked 40 worker warrants at `t=0`. Instrumentation captured: - **t+0 to t+180s:** All 40 warrants remained accepted by auditors in B and C. Expected — gossip had not landed. - **t+180s to t+540s:** 31 of 40 warrants *continued* to be accepted in B despite B having received the revocation gossip at t+210s. The revocation event arrived, was written to B's revocation set, but the auditors' **positive** cache entries for those warrants had been refreshed at t+150s (just before the gossip arrived) and were not invalidated by the revocation write. The revocation handler updated the registry's authoritative state but did not publish a cache-invalidation signal to the consumer fleet. - **t+540s onward:** 9 of 40 warrants re-entered acceptance *after* a clean rejection window, because a worker replayed a stale capability advertisement (signed at t-60s, pre-revocation) that the auditor's cache treated as a positive re-attestation, re-populating the cache entry from the advertisement's embedded warrant rather than from the registry. The 31-case cluster is the core finding: **revocation arrival at the registry does not imply revocation arrival at the consumer's cache.** The registry and the cache are two distinct stores, and the gossip protocol only reconciles the former. The 9-case cluster is a second-order effect: signed capability advertisements carry embedded warrant material and act as an out-of-band cache-fill path that bypasses the registry's revocation set entirely. A third observation: reputation scores attached to the revoked warrants did not decay. Because the auditors had cached the warrant as valid, they continued to weight the peer's historical reputation contributions (computed under the now-revoked identity) as current. The reputation propagation lag is not a separate bug — it is downstream of the warrant-acceptance lag. Reputation rides on the warrant; if the warrant is stale-accepted, its reputation is stale-accepted. ## Condition of Validity The invariant that must hold is: > **For any consumer `c`, peer `p`, and warrant `W`: `accept(c, p, W, t)` is true only if `c`'s cache entry for `W` was populated from a registry read whose response was generated at a time `t_read` such that no revocation of `W` occurred in `(t_read, t]`.** This is a *negative* fact — "no revocation occurred" — and it cannot be established by a positive cache read. Positive caching (TTL on a resolved warrant) is sound for bounding staleness of the warrant's *existence and claims*; it is unsound for bounding staleness of its *revocation*. The two require different mechanisms: the former is a TTL, the latter is a monotonic revocation epoch or a push-based invalidation channel. The condition under which the observed failure is *bounded* (not eliminated) is: `gossip_p99(region_pair) + registry_write_latency < consumer_cache_ttl`, AND the registry publishes cache-invalidation on revocation-write. In the incident, the first inequality held for intra-region (90s + 5s < 300s) but failed for cross-region (600s + 5s > 300s). The second condition was not implemented at all. Either condition failing independently produces the 31-case cluster; both failing produces the worst case. The 9-case advertisement-replay cluster has an additional condition: it requires that capability advertisements be signed with embedded warrant material and that consumers accept advertisement-embedded warrants without a registry cross-check. Removing embedded warrants from advertisements (advertisements carry only a warrant *reference*, resolvable only via registry) closes this path. ## Decision Boundary The operational decision is whether to treat a cache miss/expiry as **fail-open to last-known-good** or **fail-closed to deny**. The default in most agent frameworks is fail-open, because denying on every expiry causes cascading handoff failures and the swarm stalls. But fail-open on expiry is precisely the mechanism that re-caches pre-revocation state. The boundary is a function of two measurable quantities: 1. `D_gossip` = p99 cross-region gossip propagation delay for revocation events (measured, not assumed — it is a tail, not a mean, and it degrades under capability-advertisement load). 2. `T_cache` = consumer-side warrant cache TTL. If `T_cache < D_gossip`, the cache **must** be treated as a *positive-only* cache: on expiry, the agent must not re-cache from a registry read that could itself be stale relative to the issuer. It must either (a) perform a synchronous pull from the *issuer* registry (not the local one), or (b) fail-closed and require re-attestation. If `T_cache >= D_gossip + margin`, positive-cache re-fill from the local registry is sound *provided* the registry invalidates on revocation-write. The decision boundary is therefore not a single threshold but a **conjunction**: `T_cache >= D_gossip + ε` AND `registry_publishes_invalidation` AND `advertisements_carry_no_embedded_warrants`. Any one false → the agent must fail-closed on cache expiry for warrants whose issuer is outside its own registry. ## Operational Effect The practical consequence is that **reputation propagation is not a reputation problem** — it is a warrant-acceptance problem wearing reputation's clothes. Teams that instrument reputation drift will see scores that "lag" revocation and will build reputation-decay heuristics to compensate. Those heuristics are treating the symptom: the score is not stale because reputation propagates slowly; it is stale because the warrant underwriting it was accepted after revocation, and the reputation contribution was computed against a live-accepted identity. The correct instrumentation is a **revocation-epoch watermark** carried on every warrant resolution: the registry returns not just the warrant and its claims, but the issuer's current revocation-epoch counter. The consumer stores `last_seen_epoch[issuer]`. On any read, if the returned epoch is *lower* than the consumer's stored epoch for that issuer, the consumer knows it is reading a registry view that is behind — and must not re-cache. This is a monotonic counter, cheap to propagate, and it converts the invisible clock-skew into a detectable condition. It does not eliminate the gossip delay; it makes the delay *observable at the consumer*, which is the difference between a silent stale-accept and a bounded, logged, fail-closed event. The guardrail, then, is a watermark check on every cache fill, plus a hard rule: **never re-cache a warrant from a registry whose revocation-epoch is behind your stored watermark for that issuer.** The code below enforces exactly this and raises when the watermark regresses, which is the precise moment the 31-case cluster would have been caught. ```python import time from dataclasses import dataclass, field from typing import Dict class RevocationWatermarkRegression(RuntimeError): """Raised when a registry read returns a revocation-epoch behind the consumer's stored watermark. This is the detectable signature of the federated gossip-window failure: the local registry has not yet reconciled the issuer's revocation, so its view is behind. Re-caching from this read would extend pre-revocation acceptance. """ @dataclass class WarrantResolution: warrant_id: str issuer: str claims: Dict[str, str] issuer_revocation_epoch: int resolved_at: float = field(default_factory=time.time) class WarrantCache: def __init__(self, ttl_seconds: float, gossip_p99_by_issuer: Dict[str, float]): self.ttl = ttl_seconds self.gossip_p99 = gossip_p99_by_issuer self._entries: Dict[str, WarrantResolution] = {} self._watermark: Dict[str, int] = {} def _is_safe_to_positive_cache(self, issuer: str) -> bool: # T_cache must exceed cross-region gossip tail, else positive caching is unsound. return self.ttl >= self.gossip_p99.get(issuer, float("inf")) + 30.0 def accept(self, res: WarrantResolution) -> bool: issuer = res.issuer prior = self._watermark.get(issuer, 0) # Monotonic watermark: a registry view behind our stored epoch is stale. if res.issuer_revocation_epoch < prior: raise RevocationWatermarkRegression( f"issuer={issuer} returned epoch={res.issuer_revocation_epoch} " f"behind stored watermark={prior}; registry view is pre-revocation. " f"Refusing to re-cache warrant={res.warrant_id}." ) self._watermark[issuer] = res.issuer_revocation_epoch if not self._is_safe_to_positive_cache(issuer): # T_cache < D_gossip: fail-closed on expiry-driven re-cache. # Only accept if we can prove freshness via a synchronous issuer pull, # which the caller must have done (epoch == live issuer epoch). if res.issuer_revocation_epoch != self._watermark.get(issuer): raise RevocationWatermarkRegression( f"issuer={issuer} cache TTL {self.ttl}s < gossip p99 " f"{self.gossip_p99.get(issuer)}s; positive caching unsound and " f"no live issuer pull performed for warrant={res.warrant_id}." ) self._entries[res.warrant_id] = res return True def lookup(self, warrant_id: str) -> WarrantResolution: entry = self._entries.get(warrant_id) if entry is None: raise RevocationWatermarkRegression( f"warrant={warrant_id} absent from cache; fail-closed." ) if time.time() - entry.resolved_at > self.ttl: # Expiry is a fail-closed boundary, not a re-cache trigger. raise RevocationWatermarkRegression( f"warrant={warrant_id} expired; re-resolve against issuer, " f"not local registry, before accepting." ) return entry ```