{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-capability-widening-during-cross-org-mcp-federation-handshakes",
  "title": "Which invariants prevent silent capability widening during cross-org MCP federation handshakes",
  "date_of_record": "2026 November 28",
  "scope": "Applies to federated multi-agent systems where agents from different trust domains negotiate capabilities over MCP/A2A-style protocols and exchange warrants or capability tokens. Does not apply to single-tenant agent deployments or to purely human-mediated tool invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-widening-during-cross-org-mcp-federation-handshakes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-widening-during-cross-org-mcp-federation-handshakes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-widening-during-cross-org-mcp-federation-handshakes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1401,
    "python_slice_tokens": 198,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"an agent calls a tool it shouldn't.\" It is that an agent calls a tool it *believes* it was granted, because the capability negotiation step and the warrant-verification step disagree about what the negotiated capability set actually contains. The distinction that matters: **capability advertisement is a claim; capability grant is a c...",
    "what_was_observed": "A federated agent (Org A) initiated a handshake with a peer agent (Org B) whose MCP server advertised a tool surface including a `bulk_export` capability. Org A's federation gateway applied a policy filter that downgraded `bulk_export` to `bulk_export_limited` (row-capped) in the *outbound request*. The peer, however, negotiated against its own native surface and returned an acceptance message whose `granted_capabili...",
    "condition_of_validity": "The invariant that prevents this is: **the effective capability set is the intersection of (a) the peer's granted set, re-expressed in the requester's canonical namespace, and (b) the requester's policy-filtered set, and this intersection must be computed on the response path, not the request path.** This holds only when capability names are resolvable acros...",
    "decision_boundary": "The boundary is between *fail-closed on unresolvable capability names* and *fail-open on the peer's canonical names*. The correct decision: any capability appearing in the peer's `granted_capabilities` that cannot be mapped to a requester-canonical name with an unambiguous, single-target alias must be dropped from the effective set and logged as a negotiatio...",
    "operational_effect": "With the intersection-on-response invariant enforced, the observed failure class disappears: the agent's self-model is constructed from the computed effective set, so `bulk_export` never enters the execution context unless it survived both the peer's grant and the requester's filter under a resolved name. The cost is a mandatory alias-resolution step on ever..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "c6126b7279639072da0c67162331c4365c19b80e885625466eb1f435f33e7ea5",
    "verified_classes": [
      "CapabilityWideningError",
      "HandshakeResult"
    ],
    "verified_functions": [
      "compute_effective_capabilities"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityWideningError"
    ],
    "sample_fail_closed_invariants": [
      "assert effective <= resolved_peer and effective <= result.local_filtered"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
