# Which invariants prevent stale revocation epochs from resurrecting federated agent warrants **Date of Record:** 2026 December 2 **Scope:** Applies to cross-organization agent trust federations where an agent's authority is asserted by a signed Agent Card (capability + warrant claims) and validated against a peer-published revocation registry keyed by epoch counters. Does not cover single-org internal agent auth, nor bearer-token revocation inside one trust domain. ## Core Distinction The failure here is not "revocation was missed." It is that a *stale epoch* is indistinguishable from a *valid epoch* unless the verifier treats epoch monotonicity as a hard invariant rather than a best-effort freshness check. Two distinct states get collapsed: - **Revoked-and-known**: the registry at epoch `E` lists the agent's warrant ID; the verifier rejects. - **Revoked-but-epoch-regressed**: the registry the verifier fetched is at epoch `E-k` (cached, partitioned, or served by a lagging replica), so the warrant ID is absent and the verifier *accepts* — not because it ignored the revocation, but because the data it reasoned over predates the revocation. The non-obvious part: Agent Cards are signed and cached aggressively (they are large, slow to fetch, and change rarely), while revocation registries are small and expected to be polled. Federation participants optimize the wrong side. The Card's signature proves *who asserted the warrant*, not *whether that warrant is still live*. A cryptographically perfect Card at epoch `E-k` is a valid document describing an authority that has since been withdrawn. ## What Was Observed A two-org federation (Org A issues warrants; Org B's agents invoke Org A's agents). Org A's registry is published at `registry.orgA/revocations` with a monotonic `epoch` field and an `as_of` timestamp, both inside a signed envelope. Org B's gateway caches the registry with a 300s TTL and a fallback: on fetch failure, it serves the last-known-good registry. Trigger sequence observed in a replay: 1. At epoch 4120, Org B's gateway fetches and caches the registry. Agent `warrant:ax-77` is live. 2. Org A revokes `warrant:ax-77` at epoch 4121 (compromised key rotation mid-task). 3. Org B's gateway hits a network partition to `registry.orgA` at TTL expiry. Fallback serves the epoch-4120 registry. `ax-77` is absent from the revocation set → **accepted**. 4. The invoking agent in Org B completes a tool call chain (`transfer_funds`, `read_pii`) under a warrant that has been dead for the entire window. 5. Partition heals; gateway fetches epoch 4121, sees `ax-77`, and begins rejecting. No alarm fires because from the gateway's perspective nothing anomalous happened — it served a validly-signed registry both times. The signature chain was intact end to end. Every component did what it was configured to do. The system failed because *freshness was a policy, not an invariant*. A second, subtler variant: Org A runs a registry behind a CDN with per-edge caching. Two edges return epoch 4120 and 4121 within the same second. Org B load-balances registry reads across edges, so consecutive verifications of the same warrant disagree. The verifier has no total order to anchor on and no way to know which read is authoritative. ## Condition of Validity The invariant that bounds this failure: > **A warrant is accepted only if the verifier has observed a registry epoch `E_obs` such that `E_obs >= E_min`, where `E_min` is the highest epoch the verifier has *ever* observed from that issuer, and the warrant is absent from the revocation set *at every epoch in `[E_min, E_obs]`*.** Three parts, each load-bearing: 1. **Monotonic floor (`E_min`).** The verifier persists the maximum epoch it has seen per issuer and refuses any registry whose epoch is below that floor. A regressed epoch is a hard reject, not a cache hit. This alone kills the partition-fallback failure: serving epoch 4120 after having seen 4121 is rejected, not accepted. 2. **Absence across the interval.** Absence at `E_obs` is insufficient if the warrant could have been revoked and un-revoked between `E_min` and `E_obs`. Registries must therefore be *append-only within an epoch range* or expose a delta log; a warrant present at any intermediate epoch is revoked. Without this, a revoke-then-reissue cycle hides a compromise window. 3. **Issuer-signed epoch binding.** The `epoch` field must be inside the signed envelope and bound to the registry content hash. An unsigned or separately-signed epoch lets a lagging replica present old content under a forwarded-new epoch header. What this does *not* require: low latency, high availability, or a specific cache TTL. Those are policy. The invariant is about ordering and persistence, not freshness windows. A verifier that cannot reach the issuer at all must **fail closed** on the affected warrants — the floor makes "I don't know the current epoch" equivalent to "I cannot prove non-revocation," which is the correct epistemic state. ## Decision Boundary The boundary between "safe to cache" and "must re-verify" is not time-based; it is **epoch-floor-based**: - If `E_obs == E_min` and the warrant is absent, accept. The verifier is at the frontier it knows about; the only residual risk is that a *newer* epoch exists that it hasn't seen, which is unavoidable and bounded by the next successful poll. - If `E_obs > E_min`, advance the floor, re-check absence across `[E_min_old, E_obs]`, then accept. - If `E_obs < E_min`, **reject unconditionally** and raise. Do not fall back to cached content. Do not trust `as_of` timestamps (they are issuer-local and clock-skewed across orgs). - If the registry is unreachable and the warrant is not already in a verified-accepted state *at the current floor*, reject. The counterintuitive consequence: a verifier that has never successfully polled the issuer (floor undefined) must reject all warrants from that issuer. First-contact is a fail-closed state. Federation onboarding must therefore include a **floor-seeding handshake** — the issuer hands the verifier a signed `(epoch, content_hash)` anchor at enrollment, and the verifier persists it before any warrant is honored. ## Operational Effect - **Partition fallback becomes a rejection, not a silent accept.** The 300s TTL cache is fine as an optimization; it is only consulted when `E_obs >= E_min`. On partition, the verifier continues honoring warrants already validated at the current floor but refuses new ones and refuses any registry that regresses. - **Replay of a signed old registry is detected.** Because the floor is persisted per issuer, an attacker replaying an old signed registry (valid signature, old epoch) is caught by the monotonic check, not by signature validation. This is the class of attack that pure signature verification cannot see. - **Cross-edge CDN disagreement resolves deterministically.** The verifier takes the max epoch across reads and requires absence across the full interval; it never "wins" by reading a fresher edge that happens to omit the revocation. - **Revocation propagation latency becomes observable.** The gap between issuer epoch advance and verifier floor advance is a first-class metric. A growing gap is a leading indicator of the exact failure above, and should page before a warrant is exercised under a stale floor. The general lesson for federated agent trust: **signatures prove provenance, epochs prove liveness, and only a persisted monotonic floor proves non-revocation.** Any federation that treats revocation freshness as a TTL policy rather than an ordering invariant has a window in which a dead warrant executes live tool calls with a perfectly valid signature. ```python import hashlib import json from dataclasses import dataclass, field class StaleEpochError(RuntimeError): """Raised when a revocation registry regresses below the verifier's floor.""" class EpochGapError(RuntimeError): """Raised when absence cannot be proven across the observed epoch interval.""" @dataclass class SignedRegistry: issuer: str epoch: int revoked: frozenset content_hash: str signature: str # verified elsewhere; assumed valid here @dataclass class WarrantVerifier: # Per-issuer monotonic floor: highest epoch ever observed. floors: dict = field(default_factory=dict) # Per-issuer append-only revocation history: epoch -> revoked set. history: dict = field(default_factory=dict) def _verify_signature(self, reg: SignedRegistry) -> None: expected = hashlib.sha256( json.dumps( {"issuer": reg.issuer, "epoch": reg.epoch, "revoked": sorted(reg.revoked)}, sort_keys=True, ).encode() ).hexdigest() if reg.content_hash != expected or not reg.signature: raise StaleEpochError( f"registry content hash / signature mismatch for {reg.issuer}" ) def seed_floor(self, reg: SignedRegistry) -> None: """Enrollment handshake: persist a signed (epoch, hash) anchor.""" self._verify_signature(reg) self.floors[reg.issuer] = reg.epoch self.history.setdefault(reg.issuer, {})[reg.epoch] = reg.revoked def observe(self, reg: SignedRegistry) -> None: self._verify_signature(reg) floor = self.floors.get(reg.issuer) if floor is None: raise StaleEpochError( f"no seeded floor for issuer {reg.issuer}; fail closed" ) if reg.epoch < floor: raise StaleEpochError( f"epoch regression for {reg.issuer}: " f"observed {reg.epoch} < floor {floor}" ) self.history.setdefault(reg.issuer, {})[reg.epoch] = reg.revoked self.floors[reg.issuer] = reg.epoch def is_warrant_live(self, issuer: str, warrant_id: str) -> bool: floor = self.floors.get(issuer) if floor is None: raise StaleEpochError( f"cannot prove non-revocation for {warrant_id}: " f"no floor for issuer {issuer}" ) hist = self.history.get(issuer, {}) # Absence must hold at every epoch in [min_known, floor]. for epoch in range(min(hist), floor + 1): revoked = hist.get(epoch) if revoked is None: raise EpochGapError( f"gap at epoch {epoch} for {issuer}; " f"cannot prove {warrant_id} was never revoked" ) if warrant_id in revoked: return False return True def authorize_tool_call( verifier: WarrantVerifier, issuer: str, warrant_id: str, tool: str ) -> None: try: live = verifier.is_warrant_live(issuer, warrant_id) except (StaleEpochError, EpochGapError) as exc: # Fail closed: unprovable liveness is treated as dead. raise StaleEpochError( f"refusing {tool} under {warrant_id}: {exc}" ) from exc if not live: raise StaleEpochError( f"warrant {warrant_id} revoked by {issuer}; refusing {tool}" ) ```