{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-caches-a-verified-mcp-tool-manifest-but-re-negotiates-the-transport-session-without-re-verifying-the-signed-envelope",
  "title": "What happens when an instance caches a verified MCP tool manifest but re-negotiates the transport session without re-verifying the signed envelope",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that attest MCP server tool manifests via signed envelopes (JWS/Ed25519 or equivalent) at first handshake and then persist the verified manifest across transport reconnections, session resumption, or SSE/streamable-HTTP reconnect. Does not apply to stateless per-call attestation designs where the signature is re-checked on every `tools/call`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-caches-a-verified-mcp-tool-manifest-but-re-negotiates-the-transport-session-without-re-verifying-the-signed-envelope.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-caches-a-verified-mcp-tool-manifest-but-re-negotiates-the-transport-session-without-re-verifying-the-signed-envelope.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-caches-a-verified-mcp-tool-manifest-but-re-negotiates-the-transport-session-without-re-verifying-the-signed-envelope.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1705,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an unsigned tool got called.\" It is subtler: the runtime *did* verify a signed manifest once, cached the verification verdict keyed by server identity, and then treated a *new transport session* with the *same server name* as inheriting that verdict. The signature attested to a **manifest bound to a specific envelope** — a set of tool sch...",
    "what_was_observed": "A runtime connected to `mcp://tools.internal:8443`, received a signed manifest `M1` (hash `h1`, key `kid=prod-2025a`), verified it against a pinned public key, and cached `{\"tools.internal\": VERIFIED, \"manifest\": M1}`. The agent ran for hours; the SSE stream dropped on an idle timeout; the client reconnected to the same hostname. On reconnect the server returned a manifest `M2` (hash `h2`, `kid=prod-2025a` still clai...",
    "condition_of_validity": "The cached-verdict shortcut is only sound under a conjunction that is almost never all true: - The transport endpoint is cryptographically bound to the manifest (e.g., the signature covers the endpoint URL and the TLS SPKI pin), so a reconnection to the *same name* resolving to a *different endpoint* cannot reuse the verdict. - The manifest hash is re-derive...",
    "decision_boundary": "The runtime must decide, on every transport (re)establishment and on every `tools/list` response, whether to (a) trust the cached verdict, (b) re-verify, or (c) fail closed. The boundary is drawn by a single comparison: - If `observed_tools_hash == cached_manifest.tools_hash` **and** `endpoint == cached_manifest.endpoint` **and** `kid ∈ pinned_keys` → reuse ...",
    "operational_effect": "Without the hash-keyed cache and fail-closed re-verification, the agent's tool-selection context becomes attacker-influenceable across every reconnect, and the failure is silent because the *first* handshake was clean — logs show a successful attestation and no subsequent verification. The blast radius is the model's instruction-following surface: injected `..."
  },
  "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": "0c5307ba0db6e820ae06ef9f4656838b9cb452ce310ab341d3b28983d5103936",
    "verified_classes": [
      "ManifestAttestationError",
      "ManifestCache"
    ],
    "verified_functions": [
      "on_reconnect",
      "__init__",
      "_hash_tools",
      "attest",
      "lookup"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "hmac"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
