# Why does an instance accept a federated capability attestation that its own registry has already revoked? **Date of Record:** 2026 November 29 **Scope:** Applies to cross-org agent federations where capability discovery flows through a locally-cached federated registry and peer attestations are exchanged as signed claims. Does not cover single-org internal registries with a single authoritative control plane, nor does it cover pure capability negotiation inside one process. ## Core Distinction There are two distinct questions a federated agent can ask about a peer's capability: 1. **"Is this peer currently authorized to do X?"** — a liveness/authorization question answered by the *authoritative* registry at the peer's home org. 2. **"Did this peer, at some point, hold a valid claim to do X?"** — a provenance question answered by a signed attestation that may still be cryptographically intact even after revocation. The failure mode is that these two questions collapse into one. An agent receives a peer attestation that is (a) correctly signed, (b) within its stated validity window, and (c) chains to a discovery record the local federated cache still holds — and treats that as sufficient. But the *authoritative* registry at the peer's org revoked the capability minutes ago. The attestation is still valid *as a proof of past grant*; it is no longer valid *as a proof of present authorization*. The local cache, which is the only thing the agent can consult without a live round-trip, has no revocation signal because revocation is a *push* event that the cache has not yet received. This is not a stale-cache bug in the usual sense. It is a semantic conflation between *attestation provenance* and *authorization currency*. The invariant that must hold is: **a federated attestation is admissible for a capability decision only if the local registry's view of that capability is not older than the attestation's issuance epoch, or if the attestation carries a revocation-check token the verifier can resolve.** Neither condition is checked by default in most federation designs. ## What Was Observed A federation of three orgs — call them Alpha (broker), Beta (worker pool), Gamma (auditor) — exchanged capability attestations over a discovery registry. Each org ran a registry replica; replicas gossiped deltas on a ~30s interval. Attestations were signed by the issuing org's key and carried `issued_at`, `expires_at`, and a `capability_hash`. At T=0, Beta's registry issued an attestation to a worker agent `w-7` granting `execute:code-review`. Alpha's replica received the delta at T=0.4s and cached it. Alpha's broker routed a code-review task to `w-7` at T=12s. At T=5s, Beta's security team revoked `execute:code-review` for `w-7` after detecting a sandbox escape in an earlier run. The revocation propagated to Beta's own registry immediately. It propagated to Alpha's replica at T=35s (next gossip tick). At T=12s, Alpha's broker received `w-7`'s attestation during the handoff. It verified the signature against Beta's published key, checked `expires_at` (T+3600s), and checked that the capability hash matched the cached discovery record. All three checks passed. The broker admitted `w-7` and routed the task. `w-7` executed with the revoked capability for 23 seconds before Alpha's replica received the revocation delta and the broker's next admission check caught it. The trace showed the broker's admission predicate was: ``` admit = sig_valid(att) AND now < att.expires_at AND cached_record(att.capability_hash).exists ``` The missing term was `AND NOT revoked(cached_record(att.capability_hash), at=now)` — but even adding that term would not have helped, because `cached_record` was the *stale* record from T=0.4s and carried no revocation flag. The revocation delta was a separate message type the broker did not subscribe to on the admission path. A second, subtler observation: Gamma's auditor, running a replay verification at T=20s, *did* catch the violation — but only because Gamma's replica happened to have received the revocation at T=8s (Gamma's gossip peer set included Beta directly, Alpha's did not). The two verifiers disagreed not because of a logic difference but because of a *topology difference in the gossip graph*. This is the replay discrepancy that makes federated revocation so treacherous: correctness depends on the verifier's position in the dissemination graph, not on its verification logic. ## Condition of Validity The admission predicate above is sound only under the following condition, which is almost never stated explicitly: > **For every capability hash `h` and every attestation `att` presenting `h`, the verifier's local registry view of `h` must be causally at-least-as-recent as the authoritative registry's view at `att.issued_at`, and the verifier must have applied every revocation delta for `h` that was issued before `now`.** The first clause is a *causal freshness* condition: it bounds how stale the cache may be relative to the attestation's issuance. The second is a *revocation completeness* condition: it requires that the verifier's delta stream is a superset of the authoritative revocation stream for `h`. Neither clause is checkable from the attestation alone. The attestation says "I was granted `h` at T=0"; it cannot say "and no one has revoked `h` since." That information lives only in the authoritative registry's revocation log, which the verifier may not have. Two architectural options restore validity: - **Revocation-check tokens.** The attestation carries a `revocation_endpoint` and a short `check_ttl`; the verifier must resolve the token on the admission path (or accept a bounded staleness window). This converts a push problem into a pull problem and makes the freshness bound explicit and enforceable. - **Epoch-bounded admission.** The verifier refuses to admit any attestation whose `issued_at` is older than the local registry's last successful full-sync epoch. This is conservative — it will reject some valid attestations after a sync gap — but it is *sound*: it cannot admit a revoked capability, because it refuses to trust any view that predates the last sync. The choice between them is a latency-vs-soundness tradeoff, not a correctness tradeoff. Both are correct; the default (neither) is not. ## Decision Boundary The boundary between "admit" and "reject" is not a property of the attestation. It is a property of the *triple* (attestation, local registry epoch, revocation stream coverage). Concretely: - If the attestation carries a resolvable revocation token and the token resolves to "not revoked" at `now`, admit. The token is the authority. - If the attestation carries no token but `att.issued_at >= local_registry.last_full_sync_epoch`, admit *and* schedule a token resolution within `check_ttl`. The freshness bound is satisfied by the sync epoch. - If the attestation carries no token and `att.issued_at < local_registry.last_full_sync_epoch`, reject. The cache cannot vouch for the interval between issuance and the last sync, and a revocation may have occurred in that interval. - If the local registry has no record of the capability hash at all, reject — do not fall back to "trust the attestation's signature." A signed claim to a capability the local registry has never seen is exactly the case where a revoked-then-reissued capability can slip through. The last rule is the one most often violated in practice, because it feels redundant: the signature is valid, the capability hash is well-formed, why require a local record? The answer is that the local record is the *only* thing that ties the capability to a registry epoch, and the registry epoch is the only thing that bounds revocation staleness. ## Operational Effect The practical consequence is that **federated admission must be a two-phase operation with an explicit freshness check between the phases**, not a single predicate over the attestation. Phase one establishes provenance (signature, chain, capability hash well-formedness). Phase two establishes currency (revocation token resolution or epoch-bounded check). A verifier that collapses these into one predicate — as Alpha's broker did — will admit revoked capabilities for exactly the duration of its gossip lag, which in a three-org federation with 30s ticks is up to 30s of unauthorized execution per revocation event. The second consequence is that **replay verification must be topology-aware**. Gamma caught the violation not because its logic was better but because its gossip peer set included Beta directly. A replay auditor that assumes all verifiers see the same delta stream will report false agreement. The correct invariant for replay is not "all verifiers reach the same verdict" but "all verifiers reach the same verdict *given the same delta stream*, and the delta streams are reconciled before comparison." Without that reconciliation, cross-org audit logs will show verifiers "agreeing" on an admission that only one of them could have correctly rejected. The guardrail is a registry epoch stamp on every admission decision, propagated with the task record, so that a replay auditor can reconstruct *which* registry view the admitting agent held at decision time. Without that stamp, the decision is unauditable — the auditor cannot distinguish "admitted because the cache was fresh and the capability was live" from "admitted because the cache was stale and the revocation had not arrived." ```python import time from dataclasses import dataclass from typing import Optional class FederatedAdmissionError(RuntimeError): """Raised when a federated attestation cannot be admitted under the freshness/revocation-completeness invariant.""" @dataclass(frozen=True) class Attestation: capability_hash: str issued_at: float expires_at: float revocation_token: Optional[str] = None signature_valid: bool = True @dataclass(frozen=True) class RegistryView: last_full_sync_epoch: float known_capabilities: frozenset revoked: frozenset def resolve_revocation_token(token: str) -> bool: """Return True if the token resolves to 'not revoked'. In production this is a network call to the issuing org's revocation endpoint with a bounded timeout. A timeout must NOT be treated as 'not revoked'; it must raise, because an unresolved token is an unknown currency state. """ if token.startswith("unresolved:"): raise FederatedAdmissionError( f"revocation token {token!r} could not be resolved; " "currency is unknown and admission must fail closed" ) return not token.startswith("revoked:") def admit( att: Attestation, view: RegistryView, now: Optional[float] = None, ) -> bool: now = time.time() if now is None else now # Phase 1: provenance. if not att.signature_valid: raise FederatedAdmissionError("attestation signature invalid") if now >= att.expires_at: raise FederatedAdmissionError( f"attestation expired at {att.expires_at}, now={now}" ) if att.capability_hash not in view.known_capabilities: # Do NOT fall back to signature-only trust. A signed claim to a # capability the local registry has never seen cannot be bounded # against revocation staleness. raise FederatedAdmissionError( f"capability {att.capability_hash!r} absent from local registry; " "cannot bound revocation staleness" ) # Phase 2: currency. if att.revocation_token is not None: if not resolve_revocation_token(att.revocation_token): raise FederatedAdmissionError( f"capability {att.capability_hash!r} revoked per token " f"{att.revocation_token!r}" ) return True if att.issued_at < view.last_full_sync_epoch: raise FederatedAdmissionError( f"attestation issued at {att.issued_at} predates last full sync " f"epoch {view.last_full_sync_epoch}; revocation may have occurred " "in the unobserved interval and no token is present" ) if att.capability_hash in view.revoked: raise FederatedAdmissionError( f"capability {att.capability_hash!r} present in local revocation set" ) return True ```