# Why does an instance in a federated agent mesh silently downgrade to a weaker peer policy after a single renegotiation round-trip, and how do we make capability trust monotonic across hops? **Date of Record:** 2026 November 23 **Scope:** Applies to cross-org agent federations where capabilities are exchanged via policy-negotiated handshakes (MCP-style capability manifests, A2A task delegation with trust warrants) and where trust is brokered per-hop rather than end-to-end. Does not apply to single-org meshes with a shared trust root, nor to stateless request/response tool calls that carry no delegation warrant. ## Core Distinction The failure is not "a peer rejected a capability." It is that **capability negotiation is a lossy, non-monotonic fold across hops**, and the trust broker treats each hop's *grant* as if it were the *original* grant. Two distinct things get conflated: - **Effective capability** — the intersection of what the origin agent was authorized to do and what every intermediate broker was willing to relay. - **Claimed capability** — what the downstream agent believes it holds after the last negotiation round-trip returns. In a correct federation these are equal. The boundary failure is that they diverge **silently and downward** — the agent ends up holding *less* authority than its warrant entitles it to, with no error raised, because the renegotiation protocol treats "narrower than requested" as a successful negotiation rather than a partial failure. The instance keeps running, keeps delegating, and its downstream actions are quietly clipped by a constraint no one in the chain intended to impose. ## What Was Observed Trace from a three-hop federation: origin `O` (org A) delegates to broker `B` (org B), which relays to worker `W` (org C). 1. `O` holds a warrant `W_O = {read:*, write:docs/*, scope:tenant-7, exp:T+3600}`. It requests a task from `B` with the full warrant attached. 2. `B`'s policy engine has a **default-deny on wildcards**: it does not understand `read:*` and, rather than failing the negotiation, *normalizes* it to the concrete set it can enumerate at negotiation time — the resources `B` currently knows about. Call this `read:{r1..r9}`. The response is a `200 OK` with a narrowed manifest. This is the first lossy fold. 3. `B` relays to `W`, passing its narrowed manifest. `W`'s policy is stricter still: it caps `write` to `docs/public/*` and drops the `exp` field because its manifest schema (v2) renamed it to `valid_until` and the translator silently dropped the unrecognized key. 4. `W` returns a grant. `B` folds it back up to `O`. `O` now believes its effective capability is `{read:{r1..r9}, write:docs/public/*}` with **no expiry**. The critical observation: **step 4 is where the invariant breaks.** `O`'s broker reconstructs the "effective" warrant by *intersecting* the returned grant with its own — but the returned grant has already lost the `exp` field. Intersection with a missing constraint is treated as "unconstrained," so the expiry that `O` legitimately held is now *absent*, not *preserved*. The fold is not monotonic: authority did not just shrink (acceptable) — one dimension of the constraint *widened* (unacceptable), and another narrowed without notification. Net effect: the instance `W` executes under `write:docs/public/*` (narrower), but the delegation chain `O→B→W` is now recorded as un-expiring (wider). A replay or audit of the chain disagrees with what actually executed. Two independent failure surfaces from one round-trip. The trigger condition is precise: **any hop whose policy engine (a) normalizes wildcards to enumerations and (b) uses a schema translator that drops unknown keys on the return path.** Neither alone breaks the invariant; the combination does, because the drop happens on the *response* leg after normalization has already made the grant concrete. ## Condition of Validity The "narrowing is safe, widening is fatal" intuition holds **only if the fold operator is a meet (greatest lower bound) over a lattice where every constraint dimension is comparable and total**. That condition is violated whenever: - A constraint dimension can be **absent** rather than set, and absence is interpreted as "unconstrained" instead of "unknown/unspecified." (The `exp` drop above.) - A dimension is **renamed or re-encoded** across schema versions such that the translator cannot distinguish "peer omitted it" from "peer's schema has no such field." - Wildcard normalization is performed **independently at each hop** against a hop-local resource universe, so `read:{r1..r9}` at `B` and `read:{r1..r5}` at `W` are not comparable sets — they are snapshots of different worlds. Under any of these, intersection is **not** a meet. It is a partial function that can return a value outside the lattice, and the federation has no way to detect it because the protocol reports success. ## Decision Boundary The guardrail is a **monotonic warrant fold with explicit unknown-handling**, enforced at the broker, not the worker: 1. Every constraint dimension is **three-valued**: `SET(value)`, `UNCONSTRAINED` (explicitly granted), or `UNSPECIFIED` (absent — must be treated as the *most restrictive* possible value, i.e., `SET(bottom)`), never as `UNCONSTRAINED`. 2. The fold operator is defined only over comparable dimensions. If a dimension is renamed across schema versions, the translator must map it or **fail the hop** — it may not drop it. 3. Wildcard normalization must be **deferred to the origin**, or the normalized enumeration must be tagged `snapshot(resource_universe_id)` so a downstream snapshot from a different universe is detected as incomparable and the fold fails closed. 4. Any fold result that is **not ≤ both inputs** (i.e., not a true meet) raises and aborts the delegation. Widening is a hard error, never a silent success. The boundary: if you cannot guarantee a total, comparable lattice for every dimension, you must **fail the negotiation** rather than return a narrowed manifest — because a narrowed manifest is indistinguishable, to the caller, from a successful one. ## Operational Effect Without the guardrail, the federation exhibits **silent authority drift**: instances run under constraints no one authored, audit replays disagree with executed state, and the drift is *downward in one dimension, upward in another*, so neither party's telemetry flags it. The failure surfaces only when an auditor replays the chain and finds the executed scope was narrower than the recorded warrant — at which point every task the worker completed is suspect. With the guardrail, the same renegotiation **aborts at hop 2** with an explicit incomparable-dimension error, the origin retries with an explicit `UNCONSTRAINED` marker or a schema the broker can translate, and the effective warrant is provably ≤ the origin warrant in every dimension. The cost is more failed negotiations; the benefit is that a *successful* negotiation now means what it says. The invariant to hold, stated once: **for every hop, `effective_warrant ⊑ origin_warrant` componentwise, with `UNSPECIFIED` folded as bottom, and any fold that violates ⊑ raises.** Everything else is commentary. ```python from dataclasses import dataclass, field from enum import Enum from typing import Optional class WarrantFoldError(RuntimeError): """Raised when a warrant fold is not a meet (widening or incomparable).""" pass class Tri(Enum): SET = "set" UNCONSTRAINED = "unconstrained" UNSPECIFIED = "unspecified" # folds as bottom, NEVER as unconstrained @dataclass(frozen=True) class Dim: kind: Tri value: Optional[frozenset] = None def is_bottom(self) -> bool: return self.kind is Tri.UNSPECIFIED @dataclass class Warrant: dims: dict = field(default_factory=dict) # name -> Dim def fold(origin: Warrant, returned: Warrant) -> Warrant: """Intersect origin with a returned grant. Must be a meet, or raise.""" out = Warrant() names = set(origin.dims) | set(returned.dims) for name in names: a = origin.dims.get(name, Dim(Tri.UNSPECIFIED)) b = returned.dims.get(name, Dim(Tri.UNSPECIFIED)) # UNSPECIFIED is bottom: it can only ever restrict, never widen. if a.is_bottom() or b.is_bottom(): out.dims[name] = Dim(Tri.SET, frozenset()) continue if a.kind is Tri.UNCONSTRAINED and b.kind is Tri.UNCONSTRAINED: out.dims[name] = Dim(Tri.UNCONSTRAINED) continue if a.kind is Tri.UNCONSTRAINED: out.dims[name] = b continue if b.kind is Tri.UNCONSTRAINED: out.dims[name] = a continue # Both SET: require comparable universes, then intersect. if getattr(a.value, "universe_id", None) != getattr(b.value, "universe_id", None): raise WarrantFoldError( f"dimension '{name}' has incomparable resource universes; " f"refusing to fold (would be a silent snapshot mismatch)" ) inter = a.value & b.value out.dims[name] = Dim(Tri.SET, inter) # Post-condition: result must be <= origin in every dimension. for name, got in out.dims.items(): want = origin.dims.get(name, Dim(Tri.UNSPECIFIED)) if not _le(got, want): raise WarrantFoldError( f"fold widened dimension '{name}': got {got} not <= {want}" ) return out def _le(x: Dim, y: Dim) -> bool: if y.kind is Tri.UNCONSTRAINED: return True if x.kind is Tri.UNCONSTRAINED: return False if x.is_bottom(): return True if y.is_bottom(): return False return x.value <= y.value def renegotiate(origin: Warrant, returned: Warrant) -> Warrant: try: return fold(origin, returned) except WarrantFoldError: raise except Exception as e: # noqa: BLE001 raise WarrantFoldError(f"unexpected fold failure: {e}") from e ```