# What happens when an instance accepts a federated peer's translated policy without re-validating its data-boundary predicates **Date of Record:** 2026 November 23 **Scope:** Applies to cross-org agent federations where a local orchestrator negotiates a trust handshake with a foreign-org peer, receives a *translated* policy document (foreign policy language → local policy language), and then admits that peer's tool calls or sub-agent delegations under the translated policy. Does not apply to single-org deployments or to federations where both sides share one policy engine and one canonical schema. ## Core Distinction There are two things a federation negotiator can verify about an inbound peer: **identity/trust** (is this peer the org it claims to be, and is it authorized to negotiate at all) and **policy semantic equivalence** (does the foreign policy, once translated into my local policy language, admit and deny exactly the same *data-boundary* operations that the foreign org intended). The first is a cryptographic and reputation problem and is well-handled by warrant/signature propagation. The second is a *translation* problem and is routinely mishandled, because the translator is a probabilistic or rule-based component whose output is a syntactically valid local policy that is *not semantically equivalent* to the source. The failure is not that the peer lies; it is that the translation is lossy in a direction that only matters at the data boundary — and the local instance trusts the translated artifact because it arrived inside a verified trust envelope. Conflating "the envelope verified" with "the enclosed policy is equivalent" is the boundary failure this record covers. Trust negotiation succeeding does not imply policy translation succeeded; they are orthogonal invariants that are usually collapsed into one handshake step. ## What Was Observed A local orchestrator (Org A) federates with a peer (Org B) to answer a joint analytical query. Org B's exported policy, in its own DSL, contains a predicate roughly of the form: ``` allow read on dataset:customer_records where requester.purpose ∈ {analytics} and result.max_rows ≤ 500 and result.columns ⊄ {ssn, dob, account_no} ``` Org B's translator (an LLM-backed policy compiler) emits into Org A's policy language a rule that preserves the purpose and row-count clauses but *drops the column-exclusion clause*, because Org A's policy language expresses column restrictions as a separate `mask` directive rather than an inline `columns ⊄` predicate, and the translator had no mapping for the negation form. The translated policy is well-formed. It validates against Org A's schema. It is signed by Org B and arrives inside a valid warrant chain, so Org A's trust gate admits it. Org A's local agent then executes a read against `customer_records`, returns 480 rows (under the 500 cap, purpose `analytics`), and the projection includes `ssn` and `dob`. The row-count and purpose predicates — the two the translator preserved — are satisfied. The dropped predicate is the one that mattered at the data boundary. Two diagnostic signatures recur: 1. **Predicate-count drift.** The translated policy has fewer enforceable predicates than the source. Not "different" — *fewer*. The translator silently elides clauses it cannot map rather than failing closed. 2. **Negation and set-complement loss.** The clauses most likely to be dropped are exactly those expressed as exclusions (`⊄`, `not in`, `except`), because many target policy languages model exclusions imperatively (masking directives) rather than declaratively (predicates), and translators trained or prompted on the declarative surface do not synthesize the imperative form. The peer's own enforcement, when the same query is run locally at Org B, denies or masks the columns. The data-boundary divergence is *created by the translation*, not present in either org's native policy. ## Condition of Validity The "trust the translated policy" shortcut is only valid when the translation is a **certified refinement**: the translated local policy must be *at least as restrictive* as the source on every data-boundary operation. Formally, for every operation `op`, `translated(op) = deny` whenever `source(op) = deny`. This is a one-directional refinement check (translation may be stricter, never looser), and it is checkable without knowing the source semantics in full — you only need to prove the target never *permits* an operation the source would forbid. The shortcut is **invalid** whenever any of the following hold, and all three held in the observed case: - The translator is a probabilistic model with no refinement proof obligation (it optimizes for a plausible-looking policy, not for conservatism). - The source policy uses constructs (negation, set complement, cardinality bounds on projections) that the target language expresses through a different syntactic mechanism, so no structural diff exists. - The trust envelope and the policy payload are validated by the same gate, so a valid signature is read as evidence of valid translation. When any of these hold, the local instance is enforcing a policy that is a *lossy projection* of the peer's intent, and the data boundary is defined by the projection, not by the intent. ## Decision Boundary The boundary is between **admitting the peer's translated policy as-is** and **requiring a refinement certificate or re-deriving the boundary locally**. - Admit as-is only if the translator emits a refinement proof (or a machine-checkable conservative over-approximation) alongside the policy, and the local gate verifies it. This is the strong path; most federations do not have it. - Otherwise, the local instance must **re-derive the data-boundary predicates from the source policy** using a local, conservative mapping, and treat the peer's translated policy as advisory metadata rather than as the enforcement artifact. The enforcement artifact must be locally generated and locally signed. - A middle path: **fail closed on unmappable constructs**. If the translator encounters a construct it cannot map, the handshake must reject rather than emit a policy with that clause elided. This converts a silent data-boundary widening into a visible negotiation failure, which is the correct failure mode for a trust boundary. The decision is not "is this peer trustworthy" — that is settled by the warrant chain. It is "is this *artifact* an equivalent or stricter encoding of the peer's boundary," and that must be answered by the local instance, not delegated to the peer's translator. ## Operational Effect When the shortcut is taken, the operational effect is a **persistent, silent data-boundary widening** that survives the entire session and is invisible to both audit logs (which show a valid, signed policy was enforced) and to the peer (which believes its boundary is enforced because it signed a document it did not verify the translation of). The widening is deterministic given the policy pair, so it reproduces on every session between the two orgs — it is not a flaky race but a stable misconfiguration that looks like correct operation. The guardrail is architectural: **separate the trust gate from the equivalence gate**, and make the equivalence gate a local refinement check that fails closed on unmappable constructs. The local instance must never enforce a policy artifact it did not itself derive or verify as a conservative refinement. When that invariant is enforced, the observed query is denied at the local gate with a translation-refinement error, the handshake surfaces the unmappable `columns ⊄` construct, and the two orgs negotiate an explicit masking directive before any data crosses the boundary. ```python class PolicyTranslationRefinementError(RuntimeError): """Raised when a peer's translated policy is not a certified refinement of its source.""" pass def admit_federated_policy(source_policy: dict, translated_policy: dict, translator_certificate: dict | None) -> dict: # Trust envelope already verified upstream; this gate is ONLY about equivalence. if translator_certificate is None: # No refinement proof: we may not enforce the peer's artifact directly. unmappable = _find_unmappable_constructs(source_policy, translated_policy) if unmappable: raise PolicyTranslationRefinementError( f"translated policy elides source constructs {unmappable}; " f"refusing to enforce a lossy projection at the data boundary" ) # No certificate and no detected loss: re-derive locally, fail closed. return _locally_derive_conservative_policy(source_policy) if not _verify_refinement(source_policy, translated_policy, translator_certificate): raise PolicyTranslationRefinementError( "translator certificate does not prove translated(op)=deny wherever source(op)=deny" ) return translated_policy def _find_unmappable_constructs(source: dict, translated: dict) -> list[str]: # Exclusions expressed declaratively in source but imperatively in target # are the canonical loss site; a structural diff cannot see them. src_exclusions = {c for c in source.get("predicates", []) if c.get("op") in ("not_in", "subset_of")} tgt_masks = {m.get("field") for m in translated.get("masks", [])} return [c["field"] for c in src_exclusions if c["field"] not in tgt_masks] def _verify_refinement(source: dict, translated: dict, cert: dict) -> bool: return cert.get("direction") == "refinement" and cert.get("verified") is True def _locally_derive_conservative_policy(source: dict) -> dict: # Local derivation: every source exclusion becomes an explicit local mask. masks = [{"field": c["field"], "action": "deny"} for c in source.get("predicates", []) if c.get("op") in ("not_in", "subset_of")] return {"derived_locally": True, "masks": masks} ```