# What structural signals indicate a cross-org capability-scope leak in federated agent negotiation before the first tool call executes **Date of Record:** 2026 November 30 **Scope:** Applies to cross-organizational agent federations where a consumer agent negotiates a scoped capability grant from a provider agent across a trust boundary (A2A handoff, MCP server federation, or signed capability-warrant exchange). Does not apply to single-tenant agent deployments or to intra-org agent meshes sharing one trust root. ## Core Distinction The dangerous failure in cross-org federation is not a rejected handshake. A rejected handshake is loud, cheap, and observable. The dangerous failure is a *silent capability-scope widening* that occurs during trust-boundary negotiation, where the provider agent issues a grant that is a strict superset of what the consumer requested—and the consumer proceeds to act on the widened grant because the negotiation "succeeded." This is distinct from a schema mismatch (which fails validation) and from a warrant-propagation failure (which fails signature verification). A scope-widening grant passes both. The signature is valid, the schema conforms, the capability names match. What changed is the *scope qualifier* attached to the capability: the requested `read:records[tenant=acme]` returned as `read:records[tenant=*]`, or the requested `execute:refund[max=100]` returned as `execute:refund[max=10000]`. The consumer agent, programmed to check "did I get the capability I asked for," sees `read:records` in the grant and proceeds. The qualifier—the actual trust boundary—was silently relaxed by the provider's capability-minting logic, which defaulted to the provider's own broader scope when it could not resolve the consumer's narrower one. The invariant that fails: *a capability grant must be scope-monotone with respect to the request.* The grant may be narrower than the request (provider refuses to grant full scope) but must never be broader. Standard capability-negotiation protocols enforce name-level matching and signature validity but rarely enforce scope-qualifier monotonicity, because the qualifier is an opaque string to the protocol layer and only the provider's business logic understands its semantics. ## What Was Observed A consumer agent (Org A) negotiating with a provider agent (Org B) for a records-read capability. The consumer's request carried `scope: {tenant: "acme", fields: ["id","status"], ttl: 300}`. The provider's capability-minting service looked up its internal policy for `read:records` and found that Org A's trust tier permitted `fields: ["id","status","amount","ssn_last4"]` with `tenant: "*"`. The minting service, designed to "grant the maximum permitted," issued a warrant with the provider's permitted scope rather than intersecting it with the consumer's requested scope. The consumer's grant-validation logic checked three things: (1) signature valid — passed; (2) capability name `read:records` present — passed; (3) TTL ≤ requested TTL — passed (provider honored the 300s). It did not check that `fields` was a subset of the requested fields, nor that `tenant` was the requested tenant. The consumer then executed `read:records` against the provider's data plane, which honored the warrant's broader scope and returned `amount` and `ssn_last4` for *all* tenants. The consumer's downstream summarization step ingested cross-tenant PII into its context window, and because the consumer's own output filter was scoped to "acme tenant data," the cross-tenant fields passed through unredacted into a report delivered to Org A's analyst. The failure was detected 41 minutes later by Org B's data-plane audit, not by either agent. Neither agent's logs showed an error. The negotiation log showed `grant.status = "success"`. The consumer's log showed `capability_acquired: read:records`. The scope-widening was invisible at both endpoints because both endpoints treated the qualifier as opaque and trusted the counterparty to have honored the request. A second instance in the same federation: consumer requested `execute:refund[max=100, currency=USD]`, provider minted `execute:refund[max=10000, currency=USD]` because the provider's tier policy for Org A allowed up to 10000 and the minting service used `max(provider_limit, requested_limit)` instead of `min(...)`. The consumer executed a 100-unit refund correctly, but a retry-loop bug in the consumer's tool-call wrapper re-issued the call with a corrected amount of 8500 (a stale variable), which the provider's data plane accepted because the warrant permitted it. The consumer's own guardrail—"we only ever refund ≤100"—was enforced in the consumer's *request* path but not in its *execution* path, because the execution path trusted the warrant's scope as authoritative. The structural signal present in both cases: the grant's scope qualifier was not a subset of the request's scope qualifier, and the consumer had no comparison logic for qualifiers. The signal was available at grant-receipt time, before any tool call. It was not checked. ## Condition of Validity The scope-monotonicity invariant is only enforceable when the scope qualifier is *comparable*—i.e., when both parties share a semantics for the qualifier that permits subset testing. This holds when: - The qualifier is a structured object (tenant ID, field list, numeric bound, currency) with a defined partial order. Subset testing is decidable. - The provider echoes the consumer's requested qualifier structure in the grant, even if it widens values, so the consumer can diff field-by-field. - The consumer's grant-validation runs *before* any tool invocation and treats a non-subset grant as a hard failure, not a warning. The invariant does *not* hold, and this guardrail cannot be applied, when the qualifier is a free-text or opaque policy string (e.g., `scope: "standard-partner-access"`) whose meaning is defined only inside the provider's policy engine. In that case the consumer cannot compute subset relation and must fall back to a different control: requiring the provider to return a *scope attestation* listing the concrete resolved permissions, which the consumer logs and bounds by allowlist rather than by subset comparison. The distinction matters: subset-monotonicity is a preventive control; attestation-and-allowlist is a detective control with a wider exposure window. ## Decision Boundary The boundary is drawn at grant-receipt, not at grant-request and not at tool-call. Three positions are possible: 1. **Trust the request.** Consumer assumes provider honored the requested scope. Fails on any provider minting bug or policy-default widening. This is the observed failure mode. 2. **Trust the grant.** Consumer treats the grant's scope as authoritative and executes within it. This is correct *if and only if* the consumer's own guardrails are re-derived from the grant at execution time rather than from the original request. The second observed instance failed here: the consumer's execution path used request-derived guardrails (≤100) but the grant permitted 10000, and the retry path bypassed the request-derived guardrail. Trust-the-grant is safe only when execution-time bounds are recomputed from the grant, not cached from the request. 3. **Enforce monotonicity.** Consumer rejects any grant whose scope is not a subset of the request. This is the strictest and correct default for cross-org federation, because the consumer cannot audit the provider's minting logic and must assume it may widen. The cost is false rejections when the provider legitimately cannot express the requested scope and returns a semantically-equivalent-but-differently-structured qualifier; this is resolved by a structured-qualifier requirement in the federation's capability schema, not by relaxing the check. The decision boundary for an agent operator: if the federation's capability schema does not guarantee structured, comparable scope qualifiers, monotonicity enforcement is impossible and the operator must either (a) mandate schema change before federating, or (b) accept detective-only control with attestation logging and a bounded exposure window. Do not federate on opaque qualifiers with preventive controls assumed. ## Operational Effect Enforcing grant-receipt monotonicity shifts the failure from silent data exposure to loud negotiation rejection. In the records-read case, the consumer would have rejected the widened grant, the negotiation would have failed with `SCOPE_WIDENING_DETECTED`, and the operator would have a concrete signal that Org B's minting service intersects incorrectly. The fix is then a provider-side change (intersect requested ∩ permitted, not permitted alone), which is the correct locus. In the refund case, recomputing execution bounds from the grant (min of grant max and consumer policy max) would have capped the retry at 100 even though the grant permitted 10000, containing the retry-loop bug to a 100-unit exposure instead of 8500. The operational cost is a new class of negotiation failures that require human triage, because a scope-widening rejection is ambiguous between "provider bug" and "provider legitimately cannot express our scope." The triage rule: if the grant's qualifier is structurally comparable and strictly wider, it is a provider minting bug; if it is structurally incomparable, it is a schema gap requiring federation-level remediation. Both are actionable; neither is silent. The invariant to carry forward: *in cross-org federation, the consumer must treat the grant as adversarial input and prove scope-monotonicity before the first tool call. A grant that is valid, signed, schema-conformant, and wider than requested is the failure mode, not a success.* ```python class ScopeWideningError(RuntimeError): """Raised when a provider-issued capability grant exceeds the requested scope.""" pass def validate_grant_monotonicity(requested_scope: dict, granted_scope: dict) -> None: """ Enforce that granted_scope is a subset of requested_scope. Raised before any tool call executes. Structured qualifiers only. """ for key, req_val in requested_scope.items(): if key not in granted_scope: # Grant omitted a requested qualifier; provider may have defaulted it. raise ScopeWideningError( f"grant missing requested qualifier {key!r}; cannot prove subset" ) grant_val = granted_scope[key] if isinstance(req_val, list): # Field allowlist: granted fields must be a subset of requested. extra = set(grant_val) - set(req_val) if extra: raise ScopeWideningError( f"grant widens {key!r}: extra fields {sorted(extra)}" ) elif isinstance(req_val, (int, float)): # Numeric bound: granted must not exceed requested. if grant_val > req_val: raise ScopeWideningError( f"grant widens {key!r}: {grant_val} > requested {req_val}" ) elif isinstance(req_val, str): # Scalar qualifier (e.g. tenant): must match exactly unless wildcard requested. if req_val != "*" and grant_val != req_val: raise ScopeWideningError( f"grant widens {key!r}: {grant_val!r} != requested {req_val!r}" ) else: raise ScopeWideningError( f"qualifier {key!r} has non-comparable type {type(req_val).__name__}; " "federation schema must use structured qualifiers" ) def negotiate_and_execute(requested_scope: dict, provider_mint, tool_call) -> dict: grant = provider_mint(requested_scope) # returns {"scope": {...}, "warrant": "..."} try: validate_grant_monotonicity(requested_scope, grant["scope"]) except ScopeWideningError: # Fail loud at grant-receipt; do not proceed to tool_call. raise # Execution bounds recomputed from the grant, never cached from the request. execution_bounds = {k: grant["scope"][k] for k in requested_scope} return tool_call(execution_bounds) ```