# When must an instance reject a federated capability grant that translated cleanly but widened scope **Date of Record:** 2026 November 26 **Scope:** Applies to cross-org agent federation where a trust broker translates a capability grant from a foreign policy dialect into the local dialect before the receiving agent executes it. Does not apply to single-org MCP tool invocation where the caller and callee share one policy engine and one schema registry. ## Core Distinction The failure mode is not "the translation failed." Translation failures are loud: schema mismatch throws, unknown capability returns 404-equivalent, signature verification fails closed. The dangerous case is **translation that succeeds with a lossy but syntactically valid result** — the gateway emits a grant that parses, verifies, and authorizes, but whose semantic scope is strictly wider than the foreign issuer intended. This happens because policy dialects are not isomorphic. When org A grants `filesystem:write` scoped to `path_glob: /data/reports/*` under its own dialect, and org B's dialect has no `path_glob` constraint primitive, the broker's translation may drop the constraint rather than reject the grant. The result is a valid grant for `filesystem:write` with no path bound. Every downstream check passes. The receiving agent now holds a capability the issuer never intended to confer, and it holds it with a *verified* warrant chain, so no auditor will flag it. The invariant that must hold: **a translated grant's effective scope must be a subset of the source grant's effective scope, or the grant must be rejected.** Subset, not "equivalent." Any translation that cannot prove subset-hood is a widening and must fail closed. ## What Was Observed A federation between two agent fleets — issuer org `alpha`, receiver org `beta` — brokered via a policy translation gateway. `alpha` issued a task warrant to a `beta` research agent: ``` capability: filesystem:write constraints: path_glob: "/shared/alpha-exports/*" max_bytes: 10485760 ttl: 3600 issuer: alpha.trust.broker subject: beta.agent.research-07 ``` `beta`'s dialect had `max_bytes` and `ttl` as first-class constraint primitives but modeled path scoping through a separate `resource_selector` field that the broker's translation table did not map from `alpha`'s `path_glob`. The broker, configured to translate "best effort" and warn on unmapped constraints, emitted: ``` capability: filesystem:write resource_selector: null # unmapped, defaulted max_bytes: 10485760 ttl: 3600 issuer: alpha.trust.broker (re-attested by beta.gateway) ``` The warning was logged at the gateway. The receiving agent's execution loop does not read gateway logs — it reads the grant. `resource_selector: null` in `beta`'s dialect means "unconstrained within the capability's natural domain," i.e., the entire writable filesystem. The agent, mid-task and running low on context budget, executed a `write` against `/etc/agent-state/session.json` because a tool returned that path in a directory listing it was summarizing. The write succeeded. The audit trail showed a fully valid warrant chain from `alpha`, re-attested by `beta`, authorizing the write. Recovery required a cross-org incident: `alpha` had to revoke the warrant chain retroactively, `beta` had to roll back agent state from a checkpoint predating the grant, and the replay of the agent's episodic log showed the agent had *correctly* reasoned about its permissions — it believed it had unconstrained write because the grant said so. ## Condition of Validity The subset invariant holds only if the gateway can construct a proof that `effective_scope(translated) ⊆ effective_scope(source)`. Three conditions must all hold for that proof to be constructible: 1. **Constraint coverage.** Every constraint in the source grant maps to a constraint primitive in the target dialect whose semantics are provably at least as restrictive. A constraint with no target primitive is a widening unless the target dialect's *default* for that dimension is at least as restrictive as the source constraint. In the observed case, `beta`'s default for an unset `resource_selector` was maximally permissive — the exact opposite. 2. **Default-direction check.** Translation must compare the source constraint against the target's *absence* semantics, not just against mapped primitives. A dropped constraint is safe only if `target_default ⊑ source_constraint`. Most dialect pairs have at least one dimension where the target default is wider, and those are precisely the dimensions where silent widening occurs. 3. **Attestation scope.** The re-attestation by `beta.gateway` must cover the *translated* grant, not the source grant. If the gateway re-signs a grant whose constraints it altered, the signature attests to the altered scope — which is fine — but downstream auditors who verify against the source grant will see a mismatch they cannot distinguish from tampering. The warrant chain must carry both the source grant hash and the translated grant hash, with an explicit `translation_widened: bool` field that is `false` by construction or the grant is rejected. When any of these three cannot be established, the only correct action is rejection with a structured translation-failure, not a best-effort grant. ## Decision Boundary The boundary is not "did translation succeed" but "can the gateway emit a machine-checkable subset witness." Concretely: - **Reject** when a source constraint has no target primitive AND the target default for that dimension is wider than the source constraint. This is the observed case: `path_glob` unmapped, `resource_selector` default `null` = unconstrained. Widening. Reject. - **Reject** when a source constraint's target primitive exists but its semantics are not provably narrower — e.g., source `path_glob: /a/*` mapped to target `path_prefix: /a` where the target's prefix match also matches `/ab/...`. This is a subtle widening that passes naive subset checks. - **Accept** when every source constraint maps to a target primitive that is provably narrower, or is dropped only where the target default is already narrower than the source constraint. - **Accept with narrowing** when the gateway can *strengthen* the grant to fit the target dialect — e.g., source `path_glob: /data/*` translated to target `path_prefix: /data/` plus an explicit `no_symlink_follow: true` that the source dialect lacked. Narrowing is safe; the invariant is subset, not equality. The gateway must never accept on the basis of "the warning was logged." Logging is not a control. The receiving agent's execution loop is the enforcement point, and it reads grants, not logs. ## Operational Effect After the incident, `beta`'s gateway was reconfigured to fail closed on any unmapped constraint whose target default is wider, and to emit a `translation_witness` object alongside every grant: ``` translation_witness: source_grant_hash: sha256:... translated_grant_hash: sha256:... constraint_map: path_glob -> resource_selector: {mapped: false, target_default: "unconstrained", subset_proven: false} verdict: reject ``` The receiving agent's pre-execution check now refuses any grant lacking a `translation_witness` with `verdict: accept` and `subset_proven: true` for every constraint dimension. This moved the failure from silent widening to loud rejection at the federation boundary, at the cost of some legitimate cross-dialect grants that now require manual policy authoring on the `beta` side. That cost is correct: a rejected grant is a recoverable task failure; a silently widened grant is an unrecoverable trust violation whose blast radius is bounded only by what the receiving agent happens to touch before its context window rolls over and it forgets it ever had the capability. The deeper lesson: in federated agent systems, the trust broker is an *authorization amplifier*. Every translation it performs either preserves or widens the issuer's intent, and the receiver cannot tell which from the grant alone. The subset witness is the only mechanism that makes the receiver's decision independent of the broker's honesty. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class TranslationWideningError(RuntimeError): """Raised when a translated capability grant's effective scope is not a proven subset of the source grant's effective scope.""" pass @dataclass class Constraint: name: str value: object # True if the target dialect's default (when this constraint is absent) # is at least as restrictive as this constraint's value. target_default_is_narrower: bool = False @dataclass class Grant: capability: str constraints: dict[str, Constraint] = field(default_factory=dict) issuer: str = "" def hash(self) -> str: payload = f"{self.capability}|{sorted(self.constraints)}|{self.issuer}" return "sha256:" + hashlib.sha256(payload.encode()).hexdigest() @dataclass class TranslationWitness: source_hash: str translated_hash: str subset_proven: bool unmapped_widening: list[str] = field(default_factory=list) def translate_grant( source: Grant, target_dialect_primitives: set[str], ) -> tuple[Grant, TranslationWitness]: translated = Grant(capability=source.capability, issuer=source.issuer) widening: list[str] = [] for name, c in source.constraints.items(): if name in target_dialect_primitives: translated.constraints[name] = c else: # Unmapped. Safe only if the target's absence-default is narrower. if not c.target_default_is_narrower: widening.append(name) witness = TranslationWitness( source_hash=source.hash(), translated_hash=translated.hash(), subset_proven=not widening, unmapped_widening=widening, ) if widening: # Fail closed: do NOT return a grant the receiver might execute. raise TranslationWideningError( f"translation of {source.capability} from {source.issuer} widens scope on " f"unmapped constraints {widening}; target default is wider than source bound. " f"source={witness.source_hash} translated={witness.translated_hash}" ) return translated, witness def pre_execution_check(grant: Grant, witness: Optional[TranslationWitness]) -> None: if witness is None: raise TranslationWideningError( f"grant {grant.hash()} has no translation_witness; cannot prove subset-hood" ) if not witness.subset_proven: raise TranslationWideningError( f"grant {grant.hash()} carries witness with subset_proven=False: " f"widening on {witness.unmapped_widening}" ) if witness.translated_hash != grant.hash(): raise TranslationWideningError( f"witness hash {witness.translated_hash} does not match grant {grant.hash()}" ) ```