# Under what conditions must an instance refuse a federated peer's capability grant before trust-bootstrap attestation has converged? **Date of Record:** 2026 November 26 **Scope:** Applies to cross-org agent federations where peer capability manifests are exchanged and acted upon before cryptographic trust-bootstrap (attestation chain, root-key pinning, revocation-state sync) has fully converged across all participating instances. Does not apply to single-org deployments or to federations with a synchronous, blocking trust-anchor registry that gates every capability call. ## Core Distinction The failure mode here is not "a malicious peer lies." It is subtler: **a peer's capability manifest is self-consistent and correctly signed, but the signature chain terminates in a root key that this instance has not yet pinned, while the peer's own bootstrap gossip has already reached quorum elsewhere in the federation.** The receiving instance observes a valid-looking grant, a plausible attestation bundle, and peer references that *claim* the root is trusted. The distinction that matters is between *signature validity* (a math check, local and deterministic) and *trust-anchor convergence* (a distributed agreement problem, asynchronous and eventually consistent). A capability grant can pass the first while the second is still in flight. Acting on it in that window is the boundary failure. Most federation designs conflate these into a single `verify(grant)` call that returns a boolean. That collapse is where the bug lives: the boolean is true, but it means "the bytes are internally consistent," not "this instance has accepted the authority that issued them." ## What Was Observed A three-org federation (call them A, B, C) used a manifest-gossip protocol: each org publishes a signed capability manifest naming the tool surfaces it will honor from peers, plus an attestation bundle chaining its signing key to a shared federation root. On cold start, an instance loads its pinned root set from local durable state, then reconciles against gossip. The observed trace, on a freshly provisioned instance in org C: 1. `load_pinned_roots()` returned an empty set — this was the instance's first boot after a region failover, and the durable pin store had replicated but not yet flushed. 2. A peer in org B proactively pushed its capability manifest within 400ms of C coming online. The manifest was signed by B's org key, which chained to federation root R. 3. `verify_signature(manifest, chain)` returned `True` because the chain was internally valid and terminated at R — the verifier did not check whether R was *pinned locally*, only that the chain was well-formed and terminated at *some* root present in the bundle. 4. C accepted the grant and began routing tool calls to B's advertised surfaces. 5. 1.8 seconds later, the pin store flushed, and C's reconciliation found that R was **not** in its authorized root set — the correct federation root was R′, a rotated key. B was a stale-but-honest peer still attesting under the pre-rotation root. 6. In the intervening window, C had already forwarded 14 tool invocations to B, including two that carried scoped credentials. No attacker was involved. The failure was a **trust-bootstrap race**: capability acceptance preceded trust-anchor convergence. The verifier's contract silently widened from "signed by a root I trust" to "signed by a root I can parse." The compounding factor: B's manifest had propagated to org A and reached quorum there, so B's gossip carried peer-attestation references from A. C's verifier treated "A attests B" as corroboration, but A's attestation was itself under the stale root R. The federation had a *mutually consistent island* of pre-rotation trust that looked like a majority. ## Condition of Validity The invariant that must hold before any capability grant is honored: > **A grant may be acted upon only if its terminal trust anchor is present in the receiving instance's locally-pinned, durably-committed root set — not merely parseable from the bundle, and not merely corroborated by peer references whose own anchors are unpinned.** Formally, define `pinned_roots` as the set loaded from durable state and confirmed flushed. Define `chain_anchor(grant)` as the terminal key of the grant's attestation chain. The guard is: ``` chain_anchor(grant) ∈ pinned_roots AND pin_store.is_durably_committed() ``` Peer corroboration (`A attests B`) is **not** admissible evidence for this predicate, because corroboration is transitive over the same unpinned anchor. It can only *raise suspicion*, never *substitute for* local pinning. This is the non-obvious part: in most distributed-trust systems, quorum is treated as sufficient. Here quorum is explicitly insufficient, because the quorum may share the same stale anchor, and the receiving instance's job is to validate against *its own* committed trust state, not against the federation's transient consensus. The condition fails to apply when the federation uses a synchronous trust registry that blocks capability exchange until anchors converge — in that case the race cannot occur and this guard is redundant (though harmless). ## Decision Boundary The decision boundary is not "trust vs. distrust" of the peer. It is **"anchor converged vs. anchor in-flight."** Three states must be distinguished, and most implementations collapse the third into the first: - **Converged:** `chain_anchor ∈ pinned_roots` and pin store committed → honor the grant. - **Diverged:** `chain_anchor ∉ pinned_roots` and pin store committed → reject, and emit a revocation-suspicion signal (the peer may be stale or hostile). - **In-flight:** pin store not yet durably committed → **must not honor, must not reject.** The correct action is to *defer*: queue the grant, block dependent tool calls, and re-evaluate after pin-store commit. Rejecting in-flight grants causes spurious federation partitions on every cold start; honoring them causes the race above. The boundary is sharp: any code path that maps "in-flight" to either "honor" or "reject" is wrong. It must map to "hold." This requires the capability-acceptance path to be *interruptible* and to have a bounded deferral budget — if pin-store commit does not arrive within the bootstrap deadline, the deferred grant escalates to a hard rejection and the instance reports itself as trust-degraded rather than silently proceeding. ## Operational Effect Implementing the three-state boundary changes the failure surface in measurable ways: - Cold-start tool-routing latency increases by the pin-store flush time (observed 1.8s in the trace above) for the first peer interaction, because grants are deferred until commit. This is correct and bounded; it is the cost of not acting on unverified authority. - The "mutually consistent island" attack surface closes: a stale-root peer cluster can no longer accumulate apparent quorum, because each receiving instance validates against its *own* committed pins, and an island of peers sharing an unpinned anchor produces deferrals, not acceptances. - Revocation propagation gains a clean semantics: a peer whose anchor is no longer pinned is `diverged`, and the instance emits a suspicion signal that feeds the federation's revocation gossip — which is exactly how the stale-root condition should be corrected. - The residual risk moves to the deferral budget: if the pin store never commits (durable-state corruption), the instance must fail closed and report trust-degraded, never fall through to permissive acceptance. The guard is cheap to implement and the invariant is one line, but the discipline it enforces — *never let capability acceptance outrun trust-anchor convergence, and never let peer quorum substitute for local pinning* — is the thing that prevents an honest federation from silently routing credentials through a rotated-out root. ```python from dataclasses import dataclass from enum import Enum class TrustBootstrapError(RuntimeError): """Raised when a capability grant is acted upon before trust-anchor convergence.""" class PinState(Enum): CONVERGED = "converged" DIVERGED = "diverged" IN_FLIGHT = "in_flight" @dataclass class CapabilityGrant: peer_id: str chain_anchor: str signature_valid: bool peer_corroboration: tuple[str, ...] = () @dataclass class PinStore: pinned_roots: frozenset[str] durably_committed: bool def classify_grant(grant: CapabilityGrant, store: PinStore) -> PinState: if not store.durably_committed: return PinState.IN_FLIGHT if grant.chain_anchor in store.pinned_roots: return PinState.CONVERGED return PinState.DIVERGED def accept_grant(grant: CapabilityGrant, store: PinStore, deferral_budget_exhausted: bool) -> bool: if not grant.signature_valid: raise TrustBootstrapError(f"grant from {grant.peer_id} failed signature check") state = classify_grant(grant, store) if state is PinState.IN_FLIGHT: if deferral_budget_exhausted: raise TrustBootstrapError( f"pin store did not commit within bootstrap deadline; " f"cannot evaluate grant from {grant.peer_id} (anchor={grant.chain_anchor})" ) return False # defer: do not honor, do not reject if state is PinState.DIVERGED: # Peer corroboration is explicitly NOT admissible here: it is transitive # over the same unpinned anchor and cannot substitute for local pinning. raise TrustBootstrapError( f"grant from {grant.peer_id} anchored at unpinned root {grant.chain_anchor}; " f"corroboration={grant.peer_corroboration} rejected as non-authoritative" ) return True # CONVERGED: anchor is locally pinned and durably committed ```