# Why does an instance accept a brokered capability grant that its own policy engine would have denied locally? **Date of Record:** 2026 November 24 **Scope:** Applies to federated multi-agent interop where an origin agent (Org A) requests a capability from a remote agent (Org B) through a trust-broker intermediary (Org C) that translates between heterogeneous policy dialects. Does not cover direct bilateral A2A handshakes with a single shared policy authority, nor intra-org capability delegation. ## Core Distinction The failure is not "the broker granted too much." The failure is that the *delegation chain* is evaluated at two different points against two different policy snapshots, and the invariant that must hold — **the effective authority at the terminal agent is a subset of the authority the origin's policy would have permitted for that same capability** — is never actually checked by any single component. The broker checks that Org B's grant is consistent with *Org B's* policy. Org A checks that its *request* is consistent with *Org A's* policy. Nobody checks the composition. This is a confused-deputy problem, but the confusable deputy is not a user — it is a *capability token whose provenance is semantically lossy across dialect translation*. The broker is the only component that sees both the origin's intent and the target's grant, and by design it is a *translator*, not an *authorizer*. It normalizes `may_invoke: ["summarize_doc", "read_pii_field"]` from Org A's dialect into Org B's `permissions: {summarize: allow, pii.read: allow_if_purpose_medical}` — and in doing so it silently drops the qualifier `allow_if_purpose_medical` because Org A's dialect has no representation for purpose-conditional grants. The translated grant is strictly *broader* than either endpoint believes it issued or received. ## What Was Observed A three-party federation: origin agent `A-7` (Org A, research), broker `BR-2` (Org C, neutral trust broker), target agent `B-3` (Org B, data custodian). `A-7` needs `read_pii_field` scoped to a specific record set with a purpose tag `purpose=research-cohort`. The trace: 1. `A-7` emits a capability request with a structured policy fragment in Org A's dialect (call it `P_A`), including `constraint: purpose == "research-cohort"`. 2. `BR-2` receives the request, validates `A-7`'s signature and Org A's root warrant, and performs dialect translation `P_A → P_B`. The translator has a mapping table; `purpose` has **no target field** in `P_B`, so the translator emits a `translation_warning` into the broker log and proceeds. The warning is not surfaced to either endpoint. 3. `BR-2` presents the translated request to `B-3`. `B-3`'s policy engine evaluates the *translated* fragment: `pii.read: allow` (purpose qualifier gone), grant issued. 4. `B-3` returns a grant token back through `BR-2`. `BR-2` translates the grant `P_B → P_A` for the response. On the return path the purpose qualifier is absent, so no qualifier is restored. 5. `A-7` receives a grant token. `A-7`'s own policy engine checks the *inbound grant against its own request*: the capability matches, the record-set scope matches, and — critically — `A-7` treats a returned grant as *already vetted by the federation* and does **not** re-check the dropped `purpose` constraint, because its request-side check only validates that the grant is not *broader in capability name or scope*, not that it is broader in *constraint predicates*. Result: `B-3` believes it issued a purpose-conditional grant. `A-7` believes it holds a purpose-conditional grant. Neither is true. The only artifact that records the loss is a log line inside `BR-2` that no policy engine consumes. The dangerous property: the grant is *not* wider in the dimension the endpoints inspect (capability set, resource scope), only in the dimension that was structurally erased by translation (predicate constraints). Subset checks on capability/scope pass; the constraint-subset check has no representation to fail against. ## Condition of Validity This failure requires all of the following to co-occur; remove any one and the composition is safe: - **Dialect asymmetry**: the origin policy dialect expresses a constraint class (purpose, time-of-day, requester-class) that the target dialect cannot represent, and the translator is *lossy by design* rather than *rejecting*. - **Broker is translator-not-authorizer**: `BR-2` has no mandate to deny on translation loss; it logs and forwards. If the broker were required to fail-closed on any `translation_warning`, the chain breaks safely. - **Terminal re-check is dimension-incomplete**: `A-7`'s inbound-grant validation checks capability and scope subset but not predicate subset. This is the common case because predicate subset checking requires a subsumption decision procedure across policy dialects, which most agent policy engines do not implement. - **Grant is treated as federation-vetted**: `A-7`'s trust model says "a grant that survived the broker is authoritative," so it does not re-apply its own `purpose` predicate to *usage* of the grant. The invariant that must hold and does not: **for every constraint predicate `φ` in the origin's request policy, the terminal grant must carry a predicate `φ'` such that `φ' ⊨ φ` (φ' is at least as strict), or the chain must abort.** Equivalently: translation may only ever *narrow*, never *erase*. ## Decision Boundary The boundary is between two defensible broker behaviors, and the choice must be explicit per dialect pair: - **Fail-closed on unmappable predicate** (safe, brittle): if `P_A` contains any predicate with no `P_B` representation, `BR-2` rejects the request with `UnmappableConstraint`. Correctness preserved; interop rate drops for exactly the cross-org pairs that most need interop. - **Fail-open with residual obligation** (interoperable, requires enforcement elsewhere): `BR-2` forwards the translated grant but attaches a *residual constraint obligation* — a signed list of predicates dropped in translation — that the *terminal* agent (`A-7`) is contractually required to enforce at usage time. This only works if `A-7` actually enforces residuals, which is precisely the link that failed above. The decision boundary is therefore: **a broker may fail-open on translation loss only if the residual obligation is enforceable at a component that has both the predicate semantics and the usage-time hook.** If the origin agent has no usage-time policy hook (common for tool-calling agents that hand the grant straight to a tool executor), fail-open is unsound and the broker must fail-closed. The broker cannot know this alone; the origin must advertise `residual_enforcement: true|false` in its federation manifest, and the broker must gate fail-open on that advertisement. ## Operational Effect Once a lossy grant is in circulation, three downstream effects compound: 1. **Audit divergence**: `B-3`'s access log records a purpose-conditional access; `A-7`'s usage log records an unconstrained access. Reconciliation across orgs fails because the two logs describe different grants. Post-hoc forensics cannot reconstruct which constraint was live. 2. **Grant caching amplifies the blast radius**: if `A-7` caches the grant token (typical, to avoid re-brokering), the erased constraint persists across sessions and outlives the original request's purpose. The unc0nstrained grant becomes the steady state. 3. **Replay through a second broker**: a grant that passed `BR-2` can be presented to `BR-4` for a different target. `BR-4` sees a grant with no purpose predicate and translates it faithfully — the loss is now laundered through two hops and is invisible to any single broker's log. The guardrail that bounds this: **residual-constraint propagation with usage-time enforcement at the origin, gated on an advertised enforcement capability, and a translation-provenance hash carried in the grant token so any downstream broker can detect that the grant was already lossy-translated and refuse to re-broker it.** The grant token must carry `translation_loss: [predicate_ids]` and `loss_ack: `; a broker that receives a token with non-empty `translation_loss` and no matching `loss_ack` must reject. ```python import hashlib from dataclasses import dataclass, field class UnmappableConstraint(RuntimeError): """Raised when a policy predicate has no representation in the target dialect and the broker is not permitted to fail-open.""" pass class ResidualObligationUnenforceable(RuntimeError): """Raised when a broker would fail-open on translation loss but the origin agent has not advertised usage-time residual enforcement.""" pass @dataclass class PolicyFragment: capability: str scope: frozenset predicates: dict # e.g. {"purpose": "research-cohort"} @dataclass class GrantToken: capability: str scope: frozenset predicates: dict translation_loss: list = field(default_factory=list) # predicate keys erased loss_ack: str | None = None # origin signature over loss def provenance_hash(self) -> str: h = hashlib.sha256() h.update(self.capability.encode()) h.update(b"|".join(sorted(self.scope)).encode() if False else b"|".join(sorted(self.scope))) h.update(b"|".join(sorted(self.translation_loss)).encode()) return h.hexdigest() def translate(request: PolicyFragment, target_dialect_fields: set, origin_residual_enforcement: bool) -> GrantToken: """Translate an origin policy fragment into a target-dialect grant. Translation may only narrow; erased predicates become residual obligations.""" erased = [k for k in request.predicates if k not in target_dialect_fields] if erased and not origin_residual_enforcement: # Fail-open would be unsound: origin cannot enforce residuals at usage time. raise ResidualObligationUnenforceable( f"predicates {erased} unmappable to target dialect and origin " f"advertises residual_enforcement=False; broker must fail-closed" ) if erased and origin_residual_enforcement: # Fail-open permitted, but loss must be carried and acknowledged. return GrantToken( capability=request.capability, scope=request.scope, predicates={k: v for k, v in request.predicates.items() if k in target_dialect_fields}, translation_loss=erased, ) return GrantToken( capability=request.capability, scope=request.scope, predicates=dict(request.predicates), ) def rebroke(grant: GrantToken, second_broker_dialect_fields: set) -> GrantToken: """A downstream broker must refuse to re-broker an unacknowledged lossy grant.""" if grant.translation_loss and not grant.loss_ack: raise UnmappableConstraint( f"refusing to re-broker grant {grant.provenance_hash()[:12]}: " f"carries unresolved translation_loss={grant.translation_loss} " f"with no origin loss_ack" ) return translate( PolicyFragment(grant.capability, grant.scope, grant.predicates), second_broker_dialect_fields, origin_residual_enforcement=True, ) ```