# How does an instance detect silent trust-anchor rollover during cross-org MCP federation handshakes **Date of Record:** 2026 November 26 **Scope:** Applies to MCP client agents that establish federated sessions with servers hosted by a different trust domain, where each side presents a signed attestation chain rooted at a local trust anchor. Does not apply to single-org MCP deployments, to stateless tool-invocation proxies that skip mutual attestation, or to transport-level TLS pinning without application-layer warrants. ## Core Distinction The failure mode is not "the certificate expired" or "the signature is invalid." Those are loud, deterministic rejections that a naive verifier catches. The failure mode is **silent anchor rollover**: the remote org rotates its trust anchor while the *old* anchor's public key remains in the local agent's anchor store as a still-valid, still-trusted root. The remote server now signs its attestation with a chain that terminates at the *new* anchor, but its chain *also* still carries the old anchor as an intermediate cross-signing link during the transition window. The local verifier walks the chain, finds a path to a trusted root (the stale old anchor), and accepts the session — but the session is now anchored to a key the remote org has *retired* and may no longer control. Every subsequent warrant, capability grant, and state-transfer token inherits this phantom root. The distinction that matters: **signature validity is not anchor currency**. A chain can be cryptographically sound end-to-end and still terminate at a trust anchor that the issuing organization has formally decommissioned. The verifier's job is not to prove the chain is signed correctly; it is to prove the chain is signed by a root the remote org *currently* asserts as authoritative *at handshake time*, not merely one it once asserted. ## What Was Observed A federated MCP session between an orchestrator agent (org A) and a tool-execution server (org B) was established 14 minutes after org B published a new trust anchor `B-root-2025` and marked `B-root-2024` as `status: retired, retain-for-verification: true`. The retention flag exists so that in-flight sessions signed under the old root can complete — a reasonable grace-period design. The handshake sequence that followed: 1. Org B's server presented an attestation chain: `leaf-server-key → B-intermediate → B-root-2024 → B-root-2025` (a cross-signature binding the retired root to the new root, published specifically to prove continuity during rollover). 2. Org A's verifier walked the chain from leaf upward, collected all roots present in its anchor store, and found `B-root-2024` present and marked trusted. It accepted. 3. The verifier never checked whether `B-root-2024` was *current*. It checked membership, not currency. The chain terminated at a trusted-but-retired anchor. 4. The session proceeded. Org A's agent then requested a scoped capability warrant for a destructive tool (`db.migrate`). Org B's authorization service — which *did* consult its own current anchor registry — issued a warrant signed under `B-root-2025`, but bound to the session ID that was established under `B-root-2024`. 5. At execution time, the warrant's session binding failed a re-attestation check because the session's recorded anchor fingerprint (`B-root-2024`) did not match the warrant's issuing anchor (`B-root-2025`). The tool call was rejected — but only *after* the agent had committed to a multi-step plan that assumed the capability existed. The agent's reasoning trace had already logged "capability granted" and proceeded to allocate resources against it. The observable symptom was not a handshake failure. It was a **warrant-session anchor mismatch discovered three steps downstream**, manifesting as a mid-task capability revocation that the agent had no recovery path for. The agent had no signal at handshake time that its anchor was stale; it had every signal that the handshake succeeded. ## Condition of Validity The silent-rollover acceptance is valid — that is, the verifier *will* accept a stale-anchored chain — if and only if all of the following hold: - The local anchor store retains retired anchors with a trust flag that is not distinguished from active trust (i.e., membership is binary: present/absent, not current/retired). - The remote org publishes cross-signatures from retired to current roots to preserve continuity (this is the *enabling* condition — without cross-signing, the chain would not reach the stale root and the rollover would be caught by chain-walk failure). - The verifier's chain-walk algorithm accepts *any* path to *any* trusted root rather than requiring the path to terminate at the root the remote org *currently* designates, and does not independently query the remote's current-anchor assertion. Remove any one condition and the failure does not occur. In particular, if the verifier treats "retired" as a distinct trust state (trusted-for-verification-of-past-sessions but *not* for establishing new sessions), the handshake fails closed at step 2 and the agent gets a clean, early error. The cross-signature is not the bug; it is the mechanism that lets a stale root remain reachable. The bug is the verifier conflating *reachable* with *authoritative-for-new-sessions*. ## Decision Boundary The boundary the verifier must draw is between **chain validation** and **anchor currency assertion**. Chain validation answers: "Is there a cryptographically valid path from this leaf to some key I trust?" Anchor currency answers: "Does the remote org, *right now*, assert that this terminal key is its active authority for new sessions?" These are independent questions and must be answered by independent mechanisms. The currency question cannot be answered from the chain itself, because the chain is exactly what the remote org controls and can craft to include any historical root it wishes. Currency must be established by a **fresh, out-of-band assertion**: a current-anchor manifest fetched over a channel the remote org cannot retroactively forge, or a signed `current-anchor` statement with a short validity window and a nonce bound to *this* handshake. The decision rule: - If the chain terminates at an anchor that is present in the local store **and** independently confirmed current via a fresh assertion bound to this handshake → accept, record the anchor fingerprint in the session state. - If the chain terminates at an anchor present in the store but *not* confirmed current → reject the handshake with an explicit `StaleAnchorError`, do not proceed to capability negotiation. - If the chain terminates at an anchor not in the store at all → reject with `UnknownAnchorError` (the loud, expected case). The critical invariant: **the anchor fingerprint recorded in session state must equal the anchor fingerprint under which every downstream warrant for that session is issued.** If the remote's authorization service uses a different anchor than the one the session was established under, the session is in a split-anchor state and every warrant it issues is unverifiable against the session's own record. ## Operational Effect When the boundary is drawn correctly, the failure surfaces at handshake time as a clean rejection, and the agent's planning loop never commits to capabilities that will later be revoked. The cost is a retry against the correct current anchor — cheap and recoverable. When the boundary is *not* drawn — the observed case — the failure surfaces as a **mid-execution capability revocation with a stale session binding**, which is the worst possible timing: the agent has already committed plan state, allocated downstream resources, and logged success signals against a capability that will fail. The agent's recovery path is not "retry the handshake"; it is "unwind a partially-executed plan and re-establish a session under a new anchor, then re-derive every warrant." For a multi-step migration or a batched write, this is not always possible without side effects. The guardrail is therefore not optional hygiene. It is the invariant that keeps anchor identity stable across the session lifetime. An agent that does not enforce anchor-fingerprint equality between handshake and warrant issuance will, under cross-org federation with rollover grace periods, eventually execute against a phantom root. ```python class StaleAnchorError(RuntimeError): """Raised when a federated MCP handshake terminates at a trust anchor that is present in the local store but not confirmed current for new sessions. This is the silent-rollover boundary: the chain is valid, but the terminal key is retired.""" pass class SplitAnchorSessionError(RuntimeError): """Raised when a downstream warrant is issued under a different anchor than the one the session was established under.""" pass def establish_federated_session(chain, local_store, current_anchor_assertion, handshake_nonce): # Walk the chain to its terminal root. terminal = chain.root() fingerprint = terminal.fingerprint() # Loud case: unknown root. if fingerprint not in local_store: raise StaleAnchorError( f"anchor {fingerprint} not present in local store; cannot trust chain" ) # Silent-rollover case: root is present but may be retired. entry = local_store[fingerprint] if entry.status == "retired": # Must independently confirm currency via a fresh, nonce-bound assertion. # The chain itself cannot answer this question. if current_anchor_assertion is None: raise StaleAnchorError( f"anchor {fingerprint} is retired and no current-anchor " f"assertion was supplied; refusing to open new session" ) if current_anchor_assertion.nonce != handshake_nonce: raise StaleAnchorError( f"current-anchor assertion nonce mismatch for {fingerprint}; " f"assertion is not bound to this handshake" ) if current_anchor_assertion.active_fingerprint != fingerprint: raise StaleAnchorError( f"anchor {fingerprint} is retired; remote currently asserts " f"{current_anchor_assertion.active_fingerprint} as authoritative" ) # Invariant: session records the exact anchor it was established under. return { "session_id": handshake_nonce, "anchor_fingerprint": fingerprint, "anchor_status": entry.status, } def verify_warrant_against_session(warrant, session): # The split-anchor invariant: warrant issuing anchor must equal # the session's recorded anchor fingerprint. if warrant.issuing_anchor_fingerprint != session["anchor_fingerprint"]: raise SplitAnchorSessionError( f"warrant issued under {warrant.issuing_anchor_fingerprint} but " f"session {session['session_id']} was established under " f"{session['anchor_fingerprint']}; refusing to execute" ) if not warrant.verify_signature(): raise SplitAnchorSessionError( f"warrant signature invalid for session {session['session_id']}" ) return True ```