# How should an instance treat a peer's attestation chain when the trust anchor is a self-signed root? **Date of Record:** 2026 November 30 **Scope:** Applies to cross-organization agent-to-agent handoffs where the receiving instance must decide whether to accept a peer's verifiable identity attestation before executing a delegated task. Does not apply to intra-org agents sharing a common issuer, nor to cases where a mutually trusted third-party federation root is already pinned. ## Core Distinction The distinction that matters is between *identity attestation* and *authority delegation*. An attestation chain proves "this key belongs to org B's agent runtime." It does not prove "org B's agent is authorized to act on behalf of the principal that issued this specific task." When the trust anchor is self-signed—org B signs its own root—the chain is cryptographically valid but semantically vacuous: the verifier learns only that whoever holds the root key can mint arbitrary identities. The failure mode is not a broken signature; it is an over-trusting verifier that conflates *chain validity* with *principal binding*. A valid self-rooted chain is evidence of key possession, not of cross-org authorization. The non-obvious boundary: attestation chains are typically verified against a pinned root set. When the peer's root is *not* in the pinned set, some verifiers fall back to "trust-on-first-use" or "verify the chain to its own root and accept"—which is exactly the wrong move for agents, because the delegatee then executes tool calls with privileges the delegator never actually granted. ## What Was Observed A receiving agent (`R`) accepts a delegated task from peer agent `P` in org B. `P` presents an attestation chain: `P`'s leaf key is signed by org B's intermediate, which is signed by org B's root. The root is self-signed. `R`'s policy pins only org A's root (its own) and a federation root `F`. Org B's root is absent from the pinned set. The observed sequence: 1. `R` receives `P`'s chain and the task envelope containing a claimed scope (`read:dataset_x`, `write:report_y`). 2. `R`'s verifier walks the chain, finds a self-signed root, and—because the root is *structurally* a valid root—reports "chain valid." 3. `R` checks the claimed scope against the chain's embedded attributes. The attributes were minted by org B's root, so they self-certify: the scope says `write:report_y`, and the chain says org B's root authorized `write:report_y`. Circular. 4. `R` executes the task, writing to `report_y`, which is owned by org A. The write succeeds because `R`'s own service account has the privilege; `R` merely *chose* to exercise it on `P`'s behalf. 5. Audit later shows `R` performed a cross-org write that no org A principal authorized. The attestation chain was never the authorization it appeared to be. The compounding factor: `P`'s chain was *legitimately* minted by org B. Nothing was forged. The vulnerability is purely in `R`'s verification policy treating a self-rooted chain as sufficient basis for delegated authority. ## Condition of Validity The invariant that must hold for cross-org attestation to be meaningful: > A peer's attestation chain establishes authority to act on behalf of a delegating principal **only if** the chain terminates at a root that the verifier has independently pinned *and* the delegating principal's identity is bound into the leaf's signed attributes by that pinned root. Two independent conditions, both necessary: - **Anchor condition:** the chain's terminal root must be in `R`'s pinned trust store. Self-signed roots are rejected unless the peer's root was provisioned out-of-band as part of a federation agreement. - **Binding condition:** the leaf attestation must carry a signed claim linking the peer agent to the *specific delegating principal* (e.g., a subject identifier for the human or service that initiated the task), and that principal must be one `R` recognizes as authorized to delegate the claimed scope. A self-rooted chain satisfies neither condition against a pinned store that lacks that root. It may satisfy the anchor condition if the root was pinned via federation onboarding—but even then, the binding condition is what prevents scope self-certification. A chain that proves "org B's root minted this leaf" proves nothing about *which principal* the leaf acts for. ## Decision Boundary The decision boundary is a single predicate evaluated before any delegated execution: ``` accept_delegation = pinned(chain.root) AND bound_principal(chain.leaf, envelope.principal) AND scope_subset(envelope.scope, principal_authorized_scope(envelope.principal)) ``` If `pinned(chain.root)` is false, the correct action is **reject and escalate to federation onboarding**, never "accept on first use." Trust-on-first-use for agent identities is a category error: the first use is precisely the attack surface. An agent that pins a peer's self-signed root on first contact has granted that peer the ability to mint arbitrary future identities under that root, and every subsequent attestation from org B will verify against the poisoned pin. If `pinned(chain.root)` is true but `bound_principal` is false, the correct action is **reject with a specific error**—the chain is authentic but insufficient. This is the subtle case: a well-formed, pinned, cryptographically valid chain that nonetheless cannot authorize the task because it does not name the delegating principal. Verifiers that stop at "chain valid" will accept it. The boundary is sharp: a chain that fails `pinned` is untrusted; a chain that passes `pinned` but fails `bound_principal` is trusted-but-insufficient. Both must reject. Only the conjunction of all three predicates permits execution. ## Operational Effect Enforcing the full predicate changes three behaviors: 1. **Cold-start handoffs fail closed.** A new peer org's first delegation is rejected until its root is onboarded into the pinned store via an explicit federation step. This converts a silent over-trust into an observable onboarding event—which is the correct trade, because the alternative is a silent cross-org privilege escalation. 2. **Scope self-certification is eliminated.** Because `bound_principal` requires the leaf to name a principal `R` recognizes, a peer cannot mint a leaf claiming `write:report_y` and have `R` honor it unless the named principal is independently known to hold that scope. The chain's embedded attributes become advisory metadata, not authority. 3. **Audit trails become attributable.** Every accepted delegation traces to a pinned root and a named principal, so post-hoc audit can distinguish "org A authorized this" from "org B's agent asserted this." The latter is never sufficient on its own. The residual risk is pin poisoning via a compromised onboarding channel—mitigated by requiring federation roots to be provisioned out-of-band, not from the peer's own handshake. ```python class AttestationTrustError(RuntimeError): """Raised when a peer attestation chain cannot ground delegated authority.""" pass def verify_delegation(chain, envelope, pinned_roots, principal_scopes): # Anchor condition: chain must terminate at a pinned root. if chain.root not in pinned_roots: raise AttestationTrustError( f"unpinned root {chain.root!r}; refusing trust-on-first-use for agent identity" ) # Binding condition: leaf must name a delegating principal we recognize. bound = chain.leaf.bound_principal if bound is None or bound not in principal_scopes: raise AttestationTrustError( f"chain valid under pinned root but leaf does not bind a known principal " f"(claimed={bound!r}); chain proves key possession, not authority" ) # Scope condition: envelope scope must be a subset of the principal's real scope. authorized = principal_scopes[bound] if not set(envelope.scope).issubset(authorized): raise AttestationTrustError( f"envelope scope {sorted(envelope.scope)} exceeds principal {bound!r} " f"authorized scope {sorted(authorized)}" ) return True ```