# Where must an instance refuse an inherited trust anchor during cross-org federation handoff, and what breaks when it does not **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent systems where an instance running under org A's policy envelope receives a task or sub-agent warrant whose trust anchor originates in org B, and where A's runtime performs anchor chaining rather than flat anchor replacement. Does not apply to single-org deployments, to stateless request/response tool calls with no warrant propagation, or to systems that pin a single root anchor per process lifetime. ## Core Distinction Federation literature treats trust anchors as a *set*: an instance is trusted if its presented credential chains to *any* anchor in the local trust store. The operational reality is that anchors are *scoped*: an anchor from org B authorizes B's policy envelope, not A's. The failure is not "untrusted anchor accepted" (a signature check catches that). The failure is **anchor scope inheritance**: when A's runtime chains a task through B's warrant and then re-issues an internal sub-warrant, the sub-warrant silently inherits B's anchor as its root, and every downstream instance in A's own fleet now evaluates A-internal authorization against B's policy predicates. The credential verifies. The scope is wrong. ## What Was Observed A three-org pipeline: org A (orchestrator, policy P_A) delegates a data-enrichment task to org B (specialist, policy P_B), which fans out to a sub-agent that calls back into org A's retrieval service. The B-issued warrant carried `anchor: b_root`, `scope: {data_class: public, retention: 30d}`. A's runtime, on receiving the sub-agent's callback, performed the standard chain: sub-agent credential → B warrant → `b_root` (present in A's federation trust store, correctly). Signature valid. It then minted an internal sub-warrant for the retrieval service with `parent: b_warrant`, and — because the code path reused the parent's root — stamped `anchor: b_root` on it. The retrieval service evaluated the sub-warrant against `b_root`'s policy predicates, not `P_A`'s. B's predicates did not include A's `data_class: internal` restriction. The retrieval service returned internal-class records to a sub-agent running under B's control plane, which logged them to B's 30-day retention store. No signature failed. No anchor was missing. The violation surfaced only in a post-hoc audit that compared the *effective policy* on each hop against the *originating org* of the data — a check that did not exist at runtime. The trigger condition is narrow and reproducible: it requires (1) a callback or re-entry from the foreign org's sub-agent into the local org's services, (2) a runtime that chains warrants by inheriting the parent's anchor rather than re-rooting at the local anchor, and (3) a policy predicate that exists in the local envelope but not the foreign one. Remove any of the three and the leak does not occur, which is why it evaded early testing — the fan-out test used a callback into B's services, not A's. ## Condition of Validity The invariant that must hold: **an instance may only mint a warrant whose anchor is the anchor of the policy envelope it is executing under, regardless of the anchor on the warrant it is responding to.** Anchor chaining is valid for *verifying the caller's authority to make the request*; it is never valid for *delegating the local instance's own authority*. These are two distinct operations that share a code path in most federation runtimes, and conflating them is the defect. Formally: let `W_in` be the inbound warrant with anchor `a_in` and scope `S_in`. Let the local instance execute under envelope `E_local` with anchor `a_local` and scope `S_local`. The outbound warrant `W_out` must satisfy `anchor(W_out) = a_local` and `scope(W_out) ⊆ S_local ∩ S_in`. The intersection term is the *negotiated* scope; the anchor term is *not* negotiable and must not be inherited. Any runtime that computes `anchor(W_out) = a_in` when `a_in ≠ a_local` is in violation, even when `a_in` is in the trust store. The boundary is sharp: this applies only when the local instance is *re-entered* by a foreign-anchored caller and then *originates* a new local call. It does not apply to pure forwarding (where the local instance relays the inbound warrant unchanged and mints nothing), and it does not apply to cases where `a_in = a_local` (intra-org chaining is safe and should inherit). ## Decision Boundary The runtime must refuse to inherit a foreign anchor at the moment of sub-warrant minting, and it must refuse *loudly* — a silent re-root at `a_local` is also wrong, because it would grant the foreign sub-agent A's full local authority, which is a privilege escalation in the opposite direction. The correct behavior is to halt and require an explicit policy-negotiation step: the federation layer must compute `S_local ∩ S_in`, and if the intersection is empty or the caller's requested operation falls outside it, the mint must fail with a distinguishable error so the orchestrator can re-plan rather than retry. Two guardrails bound this. First, a **mint-time anchor assertion**: the sub-warrant constructor takes the executing envelope as a required argument and asserts `anchor == envelope.anchor`, raising on mismatch before the warrant is signed. Second, a **hop-audit invariant**: every warrant records `origin_anchor` and `executing_anchor` as separate fields; any downstream consumer that sees them diverge knows the warrant crossed an org boundary and must apply the *stricter* of the two scopes. The audit that caught the original leak is exactly this check, promoted from post-hoc to a runtime field. ## Operational Effect With the assertion in place, the leak converts from a silent data-class violation into a hard failure at the mint site, with the offending `a_in`/`a_local` pair in the trace. The orchestrator sees a `ForeignAnchorInheritanceError`, re-negotiates scope with B (in the observed case, B's sub-agent was granted a narrowed warrant scoped to `data_class: public`), and re-issues. Latency cost is one negotiation round-trip on the first cross-org re-entry; steady-state cost is zero because the negotiated scope is cached per (org-pair, operation) tuple. The cost of *not* having it is unbounded: the leak is invisible to signature verification, invisible to anchor-presence checks, and only detectable by comparing effective policy against data provenance — which is precisely the check most federation runtimes omit because it requires knowing which org *originated* the data, not just which org *signed* the warrant. ```python from dataclasses import dataclass class ForeignAnchorInheritanceError(RuntimeError): """Raised when a sub-warrant would inherit a foreign trust anchor.""" @dataclass(frozen=True) class Envelope: org: str anchor: str scope: frozenset @dataclass(frozen=True) class Warrant: anchor: str origin_anchor: str executing_anchor: str scope: frozenset def mint_sub_warrant(inbound: Warrant, envelope: Envelope, requested: frozenset) -> Warrant: # The inbound warrant's anchor authorizes the CALLER, not us. # We may only mint under our own envelope's anchor. if inbound.anchor != envelope.anchor: # Foreign-anchored caller re-entering local services: must re-root, # and must intersect scope. Refuse silent inheritance. negotiated = requested & envelope.scope & inbound.scope if not negotiated: raise ForeignAnchorInheritanceError( f"inbound anchor {inbound.anchor!r} (org scope) has no " f"intersection with local envelope {envelope.anchor!r}; " f"requested={sorted(requested)} local={sorted(envelope.scope)} " f"inbound={sorted(inbound.scope)}" ) return Warrant( anchor=envelope.anchor, # re-rooted, never inherited origin_anchor=inbound.origin_anchor, executing_anchor=envelope.anchor, scope=negotiated, ) # Same-anchor chaining is safe: inherit, but still intersect scope. negotiated = requested & envelope.scope & inbound.scope if not negotiated: raise ForeignAnchorInheritanceError( f"intra-org scope intersection empty: requested={sorted(requested)}" ) return Warrant( anchor=envelope.anchor, origin_anchor=inbound.origin_anchor, executing_anchor=envelope.anchor, scope=negotiated, ) def audit_hop(w: Warrant) -> None: # Downstream consumers must see divergence and apply the stricter scope. if w.origin_anchor != w.executing_anchor: # Cross-org boundary crossed; caller must have already intersected. if w.scope is None: raise ForeignAnchorInheritanceError( f"cross-org warrant {w.origin_anchor!r}->{w.executing_anchor!r} " f"carries no negotiated scope" ) ```