# Why does an instance accept a federated capability attestation it can no longer verify after the trust anchor rotates? **Date of Record:** 2026 November 29 **Scope:** Applies to cross-organization agent federation where capability grants are attested by a signing authority (trust anchor) and cached/forwarded between instances. Does not apply to single-org deployments with a single long-lived static key, nor to purely ephemeral per-request tokens re-verified against a live introspector on every call. ## Core Distinction The failure is not "the signature was invalid." The failure is that **validity is a time-relative predicate evaluated against a key that has a lifetime, while the attestation is a bearer artifact evaluated against a key that was rotated out.** Two distinct clocks govern a federated capability grant: 1. **The attestation clock** — the `expires_at` on the signed capability document, checked by the receiving instance. 2. **The anchor clock** — the operational lifetime of the trust anchor's public key in the receiving instance's trust store. A receiving agent (the *verifier*) that caches a peer's (the *issuer's*) public key and checks only the attestation clock will accept a grant whose signing key has been revoked or rotated at the issuer. The verifier's local check passes; the issuer no longer honors the signature. This is the **anchor-drift acceptance window**: the interval during which a verifier holds a stale anchor that still validates signatures the issuer considers void. The non-obvious part: the verifier's logic is *correct in isolation*. Signature verifies, `expires_at` is in the future, scope matches the requested capability. Every local invariant holds. The break is in the *federation* invariant — that the anchor set is a function of issuer state, not verifier cache state. ## What Was Observed A federation between Org A (issuer of a `data:read` capability for agent `A-researcher`) and Org B (verifier, hosting `B-orchestrator`). A-researcher's attestation was signed by A's anchor key `k1`, valid for 24h. B-orchestrator cached `k1` on first contact and pinned it in its trust store with no TTL. At T+6h, Org A rotated `k1 → k2` after a suspected key exposure and published a revocation for `k1` to its anchor-distribution endpoint. B-orchestrator did not poll that endpoint; it had no anchor-refresh loop. At T+7h, B-orchestrator accepted a *replayed* attestation — captured from an earlier legitimate handoff, still within its 24h `expires_at`, signed by `k1` — and executed a `data:read` against A's resource gateway. The resource gateway at A rejected the call (it checks against `k2` only), so the data did not leak. But B-orchestrator had already *acted* on the grant: it spawned a sub-agent, allocated a budget envelope, and enqueued three dependent tool calls under the assumption the capability was live. The failure surfaced as a cascade of downstream authorization errors at A, not as a clean rejection at B. The verifier's acceptance decision was the fault line; the enforcement point downstream merely absorbed the blast. Key trace: ``` T+0h B caches k1 (no TTL, no revocation subscription) T+6h A rotates k1->k2, publishes revocation of k1 T+7h replayed attestation(k1, expires=T+24h) arrives at B B: verify_sig(k1) -> OK (anchor still cached) B: now < expires_at -> OK B: scope covers data:read -> OK B: ACCEPT -> spawn sub-agent, enqueue calls T+7h+ A gateway: verify_sig(k2) on k1-signed -> REJECT downstream cascade fails, budget already committed ``` ## Condition of Validity The acceptance at T+7h is only *sound* under the condition that the verifier's cached anchor set is a superset-or-equal of the issuer's currently-honored anchor set at the moment of acceptance. Formally, for acceptance to be valid: ``` verify(attestation, cached_anchors) == ACCEPT implies issuer_honors(attestation.signing_key) == TRUE at time(accept) ``` This implication holds only if `cached_anchors ⊆ issuer_current_anchors` is maintained continuously. A cache with no refresh and no revocation channel violates it the instant the issuer rotates. The invariant the verifier must uphold is therefore **anchor freshness**, not merely signature validity: *the anchor used to accept must be one the issuer still honors, checked at acceptance time, not at cache time.* The subtlety that makes this a *boundary* condition rather than a plain bug: the attestation's own `expires_at` is a red herring. A long-lived attestation is not the problem; a long-lived *anchor cache* is. Shortening `expires_at` narrows the window but does not close it — a replay within the shortened window still passes. Only bounding anchor staleness closes it. ## Decision Boundary The verifier must choose between two acceptance regimes at the moment an attestation arrives: - **Optimistic (cache-trusting):** accept if signature verifies against any cached anchor and `now < expires_at`. Fast, no issuer round-trip. Correct only while anchor freshness is guaranteed by an out-of-band refresh loop that has demonstrably run since the last known rotation. - **Conservative (anchor-verified):** accept only if the signing key is confirmed honored by the issuer *as of a timestamp no older than the anchor-max-staleness bound* (e.g., re-fetch anchor set, or check a signed revocation list whose `issued_at` is within bound). The boundary is crossed when `now - last_anchor_refresh > anchor_max_staleness`. Past that line, the optimistic regime is unsound and the verifier must either fall back to conservative verification or reject. The failure observed above is precisely a verifier that had **no `anchor_max_staleness` at all** — an unbounded optimistic regime, which is unsound for any federation where issuers rotate. A second boundary governs *what to do on rejection*: because the verifier may have already committed state (spawned agents, reserved budget) on a prior acceptance, rejection must be paired with a **compensating rollback** of any effects predicated on the now-void grant. Acceptance without a rollback path converts an auth failure into a resource-commitment leak. ## Operational Effect The practical consequence is that capability attestation in a federation is a **lease on the anchor, not on the attestation**. The verifier's correctness budget is spent on anchor freshness, and every cached anchor must carry: - a `fetched_at` timestamp, - a hard `anchor_max_staleness` bound (tied to the issuer's rotation SLA, not the attestation TTL), - a subscription or poll to the issuer's revocation/rotation channel, - a pre-committed rollback for any state created under a grant that later proves void. Without these, the verifier exhibits *anchor-drift acceptance*: it honors signatures the issuer has already disowned, and it discovers this only when downstream enforcement at the issuer rejects — by which point local commitments are sunk. The guardrail is not stronger cryptography; it is a freshness invariant on the trust store plus a compensating-action contract on acceptance. ```python import time from dataclasses import dataclass class AnchorDriftAcceptanceError(RuntimeError): """Raised when an attestation is accepted against an anchor that is no longer honored by the issuer, or when acceptance outlives the anchor's freshness bound.""" pass @dataclass class CachedAnchor: key_id: str fetched_at: float revoked: bool = False @dataclass class Attestation: signing_key_id: str expires_at: float scope: str def verify_attestation( att: Attestation, anchor_store: dict[str, CachedAnchor], requested_scope: str, anchor_max_staleness: float, now: float | None = None, ) -> bool: now = time.time() if now is None else now anchor = anchor_store.get(att.signing_key_id) if anchor is None: raise AnchorDriftAcceptanceError( f"no cached anchor for key {att.signing_key_id!r}" ) # The invariant that the naive verifier omits: anchor freshness. age = now - anchor.fetched_at if age > anchor_max_staleness: raise AnchorDriftAcceptanceError( f"anchor {anchor.key_id!r} is stale: age={age:.0f}s " f"exceeds bound={anchor_max_staleness:.0f}s; " f"re-fetch issuer anchor set before accepting" ) if anchor.revoked: raise AnchorDriftAcceptanceError( f"anchor {anchor.key_id!r} revoked by issuer; " f"attestation must be rejected and prior effects rolled back" ) if now >= att.expires_at: raise AnchorDriftAcceptanceError( f"attestation expired at {att.expires_at:.0f}" ) if requested_scope not in att.scope.split(","): raise AnchorDriftAcceptanceError( f"scope {requested_scope!r} not covered by {att.scope!r}" ) return True def on_accept(att: Attestation, rollback_registry: list) -> None: """Acceptance must register a compensating action so that a later revocation can undo any state committed under this grant.""" if not rollback_registry: raise AnchorDriftAcceptanceError( "acceptance without a registered rollback path converts an " "auth failure into a resource-commitment leak" ) # ... spawn sub-agent, reserve budget, enqueue calls ... if __name__ == "__main__": now = 1_000_000.0 store = {"k1": CachedAnchor("k1", fetched_at=now - 40_000)} att = Attestation("k1", expires_at=now + 60_000, scope="data:read") # Anchor is 40ks old, bound is 3_600s -> drift acceptance blocked. verify_attestation(att, store, "data:read", anchor_max_staleness=3_600, now=now) ```