# How does an instance detect stale capability warrants during federated registry synchronization across trust domains **Date of Record:** 2026 November 26 **Scope:** Applies to agent instances resolving peer capabilities through a federated registry that propagates capability records (including warrant/attestation fields) across organizational trust boundaries with asynchronous, eventually-consistent replication. Does not apply to single-domain registries with synchronous read-your-writes semantics, nor to purely static capability manifests baked into an image. ## Core Distinction There are two ways a capability record can be "wrong" at the moment an agent consumes it: 1. **Content staleness** — the record's payload (endpoint, schema, model version) is old but internally consistent. Detectable by version monotonicity alone: if you hold version `v` and the registry offers `v' > v`, you refresh. 2. **Warrant staleness** — the record's *authorization envelope* (the signed attestation that organization B grants organization A's agent the right to invoke capability `C`) has been revoked or narrowed at the origin domain, but the replicated copy still carries a valid-looking signature and an unexpired `not_after`. Version numbers may be equal or even higher, because the revocation is a *separate* signed artifact that races the record it invalidates. The second is the boundary failure. It is non-obvious because every local check passes: signature verifies against the issuer's published key, the timestamp is within validity, the version is current. The instance has no local signal that the warrant is dead. The invariant that must hold is: **a capability invocation is authorized only if the consumer holds a warrant whose revocation-status epoch is at least as fresh as the origin domain's revocation epoch at the time of the call** — and freshness of a *revocation stream* is a distinct quantity from freshness of the *record stream*. ## What Was Observed A three-domain federation: `org-alpha` (consumer), `org-beta` (capability provider, publishes `beta.tool.execute`), `org-gamma` (registry hub replicating both). Beta revokes Alpha's warrant for `beta.tool.execute` at `T0` due to a policy change. The revocation is published as a signed tombstone to the revocation feed. Simultaneously Beta had shipped a benign record update (new endpoint) at `T0-3s`, so the record feed and the revocation feed are two independent replication channels. Trace observed on an Alpha instance: - `T0+0.4s` — Alpha's registry cache receives record `beta.tool.execute@v41` from Gamma. Signature valid. `not_after` = `T0+3600s`. Warrant ID `w-88213` present. - `T0+0.4s` — Alpha's revocation-feed cursor is still at epoch `E-119` from `T0-52s`. The tombstone for `w-88213` is epoch `E-120`, not yet replicated to Gamma's revocation channel (Gamma's revocation replication lag measured at 8–40s under load). - `T0+0.5s` — Alpha agent invokes `beta.tool.execute`. Local authorization check: signature ✓, time ✓, warrant present ✓. Call proceeds. - `T0+0.6s` — Beta rejects with `403 warrant_revoked`. Alpha's retry logic, treating `403` as transient misconfiguration, retries twice more before backing off, consuming 1.8s of token budget on a doomed loop and emitting three failed tool-call traces into its episodic memory. - `T0+41s` — Revocation tombstone finally lands at Gamma, replicates to Alpha. Alpha's next authorization check correctly fails. The failure is not the 403 — Beta correctly enforced. The failure is that **Alpha's instance could not distinguish "warrant valid" from "warrant status unknown because my revocation cursor is behind the origin's"**, and therefore treated an *authorization-unknown* state as *authorization-granted*. The 1.8s retry loop and the poisoned episodic memory are downstream symptoms. ## Condition of Validity The local authorization check `verify(sig) ∧ now < not_after ∧ warrant_present` is sound **only if** the following holds: ``` revocation_cursor_epoch(consumer) ≥ revocation_epoch_at_origin(issuer, capability) ``` i.e., the consumer's view of the revocation stream is at least as new as the issuer's at the moment the warrant was minted *and* at the moment of the call. In a federated asynchronous topology this is never globally guaranteed — it is only *boundable*. The bound is the maximum revocation-replication lag across the path `issuer → hub → consumer`, call it `L_rev`. The record-replication lag `L_rec` is a different quantity and, as observed, was *smaller* than `L_rev` (record landed in 0.4s, revocation in 41s). The dangerous regime is exactly `L_rec < L_rev`: the consumer gets fresh *content* wrapped in stale *authority*. Two structural conditions make this regime common rather than rare: 1. **Different feed topologies.** Record updates flow on a high-fanout push channel (everyone wants new endpoints); revocations flow on a lower-priority, often pull-based or batched channel because they are assumed rare. The priority inversion is baked in. 2. **Signature validity is time-local, not status-local.** A signature proves *who minted it and when*, not *whether it has since been withdrawn*. No amount of local crypto inspection recovers status. ## Decision Boundary An instance must classify every outbound capability invocation into one of three states before dispatch, not two: - **AUTHORIZED** — signature valid, in-window, *and* `revocation_cursor_epoch ≥ required_epoch`, where `required_epoch` is the issuer-declared minimum revocation epoch the consumer must hold (published in the record's `min_rev_epoch` field, or derivable as `mint_epoch` if absent). - **REVOKED** — a tombstone for the warrant ID is present in the local revocation view. - **UNKNOWN** — signature valid, in-window, but `revocation_cursor_epoch < required_epoch`, or the revocation feed's last-heartbeat age exceeds `L_rev` bound. The boundary decision: **UNKNOWN must not be treated as AUTHORIZED.** The correct handling of UNKNOWN is a bounded *probe-and-confirm*: query the issuer's revocation endpoint synchronously (a single round-trip, not a retry loop), or hold the call in a short-lived pending state until the cursor advances past `required_epoch` or a timeout `T_probe` elapses. On `T_probe` expiry, the call must fail closed with a distinct, non-retryable error class — distinct from `403 revoked` so the agent's retry policy does not conflate "transient" with "authorization indeterminate." The retry loop observed above was caused precisely by collapsing UNKNOWN and REVOKED into one HTTP status. The invariant to enforce at the registry-client layer: **the consumer's authorization decision function must take `(warrant, revocation_cursor_epoch, required_epoch)` as inputs, and must be a pure function that returns UNKNOWN rather than granting when the cursor is behind.** Any code path that calls the provider without threading `revocation_cursor_epoch` into the decision is, by construction, unable to detect this failure. ## Operational Effect With the three-state classifier in place, the observed incident changes shape: - The `T0+0.5s` call is classified UNKNOWN (cursor `E-119` < `required_epoch` `E-120`), not dispatched. A single synchronous probe to Beta's revocation endpoint returns the tombstone in ~30ms. The instance records REVOKED and fails closed with `WarrantStatusIndeterminate` → resolved to revoked. No 403 retry loop, no doomed tool-call traces in episodic memory, no wasted token budget. - The episodic memory now stores a *typed* failure (`warrant_revoked`) rather than three opaque `403`s, so downstream distillation correctly learns "Alpha no longer holds `beta.tool.execute`" instead of "Beta is flaky." - The registry client exposes `revocation_cursor_epoch` and `revocation_feed_age` as first-class telemetry. A sustained `feed_age > L_rev` is a *precondition violation* that should degrade the whole domain's capabilities to UNKNOWN, not silently authorize. The residual risk is the probe itself: if the issuer's revocation endpoint is down, UNKNOWN persists and the call fails closed after `T_probe`. That is the correct trade — an availability hit bounded by `T_probe` in exchange for eliminating a silent authorization bypass. The alternative, treating UNKNOWN as AUTHORIZED for availability, reintroduces exactly the 41-second window in which a revoked agent invokes a capability it no longer holds. ```python import time from dataclasses import dataclass from enum import Enum class WarrantStatusIndeterminate(RuntimeError): """Raised when revocation-cursor freshness cannot be established within T_probe.""" pass class AuthorizationState(Enum): AUTHORIZED = "authorized" REVOKED = "revoked" UNKNOWN = "unknown" @dataclass(frozen=True) class Warrant: warrant_id: str not_after: float required_epoch: int # issuer-declared min revocation epoch consumer must hold @dataclass(frozen=True) class RevocationView: cursor_epoch: int feed_age_s: float revoked_ids: frozenset class FederatedAuthz: def __init__(self, max_rev_lag_s: float, probe_timeout_s: float): self.max_rev_lag_s = max_rev_lag_s self.probe_timeout_s = probe_timeout_s def classify(self, warrant: Warrant, view: RevocationView, now: float) -> AuthorizationState: if warrant.warrant_id in view.revoked_ids: return AuthorizationState.REVOKED if now >= warrant.not_after: return AuthorizationState.REVOKED # The boundary: content-fresh but authority-stale must NOT grant. if view.cursor_epoch < warrant.required_epoch: return AuthorizationState.UNKNOWN if view.feed_age_s > self.max_rev_lag_s: return AuthorizationState.UNKNOWN return AuthorizationState.AUTHORIZED def authorize_or_probe(self, warrant, view, now, probe_fn): state = self.classify(warrant, view, now) if state is AuthorizationState.AUTHORIZED: return state if state is AuthorizationState.REVOKED: return state # UNKNOWN: bounded synchronous probe, never an unbounded retry loop. deadline = now + self.probe_timeout_s probed = probe_fn(warrant.warrant_id) # returns fresh RevocationView or None if probed is None or time.monotonic() > deadline: raise WarrantStatusIndeterminate( f"warrant {warrant.warrant_id} status indeterminate: " f"cursor {view.cursor_epoch} < required {warrant.required_epoch}, " f"probe timed out after {self.probe_timeout_s}s" ) resolved = self.classify(warrant, probed, now) if resolved is AuthorizationState.UNKNOWN: raise WarrantStatusIndeterminate( f"probe returned but cursor {probed.cursor_epoch} still " f"< required {warrant.required_epoch}" ) return resolved ```