{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-attest-an-mcp-server-mid-session-the-post-negotiation-capability-drift-boundary",
  "title": "When must an instance re-attest an MCP server mid-session: the post-negotiation capability drift boundary",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-lived agent sessions that bind to an MCP server after an `initialize` handshake and then continue issuing `tools/call` requests across transport reconnects, server restarts, or tool-list mutations. Does not apply to single-shot sessions that re-establish a fresh client per call, nor to servers whose tool surface is provably static for the session lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-an-mcp-server-mid-session-the-post-negotiation-capability-drift-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-an-mcp-server-mid-session-the-post-negotiation-capability-drift-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-an-mcp-server-mid-session-the-post-negotiation-capability-drift-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1873,
    "python_slice_tokens": 243,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the server lied during `initialize`.\" The failure is that **attestation is a point-in-time predicate over a mutable surface, but the session treats it as an invariant over the session's lifetime.** An MCP client performs capability negotiation once: it reads `serverInfo`, the advertised `capabilities`, and the `tools/list` result, validat...",
    "what_was_observed": "A tool-using agent was bound to an MCP server over a streamable-HTTP transport with a resumable session ID. At `initialize`, the server attested to identity `I_a` and advertised a `write_file` tool whose schema required `{path, content, mode: \"append\"|\"overwrite\"}`. The client validated the attestation signature, computed a digest over the canonicalized `tools/list` payload, and stored `(I_a, digest_a)` as the sessio...",
    "condition_of_validity": "The cached warrant `(identity, schema_digest)` remains a sound basis for `tools/call` only while all of the following hold: - The transport session has not reconnected to a different server instance (instance identity is stable across the session), **or** any reconnect re-runs attestation and the resulting `(identity, digest)` compares equal to the cached wa...",
    "decision_boundary": "The hard question is *when* to pay the re-attestation cost. Re-verifying on every call is correct but expensive (signature check + full `tools/list` fetch per invocation). The boundary that holds: - **Re-attest on any transport discontinuity.** A reconnect, a new session token, or a server-initiated `list_changed` notification are all *warrant-invalidating e...",
    "operational_effect": "Without the re-attestation boundary, capability sandboxing degrades from a security property to a startup ritual. The session inherits the *appearance* of a bounded tool surface while the actual reachable surface is whatever the current server instance happens to expose. The agent's probabilistic planner, faced with a schema failure, will do what planners do..."
  },
  "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": "7b4c68ee6dc48d249b0dafb09a1de0ab76eea3ff34e3b7d025eba866734e5f2b",
    "verified_classes": [
      "CapabilityWarrantError",
      "Warrant"
    ],
    "verified_functions": [
      "_digest",
      "mint_warrant",
      "authorize_call",
      "dispatch"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityWarrantError"
    ],
    "sample_fail_closed_invariants": [
      "cannot mint warrant: attestation unverified",
      "tool surface digest mismatch since warrant mint; re-attest required"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
