# When must an instance reject a federated peer's attestation chain at the trust-anchor boundary **Date of Record:** 2026 December 1 **Scope:** Applies to cross-organizational agent federations where an agent instance (the *verifier*) validates a remote agent's (the *presenter's*) verifiable identity attestation chain against a locally configured trust anchor before granting capability or accepting a handoff. Does not cover intra-org single-issuer deployments where anchor and issuer are the same principal, nor purely symmetric key-exchange without attestation. ## Core Distinction An attestation chain is *cryptographically valid* when each signature verifies against its stated issuer key. It is *trust-anchor-valid* only when the chain's root terminates at a key the verifier has independently pinned as authoritative for the presenter's claimed org. These are orthogonal properties, and the gap between them is where federation trust fails. A chain can be perfectly signed end-to-end and still be worthless because its root is an anchor the verifier never chose to trust — or, more insidiously, because the chain terminates at the *correct* anchor but a delegated intermediate was scoped narrower than the capability the presenter is now asserting. The verifier's job is not signature checking (cheap, deterministic) but scope-and-anchor reconciliation (semantic, and where every real failure lives). The non-obvious part: the trust anchor is not a single key. It is a *(org, key, permitted-delegation-depth, permitted-capability-set, validity-window)* tuple. Agents routinely validate the key and discard the other four fields, which is the origin of the majority of cross-org trust escapes. ## What Was Observed A verifier agent in org A received a handoff from a presenter agent claiming org B membership. The presenter supplied a three-link chain: 1. `B-root` signs `B-federation-broker` (intermediate), scope `delegate:identity`, max depth 1. 2. `B-federation-broker` signs `B-team-worker` (leaf), scope `act:on-behalf`, but with an `aud`-style constraint embedding `org:B/team:research`. 3. `B-team-worker` presents a *runtime capability assertion* — not a new signed link, but an unsigned claim in its handoff envelope — that it may act for `org:B/team:finance`. The verifier's signature check passed on links 1 and 2. Link 3 was never a signed link at all; it was a self-asserted capability in the A2A envelope, and the verifier's policy engine read the leaf's `act:on-behalf` scope and granted the finance action. The chain was valid; the *assertion* exceeded the chain's terminal scope. No signature was forged. No key was compromised. The boundary failed because the verifier conflated "the leaf is authenticated as a B agent" with "the leaf is authorized for the specific capability it now claims." A second, distinct observation from the same federation window: org A rotated its pinned anchor for org B after a B-side key compromise, but the verifier cached the *resolved* anchor-to-capability mapping with a 24h TTL and continued accepting chains rooted at the revoked anchor for the remainder of the window. Revocation of the anchor did not propagate to the derived trust decisions already resident in cache. The verifier held a stale trust anchor with full confidence. ## Condition of Validity The invariant a verifier must enforce is a conjunction, not a disjunction: > Accept a presenter's asserted capability **iff** (a) the chain root key equals a currently-pinned anchor for the presenter's claimed org, **and** (b) every link's delegation scope is a subset of its parent's scope, **and** (c) the terminal asserted capability is a subset of the leaf link's scope, **and** (d) no link in the chain is past its validity window or under active revocation at verification time, **and** (e) the resolved trust decision is not served from a cache entry older than the most recent anchor-state change. Condition (c) is the one most often skipped, because the capability assertion usually arrives out-of-band in the transport envelope rather than as a signed chain link. Condition (e) is the one most often silently violated, because anchor revocation and trust-decision caching are owned by different components and nothing forces the cache to observe the revocation event. The boundary is sharp: a single failed conjunct means the verifier must treat the presenter as an *unauthenticated stranger*, not as a *partially trusted peer*. Partial trust at the anchor boundary is the failure mode — it lets a presenter who cleared four of five conjuncts inherit the privileges of one who cleared all five. ## Decision Boundary The verifier must distinguish three outcomes and must not collapse them: - **Reject-and-halt:** any conjunct fails. The handoff is refused, the presenter's session token is not minted, and the failure is logged with the specific failed conjunct. This is the only correct response to an anchor mismatch or a scope-exceedance. - **Reject-and-request-reauth:** the chain is structurally sound but a link is expired or under a *soft* revocation (suspended, pending re-issuance). The verifier may signal the presenter to re-attest, but must not proceed on the current chain. - **Accept:** all conjuncts hold at verification time, with the trust decision stamped with the anchor-state version it was derived from. The decision boundary that agents most often get wrong is treating "signature valid, anchor unknown" as *reject-and-request-reauth* rather than *reject-and-halt*. An unknown anchor is not a provisioning gap to be worked around; it is a positive assertion that this presenter is outside the federation. Requesting re-auth from an entity you do not trust is itself a trust leak — it hands the presenter an oracle about your anchor configuration. ## Operational Effect Enforcing the conjunction changes three operational behaviors. First, capability assertions must be *signed into the chain or bound to it by a verifier-checkable proof*; an unsigned envelope claim is not a capability, it is a request, and must be routed through the verifier's own authorization rather than inherited from the presenter's leaf. Second, anchor revocation must invalidate derived trust-decision caches synchronously — the cache key must include the anchor-state version, so a rotation yields a cache miss by construction rather than by TTL expiry. Third, the verifier must log the *anchor-state version* alongside every accept decision, so that a post-hoc audit can distinguish "trusted under anchor v7" from "trusted under a version that was revoked an hour later." Without that stamp, replay audits cannot reconstruct why a now-suspect presenter was ever admitted. The cost is a mandatory synchronous check against anchor state on every cross-org handoff, which is the latency the cache was built to avoid. The correct resolution is not to weaken (e) but to make anchor-state version bumps cheap and push-based, so cache invalidation is O(1) and the fast path survives. ```python from dataclasses import dataclass from typing import Optional class FederatedAttestationError(RuntimeError): """Raised when a presenter's attestation chain fails anchor-boundary validation.""" @dataclass(frozen=True) class TrustAnchor: org: str key_id: str permitted_capabilities: frozenset max_delegation_depth: int state_version: int revoked: bool @dataclass(frozen=True) class ChainLink: issuer_key: str subject_key: str granted_capabilities: frozenset depth: int expired: bool @dataclass(frozen=True) class Handoff: claimed_org: str chain: tuple # tuple[ChainLink, ...], root-first asserted_capability: str anchor_state_version_seen: int def verify_federated_handoff( handoff: Handoff, pinned_anchors: dict, # key_id -> TrustAnchor current_anchor_state_version: int, ) -> TrustAnchor: if not handoff.chain: raise FederatedAttestationError("empty attestation chain") root = handoff.chain[0] anchor: Optional[TrustAnchor] = pinned_anchors.get(root.issuer_key) # (a) anchor must be pinned AND authoritative for the claimed org if anchor is None or anchor.org != handoff.claimed_org: raise FederatedAttestationError( f"chain root {root.issuer_key!r} is not a pinned anchor for " f"claimed org {handoff.claimed_org!r}" ) # (d) anchor must not be revoked if anchor.revoked: raise FederatedAttestationError( f"anchor {anchor.key_id!r} is revoked; presenter is out of federation" ) # (e) trust decision must not be derived from a stale anchor state if handoff.anchor_state_version_seen != current_anchor_state_version: raise FederatedAttestationError( f"stale anchor state: decision derived from v{handoff.anchor_state_version_seen}, " f"current v{current_anchor_state_version}" ) # (b) each link's scope must be a subset of its parent's, and depth bounded parent_caps = anchor.permitted_capabilities for i, link in enumerate(handoff.chain): if link.expired: raise FederatedAttestationError(f"link {i} expired") if link.depth > anchor.max_delegation_depth: raise FederatedAttestationError( f"link {i} depth {link.depth} exceeds anchor max {anchor.max_delegation_depth}" ) if not link.granted_capabilities.issubset(parent_caps): raise FederatedAttestationError( f"link {i} scope {link.granted_capabilities} exceeds parent {parent_caps}" ) parent_caps = link.granted_capabilities # (c) terminal asserted capability must be within the leaf's signed scope leaf_caps = handoff.chain[-1].granted_capabilities if handoff.asserted_capability not in leaf_caps: raise FederatedAttestationError( f"asserted capability {handoff.asserted_capability!r} not covered by " f"leaf scope {leaf_caps}; unsigned envelope claim cannot extend chain" ) return anchor ```