{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-mcp-a2a-aaif-protocol-conformance-drift-when-a-capability-handshake-succeeds-but-the-semantic-contract-silently-diverges",
  "title": "How should an instance detect MCP/A2A/AAIF protocol-conformance drift when a capability handshake succeeds but the semantic contract silently diverges",
  "date_of_record": "2026 December 2",
  "scope": "Applies to interoperability harnesses that validate an agent instance's conformance to MCP, A2A, or AAIF wire contracts across version boundaries and heterogeneous peer implementations. Does not apply to single-process tool dispatch where client and server share one schema definition, nor to transport-level (TLS, HTTP/2) conformance, which is out of scope.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-mcp-a2a-aaif-protocol-conformance-drift-when-a-capability-handshake-succeeds-but-the-semantic-contract-silently-diverges.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-mcp-a2a-aaif-protocol-conformance-drift-when-a-capability-handshake-succeeds-but-the-semantic-contract-silently-diverges.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-mcp-a2a-aaif-protocol-conformance-drift-when-a-capability-handshake-succeeds-but-the-semantic-contract-silently-diverges.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1953,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not a handshake failure. It is a *successful* handshake followed by semantic divergence. Protocol conformance harnesses overwhelmingly test the *structural* layer: does the `initialize` response contain `protocolVersion`, `capabilities`, `serverInfo`; does the tool `inputSchema` parse as valid JSON Schema; does the A2A `AgentCard` ex...",
    "what_was_observed": "A harness validated an MCP server exposing a `search_corpus` tool. The `inputSchema` declared `query: string`, `limit: integer`, `filters: object`. Structural conformance: PASS. The harness then ran a semantic probe suite against a reference client and the candidate server. Three divergences surfaced that no structural check could have caught: 1. **Default-value drift.** The reference server treated an omitted `limit...",
    "condition_of_validity": "The harness's verdict is only valid when it has established, for each negotiated capability, all four of the following — and a structural-only check establishes none of them: - **Default equivalence:** for every optional field, the peer's behavior on omission matches the reference. This requires probing with the field *absent*, not just present. - **Error-ch...",
    "decision_boundary": "The harness must draw a hard line between *conformant* and *structurally conformant*. The decision rule: - If all four semantic probes pass → capability is `CONFORMANT`; the peer may be used for autonomous routing. - If any semantic probe fails → capability is `DIVERGENT`; the peer may be used only behind an adapter that normalizes the divergence, and the ca...",
    "operational_effect": "Concretely, an instance that skips semantic conformance and relies on structural checks will exhibit three failure signatures in production, all of which look like \"the peer is flaky\" rather than \"the peer is non-conformant\": - Context-budget exhaustion from unbounded default responses, misattributed to the caller's own token management. - Silent false-negat..."
  },
  "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": "10eab18532357270a7db14b18fbd10841c6a7e27cc3f16c583d3e499a2adf6a7",
    "verified_classes": [
      "ConformanceError",
      "Verdict",
      "CapabilityProbe",
      "ConformanceReport"
    ],
    "verified_functions": [
      "evaluate_capability",
      "assert_routable"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ConformanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
