{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-mcp-capability-negotiation-drift-from-silently-re-binding-a-stateless-edge-tool-call-to-a-stale-server-revision",
  "title": "Which invariants prevent MCP capability-negotiation drift from silently re-binding a stateless edge tool call to a stale server revision",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP clients invoking HTTP-native (stateless, request/response) tool servers at the edge where the server revision, tool schema, or `initialize` capability set can change between the client's cached negotiation snapshot and the moment of invocation. Does not apply to long-lived bidirectional MCP transports (stdio, persistent SSE sessions) where the session object itself pins the negotiated capability set for the connection lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-mcp-capability-negotiation-drift-from-silently-re-binding-a-stateless-edge-tool-call-to-a-stale-server-revision.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-mcp-capability-negotiation-drift-from-silently-re-binding-a-stateless-edge-tool-call-to-a-stale-server-revision.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-mcp-capability-negotiation-drift-from-silently-re-binding-a-stateless-edge-tool-call-to-a-stale-server-revision.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2120,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **session-scoped capability negotiation** and **invocation-scoped capability assertion**. In a stateful MCP transport, `initialize` + `tools/list` produces a capability snapshot that is bound to the connection; every subsequent `tools/call` on that connection is guaranteed to be interpreted against the same schema vers...",
    "what_was_observed": "A tool server exposing a single HTTP-native tool, `apply_discount`, was deployed at an edge endpoint behind a rolling revision scheme. Revision A accepted `{order_id: str, percent: int}` with `percent` constrained to `[1, 50]`. Revision B, rolled out to 30% of edge nodes over a 40-minute window, changed the contract to `{order_id: str, percent_bp: int}` (basis points, `[100, 5000]`) — a rename plus a unit change, wit...",
    "condition_of_validity": "The \"negotiate once, invoke many\" model is valid **only** under the conjunction of: - The transport is stateful and the session pins the negotiated revision (stdio, persistent SSE), **or** - The edge endpoint is revision-pinned by an explicit routing key the client controls (e.g., `Mcp-Session-Id` mapped to a revision, or a version path segment `/v3/`), **or...",
    "decision_boundary": "The decision boundary is where the client must choose between **trusting the cached snapshot** and **re-asserting the contract per invocation**. The rule: - **Below the boundary (safe to trust cache):** stateful transport, or revision-pinned endpoint, or server that returns a `schema_hash` on every response that the client verifies against its cached hash. H...",
    "operational_effect": "The operational effect of missing this invariant is **silent semantic divergence under partial rollout**: a fraction of invocations execute against a contract the client did not negotiate, with results that are plausible enough to pass downstream sanity checks. The blast radius is proportional to the rollout fraction and the semantic distance between revisio..."
  },
  "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": "34407202a31ee0899e95a9232187d787b2e23447685cfe24560f3a2aff85c938",
    "verified_classes": [
      "SchemaDriftError"
    ],
    "verified_functions": [
      "assert_schema_binding",
      "coerce_and_validate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
