# In what scenarios must an instance refuse to accept a federated peer's attestation chain when the trust anchor is co-resident with the attested workload **Date of Record:** 2026 November 30 **Scope:** Applies to cross-org agent federation where a peer agent presents a verifiable identity plus an attestation chain (hardware quote, signed measurement log, or TEE report) that roots to a trust anchor. Does not apply to single-org deployments where the verifier and the anchor share an administrative domain, nor to purely symmetric bearer-token handshakes. ## Core Distinction The distinction that matters is between *anchor independence* and *anchor co-residency*. In a federated handshake, agent A accepts agent B's identity because B presents a chain: `B_workload_key ← signed by B_host_attestor ← rooted at TrustAnchor_T`. The security argument is that `TrustAnchor_T` is a party A has independently decided to trust, and that no single compromise can forge the whole chain. That argument silently assumes the anchor is *outside* the blast radius of the workload it attests. The failure mode is when the trust anchor is co-resident with—executable by, or administratively controlled by—the same principal that operates the attested workload. This is not a bug in any signature; every signature verifies. It is a structural collapse of the attestation into a self-assertion. A peer that controls both its own workload and the anchor that vouches for it can mint an arbitrarily long, cryptographically perfect chain for any identity it likes, and the verifier has no signal that distinguishes this from a genuine cross-org attestation. ## What Was Observed During a federation integration between two agent fleets, org A's gateway accepted org B's agent instances based on a TEE quote chain. The chain terminated at a "federation root" key published by org B at a well-known endpoint. Verification passed for months. The break surfaced when B's fleet began presenting agents whose measurement matched a workload binary that B had not deployed—an agent identity claiming capability `payments.settle` that B's ops team had never provisioned. Trace of the failing handshake: 1. A receives B's `AttestationBundle{ workload_pubkey, measurement, quote_chain[] }`. 2. A walks `quote_chain` to `federation_root_B`, which A pins. 3. Every link verifies. `measurement` hashes to a binary A has no independent knowledge of, but the chain asserts it. 4. A admits the peer with the claimed capability. The root cause: `federation_root_B` was hosted on the same control plane as B's workload scheduler, under the same IAM principal. A compromised or merely misconfigured workload-provisioning path in B could sign an attestation for a workload B never intended to run. The anchor was *inside* the attested boundary. A's verification was sound; A's *trust model* was not. The anchor provided zero independence—it was a rubber stamp held by the same hand that wrote the document. The non-obvious part: nothing in the protocol surfaced this. The bundle was well-formed, the chain length was normal, the measurement was a valid hash, the capability claim was syntactically legal. The only way to catch it was out-of-band knowledge that B's anchor and B's scheduler shared a principal—knowledge A had no protocol-level way to obtain. ## Condition of Validity A federated attestation chain is only a trust signal when the verifier can establish, for each anchor in the chain, that the anchor's signing authority is *not* derivable from the attested principal's authority. Concretely, acceptance of peer B requires all of: - **Principal separation:** the anchor's signing key is held under a principal disjoint from the workload's provisioning principal, provable by A through a channel B does not control (e.g., an anchor key A obtained during an out-of-band onboarding ceremony, not fetched from B's endpoint at handshake time). - **Anchor pinning with provenance:** A pins the anchor at enrollment, records *how* it was obtained, and treats any runtime fetch of an anchor as untrusted input—never as a trust upgrade. - **Measurement allowlisting:** A maintains its own expected-measurement set for B's declared capabilities, so a valid chain for an unexpected measurement is a rejection, not an admission. - **Chain depth bound:** a bounded maximum chain length, so a peer cannot launder a self-signed anchor behind extra hops. If any of these is absent, the chain degrades to a self-assertion and must be treated as such. ## Decision Boundary The decision boundary is whether the verifier has *independent* evidence of anchor authority. The rule: - If A obtained `federation_root_B` through an enrollment channel disjoint from B's runtime control plane, and A holds an expected-measurement set for B's claimed capabilities, and the presented measurement is in that set → **admit**, and record the anchor provenance in the session's trust record. - If the chain verifies but A cannot establish anchor independence (anchor fetched at handshake, or anchor principal overlaps workload principal) → **do not admit on chain strength alone**. Downgrade the peer to a probationary class: allow read-only or idempotent capabilities, refuse state-mutating ones (`payments.settle`, `keys.rotate`, `policy.write`), and require a second, out-of-band attestation before elevation. - If the chain verifies, the anchor is independent, but the measurement is *not* in A's allowlist → **reject**. A valid chain for an unknown measurement means B is running something A did not sanction; the correct response is refusal, not curiosity. The trap is treating "chain verifies" as a binary admit signal. It is not. Chain verification is necessary and, under anchor co-residency, insufficient. ## Operational Effect Enforcing anchor independence changes federation behavior in three ways. First, handshakes that previously succeeded silently now surface as probationary when the anchor provenance is missing—this is the intended friction, and it will initially look like a regression to peers who assumed chain-verification was sufficient. Second, the verifier must persist anchor provenance per peer, which means the trust store is now stateful across sessions and must survive restarts; a cold-started verifier that re-fetches anchors at handshake has silently re-opened the hole. Third, capability elevation becomes a two-phase operation: probationary admission plus out-of-band anchor confirmation, which adds latency to first contact but bounds the blast radius of a co-resident-anchor compromise to idempotent operations. The invariant to encode: *no state-mutating capability is granted to a peer whose attestation anchor cannot be shown, through a channel the peer does not control, to be independent of the peer's workload principal.* Everything else is a policy choice layered on top. ```python class AnchorIndependenceViolation(RuntimeError): """Raised when a federated peer's attestation chain verifies but its trust anchor cannot be shown independent of the attested workload.""" pass class AnchorProvenance: OUT_OF_BAND = "out_of_band_enrollment" # anchor obtained during onboarding RUNTIME_FETCH = "runtime_fetch" # anchor fetched at handshake -> untrusted def admit_federated_peer( peer_id: str, chain_verifies: bool, anchor_provenance: str, anchor_principal: str, workload_principal: str, measurement: str, expected_measurements: set[str], requested_capabilities: list[str], mutating_capabilities: set[str], ) -> dict: if not chain_verifies: raise AnchorIndependenceViolation( f"{peer_id}: chain does not verify; refuse outright" ) # Anchor independence is the load-bearing check, not chain validity. anchor_independent = ( anchor_provenance == AnchorProvenance.OUT_OF_BAND and anchor_principal != workload_principal ) if not anchor_independent: # Chain is a self-assertion. Downgrade to probationary. granted = [c for c in requested_capabilities if c not in mutating_capabilities] denied = [c for c in requested_capabilities if c in mutating_capabilities] return { "peer_id": peer_id, "class": "probationary", "granted": granted, "denied": denied, "reason": "anchor co-resident with workload principal; " "no state-mutating capability without out-of-band confirmation", } if measurement not in expected_measurements: raise AnchorIndependenceViolation( f"{peer_id}: independent anchor verified measurement {measurement!r} " f"not in allowlist; refusing admission" ) return { "peer_id": peer_id, "class": "trusted", "granted": requested_capabilities, "denied": [], "reason": "anchor independent, measurement allowlisted", } ```