# Which invariants prevent cross-org agent federation trust brokers from silently widening scope during policy translation between heterogeneous authorization models **Date of Record:** 2026 December 3 **Scope:** Applies to federation trust brokers that translate capability grants between heterogeneous authorization models (e.g., RBAC→ABAC, OAuth scopes→ReBAC, macaroon caveats→policy-engine predicates) on behalf of autonomous agents crossing organizational boundaries. Does not apply to single-org delegation, or to brokers that merely relay opaque tokens without semantic interpretation. ## Core Distinction A trust broker is not a token exchange service; it is a *semantic compiler* from one authorization language into another. The failure that matters is not rejection — rejection is loud and safe. The failure that matters is **silent scope widening**: the translated grant admits a set of (principal, resource, action) triples that is a strict superset of the source grant's intent, while the broker reports success and the downstream agent proceeds believing it holds an equivalent warrant. The non-obvious part: widening rarely comes from a bug in any single translation rule. It comes from **loss of the negative space**. Source models encode denials implicitly (RBAC: absence of a role; OAuth: absence of a scope; ReBAC: no relation tuple). Target models frequently cannot express absence with the same granularity, so the translator must *choose* a default for the unmentioned region of the policy space. Almost every broker defaults that region to `permit` because `deny` breaks legitimate traffic and generates support tickets. The invariant that prevents this is not "translate correctly" — it is **monotonic non-widening under a total order on the target lattice**, enforced by a witness the broker cannot fabricate. ## What Was Observed A federation broker bridging an org-A RBAC source (`role:analyst` → resources tagged `dataset:public`) into an org-B ABAC target (predicates over `classification`, `tenant`, `purpose`). The source grant for agent `A-77` was: ``` grant: { role: analyst, resources: [dataset:public], actions: [read, summarize] } ``` The broker's translation rule mapped `role:analyst` to the ABAC predicate `classification in {public, internal}` — a defensible mapping authored months earlier when org-B's `internal` tier contained only org-A-public-equivalent data. Org-B then added a `internal`-classified dataset that org-A would never have released. The broker had no mechanism to notice: the *rule* was unchanged, the *grant* was unchanged, but the *denotation* of `internal` had drifted. Second observation, same broker, different path: an action not present in the source (`export`) was absent from the translated grant's `actions` list. The target policy engine treated an absent action list as "all actions permitted for the matched principal," because that was the ergonomic default in its DSL. The agent `A-77` then invoked `export` on a `public` dataset — within classification, outside source intent. The broker logged `translation: ok, fidelity: high`. Both failures share a signature: **the broker validated that every source-permitted triple was target-permitted (soundness of the positive region) but never validated that every target-permitted triple was source-permitted (tightness of the negative region).** Positive-region checks pass trivially when the target is more permissive. ## Condition of Validity Translation is only sound when the broker can produce, for each translated grant `T` derived from source grant `S`, a **non-widening witness**: a machine-checkable proof that `denote_B(T) ⊆ denote_A(S)` under the *current* denotations of both models' symbols. This requires three conditions, all of which must hold simultaneously: 1. **Symbol denotation is pinned to a versioned snapshot.** The mapping `internal ↦ {public, internal}` is valid only against the org-B taxonomy snapshot it was authored for. Any taxonomy mutation must invalidate cached translations. Without a content-addressed taxonomy hash in the witness, drift is undetectable. 2. **Absence is explicit, not defaulted.** The target grant must carry an explicit `actions` set, even if empty, and the target engine must treat absence as `deny`, not `permit`. A broker that emits a grant omitting a field has not translated; it has delegated the default to the consumer. 3. **The witness is computed against the target's evaluator, not the broker's model of it.** The broker must submit a set of *negative probes* — (principal, resource, action) triples that the source denies — to the target policy engine and assert all return `deny`. If any negative probe returns `permit`, the translation is rejected, not adjusted. The failure mode above is *valid* (i.e., the broker is permitted to proceed) only when all three hold. In the observed incident, condition 1 failed (taxonomy drift) and condition 2 failed (implicit action default). Condition 3, had it been implemented, would have caught both — the negative probe `(A-77, internal-dataset-X, read)` would have returned `permit` against a source that denies it. ## Decision Boundary The broker sits at a fork on every translation: - **Reject-and-escalate** when the non-widening witness cannot be produced. Cost: legitimate cross-org agent workflows stall pending human reconciliation. This is the correct default for any grant touching `export`, `write`, `delegate`, or `admin` actions, or any resource whose classification symbol has mutated since the mapping was authored. - **Proceed-with-narrowing** when the witness fails only on positive-region coverage (source permits more than target) — this is safe; the agent gets less than it asked for. The broker may proceed and annotate the grant with a `narrowed: true` flag so the agent's planner can re-plan rather than assume full capability. - **Never proceed on negative-region failure.** A target that permits what the source denies is not a translation; it is a privilege escalation laundered through a trust boundary. There is no "annotate and continue" path here. The boundary is therefore asymmetric: **under-permission is a planning problem; over-permission is a security incident.** Brokers that treat both symmetrically (e.g., "log a warning and continue") have mis-modeled the cost function and will, under production load, converge to the permissive branch because it is the one that keeps agents moving. ## Operational Effect Once the non-widening witness with negative probes is enforced, three second-order effects appear that operators must plan for: 1. **Translation latency rises by the cost of N negative probes per grant**, where N must cover the boundary of the source's deny set — not a sample. In practice brokers cap N and *reject* grants whose deny-set boundary cannot be covered within the cap, rather than sampling and hoping. This converts a silent-widening risk into an explicit capacity limit on federation. 2. **Taxonomy mutation becomes a federation-wide invalidation event.** When org-B mutates `internal`, every cached translation referencing that symbol must be re-witnessed. Brokers that pin mappings to a taxonomy hash get a clean invalidation wave; brokers that pin to a timestamp get a silent gap. The hash is load-bearing. 3. **Agents must handle `narrowed: true` grants as first-class outcomes.** A planner that assumes its requested capability set is delivered will loop or, worse, attempt workarounds (alternate tool paths, delegation to a peer) that route around the broker entirely. The `narrowed` flag must be surfaced into the agent's observation, not buried in broker logs. The invariant, stated compactly: **a federation broker may only emit a grant whose denotation is provably a subset of the source grant's denotation under current symbol meanings, and the proof must include negative probes against the target evaluator.** Everything else — positive-region checks, fidelity scores, "high confidence" logs — is theater that fails open. ```python from dataclasses import dataclass, field from typing import Callable, FrozenSet, Hashable Triple = tuple[Hashable, Hashable, Hashable] # (principal, resource, action) class ScopeWideningError(RuntimeError): """Raised when a translated grant admits triples the source denies.""" class TaxonomyDriftError(ScopeWideningError): """Raised when a symbol's denotation changed since the mapping was authored.""" @dataclass(frozen=True) class Grant: principal: Hashable resources: FrozenSet[Hashable] actions: FrozenSet[Hashable] # must be explicit; empty set means no actions taxonomy_hash: str @dataclass class FederationBroker: source_denies: Callable[[Triple], bool] target_permits: Callable[[Triple], bool] current_taxonomy_hash: str max_negative_probes: int = 256 _cache: dict = field(default_factory=dict) def translate(self, source: Grant, mapping: Callable[[Grant], Grant]) -> Grant: target = mapping(source) # Condition 1: taxonomy must be pinned to current snapshot. if target.taxonomy_hash != self.current_taxonomy_hash: raise TaxonomyDriftError( f"mapping authored against taxonomy {target.taxonomy_hash!r}, " f"current is {self.current_taxonomy_hash!r}; re-witness required" ) # Condition 2: absence of actions is not a translation, it is a delegation. if target.actions is None: raise ScopeWideningError( "target grant omitted actions field; implicit-permit default is unsafe" ) # Condition 3: negative probes against the *target evaluator*. probes = self._enumerate_deny_boundary(source) if len(probes) > self.max_negative_probes: raise ScopeWideningError( f"deny boundary has {len(probes)} probes > cap " f"{self.max_negative_probes}; cannot prove non-widening, rejecting" ) for triple in probes: if self.target_permits(triple): raise ScopeWideningError( f"translated grant permits {triple!r} which source denies; " f"widening detected, refusing to emit" ) return target def _enumerate_deny_boundary(self, source: Grant) -> list[Triple]: # Enumerate the *complement* of the source grant over the declared # resource/action universe. In production this is driven by the # target's resource index, not a blind cross-product. probes: list[Triple] = [] for r in source.resources: for a in ("export", "write", "delegate", "admin", "read", "summarize"): if a not in source.actions: probes.append((source.principal, r, a)) return probes ```