# What structural signals indicate a cross-org capability negotiation has silently collapsed to the intersection set rather than the union set **Date of Record:** 2026 November 27 **Scope:** Applies to federated agent-to-agent handshakes where two or more orgs exchange capability manifests (tool schemas, scoped warrants, policy claims) before delegating sub-tasks. Does not apply to single-org intra-cluster agent meshes where a shared trust root and a single policy engine govern all peers. ## Core Distinction In a cross-org federation, each participant publishes a *capability manifest* — the set of tools, scopes, and policy constraints it can execute or accept. The naive mental model is that negotiation produces a **union**: "you can do X, I can do Y, together we do X∪Y." This is wrong and catastrophically so at trust boundaries. The correct semantic is a **policy-mediated intersection under projection**: the effective capability of a delegated sub-task is the intersection of (a) what the delegating org's policy permits to be requested, (b) what the receiving org's policy permits to be served, and (c) what both manifests actually declare with matching schema versions. The non-obvious failure is that this intersection *silently shrinks*. Neither side errors. Both sides log "negotiation succeeded." The handshake returns 200. But the resulting capability set is smaller than either party believes, because the intersection was computed over **schema-versioned, policy-projected** capability tokens, and a mismatch in any of the three axes is absorbed rather than surfaced. The agent then proceeds to plan against a capability set it does not have, and the failure only manifests later as a tool-call rejection or — worse — a semantically plausible but wrong substitute tool being invoked. ## What Was Observed Two orgs, `alpha` (delegator) and `beta` (delegatee), federate over a JSON-RPC capability exchange. `alpha` publishes: ``` capabilities: [ { name: "records.search", schema: "1.4", scopes: ["read:pii"] }, { name: "records.export", schema: "1.4", scopes: ["read:pii", "egress"] } ] ``` `beta` publishes: ``` capabilities: [ { name: "records.search", schema: "1.3", scopes: ["read:pii"] }, { name: "records.export", schema: "1.3", scopes: ["read:pii"] } ] ``` Three independent collapses occur in a single handshake, and each is individually invisible: 1. **Schema-version drift.** `records.search` at `1.4` vs `1.3` — the negotiation engine treats "same name, different schema" as *compatible-by-name* and admits the capability, but binds it at the **lower** version (`1.3`). The `1.4` request shape (which includes a `redaction_profile` field) is not rejected; it is silently dropped by the `1.3` handler, which ignores unknown fields. The delegating agent believes it requested redacted export; the delegatee returned unredacted rows under a `1.3` contract that has no redaction concept. 2. **Scope projection asymmetry.** `records.export` requires `egress` on `alpha`'s side. `beta`'s manifest does not declare `egress` at all (not "denied" — *absent*). The intersection engine drops the `egress` scope silently, producing a capability that exists by name but cannot legally egress. The agent's plan includes a cross-org egress step; the capability token it holds does not carry the scope; the first egress tool-call fails at `beta`'s policy PEP with `403 scope_missing`, *after* the agent has already committed two prior tool calls that mutated `beta` state. 3. **Policy claim absorption.** `alpha`'s policy attaches a claim `data_residency: "eu"` to the delegation warrant. `beta`'s policy engine does not recognize the claim key and, per its default, *drops unknown claims* rather than rejecting the warrant. The warrant is admitted. `beta` then serves the request from a `us`-region replica. No error is raised anywhere; the residency constraint simply evaporates. The composite observable: the negotiated capability set has cardinality 2 (both names present) but effective cardinality 1 (`records.search` at wrong schema, `records.export` without egress). The agent's planner, reading the *names*, believes cardinality 2 and plans a two-tool workflow. The collapse is a **cardinality illusion** — the manifest count agrees, the semantic content does not. ## Condition of Validity The intersection-under-projection semantic is the correct invariant **only when** the negotiation engine enforces three structural guarantees simultaneously: - **Schema strictness:** a capability name match with a schema-version mismatch MUST fail closed, not bind to the lower version, unless an explicit compatibility adapter is registered and its lossy fields are enumerated. - **Scope totality:** a scope required by the delegator and *absent* (not explicitly denied) in the delegatee manifest MUST be treated as a denial, because absence is not consent at a trust boundary. - **Claim closure:** a policy claim unrecognized by the receiving engine MUST cause warrant rejection, not claim-dropping, because silent claim-dropping is indistinguishable from claim-satisfaction from the delegator's vantage. When any of these three is relaxed — which is the default in most federation implementations, because strict modes break interop with older peers — the intersection collapses below the union and below either party's belief. The invariant "negotiated set = declared set" holds only under strict mode. Under permissive mode it is a *fiction* maintained by name-matching. ## Decision Boundary The decision boundary is: **does the delegating agent verify the *effective* capability token against its *planned* tool-call shape before committing any mutating call?** - If yes: the collapse is detected at plan-validation time, before side effects. The agent can renegotiate, request an adapter, or escalate. Cost: one round-trip. - If no: the collapse is detected at first tool-call rejection, *after* prior mutating calls have landed. Cost: partial state mutation on the delegatee that must be compensated, plus a planner that has already diverged. The boundary is sharp because the failure is monotonic: once the agent commits a mutating call under a collapsed capability, every subsequent call in the plan inherits the incorrect capability assumption. There is no self-correction path — the agent's context now contains successful tool results that *appear* to validate the collapsed capability, deepening the illusion. The only recovery is full plan replay against a re-negotiated manifest, which requires the delegator to have retained the pre-mutation checkpoint. Agents that checkpoint only at task boundaries, not at capability-negotiation boundaries, cannot recover. ## Operational Effect The operational consequence is that **federation health cannot be measured by handshake success rate**. A 100% handshake success rate is compatible with a 0% effective-capability fidelity rate, because every collapse is absorbed silently. The correct metric is *effective cardinality fidelity*: for each negotiated capability, does the bound schema version, scope set, and claim set equal the delegator's requested projection? This must be computed by the delegator, not the delegatee, because the delegatee cannot see what it dropped. The guardrail is a **capability attestation round-trip**: after negotiation, the delegator sends a canonical probe — a synthetic tool-call shape derived from its *planned* invocation — and the delegatee must echo back the resolved schema version, the granted scope set, and the acknowledged claim set. Any divergence between the echo and the delegator's plan is a hard failure, raised before the first mutating call. This converts a silent intersection collapse into a loud, pre-commit rejection, and it is the only structural signal that reliably distinguishes "negotiated" from "actually available." ```python from dataclasses import dataclass, field from typing import Dict, Set class CapabilityCollapseError(RuntimeError): """Raised when a negotiated capability set has silently collapsed below the delegator's planned projection (schema, scope, or claim divergence).""" pass @dataclass class Capability: name: str schema: str scopes: Set[str] = field(default_factory=set) claims: Dict[str, str] = field(default_factory=dict) def negotiate_and_attest( planned: Dict[str, Capability], peer_manifest: Dict[str, Capability], peer_echo: Dict[str, Capability], strict: bool = True, ) -> Dict[str, Capability]: """Compute the effective capability set and attest it against the plan. Under strict mode, any schema-version mismatch, absent required scope, or unrecognized claim raises CapabilityCollapseError before any mutating call. Under permissive mode, the collapse is computed and returned with a warning annotation, but the caller is responsible for treating it as unsafe. """ effective: Dict[str, Capability] = {} for name, want in planned.items(): have = peer_manifest.get(name) if have is None: if strict: raise CapabilityCollapseError( f"capability {name!r} absent from peer manifest" ) continue # Axis 1: schema strictness. Name match with version drift binds low. if have.schema != want.schema: if strict: raise CapabilityCollapseError( f"schema drift on {name!r}: want {want.schema}, " f"peer offers {have.schema} (lossy bind)" ) bound_schema = min(want.schema, have.schema) else: bound_schema = want.schema # Axis 2: scope totality. Absent scope is denial, not consent. granted_scopes = want.scopes & have.scopes missing = want.scopes - have.scopes if missing and strict: raise CapabilityCollapseError( f"scope collapse on {name!r}: required {sorted(missing)} " f"absent from peer manifest (absence != consent)" ) # Axis 3: claim closure. Unrecognized claims must reject, not drop. bound_claims: Dict[str, str] = {} for k, v in want.claims.items(): if k not in have.claims: if strict: raise CapabilityCollapseError( f"claim closure violation on {name!r}: " f"claim {k!r}={v!r} unrecognized by peer" ) continue if have.claims[k] != v: if strict: raise CapabilityCollapseError( f"claim conflict on {name!r}: {k!r} " f"want {v!r}, peer {have.claims[k]!r}" ) continue bound_claims[k] = v effective[name] = Capability( name=name, schema=bound_schema, scopes=granted_scopes, claims=bound_claims, ) # Attestation: peer echo must match the effective set exactly. for name, eff in effective.items(): echo = peer_echo.get(name) if echo is None: raise CapabilityCollapseError( f"attestation gap: peer did not echo capability {name!r}" ) if echo.schema != eff.schema: raise CapabilityCollapseError( f"attestation schema mismatch on {name!r}: " f"effective {eff.schema}, echo {echo.schema}" ) if echo.scopes != eff.scopes: raise CapabilityCollapseError( f"attestation scope mismatch on {name!r}: " f"effective {sorted(eff.scopes)}, echo {sorted(echo.scopes)}" ) if echo.claims != eff.claims: raise CapabilityCollapseError( f"attestation claim mismatch on {name!r}: " f"effective {eff.claims}, echo {echo.claims}" ) return effective def preflight_federation( planned: Dict[str, Capability], peer_manifest: Dict[str, Capability], peer_echo: Dict[str, Capability], ) -> Dict[str, Capability]: """Run strict negotiation + attestation before any mutating tool call. Callers MUST invoke this and MUST NOT proceed to mutating calls if it raises. A successful return is the only structural signal that the negotiated set equals the planned projection. """ try: return negotiate_and_attest(planned, peer_manifest, peer_echo, strict=True) except CapabilityCollapseError: raise except Exception as exc: # noqa: BLE001 - surface unexpected negotiation faults raise CapabilityCollapseError( f"unexpected negotiation fault: {type(exc).__name__}: {exc}" ) from exc ```