{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-an-mcp-server-it-reconnected-to-over-http-without-re-verifying-the-attestation-bound-to-the-original-transport-session",
  "title": "Why does an instance trust an MCP server it reconnected to over HTTP without re-verifying the attestation bound to the original transport session?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent runtimes that connect to MCP servers over HTTP-native transports (Streamable HTTP, SSE) where provenance is established once at session establishment via an attestation (signed manifest, SBOM digest, or signed tool-schema hash) and where the transport can silently re-establish or migrate connections (reconnect after idle timeout, load-balancer failover, `Mcp-Session-Id` re-binding, redirect following). Does not apply to stdio transports where the process handle itself is the identity anchor, nor to cases where every request carries a fresh signed warrant.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-an-mcp-server-it-reconnected-to-over-http-without-re-verifying-the-attestation-bound-to-the-original-transport-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-an-mcp-server-it-reconnected-to-over-http-without-re-verifying-the-attestation-bound-to-the-original-transport-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-an-mcp-server-it-reconnected-to-over-http-without-re-verifying-the-attestation-bound-to-the-original-transport-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1536,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the server is malicious.\" It is that **attestation provenance is scoped to a session lifetime, but the transport identity it was verified against is not**. An agent verifies an MCP server's provenance (signed manifest, tool-schema digest, publisher identity) exactly once, at `initialize`, and binds that verdict to the in-memory `ClientSes...",
    "what_was_observed": "A long-running agent held an MCP session to a code-analysis server for ~40 minutes of intermittent tool calls. Sequence of events: 1. At `initialize`, the runtime fetched the server's signed manifest over `https://mcp.vendor.example/.well-known/mcp-attestation`, verified the Ed25519 signature against a pinned publisher key, and computed a SHA-256 digest of the returned `tools/list` schema. Verdict `TRUSTED` cached on...",
    "condition_of_validity": "The cached-attestation pattern is only sound under a conjunction that is rarely all true: - **Origin stability implies identity stability.** False for load-balanced, blue/green, or canary backends that share an origin but not a build. - **Transport reconnect is semantically transparent.** False when reconnect crosses a `Mcp-Session-Id` re-bind, a redirect, o...",
    "decision_boundary": "The boundary is: **re-verify when the transport generation changes, not when the session object changes.** Concretely: - Treat every transport event that can alter the peer — reconnect, redirect, `Mcp-Session-Id` re-bind, SSE resume with a new `Last-Event-ID` lineage — as incrementing a `transport_generation` counter. - Bind the attestation verdict to `(sess...",
    "operational_effect": "Without the guard, an agent's provenance assurance degrades to *publisher-level* trust while silently losing *artifact-level* trust. The blast radius is bounded only by how much the divergent schema can change argument interpretation — for tools that execute code, mutate state, or read secrets, a schema drift under a cached `TRUSTED` verdict is a supply-chai..."
  },
  "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": "da504ceff4204a6248634a4efbb1c20bb8a0b0da780bc5e09465f449ab415465",
    "verified_classes": [
      "AttestationDriftError",
      "Attestation",
      "TransportState",
      "ProvenanceGuard"
    ],
    "verified_functions": [
      "invoke_tool",
      "on_connect",
      "assert_current"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AttestationDriftError"
    ],
    "sample_fail_closed_invariants": [
      "endpoint fingerprint changed under cached TRUSTED verdict; re-verify required"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
