# Which invariants prevent revoked agent credentials from resurrecting across federated trust graphs **Date of Record:** 2026 November 29 **Scope:** Applies to multi-instance agent deployments where an agent identity (keypair + capability warrant) is honored by more than one relying party through transitive trust (A trusts B's attestations, B trusts C's). Does not apply to single-issuer, single-verifier setups where revocation is a local lookup. ## Core Distinction Revocation is not a state change on the credential; it is a **state change on the verifier's acceptance predicate**. The distinction that matters operationally: a revoked-but-still-signed warrant is cryptographically valid forever. What dies is the verifier's willingness to treat validity as authorization. In a federation graph, each relying party holds its own copy of that predicate, refreshed on its own schedule, from its own upstream. There is no shared clock and no shared store. The boundary failure is therefore never "the revocation failed to propagate" in the abstract — it is "agent A presented a warrant to verifier D, and D's acceptance predicate had not yet incorporated a revocation that D's own trust chain had already published." The credential did not resurrect. The *predicate* lagged. This is non-obvious because most engineers model revocation as a delete. In a federation graph it is a **convergence problem over a partial order of trust edges**, and the invariant that actually holds is weaker than people assume: it is not "no verifier accepts a revoked warrant," it is "no verifier accepts a revoked warrant *after its own trust chain has published the revocation and its refresh interval has elapsed*." Between publication and refresh, acceptance is not a bug — it is an unbounded window that the protocol does not close. ## What Was Observed A three-hop federation: issuer I signs warrants for agent A. Broker B trusts I and re-attests A's capabilities to verifier D. D trusts B but not I directly. A executes a long-running task (a 40-minute multi-tool plan) against D's resources. At T+12m, I revokes A's warrant — A's key was suspected compromised after a prompt-injection exfiltration in a separate session. I publishes the revocation to its CRL endpoint and pushes a signed revocation statement to B. B's revocation feed is polled by D every 15 minutes. B, on receiving the revocation, does two things: it stops honoring A's *new* handoffs, and it enqueues the revocation for its outbound feed. The failure trace: 1. D's poll at T+15m fetched B's feed, but B's outbound feed had been built at T+14:59 from a snapshot taken *before* B processed the revocation at T+12:03. The revocation entered B's feed on the *next* snapshot cycle, T+29:59. 2. D's poll at T+30m fetched the feed, but D's verifier caches acceptance decisions keyed by `(agent_id, warrant_hash)` with a 20-minute TTL, populated at T+14m when A first presented. The cache entry for A's warrant was served until T+34m. 3. A's task ran until T+40m. Every tool call between T+30m and T+34m was authorized by a cached acceptance decision derived from a feed snapshot that predated the revocation by 27 minutes. Net: a revoked agent retained working authorization for **22 minutes past revocation publication**, via two independent lag sources — feed snapshot staleness at B and decision-cache TTL at D — neither of which is visible to the other. The revocation did not fail to propagate. It propagated through two queues, each of which was individually "working as designed." The second-order observation is the dangerous one: when the task finally errored at T+40m and the incident was reconstructed, the audit log at D showed *valid acceptance* at every step. There was no error to grep for. The resurrection was silent because every component reported success. ## Condition of Validity The invariant "a revoked warrant is rejected by all relying parties" holds only under a conjunction that federations routinely violate: - **Snapshot coherence:** every feed snapshot is taken atomically with respect to the revocation state it claims to represent. B's feed violated this — it snapshotted its *inbound* state at T+14:59 but published it as if it were *outbound-current* at T+15:00. - **Cache invalidation coupling:** any decision cache must be invalidated by the *arrival* of a revocation, not by TTL expiry. D's cache was TTL-only, so arrival of the revocation at T+30m did not evict the T+14m decision. - **Monotonic revocation epoch:** each hop must carry a monotonic epoch counter so a downstream verifier can detect that it is serving a decision older than the newest epoch it has seen. Neither B nor D carried an epoch. Absent all three, the only thing you can assert is *eventual* rejection bounded by `max(feed_snapshot_lag) + max(decision_cache_ttl) + max(poll_interval)` — here 15m + 20m + 15m ≈ 50m worst case, of which we observed 22m. The bound is real but nobody computes it, so nobody knows the exposure. ## Decision Boundary The boundary is between two architectures, and it is sharp: - **Pull-based revocation with TTL caches** (what was deployed): revocation latency is a *sum of independent lags*, unbounded by any single component's SLA, and invisible in per-component health. Acceptable only for warrants whose blast radius is smaller than the worst-case lag window. - **Push-based revocation with epoch monotonicity and cache eviction on arrival:** revocation latency is bounded by the slowest *push delivery*, and a verifier that receives an epoch higher than its cached decision's epoch *must* evict before serving. This is the only configuration in which the strong invariant holds. The decision rule: if a warrant grants capability whose misuse within the lag window is unacceptable — code execution, credential access, financial transfer — the verifier must run the push+epoch configuration, and the warrant must carry the epoch so the verifier can compare. A warrant without an epoch cannot participate in the strong invariant regardless of transport. Treat epoch-less warrants as TTL-bounded and size the blast radius accordingly. ## Operational Effect Concretely, the fix is not "poll faster." It is three changes at three layers: 1. **At the issuer:** revocation statements carry a monotonic `epoch` and the `warrant_hash` they revoke, signed. Epoch increments on every revocation, never reused. 2. **At the broker:** outbound feed snapshots are taken *after* applying inbound revocations, and the feed advertises the epoch it reflects. A broker that cannot yet reflect an epoch must not publish a feed claiming to. 3. **At the verifier:** the decision cache is keyed by `(agent_id, warrant_hash, epoch)`. On receiving a revocation with epoch > cached epoch, evict before serving. On receiving a warrant whose epoch is below the verifier's known-highest epoch for that issuer, reject outright — this catches replay of a pre-revocation warrant. With these, the observed 22-minute window collapses to the push delivery latency (sub-second in our deployment), and the silent-resurrection failure mode — valid-looking acceptance of a revoked agent — becomes detectable, because the epoch mismatch is a hard reject rather than a cache hit. ```python class RevocationEpochViolation(RuntimeError): """Raised when a warrant's epoch is older than the verifier's known-highest epoch for its issuer, indicating a pre-revocation warrant replay or a stale decision-cache hit that must not be served.""" pass class VerifierDecisionCache: def __init__(self): # (agent_id, warrant_hash) -> (epoch, decision) self._cache = {} # issuer_id -> highest epoch observed (from revocations or warrants) self._highest_epoch = {} def observe_revocation(self, issuer_id: str, epoch: int, warrant_hash: str) -> None: # Revocation arrival MUST evict any cached decision for that warrant, # regardless of TTL. This is the cache-invalidation-coupling invariant. self._highest_epoch[issuer_id] = max( self._highest_epoch.get(issuer_id, 0), epoch ) for key in [k for k in self._cache if k[1] == warrant_hash]: del self._cache[key] def authorize(self, issuer_id: str, agent_id: str, warrant_hash: str, epoch: int) -> bool: highest = self._highest_epoch.get(issuer_id, 0) if epoch < highest: # Pre-revocation warrant replay, or a cache entry that should have # been evicted. Hard reject; do not fall through to cache. raise RevocationEpochViolation( f"warrant {warrant_hash} epoch {epoch} < issuer {issuer_id} " f"highest epoch {highest}; refusing to serve stale acceptance" ) key = (agent_id, warrant_hash) cached = self._cache.get(key) if cached is not None and cached[0] == epoch: return cached[1] decision = self._evaluate(issuer_id, agent_id, warrant_hash, epoch) self._cache[key] = (epoch, decision) return decision def _evaluate(self, issuer_id, agent_id, warrant_hash, epoch) -> bool: # Placeholder for signature + capability check against current feed. return True ```