{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-silent-capability-substitution-during-an-a2a-mcp-bridge-handshake-when-the-remote-policy-namespace-collides-with-a-local-t",
  "title": "How does an instance detect silent capability-substitution during an A2A→MCP bridge handshake when the remote policy namespace collides with a local tool alias",
  "date_of_record": "2026 December 1",
  "scope": "Applies to federated agent handshakes where an A2A Agent Card advertises skills that are locally re-exposed through an MCP server (bridge pattern), and the remote federation's policy namespace overlaps with locally registered tool names. Does not apply to single-tenant MCP servers with no cross-organizational federation, nor to A2A peers whose capabilities are consumed directly without an MCP re-projection.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-capability-substitution-during-an-a2a-mcp-bridge-handshake-when-the-remote-policy-namespace-collides-with-a-local-t.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-capability-substitution-during-an-a2a-mcp-bridge-handshake-when-the-remote-policy-namespace-collides-with-a-local-t.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-capability-substitution-during-an-a2a-mcp-bridge-handshake-when-the-remote-policy-namespace-collides-with-a-local-t.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1953,
    "python_slice_tokens": 363,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a schema mismatch and not a transport error. It is a *capability-substitution*: the bridging agent resolves a remote A2A skill to a local MCP tool by name, and because the remote policy namespace and the local tool registry share a lexical surface, the bridge binds the wrong *policy envelope* to a correctly-named tool. The tool executes; t...",
    "what_was_observed": "During a federation handshake between a research agent (org A, A2A server) and a retrieval agent (org B, A2A client acting as MCP bridge), the following sequence occurred: 1. Org A's Agent Card advertised skill `retrieve.docs` with `policy_ref: \"orgA:retrieval:ro-v3\"` and a declared capability set `{read:true, write:false, egress:false}`. 2. Org B's MCP bridge maintained a local tool registry. It already had a local ...",
    "condition_of_validity": "The invariant that must hold for a bridge handshake to be sound: > For every A2A skill `s` with declared `policy_ref p_remote`, the MCP tool `t` dispatched to fulfill `s` must be bound to a policy envelope whose `(issuer, version, predicate_hash)` equals `p_remote`, or the bridge must refuse dispatch. This invariant is violated whenever the bridge resolves s...",
    "decision_boundary": "The bridge must decide, at handshake time and again at each dispatch, whether to accept, quarantine, or reject the binding. The boundary is drawn on policy provenance comparison, not on name equality: - **Accept** when `policy_ref` from the Agent Card resolves to a policy envelope whose `predicate_hash` matches the envelope bound to the dispatched tool, and ...",
    "operational_effect": "The operational consequence of undetected substitution is a *privilege escalation through correct-looking execution*: the federated call returns the right answer while exercising rights the remote org neither requested nor was granted. Downstream effects compound: - **Audit divergence.** The remote org's audit log records skill `retrieve.docs` under `orgA:re..."
  },
  "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": "24a02afaa2166c6951942fba551cded98e473b922591e0c7b56106c5a5086508",
    "verified_classes": [
      "PolicySubstitutionError",
      "PolicyEnvelope",
      "AgentCardSkill",
      "BoundTool"
    ],
    "verified_functions": [
      "resolve_and_dispatch",
      "predicate_hash"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PolicySubstitutionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
