# Which invariants prevent foreign-org policy translation from silently widening delegated capability scope in federated agent handoffs **Date of Record:** 2026 December 2 **Scope:** Applies to cross-organization agent federations where a calling agent (Org A) delegates a task to a remote agent (Org B) under a trust anchor and a translated policy document. Covers capability-scope widening at the translation boundary; does not cover intra-org RBAC, transport-level mTLS failures, or prompt-injection inside a single trust domain. ## Core Distinction The failure is not authentication failure and not authorization denial. Both orgs authenticate correctly, the trust anchor validates, and Org B's policy engine returns "permit." The failure is that the *translated* policy is a superset of the *requested* policy, and no party in the chain compares the two. Policy translation is treated as a rendering step (map foreign terms into local terms), when it is actually a lattice-morphism problem: the translation function must be *scope-narrowing or scope-preserving*, never scope-widening, with respect to the capability partial order. Concretely: Org A's agent holds `read:customer_records[region=EU]`. Org B's policy vocabulary has no `region` qualifier on `customer_records`; its nearest local capability is `read:customer_records`. The translator maps upward to the coarser capability because it is the only match. Org B's engine now permits reads of *all* customers, and Org A's agent — reasoning over a tool schema that says "you may read customer records" — issues a query without the region filter. The widening happened at translation, was invisible to both policy engines, and was executed by a probabilistic planner that never knew the qualifier existed. ## What Was Observed Trace from a federated deployment, three orgs (A caller, B resource-holder, C auditor), trust anchored via signed capability warrants (macaroon-style, third-party caveats). 1. Org A's planner emits a delegation request: `delegate(task="summarize churn for EU cohort", warrant=W_A)` where `W_A` carries caveat `cap=read:customer_records`, `region=EU`, `exp=+15m`. 2. Org A's federation gateway translates `W_A` into Org B's policy dialect. The translator is a lookup table keyed on capability name. `read:customer_records` exists in B's dialect; `region=EU` has no field in B's schema, so it is dropped and logged at DEBUG. 3. Org B's PDP evaluates the translated request against its policy: `permit(read:customer_records)`. No region predicate exists to evaluate. Permit returned. 4. Org B's agent receives the task text ("summarize churn for EU cohort") plus a tool schema advertising `query_customers(limit, since)` — no region parameter. The agent, optimizing for task completion under token budget, calls `query_customers(limit=50000, since=-90d)`. 5. Result set includes non-EU records. Org B's agent summarizes all of them. The summary is returned to Org A and written to A's episodic memory. 6. Org C's auditor replays the warrant chain. `W_A`'s caveat `region=EU` is present and valid. The translated policy at B has no corresponding predicate. The audit finds a gap between *warrant caveats* and *enforced predicates* — but only after the data crossed the boundary. The non-obvious part: the translator behaved correctly per its spec. Dropping an unrepresentable qualifier is standard "best-effort mapping." The bug is architectural: **an unrepresentable caveat must be a hard failure, not a dropped field.** The invariant that was violated is that the set of caveats in the inbound warrant must be a *subset-checkable* relation against the predicates the remote PDP can actually enforce, and any caveat with no enforcing predicate must block the handoff. ## Condition of Validity The invariant holds — and the guardrail is required — precisely when all of the following are true: - The trust anchor is *coarse* (org-level identity, not per-capability), so the warrant's fine-grained caveats are the only carrier of scope restriction. - The two policy dialects are *not* in a known refinement relation; i.e., there is no pre-established proof that B's vocabulary can express every qualifier A can emit. - The delegated agent's planner is *probabilistic and schema-driven*: it will not infer a restriction that is absent from its tool schema. A restriction that exists only in prose in the task text is not enforced. When any of these is false, the failure mode changes. If the anchor is per-capability (B issues A a distinct token per capability), widening is bounded by token issuance. If the dialects are formally refined (B's schema is a proven superset of A's qualifier space), translation cannot drop information. If the planner is a deterministic rule engine reading the warrant directly, prose restrictions are enforced. The dangerous quadrant is coarse anchor + unrefined dialects + probabilistic planner — which is the default configuration of most federations built on OAuth-style org trust plus an LLM planner. ## Decision Boundary The boundary is between *translation as mapping* and *translation as proof obligation*. The rule: > A caveat that the remote PDP cannot evaluate must be treated as unsatisfiable, not as absent. The handoff is permitted only if, for every caveat `c` in the inbound warrant, there exists an enforced predicate `p` in the remote policy such that `p ⟹ c` (p is at least as restrictive as c). If no such `p` exists, the handoff fails closed. This is a subset check on the capability lattice, not a name match. `read:customer_records[region=EU]` is a *refinement* of `read:customer_records`; the remote predicate `read:customer_records` does **not** imply the EU restriction, so the check fails and the handoff is rejected — correctly, because B genuinely cannot enforce EU-only reads. The fix is not to widen A's request but to either (a) negotiate a finer capability at B (add a region predicate to B's PDP), or (b) have A pre-filter and pass only EU record IDs, so the delegated capability is `read:customer_records[id∈S]` where S is enumerated by A and the restriction is carried in the *data*, not the policy. The guardrail must sit at the federation gateway, before the remote PDP is consulted, and must operate on the *warrant caveats* (the authoritative restriction set), not on the translated policy (the lossy rendering). Order matters: translate, then verify `enforced ⟹ warranted` for each caveat, then permit. Any architecture that verifies after translation is checking the wrong artifact. ## Operational Effect Without the invariant: scope widening is silent, succeeds, and is discovered only by audit replay after data egress. The probabilistic planner amplifies it because it fills the schema gap with the broadest available call. Episodic memory at the caller then persists the widened result, so the contamination outlives the warrant's 15-minute expiry — a continuity failure layered on an authorization failure. Retranslation on retry does not help; the caveat is gone from the translated artifact and no downstream step can recover it. With the invariant enforced at the gateway: the EU-cohort delegation fails closed at step 2, Org A's planner receives a structured `UnenforceableCaveat` rejection naming `region=EU`, and the orchestrator falls back to the data-enumeration path (pass record IDs) or escalates to a capability-negotiation handshake with B. The failure becomes a *negotiation event*, which is recoverable, instead of a *data egress event*, which is not. The auditor's replay now finds `enforced ⟹ warranted` for every caveat in every accepted handoff, so the audit is a proof of non-widening rather than a search for gaps. The general lesson for federated agents: trust anchors authenticate *who*, warrants constrain *what*, and policy translation is the only place the two meet. Treat the translator as a lossy codec and gate on the pre-translation caveat set, or the lattice will widen under you and no engine in the chain will report it. ```python from dataclasses import dataclass, field from typing import Callable class UnenforceableCaveat(RuntimeError): """Raised when an inbound warrant caveat has no enforcing predicate at the remote PDP.""" pass @dataclass(frozen=True) class Caveat: key: str value: str @dataclass class Warrant: subject: str capability: str caveats: list[Caveat] = field(default_factory=list) @dataclass class RemotePolicy: # Maps a local capability to the set of qualifier keys its PDP can actually evaluate. enforceable: dict[str, set[str]] def translate_and_gate( warrant: Warrant, remote: RemotePolicy, translator: Callable[[Warrant], dict], ) -> dict: """ Translate a foreign warrant into the remote dialect, but fail closed if any caveat in the warrant cannot be enforced by the remote PDP. Invariant: for every caveat c in warrant.caveats, the remote policy must have an enforceable predicate on c.key for the translated capability. Otherwise the translation would silently drop the restriction and widen scope. """ translated = translator(warrant) # lossy rendering; may drop qualifiers cap = translated.get("capability", warrant.capability) enforceable_keys = remote.enforceable.get(cap, set()) for caveat in warrant.caveats: if caveat.key not in enforceable_keys: # Do NOT proceed. The remote cannot enforce this restriction, so the # translated policy would be a strict superset of the requested scope. raise UnenforceableCaveat( f"caveat {caveat.key}={caveat.value!r} on capability {cap!r} " f"has no enforcing predicate at remote PDP; refusing handoff " f"to prevent scope widening (subject={warrant.subject})" ) return translated # --- demonstration --- remote_b = RemotePolicy(enforceable={"read:customer_records": {"since", "limit"}}) w = Warrant( subject="orgA/planner", capability="read:customer_records", caveats=[Caveat("region", "EU"), Caveat("since", "-90d")], ) def naive_translator(warrant: Warrant) -> dict: # Standard best-effort mapping: drop qualifiers the remote dialect lacks. return {"capability": warrant.capability, "qualifiers": {"since": "-90d"}} try: translate_and_gate(w, remote_b, naive_translator) except UnenforceableCaveat as e: print(f"handoff blocked: {e}") # orchestrator falls back to data-enumeration: pass EU record IDs explicitly, # so the region restriction travels in the payload, not the policy. ```