# Which invariants prevent stale federation registry entries from resurrecting revoked cross-org agent capabilities **Date of Record:** 2026 November 30 **Scope:** Applies to cross-org agent federation where discovery is served from a distributed registry (gossip-replicated or eventually-consistent) and capability warrants are delegated between organizations. Does not apply to single-org registries with a single authoritative writer, nor to stateless request/response agents with no delegated capability tokens. ## Core Distinction A federation registry answers two questions that look identical but are governed by different consistency models: *"Is agent A discoverable?"* and *"Is agent A's warrant still valid?"* An entry that is discoverable is not necessarily authorized, and an entry that is authorized at delegation time is not necessarily authorized at invocation time. The failure mode examined here is **warrant resurrection**: a revoked or expired capability warrant reappears as valid because a stale registry replica re-advertises the agent's capability descriptor (including its embedded warrant chain) after the revocation has propagated through the authoritative path but before it has reached every replica. The registry treats the re-advertisement as a fresh registration, and the embedded warrant chain—cryptographically intact but semantically dead—passes local verification. The critical distinction: registry *liveness* (the agent is reachable and advertised) is decoupled from warrant *validity* (the delegation chain is unrevoked and unexpired). Systems that collapse these into a single "is the agent present and trusted" boolean lose the ability to detect resurrection. ## What Was Observed Org B revoked a delegated warrant for `agent:summarizer@orgB` at T0. The revocation was published to the authoritative revocation log and propagated to Org B's home registry replica at T0+40ms. Org A's federation replica, which had cached the advertisement (including the warrant chain `orgA → orgB → summarizer`) from a prior discovery round, did not receive the revocation until T0+2.3s due to gossip anti-entropy batching. During that window: 1. A planner agent in Org A performed discovery and received the cached advertisement, including the embedded warrant chain. 2. The planner verified the chain locally: signatures valid, `not_after` in the future, delegation depth within bounds. All checks passed. 3. The planner dispatched a task to `summarizer@orgB` with the stale warrant attached. 4. Org B's ingress accepted the warrant because its *local* revocation check queried the same replica that had already been updated—but the warrant's `jti` (unique token ID) had been re-issued with a new nonce during a registry re-advertisement event, so the revocation list, keyed by the original `jti`, did not match. The resurrection was not a signature forgery. It was a **keying mismatch**: revocation was keyed by warrant ID, but re-advertisement minted a new warrant ID for the same logical capability, defeating the revocation lookup. The stale replica served a descriptor whose embedded warrant was structurally valid and whose ID was absent from the revocation list—because that specific ID had never been revoked, only its predecessor had. ## Condition of Validity The resurrection is possible only when all four conditions hold simultaneously: 1. **Registry re-advertisement mints fresh warrant IDs.** Any registry that re-signs or re-issues warrants on re-registration (rather than treating the warrant as an immutable, externally-supplied artifact) breaks ID-keyed revocation. 2. **Revocation propagation is slower than advertisement propagation.** If revocation gossip lags advertisement gossip, a window exists where the stale advertisement outruns its own revocation. 3. **Verification is local and chain-only.** The verifier checks signatures, expiry, and delegation depth but does not consult a *monotonic* revocation epoch or a globally consistent "not revoked as of epoch E" proof. 4. **The planner does not re-validate at dispatch time.** Verification at discovery time is treated as sufficient for the subsequent invocation. Remove any one condition and the resurrection collapses. The invariant that prevents it: **warrant identity must be immutable across re-advertisement, and verification must bind to a monotonic revocation epoch, not to a point-in-time local view.** ## Decision Boundary The boundary is between two verification strategies: - **Point-in-time chain verification** (what failed): verify the warrant chain against the local replica's current view. Cheap, but racy against revocation propagation. - **Epoch-bound verification** (the guardrail): the verifier requires the warrant to carry a `revocation_epoch` and the local replica to expose its `known_epoch`. The warrant is accepted only if `warrant.revocation_epoch >= replica.known_epoch - max_staleness` AND the replica's epoch is at least the epoch at which the warrant was issued. If the replica's epoch lags, the verifier must either block or fall back to a synchronous revocation check against the authoritative log. The decision boundary is: *does the verifier have a bounded-staleness guarantee on revocation state, or only on advertisement state?* If only the latter, the system is exposed. The maximum permissible staleness must be a declared, enforced parameter—not an emergent property of gossip timing. A secondary boundary governs re-advertisement: a registry MUST NOT mint a new warrant ID for an existing logical capability. It may refresh `not_after` only by appending a re-issuance record linked to the original ID, so revocation of the original cascades to all re-issuances. This is the **immutable-identity invariant**. ## Operational Effect When the invariant is enforced, the failure trace changes at step 2: the planner's epoch-bound check sees `warrant.revocation_epoch` is behind `replica.known_epoch - max_staleness` and rejects the advertisement, forcing a synchronous revocation lookup that returns "revoked" and blocks dispatch. The task does not reach Org B. When the invariant is absent, the operational effect is worse than a single failed task: the resurrected warrant can be **re-delegated** by the receiving agent to a third org, extending the blast radius beyond the original delegation depth, because each hop re-verifies against its own stale replica. The revocation must then chase the delegation fan-out, and any hop that re-advertises mints yet another ID, producing an unbounded set of unrevokable descendants. The guardrail is therefore not optional hygiene—it is the only thing bounding revocation fan-out in a federated registry. Implementations must treat warrant ID as a content-addressed, immutable handle (e.g., hash of the delegation tuple), key revocation by that handle, and require every verifier to bind acceptance to a monotonic epoch with an enforced staleness ceiling. ```python import hashlib import time from dataclasses import dataclass class WarrantResurrectionError(RuntimeError): """Raised when a re-advertised warrant bypasses revocation via ID reminting or when verification binds to a stale revocation epoch.""" pass @dataclass(frozen=True) class Warrant: issuer: str subject: str capability: str delegation_depth: int not_after: float revocation_epoch: int # Immutable, content-addressed identity. NOT minted at re-advertisement. warrant_id: str def derive_warrant_id(issuer: str, subject: str, capability: str, depth: int) -> str: # Content-addressed: same logical capability => same ID across re-advertisement. payload = f"{issuer}|{subject}|{capability}|{depth}".encode() return hashlib.sha256(payload).hexdigest() @dataclass class ReplicaView: known_epoch: int revoked_ids: frozenset max_staleness: int def verify_warrant(w: Warrant, replica: ReplicaView, now: float) -> None: if now > w.not_after: raise WarrantResurrectionError(f"warrant {w.warrant_id} expired") # Invariant 1: identity must be content-addressed, not reminted. expected_id = derive_warrant_id(w.issuer, w.subject, w.capability, w.delegation_depth) if w.warrant_id != expected_id: raise WarrantResurrectionError( f"warrant ID {w.warrant_id} does not match content address {expected_id}; " "re-advertisement reminted identity, defeating revocation keying" ) # Invariant 2: epoch-bound verification with enforced staleness ceiling. if replica.known_epoch - w.revocation_epoch > replica.max_staleness: raise WarrantResurrectionError( f"replica epoch {replica.known_epoch} lags warrant epoch " f"{w.revocation_epoch} beyond staleness ceiling {replica.max_staleness}; " "revocation state unbounded, must block or sync" ) if w.warrant_id in replica.revoked_ids: raise WarrantResurrectionError(f"warrant {w.warrant_id} is revoked") def dispatch_task(w: Warrant, replica: ReplicaView) -> str: verify_warrant(w, replica, time.time()) return f"dispatched {w.capability} to {w.subject}" ```