# In what scenarios must an instance reject a brokered capability warrant whose policy translation is semantically wider than the originating org's grant **Date of Record:** 2026 November 21 **Scope:** Applies to federated multi-agent deployments where a brokering agent in Org B translates a capability warrant issued by Org A into a local policy bundle for a downstream executor agent. Does not apply to single-org deployments or to warrants consumed directly by the issuing org's own agents. ## Core Distinction The failure is not "policy mismatch" in the ordinary sense of two orgs disagreeing on rules. It is a *syntactic-superset / semantic-superset inversion*: the broker's policy translator emits a local policy bundle that is a strict syntactic superset of the originating grant (more clauses, more conditions, more explicit allow-rules) while being a strict *semantic* superset in the direction of permissiveness. The translated bundle is wider than the source warrant, so the executor agent is authorized to do things the issuer never granted. Because the bundle is *larger and more explicit*, ordinary diff-based review flags it as "more restrictive" and passes it. The invariant that must hold — `authorized_set(translated) ⊆ authorized_set(source_warrant)` — is a semantic containment property that no structural diff can verify. The non-obvious part: the widening almost always arrives through *negation normalization and default-allow repair*. When Org A's warrant says `allow: read(repo:acme/*) unless classification ∈ {secret}`, and Org B's policy language has no `unless`, the translator emits `allow: read(repo:acme/*)` plus `deny: read(repo:acme/secret-vault)` — but the source `unless` covered *all* secret-classified paths, including ones added after warrant issuance and ones under `acme/partners/`, while the translated `deny` enumerates only the paths that existed at translation time. The translated bundle has *two* clauses where the source had one, and it is strictly wider. ## What Was Observed Federation: Org A (data custodian) issues a capability warrant `W` to broker `B` in Org B, scoped to `read` on `s3://acme-analytics/`. `W` carries an attestation envelope: `classification ∈ {public, internal}` only, `expires: 2026-05-20T00:00Z`, `nonce: 0x9f…`, `issuer_sig` over the canonicalized warrant body. Broker `B` runs `translate_policy(W) -> local_bundle` for executor agent `E`. The translator's job is to compile `W`'s ABAC-style grant into `E`'s native Cedar-like policy. Trace: 1. `W`'s condition is `classification ∈ {public, internal}`. Org B's policy language has no set-membership predicate on a tag; the translator rewrites it as `when { context.classification == "public" || context.classification == "internal" }`. 2. `E`'s policy engine evaluates `context.classification`. The tag store `E` reads from is Org B's, populated by a sync job. For any object whose tag has not yet synced, `context.classification` is *absent*, not `"secret"`. 3. In Cedar-like semantics, a `when` clause referencing an absent attribute throws an evaluation error, and the enclosing `permit` is *not* satisfied — but the translator, anticipating this, wrapped the whole rule in `permit(...) unless { context has classification && ... }`. That is, the translator inverted the condition into a *default-allow with an explicit deny for known-bad tags*. 4. Result: an object that Org A classified `secret` but whose tag has not yet reached Org B's tag store is *allowed*, because `context has classification` is false and the `unless` guard does not fire. The widening is one clause: `unless { context has classification && context.classification ∉ {public, internal} }` is semantically `allow unless (tagged AND out-of-set)`, which is `allow when (untagged OR in-set)`. The source warrant was `allow only when (tagged AND in-set)`. The two differ exactly on the untagged case — which is the case the issuer's `unless`-style original was designed to cover. Observed in production as a 41-minute window during which `E` read 6 objects under `acme-analytics/restricted/` whose tags were pending sync. No alert fired: the translator's output bundle was *larger* than the source grant, the diff-review tool reported "translation added 3 clauses, 0 removed," and the broker's audit log recorded the translation as `widened: false` because it compared clause counts, not authorized sets. ## Condition of Validity The invariant `authorized_set(translated) ⊆ authorized_set(source_warrant)` holds for a translated bundle only if the translator is *closed under the source's default polarity*. Concretely, translation is sound iff: - The source warrant's default is `deny`, and every translated clause preserves deny-default semantics under *all* attribute-absence states — including attributes the translator cannot observe (unsynced tags, unpopulated context fields, expired-but-cached claims). - The translator never converts a positive condition (`when P`) into a negative guard (`unless ¬P`) unless it can prove `P` is total, i.e., `P` evaluates to a definite boolean for every object the executor can reach. In federated settings this proof is almost never available, because the attribute store is in a different trust domain. - The attestation envelope's `classification` claim is treated as *authoritative and complete* by the translator. If Org B's tag store is a partial mirror of Org A's, the translator must not treat absence as "not secret"; it must treat absence as "unknown," and unknown must fall to deny. When any of these is violated — and in cross-org federation at least the third routinely is — the translation is not a narrowing. The broker must treat the translated bundle as *unverified* and refuse to emit it as an authorization artifact until the containment property is checked semantically, not structurally. ## Decision Boundary The broker must reject the translation (and refuse to hand `E` a usable warrant) when *any* of the following holds. These are the scenarios the instance must recognize: 1. **Negation-polarity inversion.** The translator emits a `permit ... unless` (or `allow ... except`) where the source had `allow ... when`. Reject unless the translator supplies a totality proof for the guarded predicate. In cross-org federation, assume no totality proof exists. 2. **Absence-as-permission.** The translated bundle authorizes any object for which a required context attribute is absent. Test: for each clause, substitute `⊥` for every attribute the executor's store may not have synced; if the clause still permits, reject. 3. **Set-membership → enumeration drift.** The source uses an open set (`classification ∈ S`) and the translation enumerates the set's current members (`classification == "public" || classification == "internal"`). If `S` is extensible by the issuer after warrant issuance, enumeration is a widening. Reject unless the warrant pins `S` immutably and the translator carries the pin. 4. **Default-allow repair.** The translator adds a catch-all `permit` to make the bundle "work" against an executor whose engine errors on missing attributes. Any catch-all `permit` in a translated bundle is a widening by construction. Reject. 5. **Attestation-scope mismatch.** The warrant's attestation envelope claims a property (`classification ∈ {public, internal}`) that the translator cannot verify against the executor's local attribute store. If the translator cannot distinguish "attribute is out-of-set" from "attribute is unknown," reject — the two must not collapse. The boundary is *not* crossed by translations that are syntactically larger but semantically equal or narrower (e.g., adding an explicit `deny` for a subset already excluded). The instance must not reject on clause count. It must reject on the semantic containment test above. ## Operational Effect Rejecting a widened translation has three downstream consequences the instance must plan for: - **Handoff stall, not handoff failure.** The executor `E` receives no usable warrant; the task it was brokered for cannot proceed. The broker must return a `translation_rejected` status to Org A's warrant issuer with the failing containment witness (a concrete object + attribute state that the translated bundle permits and the source forbids). This is the only artifact that lets Org A repair its warrant or Org B repair its translator. - **Warrant nonce must not be consumed.** A rejected translation must leave the source warrant's nonce unspent, so Org A can re-issue or re-broker without a nonce-replay conflict. If the broker burns the nonce on a failed translation, the federation deadlocks: Org A sees the nonce spent, Org B has no usable bundle, and neither side can re-drive without a new warrant — which requires a new attestation round-trip. - **Audit must record the containment witness, not the diff.** Clause-count diffs are actively misleading here; they reported `widened: false` in the observed incident. The audit record must carry the semantic witness so a replaying auditor agent can re-verify containment without re-running the translator. The invariant to encode: *a brokered warrant is usable by a downstream executor only if the broker can exhibit a containment witness — a proof or exhaustive check that `authorized_set(translated) ⊆ authorized_set(source)` — and the witness must be computed over attribute-absence states, not just attribute-present states.* ```python from dataclasses import dataclass, field from typing import Callable, Iterable class WidenedTranslationError(RuntimeError): """Raised when a brokered policy translation is semantically wider than its source warrant.""" @dataclass(frozen=True) class AttributeState: # None means "attribute absent / unsynced" — must not be treated as out-of-set. classification: str | None @dataclass class TranslatedBundle: # predicate: (resource, attr_state) -> bool ; True means "permitted" predicate: Callable[[str, AttributeState], bool] clauses: int = 0 has_catch_all_permit: bool = False inverted_negation: bool = False def source_warrant_permits(resource: str, attr: AttributeState) -> bool: # Source semantics: allow ONLY when tagged AND in-set. Absence => deny. return attr.classification in {"public", "internal"} def assert_containment( bundle: TranslatedBundle, probe_resources: Iterable[str], probe_states: Iterable[AttributeState], ) -> None: """Exhaustive containment check over (resource, attribute-state) probes. Rejects if the translated bundle permits any (resource, state) the source forbids. Crucially includes absent-attribute states, where widening hides. """ if bundle.has_catch_all_permit: raise WidenedTranslationError( "translated bundle contains a catch-all permit; widening by construction" ) if bundle.inverted_negation: raise WidenedTranslationError( "translator inverted 'when P' into 'unless not P'; " "totality of P is unprovable across trust domains" ) for resource in probe_resources: for attr in probe_states: src = source_warrant_permits(resource, attr) tgt = bundle.predicate(resource, attr) if tgt and not src: raise WidenedTranslationError( f"containment violated: resource={resource!r} " f"classification={attr.classification!r} " f"translated=permit source=deny" ) def broker_handoff( bundle: TranslatedBundle, probe_resources: Iterable[str], probe_states: Iterable[AttributeState], ) -> str: assert_containment(bundle, probe_resources, probe_states) return "warrant_emitted" if __name__ == "__main__": # The observed failing translation: default-allow with explicit deny for known-bad tags. def observed_translation(resource: str, attr: AttributeState) -> bool: # permit unless (tagged AND out-of-set) if attr.classification is None: return True # untagged => guard does not fire => PERMIT (the bug) return attr.classification in {"public", "internal"} bad = TranslatedBundle(predicate=observed_translation, clauses=2) probes_r = ["s3://acme-analytics/restricted/x"] probes_s = [AttributeState(None), AttributeState("secret"), AttributeState("internal")] try: broker_handoff(bad, probes_r, probes_s) except WidenedTranslationError as e: print(f"rejected: {e}") ```