When must an instance refuse a federated capability grant it cannot translate: policy-translation residue and the trust-broker attestation hole

**Date of Record:** 2026 December 2

**Scope:** Applies to LLM agents that acquire tool capabilities across organizational boundaries through a trust broker that (a) discovers capabilities via a federated registry and (b) translates the granting org's policy into the consuming org's authorization vocabulary. Does not apply to single-org MCP servers where the policy engine and the tool executor share one trust domain and one schema registry.

Core Distinction

A federated capability grant is not a boolean. It is a *translated policy object*: the granting org's constraint set, rewritten into the consuming org's enforceable vocabulary by a broker that sits in neither trust domain. The failure mode is not "the broker said no." It is "the broker said yes, and the translation silently dropped a constraint it had no token for." The distinction that matters operationally is between **grant denial** (loud, safe, recoverable) and **translation residue** (quiet, unsafe, and indistinguishable from a clean grant at the call site). An instance that treats a broker's `granted: true` as authorization is trusting a translation it never audited.

What Was Observed

Org A (consumer) requests `documents.read` from Org B (provider) via a trust broker. Org B's native policy carries a constraint the broker's translation schema has no field for: `max_classification: "internal"` combined with `no_derivative_persistence: true`. The broker's translation vocabulary supports `scope`, `ttl_seconds`, and `rate_limit` — but not classification ceilings or derivative-persistence bans. The broker does not reject the grant; it emits a translated grant that is *structurally valid but semantically lossy*:

broker.grant = {
  "capability": "documents.read",
  "granted": true,
  "translated_constraints": {"scope": "read", "ttl_seconds": 900},
  "residue": ["max_classification", "no_derivative_persistence"],   # present but unenforced
  "broker_attestation": "sig:broker-7f3a..."
}

The consuming agent's runtime checks `granted` and the fields it recognizes. It ignores `residue` because `residue` is advisory metadata, not an enforceable constraint. The agent then reads an `internal`-classified document and writes a summary into its own episodic memory — a derivative persistence the provider explicitly forbade. The violation is not detected at call time. It is detected weeks later when the provider's audit replays the grant and finds the consumer's memory store contains a document the grant never authorized to persist.

The non-obvious part: the agent *did* receive the constraint. It was in the grant object. The failure is that the constraint arrived in a channel (`residue`) that the consuming runtime had no obligation to enforce, because the broker attested the grant as complete. The attestation signature covers the translated constraints but not the residue — so the cryptographic identity propagation succeeds while the policy propagation fails. This is the trust-broker attestation hole: **a signed grant can be a faithful signature over an unfaithful translation.**

Condition of Validity

The invariant that bounds this failure is a *translation-completeness precondition*: a federated grant is only enforceable by the consumer if the set of constraints the broker could not translate is empty, **or** the consumer has an explicit handler for every residue token. Formally, for grant `g` with translated set `T` and residue set `R`:

The broker cannot make this determination, because it does not know the consumer's enforcement vocabulary. The consumer cannot make it at grant time unless it inspects `residue` before executing. The condition of validity therefore falls on the *consumer's grant-acceptance gate*, not on the broker's translation step. A broker that attests completeness over a lossy translation has moved the trust boundary without moving the enforcement boundary — the classic federation trap.

This condition does not hold when the provider's policy vocabulary is a strict subset of the broker's translation schema (no residue possible), or when the consumer and provider share a schema registry version (translation is identity). In those cases the residue check is a no-op and the gate is free.

Decision Boundary

The decision the consuming instance must make at grant-acceptance time is binary and must precede any tool invocation:

  1. Parse `residue`. If empty, accept and execute.
  2. If non-empty, resolve each token against the consumer's registered enforcement hooks. If all resolve, accept, attach the hooks to the execution context, and execute.
  3. If any token is unresolved, **refuse the grant** and surface the unresolved token to the orchestrator as a policy-translation failure — not as a transient error, not as a retryable condition. It is a permanent incompatibility between the two orgs' policy vocabularies until a hook is registered or the broker schema is extended.

The boundary is sharp because the alternative — executing and hoping the residue constraint was advisory — is exactly the failure observed above. The tempting shortcut is to treat `residue` as a warning and proceed; the correct behavior is to treat it as a *blocking precondition*. A grant with unresolved residue is not a partial grant; it is a grant whose true scope is unknown, and an unknown scope must be treated as unbounded.

Note the asymmetry with denial: a denial is cheap to handle (fall back, request narrower scope). A residue refusal is expensive (it requires an out-of-band schema negotiation), which is precisely why agents are tempted to skip it. The decision boundary must be enforced structurally, not by agent discretion.

Operational Effect

Enforcing the residue gate converts a silent, delayed, cross-org policy violation into an immediate, local, attributable refusal. The operational consequences:

The cost is throughput: some grants that would have "worked" (because the dropped constraint happened not to be violated in practice) are now refused. That cost is the price of the invariant, and it is the correct trade — a probabilistic agent cannot reliably avoid violating a constraint it was never told to enforce.

from dataclasses import dataclass, field
from typing import Callable


class UntranslatableGrantError(RuntimeError):
    """Raised when a federated grant carries residue the consumer cannot enforce."""


@dataclass
class FederatedGrant:
    capability: str
    granted: bool
    translated_constraints: dict
    residue: list[str] = field(default_factory=list)
    broker_attestation: str = ""


class GrantAcceptanceGate:
    """Consumer-side gate: a signed grant is necessary but not sufficient."""

    def __init__(self, enforcement_hooks: dict[str, Callable]):
        # Maps a residue token to a consumer-side enforcement hook.
        self.hooks = enforcement_hooks

    def accept(self, grant: FederatedGrant) -> dict:
        if not grant.granted:
            raise UntranslatableGrantError(
                f"grant for {grant.capability!r} was denied by broker"
            )

        unresolved = [tok for tok in grant.residue if tok not in self.hooks]
        if unresolved:
            # Attestation validity does NOT imply translation completeness.
            raise UntranslatableGrantError(
                f"grant for {grant.capability!r} has untranslatable residue "
                f"{unresolved}; broker_attestation={grant.broker_attestation!r} "
                f"signs the translation, not the policy. Refusing execution."
            )

        # All residue resolved: attach hooks to the execution context.
        active_hooks = {tok: self.hooks[tok] for tok in grant.residue}
        return {
            "capability": grant.capability,
            "constraints": grant.translated_constraints,
            "enforcement_hooks": active_hooks,
        }


def execute_federated_call(grant: FederatedGrant, gate: GrantAcceptanceGate,
                           payload: dict) -> dict:
    ctx = gate.accept(grant)  # fail-closed before any tool invocation
    for hook in ctx["enforcement_hooks"].values():
        hook(payload)  # e.g. classification ceiling, persistence ban
    return {"status": "executed", "capability": ctx["capability"], "payload": payload}