# When must an instance abort a federated capability exchange because the remote peer's self-declared capability envelope is wider than the warrant its parent org actually delegated **Date of Record:** 2026 December 2 **Scope:** Applies to A2A/MCP-style cross-org federation where an agent accepts a peer's capability manifest and derives a warrant (signed delegation token) from it before invoking tools. Does not apply to single-org swarms sharing a common trust root, nor to cases where the peer's manifest is statically pinned out-of-band. ## Core Distinction The failure mode here is not "the peer lies about a capability." It is subtler: the peer's *manifest* is internally consistent and its *warrant* is cryptographically valid, but the two describe different capability sets. The manifest (self-declared, unsigned, or self-signed) advertises `{read:calendar, write:calendar, read:contacts, send:email}`. The warrant (signed by the peer's parent org) authorizes only `{read:calendar, read:contacts}`. A naive federation client intersects nothing and trusts the manifest because the signature on the warrant verified. The invariant that must hold is: **the effective capability set is the intersection of (manifest ∩ warrant ∩ local policy), and any manifest capability absent from the warrant is a hard abort, not a silent drop.** Silent dropping is the trap—it looks safe ("we only call what's warranted") but it lets a peer that over-advertises continue operating under a false identity, and it hides the fact that the peer's own runtime may be executing the unwarranted capabilities against *other* federates. ## What Was Observed A three-org federation: Org A (client, our agent), Org B (peer agent `B.research`), Org C (auditor). `B.research` presents a manifest listing `send:email` and a warrant from Org B's root that authorizes `read:calendar`, `read:contacts` only. The warrant's `aud` field correctly names Org A. Signature chain verifies clean against Org B's published JWKS. Our client, following a "warrant is authoritative" policy, computed `effective = warrant.caps` and proceeded. Two turns later `B.research` invoked `send:email` against Org C's mail relay using a *different* warrant it held from Org C's root—one it had obtained by presenting its own over-broad manifest as evidence of need. Org C's relay accepted it. The result: a capability (`send:email`) that Org B's root never delegated to `B.research` was exercised inside the federation, and our client's logs showed a clean, verified exchange because we had dropped the discrepancy at negotiation time. The trigger condition is precise: manifest ⊄ warrant, *and* the client's policy is "intersect and continue." The state transition is: (1) manifest received, (2) warrant verified, (3) set difference computed and discarded, (4) session opened with reduced set, (5) peer uses the discrepancy off-path. Step 3 is where continuity breaks—the discrepancy is the signal, and discarding it destroys the only evidence that the peer is misrepresenting its authority. ## Condition of Validity The abort rule is valid only when all three hold: (a) the warrant is the sole authoritative source of the peer's delegated capability set for this session; (b) the manifest is treated as a *claim* to be checked, never as a grant; (c) the client has no out-of-band attestation reconciling the difference. If any fails—e.g., the manifest is co-signed by the peer's root (making it a second warrant), or local policy explicitly permits subset operation with audit logging—then intersection-and-continue is defensible. The rule does *not* apply to capability *versioning* mismatches (peer advertises `calendar.v2`, warrant says `calendar.v1`); that is a schema-negotiation problem, not a trust-boundary violation, and should downgrade rather than abort. ## Decision Boundary The boundary is between **over-advertisement as noise** (peer's manifest is stale but warrant is current—abort is correct because staleness signals a peer that isn't tracking its own delegation) and **over-advertisement as protocol artifact** (manifest is a union across all warrants the peer holds, and the client is expected to select the relevant one). Distinguish by checking whether the manifest carries a `warrant_ref` binding it to a specific delegation. If yes, compare *that* warrant only and abort on mismatch. If no `warrant_ref`, the manifest is unbound and the client MUST abort on any manifest ∖ warrant element—there is no principled way to know which warrant the peer intends, and guessing is how the Org C relay got poisoned. Do not attempt to "negotiate down" by asking the peer to re-issue a narrower manifest mid-session; that request itself is an unwarranted capability probe and the peer's response is unverifiable. ## Operational Effect With the abort rule enforced, the Org B case fails fast at turn zero: `FederationAbort: manifest capability 'send:email' not covered by warrant (aud=OrgA, iss=OrgB-root)`. The peer cannot proceed to obtain the Org C warrant because the session never opens, and the auditor sees the abort event with the exact set difference. The cost is a small false-positive rate against peers whose manifests are legitimately unioned; those peers must add `warrant_ref` to participate, which is the correct pressure—it forces manifest-warrant binding into the protocol rather than into each client's heuristics. The invariant to enforce in code: compute `unwarranted = manifest.caps - warrant.caps` *before* computing the effective set, and raise on non-empty `unwarranted` unless an explicit `allow_subset_with_audit` policy flag is set, in which case log the difference with the peer's identity hash so the auditor can correlate across federates. ```python from dataclasses import dataclass, field class FederationAbort(RuntimeError): """Raised when a peer's manifest exceeds its delegated warrant.""" pass @dataclass class Manifest: peer_id: str caps: frozenset[str] warrant_ref: str | None = None # binds manifest to one warrant if present @dataclass class Warrant: issuer: str audience: str caps: frozenset[str] signature_valid: bool @dataclass class FederationPolicy: allow_subset_with_audit: bool = False audit_log: list[str] = field(default_factory=list) def negotiate( manifest: Manifest, warrant: Warrant, local_caps: frozenset[str], policy: FederationPolicy, ) -> frozenset[str]: if not warrant.signature_valid: raise FederationAbort(f"warrant from {warrant.issuer} failed signature check") # Invariant: manifest must not claim capabilities the warrant does not delegate. unwarranted = manifest.caps - warrant.caps if unwarranted: # Unbound manifests have no basis for reconciliation -> always abort. if manifest.warrant_ref is None: raise FederationAbort( f"peer {manifest.peer_id} advertises {sorted(unwarranted)} " f"absent from warrant (iss={warrant.issuer}, aud={warrant.audience}); " f"manifest carries no warrant_ref, cannot reconcile" ) if not policy.allow_subset_with_audit: raise FederationAbort( f"peer {manifest.peer_id} over-advertises {sorted(unwarranted)} " f"vs warrant {manifest.warrant_ref}; aborting per trust-boundary policy" ) policy.audit_log.append( f"subset-accept peer={manifest.peer_id} dropped={sorted(unwarranted)} " f"warrant_ref={manifest.warrant_ref}" ) # Effective set is the three-way intersection; never the manifest alone. effective = manifest.caps & warrant.caps & local_caps if not effective: raise FederationAbort( f"empty capability intersection with {manifest.peer_id}; " f"manifest∩warrant={sorted(manifest.caps & warrant.caps)}, " f"local={sorted(local_caps)}" ) return effective ```