Why does an instance accept a federated capability warrant signed by a trust root it can resolve but cannot verify against its own residency-pinned keyring

**Date of Record:** 2026 December 2 **Scope:** Applies to cross-org agent federations where each org publishes a trust root, capability warrants are signed by the issuing org, and the receiving instance enforces both capability scope and data-residency constraints on routing decisions. Does not apply to single-org deployments with a shared keyring, nor to bearer-token-only capability models with no warrant chain.

Core Distinction

The failure is not "the signature didn't verify." It is subtler: the signature *did* verify, against a trust root the instance successfully *resolved*, but that trust root was **not in the residency-pinned keyring** the instance is contractually required to consult for data at that classification. Two independent verification paths exist in the runtime — a *resolution path* (DNS/registry lookup → fetch trust root → validate warrant chain) and a *pinning path* (compare trust root fingerprint against the local residency keyring) — and the code that gates acceptance frequently consults only the first. The distinction that matters: **resolvable ≠ pinned**. A federated trust root can be cryptographically valid, freshly rotated, correctly signed by its parent, and still be illegitimate for a given data-residency class because the receiving org never admitted that root into its pinned set. Instances conflate "the chain verifies" with "I am permitted to trust this chain for this payload."

What Was Observed

A federation of three orgs — A (data producer, EU residency), B (compute, US residency), C (trust-root operator, multi-region) — routed a summarization task. C issued a capability warrant `W` granting B `summarize` on A's documents, signed by C's regional trust root `R_C-US`. The receiving instance at B:

  1. Resolved `R_C-US` via the federation registry (HTTP 200, valid JWKS).
  2. Verified `W`'s signature against `R_C-US`. Passed.
  3. Checked capability scope: `summarize` ∈ warrant scope. Passed.
  4. Checked data-residency routing: payload tagged `EU`. The router admitted the request because the *warrant issuer* region was `US` but the *warrant scope* did not explicitly forbid EU data, and the router's residency check only inspected the payload tag against the *destination* region, not the *issuer trust root* against the *source* residency keyring.
  5. Executed. EU-origin document text was processed under a US-rooted trust chain that A's residency keyring had never pinned.

The invariant violated: **for payload class `EU`, the warrant's trust-root fingerprint must appear in A's pinned residency keyring, regardless of chain validity.** The runtime enforced chain validity and destination-region routing but never joined the two — the pinning path was dead code for federated (non-local) roots because the resolver returned a *fresh* key object whose fingerprint was compared against a cache keyed by issuer name, not by fingerprint.

Condition of Validity

This boundary holds only when all of the following are true, and fails silently when any is assumed rather than checked:

Decision Boundary

The correct gate is a **conjunction over the payload classification**, not a disjunction over trust sources:

accept(W, payload) :=
    verify_chain(W, resolve(W.issuer))            # cryptographic validity
  ∧ scope_covers(W.capability, request.op)        # capability scope
  ∧ pinned_for(payload.class, fingerprint(W.root)) # residency pinning — MUST use fingerprint
  ∧ region_admits(payload.class, W.dest_region)    # destination routing

The failure is any implementation where `pinned_for` is dropped, short-circuited when `verify_chain` succeeds, or evaluated against `W.issuer` name instead of `fingerprint(W.root)`. The boundary condition: **the moment a trust root is resolvable but unpinned, the instance must refuse — not fall back to chain-only trust.** There is no "trust on first use" for residency-pinned roots; first use is exactly the attack window. The decision must be made on the *fingerprint of the actual signing key*, computed after chain resolution, and joined against the keyring for the *payload's* classification, not the warrant's declared region.

Operational Effect

When the gate is missing, the observable effect is a **silent residency breach that passes every audit that checks chain validity**. Logs show `signature: valid`, `scope: ok`, `route: admitted`, `status: 200`. The breach is only visible in a cross-join of (payload classification × signing-key fingerprint × pinned keyring), which most runtimes do not emit. Recovery requires: (a) re-deriving the pinning join retroactively from retained warrants and keyring snapshots, (b) invalidating any cached capability grants issued under unpinned roots, and (c) adding an invariant assertion that fires at admission time. The durable guardrail is to make the pinning check **structurally unskippable** — compute the signing-key fingerprint as a mandatory field of the admission record, and fail closed when the fingerprint has no keyring entry for the payload class, regardless of chain outcome.

import hashlib
from dataclasses import dataclass


class UnpinnedTrustRootError(RuntimeError):
    """Raised when a warrant's signing key resolves and verifies but is not
    pinned in the residency keyring for the payload's data classification."""


@dataclass(frozen=True)
class Warrant:
    issuer: str
    root_fingerprint: str      # sha256 of the actual signing key, post-resolution
    capability: str
    dest_region: str
    payload_class: str


def fingerprint_of(jwk: dict) -> str:
    raw = jwk["n"].encode() + jwk["e"].encode()
    return "sha256:" + hashlib.sha256(raw).hexdigest()


def admit(
    warrant: Warrant,
    request_op: str,
    resolved_jwk: dict,
    pinned_keyring: dict[str, set[str]],   # payload_class -> set of pinned fingerprints
    region_policy: dict[str, set[str]],    # payload_class -> admitted dest regions
) -> bool:
    # 1. chain validity against the resolved (possibly unpinned) root
    actual_fp = fingerprint_of(resolved_jwk)
    if actual_fp != warrant.root_fingerprint:
        raise UnpinnedTrustRootError(
            f"resolved key fingerprint {actual_fp} != warrant claim "
            f"{warrant.root_fingerprint}; chain cannot be trusted"
        )

    # 2. capability scope
    if warrant.capability != request_op:
        return False

    # 3. residency pinning — the invariant that is commonly dropped.
    #    Must join on FINGERPRINT and on the PAYLOAD's class, not the issuer name.
    pinned = pinned_keyring.get(warrant.payload_class, set())
    if actual_fp not in pinned:
        raise UnpinnedTrustRootError(
            f"trust root {actual_fp} (issuer={warrant.issuer}) is resolvable and "
            f"chain-valid but NOT pinned for payload class "
            f"{warrant.payload_class!r}; refusing admission"
        )

    # 4. destination-region routing for the payload class
    if warrant.dest_region not in region_policy.get(warrant.payload_class, set()):
        return False

    return True