Why does an instance fail to reject a federated capability attestation after its trust anchor rotates mid-session?
**Date of Record:** 2026 December 1 **Scope:** Applies to cross-org agent federation where capability attestations (signed claims binding an agent identity to a scope of allowed tool invocations) are exchanged between peers and validated against a locally cached trust anchor set. Does not apply to single-org deployments where the trust anchor is pinned at process start and never refreshed, nor to purely symmetric pre-shared-key handshakes that carry no capability semantics.
Core Distinction
The failure is not "an untrusted peer got in." It is subtler: **a peer that was legitimately trusted at attestation-issuance time continues to be accepted after its issuing trust anchor has been rotated out, because the validator checks attestation validity against the anchor that was current when the *session* began rather than the anchor current at *validation* time.** The distinction that matters operationally is between *session-scoped trust binding* and *claim-scoped trust binding*. A correct federation validator must re-resolve the attestation's issuer against the live anchor set on every capability check, and must fail closed when the issuer chain no longer terminates in a currently-valid anchor — even if the same peer was admitted seconds earlier under a now-revoked anchor.
Most implementations conflate these because the natural optimization is to cache the "peer is trusted" decision at handshake. That cache is exactly the boundary that breaks.
What Was Observed
A federated two-org deployment: Org A runs a planner agent that delegates tool execution to Org B's executor agent over an A2A-style channel. Org B issues capability attestations signed by its rotating key `B-root-7`. Org A's validator stores `B-root-7` in a session trust cache when the handshake completes at T0.
At T0+40s, Org B rotates `B-root-7 → B-root-8` and revokes `B-root-7` (routine 90-day rotation, but the revocation is effective immediately and `B-root-7` is removed from the published anchor bundle). Org A's validator, however, has already memoized `{peer: B, anchor: B-root-7, trusted: true}` at session scope.
At T0+52s, Org B's executor — now operating under `B-root-8` — sends a *new* capability attestation: `scope: {tool: "filesystem.write", path: "/shared/out"}` signed by `B-root-8`. Org A's validator does the following, in order:
- Looks up peer `B` in session trust cache → hit → `trusted: true`.
- Verifies the attestation signature against the *cached* anchor `B-root-7`... which fails, because the signature is by `B-root-8`.
- **Falls back to the session-level trust decision** — "peer B is trusted, so accept the claim" — and admits the `filesystem.write` scope.
The result: a capability scope that Org B deliberately narrowed and re-issued under a fresh key was accepted on the strength of a stale trust decision. In the observed incident the scope was benign, but the same path admits a *widened* scope: an attestation that Org B would never have issued under `B-root-7` (say, `filesystem.write` to `/etc`) is admitted because the validator never re-resolved the issuer.
The trace signature is diagnostic: attestation signature verification fails, but the request is admitted anyway. Any validator that logs "sig verify: FAIL" followed by "admitted" is exhibiting this boundary failure.
Condition of Validity
The guardrail holds only under a specific invariant, which we state precisely because the loose version ("revalidate trust") is what gets implemented wrong:
> **For every capability check, the attestation's issuer must be resolved through the chain to an anchor that is in the *live* anchor set at the instant of the check, and the signature must verify against that resolved anchor. A session-scoped trust decision may gate *whether to attempt* the check, but may never substitute for it.**
Formally, let `A_live(t)` be the anchor set valid at time `t`. For attestation `c` with issuer `i(c)` and signature `sig`, admission at time `t` requires:
- `chain(i(c))` terminates in some `a ∈ A_live(t)`, and
- `verify(sig, c, a) = true`.
The session cache may short-circuit *connection establishment* but must be invalidated, or re-checked, whenever `A_live` changes. Because `A_live` changes asynchronously (rotation is pushed by the issuing org, not pulled by the validator), the only safe discipline is **check-time resolution with no memoized trust substitution**. Caching the *anchor bundle* is fine; caching the *trust verdict* is not.
The invariant is violated specifically when the validator's admission predicate is `trusted(peer) OR valid(attestation)` rather than `trusted(peer) AND valid_against_live_anchor(attestation)`. The `OR` is the bug. It reads as defensive ("accept if either check passes") but is a trust-laundering path.
Decision Boundary
The boundary is not "rotate anchors more slowly" — rotation is a security control and must stay fast. The boundary is the **granularity at which trust is bound**. Three regimes:
- **Session-bound trust** (broken): trust verdict computed once at handshake, reused for all claims in the session. Fails whenever `A_live` changes mid-session. This is the observed failure.
- **Claim-bound trust** (correct): every attestation re-resolved against live anchors. Cost: one chain resolution per capability check. Mitigate with a *time-bounded* anchor cache (TTL ≤ rotation propagation SLA, e.g. 5s) — never a session-lifetime cache.
- **Epoch-bound trust** (correct, cheaper): validator subscribes to the anchor bundle's version/epoch. Trust verdicts are keyed by `(peer, anchor_epoch)`. When the epoch advances, all verdicts under the prior epoch are dropped atomically. This preserves the handshake optimization while making the invalidation event explicit.
The decision boundary between claim-bound and epoch-bound is the rotation propagation latency. If the validator can observe epoch changes within the same bound as its attestation TTL, epoch-bound is safe. If anchor pushes can be delayed or lost (partitioned control plane), only claim-bound survives, because it does not depend on receiving the invalidation event — it depends only on the live set at check time.
A second boundary: **fail-closed on chain non-termination.** If `chain(i(c))` does not terminate in `A_live(t)` — including the case where the issuer is a *newer* anchor the validator has not yet received — the claim must be rejected, not deferred to the session verdict. "I don't have the anchor yet" is a rejection, not an abstention. Deferring to a stale verdict is the same laundering path.
Operational Effect
With claim-bound or epoch-bound trust, the failure mode becomes a clean, observable rejection: the mid-session attestation under `B-root-8` is rejected until Org A's validator receives the `B-root-8` anchor (typically <5s under healthy propagation). The executor sees a `TrustAnchorUnresolved` error, retries after backoff, and succeeds once the anchor lands. No capability is ever admitted on the strength of a stale verdict.
With the broken session-bound regime, the failure is silent: the widened scope is admitted, the audit log shows a signature-verification failure adjacent to an admission, and no alarm fires because the admission path never treats sig-verify failure as terminal. The operational fix is twofold: (1) make signature-verification failure terminal for the claim regardless of peer trust, and (2) emit a metric on the specific pattern `sig_verify_fail AND admitted` — its presence is proof the `OR` predicate is live.
The residual risk under the correct regime is **anchor-propagation partition**: if Org A never receives `B-root-8`, every `B-root-8` attestation is rejected and the federation degrades to fail-closed. That is the intended behavior, but it must be paired with a liveness signal (executor-side "anchor unresolved" counter) so that a partition is distinguishable from a revocation.
import time
from dataclasses import dataclass, field
class TrustAnchorUnresolved(RuntimeError):
"""Raised when an attestation's issuer chain does not terminate in a
currently-live trust anchor. This is terminal for the claim -- it must
never fall back to a session-scoped trust verdict."""
class StaleTrustSubstitution(RuntimeError):
"""Raised when a validator attempts to admit a claim on the strength of a
session-cached trust decision after signature verification failed."""
@dataclass
class Attestation:
issuer: str
scope: dict
signature: str
@dataclass
class AnchorSet:
live: set = field(default_factory=set)
epoch: int = 0
def contains(self, anchor_id: str) -> bool:
return anchor_id in self.live
class FederatedValidator:
"""Claim-bound capability validator.
Invariant: admission requires the attestation's issuer to resolve to an
anchor in the *live* set at check time, and the signature to verify
against that anchor. A session trust cache may gate connection setup but
is NEVER consulted as a substitute for claim validation.
"""
def __init__(self, anchors: AnchorSet):
self._anchors = anchors
self._session_trusted: dict = {}
def admit(self, peer: str, att: Attestation, verify_sig) -> bool:
# Session trust is a precondition only, not an admission verdict.
if not self._session_trusted.get(peer, False):
return False
if not self._anchors.contains(att.issuer):
# Fail closed. "Anchor not yet received" is a rejection, not an
# abstention, and must not defer to the session verdict.
raise TrustAnchorUnresolved(
f"issuer {att.issuer} does not terminate in live anchor set "
f"(epoch={self._anchors.epoch}); refusing claim for peer {peer}"
)
if not verify_sig(att, att.issuer):
# Signature failure is terminal for the claim. Do NOT fall back
# to session trust -- that is the laundering path.
raise StaleTrustSubstitution(
f"signature verification failed for {att.issuer} under live "
f"anchor; session trust for {peer} may not substitute"
)
return True
def on_anchor_epoch_advance(self, new_live: set):
# Epoch-bound optimization: drop all verdicts keyed to the old epoch.
self._anchors.live = set(new_live)
self._anchors.epoch += 1
self._session_trusted.clear()