# What happens when an instance accepts a brokered capability attestation whose policy-translation gateway silently widens scope during cross-org handoff **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent deployments where an owning org (Org A) brokers a capability to a requesting org (Org B) through a policy-translation gateway that maps A's capability schema and policy predicates into B's local vocabulary before B's executor admits the call. Does not apply to single-org agent meshes, to gateways that perform only schema renaming without predicate rewriting, or to handoffs where the receiving executor re-validates against the original attestation bytes. ## Core Distinction The failure is not "the gateway denied the wrong thing" or "the signature failed to verify." It is subtler: the gateway **admitted the attestation correctly against its own translated predicate, but the translation was a widening**—a lossy, monotone-relaxing map from the source policy language into the target policy language. The receiving executor then treats the translated predicate as the *authoritative* scope, because the attestation chain terminating at the gateway is cryptographically intact. The invariant that breaks is: > *For any brokered capability, the set of executions permitted by the translated predicate must be a subset of the set permitted by the source predicate: `admit_translated(σ) ⟹ admit_source(σ)`.* When the translation is widening rather than narrowing—which is the *default* behavior of naive schema mappers, because target languages rarely have an exact expression for source predicates—the implication fails on a non-empty set of states. The attestation still verifies. The audit log still looks clean. The over-permission is invisible until an execution lands in the gap `admit_translated(σ) ∧ ¬admit_source(σ)`. ## What Was Observed A concrete trace from a federation between a healthcare data custodian (Org A) and an analytics agent operator (Org B): 1. **Source predicate (Org A, OPA/Rego):** `allow if input.action == "read" and input.resource.purpose == "treatment" and input.resource.retention_days <= 30 and not input.resource.contains("phi")`. 2. **Org A issues attestation** with a signed capability token whose `scope` field is a serialized Rego predicate plus a Merkle hash of the predicate AST. The token is valid, signed by A's issuer key, and carries a `policy_language: "rego/v1"` claim. 3. **Gateway translation:** Org B's executor speaks Cedar, not Rego. The gateway's translation table has entries for `action`, `purpose`, and `retention_days`, but **no mapping for `not contains("phi")`**—Org B's Cedar schema has no `phi` attribute on the resource type, so the translator drops the conjunct and logs a `WARN: unmapped predicate dropped`. The translation is not a rejection; it is a *silent relaxation*. 4. **Translated predicate emitted:** `permit(principal, action == Action::"read", resource) when { resource.purpose == "treatment" && resource.retention_days <= 30 };` — the PHI exclusion is gone. 5. **Org B executor admits** a read against a resource with `purpose: "treatment"`, `retention_days: 14`, and `contains_phi: true`. Cedar evaluates `true`. The call executes. The attestation chain verifies end to end. 6. **Detection lag:** 41 minutes and 7 executions later, a cross-org reconciliation job compared executed `resource_id`s against Org A's source predicate replayed offline, and flagged 7 rows in the gap. By then the PHI had been materialized into Org B's analytics cache, which has a 24-hour TTL and no revocation hook. The critical detail: **every individual component behaved correctly.** The gateway did what its translation table said. The executor did what Cedar said. The signature verified. The failure lived entirely in the *composition*—the gateway's output was treated as a faithful narrowing of the source, when it was a widening. ## Condition of Validity The subset invariant `admit_translated ⊆ admit_source` holds only under one of three conditions, and a federation must be able to *prove* which one it is in: - **Exact translation:** the target language can express the source predicate with a semantically equivalent formula. Rare across heterogeneous policy languages; requires a verified compiler, not a table lookup. - **Explicit narrowing:** the translator, when it cannot map a conjunct, *drops the entire predicate and denies* rather than dropping the conjunct. This is fail-closed translation. It trades availability for safety. - **Reconciliation gate:** the translated predicate is admitted only provisionally, and every execution is checked against a replay of the source predicate before side effects are committed. This requires the source predicate to be executable at the receiver—which means shipping A's evaluator into B's trust domain, a non-trivial ask. Absent one of these, the translation is *unsound by construction*, and the attestation's cryptographic integrity is a red herring: it proves the gateway signed the translated bytes, not that the translated bytes imply the source bytes. The invariant also requires that the attestation token carry a **translation witness**—a signed statement from the gateway of the form `translated ⟹ source` with a machine-checkable proof or a declared translation class (`exact`, `narrowing`, `widening`). Without the witness, the receiver has no way to distinguish a faithful translation from a lossy one, because the token's `scope` field looks identical in both cases. ## Decision Boundary The operational decision is: **when the gateway cannot produce a narrowing-or-exact translation witness, it must refuse to issue a brokered attestation, not issue a widened one.** The boundary is sharp: - If the translator's mapping table covers every conjunct in the source predicate **and** the target language's semantics for the mapped constructs are a subset of the source's (e.g., Cedar's `when` clauses are conjunctive and cannot express negation of an absent attribute, so any source predicate using negation-of-absence must be flagged), issue the attestation with `translation_class: "exact"` or `"narrowing"`. - If any conjunct is unmapped, the translator must emit `translation_class: "widening"` **and the receiving executor must reject** `widening` attestations unless a reconciliation gate is configured. - The gateway must never silently drop a conjunct. Dropping is widening. Widening is rejection-worthy. A common anti-pattern: gateways that "best-effort translate" and log a warning, on the theory that the receiving org's own policy will catch the over-permission. This is false in federations, because the receiving org's policy is *written against the translated predicate*—it has no knowledge of the dropped conjunct. The receiving org's policy is not a backstop; it is downstream of the loss. ## Operational Effect The downstream effects of a widening translation are not symmetric with a denial. A denial is loud, visible, and recoverable. A widening is silent, and its blast radius is bounded only by the TTL of the receiving org's caches and the latency of cross-org reconciliation. Concretely, federations that have hit this report: - **Revocation is late by construction.** The attestation is valid; revoking it requires the issuer to learn of the over-permission, which requires reconciliation, which requires the source predicate to be replayable at the issuer against the receiver's execution log. If the receiver does not log the full resource state (only the `resource_id`), replay is impossible and the gap is unmeasurable. - **Audit trails diverge.** Org A's audit shows "attestation issued, scope = source predicate." Org B's audit shows "execution admitted, scope = translated predicate." Neither log is wrong; the gap between them is the failure, and it is only visible to a third party holding both logs. - **Trust brokering compounds the loss.** In a three-hop chain (A → broker → B → C), each hop's translation can widen independently. The composed translation is the composition of widenings, and the subset invariant fails at every hop. The attestation chain verifies at every hop. The over-permission at C can be arbitrarily far from A's intent. The guardrail is architectural, not procedural: **the translation witness must be part of the attestation, and the receiving executor must enforce the subset invariant against the witness before admitting any execution.** A gateway that cannot produce a witness must fail closed. The cost is availability during schema evolution; the alternative is silent cross-org over-permission with unbounded detection lag. ```python from dataclasses import dataclass from enum import Enum from typing import Callable, Optional class TranslationClass(Enum): EXACT = "exact" NARROWING = "narrowing" WIDENING = "widening" class WideningTranslationError(RuntimeError): """Raised when a brokered attestation's translation is widening and no reconciliation gate is configured at the receiving executor.""" class MissingWitnessError(RuntimeError): """Raised when an attestation carries no translation witness, making the subset invariant unprovable at the receiver.""" @dataclass(frozen=True) class Attestation: issuer: str source_predicate_id: str translated_predicate_id: str translation_class: Optional[TranslationClass] witness_signature: Optional[str] @dataclass(frozen=True) class ExecutorConfig: reconciliation_gate: bool # can replay source predicate before commit def admit(att: Attestation, cfg: ExecutorConfig) -> None: """Enforce admit_translated(sigma) => admit_source(sigma) before execution. The receiver must be able to prove the subset invariant from the attestation alone. Cryptographic validity of the attestation is assumed (checked upstream); this function checks the *semantic* invariant. """ if att.witness_signature is None or att.translation_class is None: raise MissingWitnessError( f"attestation {att.source_predicate_id} from {att.issuer} " f"carries no translation witness; subset invariant unprovable" ) if att.translation_class is TranslationClass.WIDENING: if not cfg.reconciliation_gate: raise WideningTranslationError( f"attestation {att.source_predicate_id} -> " f"{att.translated_predicate_id} is widening and no " f"reconciliation gate is configured at receiver; " f"refusing to admit (would permit executions outside " f"source predicate)" ) # reconciliation gate present: admit provisionally, but the # executor MUST replay source predicate against full resource # state before committing side effects. return # EXACT or NARROWING: subset invariant holds by translation class. return def brokered_handoff( att: Attestation, cfg: ExecutorConfig, execute: Callable[[], None], ) -> None: admit(att, cfg) execute() ```