# Why does an instance lose policy authority when a federated trust broker translates scopes across org boundaries? **Date of Record:** 2026 November 27 **Scope:** Applies to cross-organizational agent federation where a broker instance receives a signed policy/warrant from a foreign org, translates its scopes into local semantics, and issues a derived warrant for downstream tool execution. Does not cover single-org RBAC, static API keys, or human-to-human OAuth delegation without agent intermediaries. ## Core Distinction A trust broker does not forward authority; it *reconstructs* it. The failure mode here is not signature forgery or token expiry. It is **semantic scope collapse during policy translation**: the broker maps a foreign scope label (e.g., `orgB:data.read.pii`) to the nearest local scope (`local:data.read`), silently dropping the qualifier that carried the actual restriction. The warrant remains cryptographically valid, the chain verifies, and the agent proceeds — but the authority it now holds is strictly broader than the authority granted. The invariant that breaks is **monotonic narrowing**: every derived warrant must be a subset of its parent. The broker violates it because scope labels are strings, and string equality across orgs is not semantic equality. ## What Was Observed An agent instance `A1` (Org A) requests a document summarization task from a federated peer agent `B1` (Org B). `B1` holds a foreign warrant `W_foreign` minted by Org A's issuer with scope `doc.summarize:redacted_only`. The broker on `B1`'s side performs translation via a static mapping table: ``` "doc.summarize:redacted_only" -> "summarize" ``` The local policy engine interprets `summarize` as unqualified — full-document access. The broker mints `W_local = derive(W_foreign, scopes=["summarize"])`. The signature chain validates: `issuer_A -> broker_B -> B1`. `B1` then calls a retrieval tool with `W_local`, fetches the unredacted source, and the summarizer emits verbatim PII into the response. Trace of the state transition: 1. `W_foreign.scopes = ["doc.summarize:redacted_only"]` — parent authority, qualifier intact. 2. Broker translation step: qualifier parsed as opaque suffix, matched by prefix, discarded. 3. `W_local.scopes = ["summarize"]` — derived authority, qualifier gone. 4. Local policy check: `summarize` has no attached constraint → allow all. 5. Tool call executes against unredacted corpus. 6. Response egresses to Org A with PII embedded in the summary. The failure is invisible to every check the broker runs: signature verification passes, issuer trust passes, expiry passes, scope *presence* passes. Only scope *containment* fails, and no component was checking containment because the broker trusted its own mapping table as the definition of equivalence. ## Condition of Validity The narrowing invariant holds only when the broker can prove, for every derived scope `s_local`, that there exists a parent scope `s_foreign` with `s_local ⊆ s_foreign` under a **shared formal semantics**, not a string map. This requires: - A machine-readable scope algebra where qualifiers are structured attributes (`{action: "summarize", constraint: {redaction: "required"}}`), not string suffixes. - The translation function to be *constraint-preserving*: it may drop capabilities, never drop constraints. Dropping a constraint is widening; the broker must reject rather than widen. - A containment check at mint time: `assert derived_attrs ⊇ parent_attrs` on every constraint dimension. This is the guardrail. It must be a hard failure, not a warning, because a widened warrant is indistinguishable from a legitimate one downstream. The failure does not occur when the mapping table is complete and lossless. It occurs precisely when a foreign scope carries a constraint dimension the local schema has no slot for — the broker's honest choice is to reject the translation, but the common implementation drops the unknown dimension to keep the federation "working." ## Decision Boundary The broker must distinguish two cases at translation time: - **Constraint the local schema can represent** → translate structurally, preserve the attribute, proceed. - **Constraint the local schema cannot represent** (unknown qualifier, unsupported dimension, ambiguous prefix match) → **deny translation and fail the warrant derivation.** Never map to the unqualified local scope. The boundary is: *unknown is not equivalent to unconstrained.* A broker that treats an unrecognized qualifier as "no qualifier" has converted a least-privilege grant into a full grant. The correct behavior is to return a translation failure to the requesting agent, which must then either request a narrower foreign scope it can represent or escalate. The invariant to enforce at the mint boundary: `derived.constraints ⊇ parent.constraints` for every constraint key present in the parent; any key the broker cannot map is a hard deny. ## Operational Effect Downstream, the widened warrant is a *persistent* authority artifact. It can be re-delegated, cached, and replayed across the federation, so a single translation error propagates authority that no issuer ever granted. Auditors replaying the chain see a valid signature path and a scope set that *looks* like a subset by label; only attribute-level containment analysis reveals the widening. The operational consequence is that cross-org federation audit must reconstruct scope semantics from the issuer's original schema, not from the broker's mapping table, and must run containment checks on the *attribute* representation. Brokers that cannot do this should be treated as trust-boundary crossings requiring out-of-band human review, not as automated translators. ```python from dataclasses import dataclass, field from typing import Any class ScopeWideningError(RuntimeError): """Raised when a broker's translation would grant authority broader than the parent warrant.""" pass @dataclass(frozen=True) class Scope: action: str constraints: dict[str, Any] = field(default_factory=dict) def translate_scope(parent: Scope, mapping: dict[str, str]) -> Scope: """Translate a foreign scope to local semantics, preserving all constraint dimensions. Raises ScopeWideningError if any parent constraint dimension cannot be represented locally. Unknown constraints are never dropped. """ local_action = mapping.get(parent.action) if local_action is None: # Unmapped action: deny rather than pass through unqualified. raise ScopeWideningError( f"no translation for action {parent.action!r}; refusing to widen" ) local_constraints: dict[str, Any] = {} for key, value in parent.constraints.items(): if key not in _LOCAL_CONSTRAINT_SCHEMA: # The parent carries a constraint the local schema cannot express. # Mapping to the unqualified local scope would widen authority. raise ScopeWideningError( f"constraint dimension {key!r} from parent scope {parent.action!r} " f"has no local representation; translation would widen authority" ) local_constraints[key] = value derived = Scope(action=local_action, constraints=local_constraints) _assert_containment(parent, derived) return derived _LOCAL_CONSTRAINT_SCHEMA = {"redaction", "tenant", "ttl_seconds"} def _assert_containment(parent: Scope, derived: Scope) -> None: """Hard invariant: derived authority must be a subset of parent authority.""" for key, parent_val in parent.constraints.items(): if key not in derived.constraints: raise ScopeWideningError( f"derived scope dropped constraint {key!r} present in parent" ) if derived.constraints[key] != parent_val: raise ScopeWideningError( f"derived constraint {key!r}={derived.constraints[key]!r} " f"does not match parent {parent_val!r}" ) # Reproduction of the observed failure: parent = Scope(action="doc.summarize", constraints={"redaction": "required"}) mapping = {"doc.summarize": "summarize"} try: translate_scope(parent, mapping) # redaction is representable -> ok except ScopeWideningError as e: raise AssertionError(f"unexpected rejection: {e}") # The dangerous case: parent carries a dimension the local schema lacks. poisoned = Scope(action="doc.summarize", constraints={"pii_egress": "deny"}) try: translate_scope(poisoned, mapping) except ScopeWideningError: pass # correct: broker denies instead of widening to unqualified "summarize" else: raise ScopeWideningError("broker widened authority by dropping pii_egress") ```