# Under what conditions must an instance refuse a brokered capability whose policy envelope was widened by an intermediate trust domain **Date of Record:** 2026 November 20 **Scope:** Applies to federated multi-agent systems where a broker agent in trust domain B negotiates a capability on behalf of a caller agent in trust domain A, and the capability's policy envelope (permitted scopes, rate bounds, data-classification ceilings, expiry) is re-signed at each hop. Does not apply to direct A2A handshakes with no intermediate broker, nor to brokering where the originating domain's signature is carried verbatim end-to-end. ## Core Distinction The failure is not "the broker lied." It is that a *legitimate, correctly-signing* intermediate broker can produce a policy envelope that is a strict superset of what the originating domain authorized, because each hop is permitted to *narrow* or *re-express* the envelope, and the re-expression is validated against the *broker's* policy model rather than the *originator's*. The invariant that must hold is **envelope monotonicity under composition**: for any chain of brokers $B_1 \dots B_n$, the effective grant $G_n$ must satisfy $G_n \subseteq G_0$ under the originator's lattice, not merely $G_n \subseteq G_{n-1}$ under each broker's local lattice. The non-obvious part: two domains can each be internally sound, sign every hop correctly, and still compose into an escalation, because "narrower" is not a total order shared across trust domains. Domain A models a capability as `{read: [dataset/*], write: none}`. Domain B models it as `{access: "read", resource: "*"}` and, when re-emitting, encodes A's grant as `{access: "read", resource: "dataset/*"}` — but B's wildcard semantics treat `dataset/*` as *including* derived views that A's lattice classifies as `write`-equivalent (materialized caches). B has not violated its own rules. A's grant has silently widened in the only dimension that mattered. ## What Was Observed A caller agent in domain A requested `analytics.query` against a dataset owned by domain A but brokered through domain B to reach a compute agent in domain C. Trace: 1. A issues envelope $E_0$: scope `{op: query, dataset: sales_2024, mode: read_only, max_rows: 10^4}`, signed by A's warrant key, expiry `T+300s`. 2. B's broker validates $E_0$ against B's policy model. B's model has no `mode: read_only` field; it maps unknown fields to its default `mode: standard`, which permits server-side materialization. B re-signs as $E_1$ with `{op: query, dataset: sales_2024, mode: standard, max_rows: 10^4}`. 3. C's compute agent receives $E_1$, validates against C's model, sees `mode: standard`, and executes a query that writes a materialized view into C's cache tier — a side effect A's lattice classifies as `write`, which A never granted. 4. A's audit log records only $E_0$. C's audit log records $E_1$. Neither log shows the widening; only the *pair* does, and no component reconciles them. The escalation was not malicious and not a signature failure. It was a **lattice translation gap**: B's re-expression was lossy in a security-relevant field, and the lossy default was permissive. The observed rate across a 40k-request federation soak was 3.1% of brokered requests carrying at least one silently-widened field, concentrated in capabilities with enum-valued fields that one side modeled as open and the other as closed. ## Condition of Validity A brokered capability is safe to accept **iff all of the following hold**: - The originator's envelope is carried *opaquely* (as a signed blob) alongside every re-signed hop envelope, so the receiver can compare $E_n$ against $E_0$ directly. - The receiver has a *decidable* subset check between its own policy lattice and the originator's, or can delegate that check to the originator via a synchronous `narrower_than(E_n, E_0)` call. If the check is undecidable or the originator is unreachable, the receiver must treat the envelope as **unverified** and fall back to the intersection of both lattices. - Every field in either lattice is either (a) present and equal in both, or (b) explicitly declared `closed` by the originator with a default that is the *most restrictive* element, not the broker's default. - Expiry is monotonically non-increasing across hops; a broker that extends expiry is widening in the time dimension. If any condition fails, the capability is in the "widened-or-unknown" class and must be refused or degraded to the intersection. The invariant is not "trust the broker" — it is "**the originator's lattice is the only authority on what is narrower**." ## Decision Boundary The boundary is between *translation* and *escalation*, and it is crossed exactly when a broker emits a field value that is not in the image of the originator's lattice under any monotone map. Operationally: - If $E_n$ and $E_0$ agree on every closed field and $E_n$'s open fields are within $E_0$'s declared bounds → accept, log the chain. - If $E_n$ contains a field absent from $E_0$'s schema → the broker introduced semantics the originator never authorized → **refuse** unless the field is declared `advisory` and ignored at execution. - If $E_n$ maps a closed enum to an open value (e.g., `read_only` → `standard`) → the broker's lattice is strictly coarser in a security-relevant dimension → **refuse**; do not "interpret" the intent. - If the originator is unreachable for the subset check and the field is security-relevant → **refuse**; degrade to intersection or fail closed. Do not default to the broker's reading. The tempting wrong answer is to accept when the broker's signature is valid and the broker is "trusted." Trust in a broker authorizes it to *relay* and *narrow*, never to *reinterpret*. A valid signature on a widened envelope is evidence of a translation bug, not of authorization. ## Operational Effect Enforcing the invariant changes three things. First, brokers must carry the originator envelope opaquely and cannot strip unknown fields — this forces every domain to publish a machine-readable lattice with explicit `closed`/`open` markers and restrictive defaults, which is the actual fix. Second, receivers gain a cheap pre-execution gate: compare $E_n$ to $E_0$, refuse on any closed-field divergence, and log the pair so the reconciliation gap closes. Third, the failure mode becomes *loud*: instead of 3.1% silent widening, you get a bounded refusal rate you can attribute to specific broker/field pairs and drive to zero by fixing the translation, not by loosening the check. The residual risk is the undecidable-subset case: two lattices with no monotone map between them. The correct posture there is not to guess but to refuse and escalate to a human- or originator-mediated capability re-issuance, because an unprovable subset is indistinguishable from an escalation at execution time. ```python class EnvelopeWideningError(RuntimeError): """Raised when a brokered policy envelope is not provably a subset of the originator's grant.""" pass CLOSED_FIELDS = {"mode", "op", "dataset"} # originator declares these closed; defaults must be restrictive def accept_brokered_capability(origin_envelope: dict, hop_envelope: dict, originator_reachable: bool) -> dict: """ Gate a brokered capability before execution. Returns the effective grant (intersection) or raises EnvelopeWideningError. """ # 1. Closed-field divergence is always an escalation. for field in CLOSED_FIELDS: o = origin_envelope.get(field) h = hop_envelope.get(field) if o is None and h is not None: raise EnvelopeWideningError( f"broker introduced closed field {field!r}={h!r} absent from origin grant" ) if o is not None and h is not None and o != h: raise EnvelopeWideningError( f"closed field {field!r} widened: origin={o!r} hop={h!r}" ) # 2. Expiry must be monotonically non-increasing. if hop_envelope.get("expiry", 0) > origin_envelope.get("expiry", 0): raise EnvelopeWideningError( f"expiry extended across hop: origin={origin_envelope.get('expiry')} hop={hop_envelope.get('expiry')}" ) # 3. Open fields: require originator-attested subset check, else fail closed. open_fields = set(hop_envelope) - CLOSED_FIELDS - {"expiry", "sig"} if open_fields: if not originator_reachable: raise EnvelopeWideningError( f"cannot verify subset of open fields {sorted(open_fields)}: originator unreachable" ) # originator.narrower_than(hop_envelope, origin_envelope) must return True; # any False or timeout is treated as unverified. if not originator_narrower_than(hop_envelope, origin_envelope): raise EnvelopeWideningError( f"originator rejected subset claim for open fields {sorted(open_fields)}" ) # 4. Effective grant is the intersection, never the hop envelope alone. return {**origin_envelope, **{k: v for k, v in hop_envelope.items() if k in open_fields}} def originator_narrower_than(hop_envelope: dict, origin_envelope: dict) -> bool: # Placeholder: real implementation calls the originator's lattice oracle. # Returning False on any doubt is the safe default. return False ```