# In what scenarios must an instance reject a brokered capability grant when transitive trust paths disagree across federated administrative domains **Date of Record:** 2026 November 26 **Scope:** Applies to LLM agent instances that accept capability grants (tool access, data-scope warrants, execution rights) brokered through one or more intermediary trust domains in an A2A/MCP-style federation. Does not apply to single-org deployments where the invoking principal and the resource owner share one trust root, nor to stateless request/response APIs with no warrant propagation. ## Core Distinction The failure this record isolates is not "untrusted peer" and not "expired token." It is **transitive trust path divergence**: the same capability grant arrives at the executing instance reachable through two or more brokering chains that each validate locally but whose *composed* trust semantics are not equal. Each hop in a federation validates the grant against its own policy and signs a fresh warrant asserting "principal P may do X." The executing instance sees a grant that is *individually* well-formed at every hop yet *collectively* over-scoped, because trust composition is not a homomorphism: `f(g(x)) ≠ (f∘g)(x)` when the intermediate domains apply different scope-narrowing rules. The non-obvious invariant: **a capability grant is only valid at the executor if the intersection of all independently-derived scope sets along every live trust path is non-empty AND equals the scope the executor is about to exercise.** Most implementations check that *some* path validates. That is the wrong predicate. The correct predicate is over the *meet* of all paths, not the *join*. ## What Was Observed A three-domain federation: Domain A (origin, the human/agent principal), Domain B (broker, a "trusted intermediary" that aggregates tools), Domain C (executor, an agent instance holding a filesystem-write tool). A's policy grants `write:/proj/shared/**`. B's broker policy, when re-signing for C, applies its own scope-widening default to fill tool-argument templates and emits `write:/proj/**` — a superset. C's admission controller validates the incoming warrant against B's public key, checks the signature chain A→B→C, checks expiry, and admits. The executor then writes to `/proj/secrets/`. Trace of the state transition that produced the escape: 1. A issues warrant `W_A` scoped to `/proj/shared/**`, signed by A, audience=B. 2. B's broker receives `W_A`, verifies it, and constructs `W_B` for audience=C. B's re-scoping routine is `scope_out = widen(scope_in, tool_template_defaults)`. Because the tool's argument template declares a root of `/proj/`, `widen` returns `/proj/**`. B signs `W_B` asserting the widened scope. 3. C receives `W_B`. C's validator checks: signature valid (B is a trusted broker in C's config), expiry valid, audience matches, and `scope_out ⊇ scope_requested_by_tool_call`. All true. C admits. 4. The executor's tool call resolves to `/proj/secrets/credentials`. The write succeeds. The divergence is invisible at every individual hop. A's log shows a correctly-narrow grant. B's log shows a correctly-executed widening (it was doing what its template said). C's log shows a correctly-validated admission. No single domain's invariant was violated. The composite invariant — *the executor never exercises scope outside the origin's grant* — was violated silently. A second observed variant: **path-count divergence**. When the same grant is reachable via two brokers B1 and B2 with different narrowing rules, the executor admitted the *union* of the two paths' scopes because admission was "any path validates." The correct behavior is the *intersection*: if A grants `/proj/shared/**` and B1 narrows to `/proj/shared/team1/**` while B2 narrows to `/proj/shared/team2/**`, the executor must be limited to the empty set (or refuse), not to the union. ## Condition of Validity The guardrail holds only under all of the following, and fails silently if any is relaxed: - **Origin-anchored scope, not hop-anchored.** Every warrant must carry the *origin's* asserted scope and a monotonic narrowing proof (a hash-chained record of each hop's narrowing operation), not merely the current hop's scope. Without the origin scope embedded, the executor cannot compute the meet. - **Narrowing is provably monotone.** Each hop must present a machine-checkable proof that `scope_out ⊆ scope_in` (e.g., a signed set-inclusion witness over the scope algebra). A hop that cannot prove narrowing must be treated as untrusted for that grant, regardless of its broker reputation. - **Meet over all live paths, not join.** The executor computes `⋂ paths scope(path)` and admits only if the exercised scope is a subset. If any path is unverifiable, that path contributes `∅` and the meet collapses — which is the correct conservative behavior. - **Warrant audience binding is per-hop and non-transferable.** A warrant issued for audience=B must not be replayable as audience=C. Brokers must re-issue, not forward. The condition does *not* require that all brokers share a policy language. It requires only that each broker emit a narrowing proof in a common scope algebra that the executor can intersect. ## Decision Boundary The decision boundary is the point at which the executor must **reject rather than admit**. Concretely: - **Reject** when the meet of live-path scopes is empty, when any live path lacks a narrowing proof, when a path's origin-scope field disagrees with another path's origin-scope field for the same grant-id (forgery or split-brain broker), or when the exercised scope is not a subset of the meet. - **Admit** only when every live path validates *and* the meet is non-empty *and* the exercised scope ⊆ meet. - **Degrade to single-path** (admit on the narrowest verified path, log a divergence event) only if the federation policy explicitly authorizes "narrowest-wins" and the executor records the suppressed paths for audit replay. The subtle boundary: a grant that is *individually valid on every path* but whose paths disagree is not "a valid grant with a warning." It is a **federation integrity fault** and must halt the grant. Treating disagreement as a soft signal is exactly the bug that produced the `/proj/secrets` escape. ## Operational Effect Implementing origin-anchored meet-admission changes three things operationally. First, brokers must be upgraded to emit narrowing witnesses; until then, executors must treat un-witnessed hops as `∅`-contributing, which will (correctly) refuse a large volume of currently-working traffic — schedule this as a flag day, not a silent rollout. Second, audit replay becomes tractable: the executor's decision is a pure function of the set of path witnesses, so a divergence event can be replayed deterministically to attribute fault to a specific broker's widening rule. Third, the failure mode inverts from *silent over-scope* to *loud under-admission* — the executor will refuse grants that "used to work," and the on-call signal is a spike in `FederationScopeMeetEmpty` rather than a post-hoc data-loss investigation. ```python from dataclasses import dataclass from typing import FrozenSet class FederationScopeDivergence(RuntimeError): """Raised when live trust paths disagree on the effective capability scope.""" @dataclass(frozen=True) class PathWitness: broker_id: str origin_scope: FrozenSet[str] hop_scope: FrozenSet[str] narrowing_proven: bool def admit_grant( grant_id: str, paths: list[PathWitness], exercised_scope: FrozenSet[str], allow_narrowest_wins: bool = False, ) -> FrozenSet[str]: if not paths: raise FederationScopeDivergence( f"grant {grant_id}: no live trust paths; refusing admission" ) # Any unproven hop contributes the empty set, collapsing the meet. verified = [p for p in paths if p.narrowing_proven] if len(verified) != len(paths): unproven = [p.broker_id for p in paths if not p.narrowing_proven] raise FederationScopeDivergence( f"grant {grant_id}: unproven narrowing at brokers {unproven}; " f"meet collapses to empty by policy" ) # Origin-scope fields must agree across all paths for the same grant-id. origin_scopes = {p.origin_scope for p in verified} if len(origin_scopes) > 1: raise FederationScopeDivergence( f"grant {grant_id}: origin-scope disagreement across paths " f"{[p.broker_id for p in verified]}; possible forged or split-brain broker" ) meet = verified[0].hop_scope for p in verified[1:]: meet = meet & p.hop_scope if not meet: raise FederationScopeDivergence( f"grant {grant_id}: meet of path scopes is empty; refusing" ) if not exercised_scope <= meet: if allow_narrowest_wins: narrowest = min((p.hop_scope for p in verified), key=len) if exercised_scope <= narrowest: return narrowest raise FederationScopeDivergence( f"grant {grant_id}: exercised scope {sorted(exercised_scope)} " f"exceeds meet {sorted(meet)}" ) return meet ```