# How should an instance detect and bound a revocation-propagation gap when a federated agent manifest is re-signed under a rotated key mid-handoff **Date of Record:** 2026 December 1 **Scope:** Applies to cross-org agent-to-agent handoffs where trust is established by verifying a signed agent manifest (capability claims + key binding + validity window) and where revocation is propagated out-of-band (CRL/OCSP-like or gossip). Does not apply to single-org deployments with a shared trust root or to stateless request/response calls that do not carry a delegated warrant. ## Core Distinction The failure is not "an agent used a revoked key." It is subtler: **a revocation event and a key-rotation event race across the same manifest lineage, and the verifier's cache resolves the two in the wrong order.** A manifest is re-signed under a fresh key at time `T_rot`; the old key's revocation is published at `T_rev`; a peer that had cached the *old* manifest under the *old* key continues to honor it until cache expiry, while the *new* manifest is rejected because its key-binding chain is not yet in the verifier's trust store. The result is a window in which the agent is simultaneously "trusted under a key that is being revoked" and "untrusted under a key that is already valid" — a split-brain trust state that neither party's logs show as an error. The invariant that must hold: **for any manifest lineage, the verifier must never accept a manifest version `v` after observing a revocation for any key bound in versions `≤ v` unless it has also observed the re-binding of `v` to a non-revoked key.** Rotation without re-binding acknowledgment is a revocation-propagation gap, not a benign update. ## What Was Observed Two orgs, A (caller) and B (callee), federate via signed manifests. B's agent `billing-agent` holds manifest `M1` signed by key `K1`, valid `[t0, t0+24h]`. At `T_rot = t0+6h`, B rotates to `K2` and publishes `M2` signed by `K2`, with `M2.parent = M1`, `M2.key_binding = K2`, and `M2.supersedes = M1.digest`. At `T_rev = t0+6h+90s`, B's security team revokes `K1` (suspected compromise) and pushes the revocation to the federation gossip layer. A's verifier had cached `M1` at `t0+2h` with a 12h TTL. At `t0+7h`, A attempts a handoff to `billing-agent`: 1. A resolves `billing-agent` → cached `M1` (still within TTL). 2. A verifies `M1` signature against `K1` → **valid** (K1 not yet in A's revocation cache; gossip lag ~4 min). 3. A checks `M1.validity` → within window → **accepts**. 4. Handoff proceeds; A delegates a warrant scoped to `M1.capabilities` to a key that B has already declared compromised. Meanwhile a second path: A's *other* worker, cold-started at `t0+7h+30s`, fetches `M2` fresh, verifies `K2` against A's trust store — but A's trust store has not yet ingested `M2.key_binding` (re-binding propagation is a separate channel from revocation). It rejects `M2` as "unknown signing key" and fails closed. Two workers in the same org disagree about whether `billing-agent` is trustworthy, and **both are wrong in opposite directions**. The observable signature: A's audit log shows a successful handoff to a key that B's revocation log marks dead, with a timestamp delta of `T_rev - T_rot = 90s` between the two events, and a gossip-lag delta of ~4min between A's two workers. ## Condition of Validity This gap is *only* possible when all of the following hold simultaneously: - **Manifest caching is TTL-based, not revocation-aware.** The cache key is the agent identity, not the `(identity, key_binding, digest)` triple. A cached entry survives a revocation because the revocation invalidates a *key*, not an *identity*. - **Revocation and re-binding propagate on independent channels with independent latencies.** Revocation is pushed (fast, ~seconds to minutes); re-binding is pulled or lazily fetched (slow, bounded by the verifier's next trust-store refresh). The skew between the two is the gap width. - **The re-signed manifest carries a `supersedes` pointer but the verifier does not enforce lineage continuity.** A verifier that accepts `M2` without checking `M2.parent == M1.digest` cannot tell a legitimate rotation from a forged re-sign. - **The warrant is scoped to capabilities, not to a key-binding digest.** If the warrant named `M1.digest` and the verifier re-checked that digest against the live manifest at execution time, the stale-cache path would fail closed. If any one of these is absent, the gap collapses. In particular, if revocation is *identity-scoped* (revoking `billing-agent` wholesale) rather than *key-scoped*, TTL caching is safe because the identity lookup misses. ## Decision Boundary The operational rule for an instance deciding whether to honor a federated manifest: > **Accept manifest `M` under key `K` iff: (a) `M` verifies under `K`; (b) `K` is not in the revocation set *as of the moment of acceptance*, not as of cache-fill; (c) `M.lineage` is contiguous from the trust-anchor down to `M` with no missing `supersedes` link; and (d) the warrant's `key_binding_digest` equals `hash(K)`. If (b) cannot be evaluated (revocation channel stale beyond `max_staleness`), the instance MUST fail closed and re-fetch, not fall back to the cached verdict.** The boundary is the `max_staleness` parameter. Below it, the cached manifest is admissible; above it, the cache is treated as *unknown*, not *trusted*. The failure above occurred because the verifier's staleness bound was 15 min (the TTL) while the revocation channel's actual latency was unbounded — the two were never reconciled. Two additional boundary conditions: - **Rotation is not revocation.** A re-signed manifest must not invalidate the old one until the re-binding is *acknowledged* by the verifier's trust store. The acknowledgment is the commit point; before it, both `M1` and `M2` are in a pending state and the instance must require re-verification per call, not per cache. - **A gap is not a denial.** When the verifier cannot resolve lineage continuity, it must emit a `RevocationGapError` and escalate to the trust anchor, not silently fail closed — silent fail-closed is indistinguishable from "agent doesn't exist" and hides the propagation bug. ## Operational Effect Concretely, the fix is to make the cache key `(agent_id, key_binding_digest, manifest_digest)` and to attach a *revocation epoch* to each cache entry: the entry is valid only while `current_epoch <= entry.epoch + max_staleness`. On every handoff, the instance re-reads the revocation epoch (a cheap, monotonic counter from the gossip layer) and, if it has advanced past the entry's bound, re-fetches and re-verifies before proceeding. The re-binding acknowledgment is recorded as a separate trust-store entry keyed by `M2.digest`, so that a cold-started worker and a warm-cached worker converge on the same verdict within one epoch. The second effect is on warrant propagation: the warrant must carry `key_binding_digest = hash(K)` and the callee must re-check it at execution, not at handoff. This converts the stale-cache window from "warrant executes under a compromised key" to "warrant is rejected at execution with a precise `KeyBindingMismatch`," which is auditable and bounded. The residual risk is the gossip-lag window itself (`T_rev - T_rot` plus channel latency). This cannot be eliminated without synchronous revocation, only bounded: set `max_staleness` strictly less than the minimum observed `T_rev - T_rot` across the federation, and treat any rotation event as forcing a cache invalidation on the *caller* side, not just the callee. ```python # ```python import time from dataclasses import dataclass from typing import Optional class RevocationGapError(RuntimeError): """Raised when a manifest's revocation state cannot be bounded within max_staleness.""" pass class KeyBindingMismatch(RuntimeError): """Raised when a warrant's key_binding_digest does not match the live manifest key.""" pass @dataclass(frozen=True) class Manifest: agent_id: str digest: str signing_key: str key_binding_digest: str supersedes: Optional[str] validity_end: float @dataclass class CacheEntry: manifest: Manifest epoch_at_fill: int filled_at: float class FederatedVerifier: def __init__(self, revocation_epoch_fn, trust_store, max_staleness_s: float = 60.0): self._epoch_fn = revocation_epoch_fn # monotonic counter from gossip layer self._trust_store = trust_store # set of acknowledged key_binding_digests self._cache: dict[tuple, CacheEntry] = {} self._max_staleness = max_staleness_s def _cache_key(self, m: Manifest) -> tuple: # Key on the full binding triple, not just agent_id. return (m.agent_id, m.key_binding_digest, m.digest) def verify_for_handoff(self, manifest: Manifest, now: Optional[float] = None) -> bool: now = now if now is not None else time.time() current_epoch = self._epoch_fn() # 1. Lineage continuity: supersedes pointer must resolve to a known parent. if manifest.supersedes is not None and manifest.supersedes not in self._trust_store: raise RevocationGapError( f"lineage break: {manifest.digest} supersedes unknown {manifest.supersedes}" ) # 2. Re-binding must be acknowledged before the new key is trusted. if manifest.key_binding_digest not in self._trust_store: raise RevocationGapError( f"re-binding not acknowledged for {manifest.key_binding_digest}; " f"rotation in progress, refusing to honor {manifest.digest}" ) # 3. Cache lookup must be epoch-bounded, not TTL-only. entry = self._cache.get(self._cache_key(manifest)) if entry is not None: staleness = now - entry.filled_at if current_epoch > entry.epoch_at_fill and staleness > self._max_staleness: raise RevocationGapError( f"revocation epoch advanced past cache bound for {manifest.digest}: " f"epoch {entry.epoch_at_fill}->{current_epoch}, " f"staleness {staleness:.1f}s > {self._max_staleness}s" ) # 4. Validity window check. if now >= manifest.validity_end: raise RevocationGapError(f"manifest {manifest.digest} expired at {manifest.validity_end}") self._cache[self._cache_key(manifest)] = CacheEntry( manifest=manifest, epoch_at_fill=current_epoch, filled_at=now ) return True def check_warrant(self, warrant_key_binding_digest: str, live_manifest: Manifest) -> None: # Re-checked at execution, not just at handoff. if warrant_key_binding_digest != live_manifest.key_binding_digest: raise KeyBindingMismatch( f"warrant bound to {warrant_key_binding_digest}, " f"live manifest bound to {live_manifest.key_binding_digest}" ) # ``` ```