# What structural signals indicate that cross-org capability negotiation has silently widened an agent's effective authority beyond the warrant's declared scope **Date of Record:** 2026 November 27 **Scope:** Applies to federated agent-to-agent (A2A) and tool-broker (MCP-style) handshakes where an agent operating under org A's warrant requests capabilities from a peer in org B, and the peer's policy engine maps the request onto its own capability graph. Does not apply to single-org intra-mesh calls where warrant and policy engine share a single trust domain, nor to stateless request/response RPC with no delegated authority. ## Core Distinction The failure mode is not a rejected handshake or a forged credential. It is a *successful* handshake whose negotiated capability set is a strict superset of what the originating warrant authorized — produced entirely through legitimate, spec-compliant behavior on both sides. The distinction that matters: **declared scope** (what the warrant's issuer wrote down: verb, resource class, budget, expiry, delegation depth) versus **effective authority** (the closure of capabilities actually reachable by the agent once the peer has expanded the request through its own capability graph). Federation protocols negotiate on *capability identifiers*, not on *authority semantics*. When org B's policy engine receives `cap:read:records`, it resolves that identifier against its own graph, which may bind `cap:read:records` to a composite that transitively includes `cap:export:records` and `cap:list:subrecords`. Org A's warrant authorized only the verb `read`. The handshake returns `GRANTED`. Nothing in the wire transcript is wrong. The authority is now wider than the warrant. This is a *closure mismatch*, and it is invisible to both cryptographic verification (the signature is valid) and schema validation (the capability ID is well-formed and known). It only surfaces when you compare the transitive capability closure of the grant against the transitive authority closure of the warrant — a comparison neither side is contractually obligated to perform. ## What Was Observed A federated retrieval agent under org A's warrant `W = {verb: read, resource: records/*, depth: 1, budget: 40 calls, expiry: T+900s}` negotiated with a peer broker in org B. The wire exchange: 1. Agent sends `capability_request{ id: "cap:read:records", constraints: { resource_glob: "records/*", max_calls: 40 } }`. 2. Org B's policy engine matches `cap:read:records` to its local bundle `bundle:records-readonly`, which the *broker author* intended to be read-only but which was assembled from three primitive grants: `read_object`, `enumerate_keys`, and `stream_export`. The bundle's name carried the intent; its membership did not. 3. Broker returns `capability_grant{ id: "cap:read:records", bundle: "bundle:records-readonly", expires: T+900 }`. 4. Agent, seeing `read` in the granted ID and matching `records/*` in the constraint echo, proceeds. It never inspects the bundle membership because the protocol does not require it to. Three structural signals appeared in the transcript, each individually dismissible: - **Signal 1 — Asymmetric closure depth.** The grant's `bundle` field pointed to a composite, while the request named a leaf capability. A leaf-to-composite promotion on the peer side is the mechanism by which closure widens. The request asked for one node; the grant returned a subtree. - **Signal 2 — Constraint echo without constraint binding.** The grant echoed `resource_glob: records/*` but did not echo `max_calls`. The peer's bundle enforced its own internal budget (unbounded for `enumerate_keys`), so the agent's 40-call budget was honored for `read_object` but `enumerate_keys` could fan out per-key without decrementing it. The echoed constraint was descriptive, not enforcing. - **Signal 3 — Verb-class drift in the granted identifier.** The granted ID was byte-identical to the requested ID (`cap:read:records`), but the *resolved* verb set was `{read, enumerate, export}`. Identifier stability masked semantic expansion. A naive string-equality check between request and grant — the most common guardrail — passes. The agent executed 40 reads, 1,200 key enumerations (each cheap, none counted against the budget), and 3 export streams before the warrant's expiry. The total authority exercised exceeded the warrant's declared scope by roughly two orders of magnitude in call count and by an entire verb class in kind. No alert fired. The signature on every message was valid. ## Condition of Validity The closure mismatch is possible if and only if all three of the following hold simultaneously: 1. **The peer resolves capability identifiers through a composite/bundle layer** whose membership is not transitively visible to the requester. If the peer exposes leaf capabilities only, or publishes the full membership closure of every bundle, the requester can compute the closure and detect the widening. 2. **The requesting side's warrant does not pin the resolved verb set** — i.e., the warrant authorizes a capability *class* (`read`) rather than an explicit enumeration of permitted primitives (`read_object` only). Class-level warrants are the norm because they are portable across peers; that portability is exactly what makes them closure-unsafe. 3. **The protocol's grant message carries no machine-checkable closure attestation** — no signed `resolved_primitives` list, no `closure_hash`, no `superset_of: ` proof. Without an attestation, the requester has nothing to compare against and defaults to trusting the identifier match. Remove any one condition and the mismatch is either impossible or detectable. The dangerous configuration is: composite-resolving peer + class-level warrant + identifier-only grant. This is also the *default* configuration of most A2A and MCP broker deployments, because each of the three choices is locally reasonable. ## Decision Boundary The boundary is not "trust the peer or don't." It is: **at what point must the requester refuse to proceed on identifier equality alone and demand closure evidence?** The decision rule that bounds the failure: - If the grant names a **leaf** capability and the request named a leaf capability and the IDs match → identifier equality is sufficient; proceed. - If the grant names a **composite/bundle** (or the peer's manifest declares it *may* resolve to composites) → identifier equality is **insufficient**; the requester must obtain the resolved primitive set and compute `closure(grant) ⊆ authority(warrant)`. If the peer cannot or will not supply the closure, treat the grant as unbounded and refuse. - If the grant **fails to echo any constraint present in the request** (budget, expiry sub-bound, resource glob) → that constraint is descriptive only; the requester must either re-request with the constraint bound into a leaf grant or account for the unconstrained dimension locally (e.g., enforce its own enumeration counter independent of the peer's budget). - If the warrant is **class-level** and the peer resolves through composites → the requester must downgrade its own warrant to a leaf enumeration before requesting, or accept that it cannot enforce closure and must route through an auditor. The guardrail is a *closure check at grant time*, not a post-hoc audit. By the time an auditor sees the transcript, the enumerations have already happened. ## Operational Effect Enforcing the closure check changes three operational properties: 1. **Handshake latency increases** on composite-resolving peers, because the requester must fetch and verify a closure attestation before the first call. In practice this is one extra round-trip per grant, amortized across the grant's lifetime — acceptable, but it must be budgeted, because a requester that times out waiting for closure evidence and *proceeds anyway* has reintroduced the failure. 2. **Some grants become unusable.** A peer that cannot produce a signed closure attestation is, under this rule, refused. This is the intended effect: an unattestable composite grant is an unbounded grant, and the only safe treatment of an unbounded grant under a bounded warrant is refusal. Expect federation coverage to drop until peers publish closures. 3. **Warrant authors must pin verb sets.** Class-level warrants become a liability once closure checking is enforced, because they cannot be checked against a resolved primitive set without a mapping the issuer did not supply. The operational fix is to require warrants to enumerate permitted primitives, or to carry a signed `permitted_closure` set that the requester compares against `closure(grant)`. The invariant to hold, stated precisely: **for every grant `g` accepted under warrant `w`, `closure(resolved_primitives(g)) ⊆ permitted_closure(w)`, and the closure evidence must be signed by the peer's policy engine, not asserted by the agent.** Any grant that cannot satisfy this comparison is refused, not downgraded, not logged-and-proceeded. ```python from dataclasses import dataclass, field from typing import FrozenSet class ClosureMismatchError(RuntimeError): """Raised when a peer grant's resolved capability closure exceeds the warrant's permitted closure.""" class UnattestableGrantError(RuntimeError): """Raised when a composite grant arrives without signed closure evidence.""" @dataclass(frozen=True) class Warrant: warrant_id: str permitted_primitives: FrozenSet[str] # explicit leaf-level authority max_calls: int expiry: float @dataclass(frozen=True) class Grant: grant_id: str requested_id: str resolved_primitives: FrozenSet[str] | None # None => peer did not attest closure is_composite: bool closure_signature: str | None echoed_constraints: dict = field(default_factory=dict) def admit_grant(warrant: Warrant, grant: Grant, now: float) -> None: """Enforce closure(subset) at grant time. Refuse, do not downgrade.""" if now >= warrant.expiry: raise ClosureMismatchError( f"warrant {warrant.warrant_id} expired at {warrant.expiry}, now={now}" ) # Leaf-to-leaf with matching id: identifier equality is sufficient. if not grant.is_composite and grant.resolved_primitives is not None: resolved = grant.resolved_primitives else: # Composite grant: closure evidence is mandatory and must be signed. if grant.resolved_primitives is None or not grant.closure_signature: raise UnattestableGrantError( f"grant {grant.grant_id} (requested={grant.requested_id}) is composite " f"but carries no signed closure attestation; treating as unbounded" ) resolved = grant.resolved_primitives excess = resolved - warrant.permitted_primitives if excess: raise ClosureMismatchError( f"grant {grant.grant_id} resolves to primitives {sorted(excess)} " f"outside warrant {warrant.warrant_id} permitted closure " f"{sorted(warrant.permitted_primitives)}" ) # Constraint echo must be binding, not descriptive: budget must be echoed. if "max_calls" not in grant.echoed_constraints: raise ClosureMismatchError( f"grant {grant.grant_id} did not echo max_calls; budget is unenforced " f"across the grant's lifetime" ) if grant.echoed_constraints["max_calls"] > warrant.max_calls: raise ClosureMismatchError( f"grant {grant.grant_id} echoes max_calls=" f"{grant.echoed_constraints['max_calls']} exceeding warrant cap " f"{warrant.max_calls}" ) # --- Example: the observed incident, replayed under the guardrail --- if __name__ == "__main__": w = Warrant( warrant_id="A-W-7741", permitted_primitives=frozenset({"read_object"}), max_calls=40, expiry=1000.0, ) # Peer resolved cap:read:records to a 3-primitive bundle, echoed no budget. g = Grant( grant_id="B-G-0092", requested_id="cap:read:records", resolved_primitives=frozenset({"read_object", "enumerate_keys", "stream_export"}), is_composite=True, closure_signature="sig:peerB:policy:0x9af...", echoed_constraints={"resource_glob": "records/*"}, ) try: admit_grant(w, g, now=120.0) except ClosureMismatchError as e: print(f"REFUSED (closure): {e}") except UnattestableGrantError as e: print(f"REFUSED (attestation): {e}") ```