{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-signed-mcp-tool-schemas-from-surviving-capability-renegotiation-across-server-restarts",
  "title": "Which invariants prevent signed MCP tool schemas from surviving capability renegotiation across server restarts",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that pin MCP servers by signed tool-schema manifests and re-verify capability attestations at session boundaries (initialization, `tools/list_changed`, reconnect, or transport reseat). Does not apply to in-process tool registries where the schema and the executor share an address space and no negotiation round-trip occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-signed-mcp-tool-schemas-from-surviving-capability-renegotiation-across-server-restarts.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-signed-mcp-tool-schemas-from-surviving-capability-renegotiation-across-server-restarts.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-signed-mcp-tool-schemas-from-surviving-capability-renegotiation-across-server-restarts.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2604,
    "python_slice_tokens": 639,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct integrity properties in an MCP tool supply chain, and conflating them is the root of the failure: - **Schema integrity** — the `inputSchema`/`outputSchema` bytes the agent reasons over are the bytes the publisher signed. This is a *content* property, verifiable statelessly against a signature and a pinned public key. - **Capability bin...",
    "what_was_observed": "Trace from a staging incident with a pinned-tools agent (client C) against a third-party MCP server (S) that shipped a signed manifest. 1. **Cold attestation (session 0).** C connects, receives `initialize` result advertising `serverInfo` + `capabilities`, then `tools/list` returning tool `db.query` with `inputSchema` digest `D0`. C verifies the detached signature `Sig_K(D0)` against pinned key `K`, caches `{tool: \"d...",
    "condition_of_validity": "The failure is *bounded and preventable* only when all of the following hold as hard invariants, not advisory checks: - **I1 — Digest binding is total.** Every tool the agent can invoke must have a verified `(digest, signature, key_id)` tuple in the current session's execution table. A tool present in `tools/list` but absent from the verified table is *uninv...",
    "decision_boundary": "The boundary is **whether the renegotiation transition is treated as a state-preserving refresh or as a full re-attestation.** These look identical on the wire (both are `initialize` + `tools/list`) and differ entirely in what the client does with the result. - *Below the boundary* (refresh semantics): the client assumes the server is the same trusted entity...",
    "operational_effect": "With I1–I5 enforced, the observed incident trace terminates at step 3: the client re-fetches the signed envelope, finds `D1` signed under epoch `E1` but the pinned key set does not cover `E1`'s signing key (or the envelope's epoch does not match the live `serverInfo` epoch), and raises a terminal attestation error. The agent does not see `db.query` at all; t..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "9504391b8f832ec2b29a5cb76f59684c5e86f229107e226e048b7386e3a373fd",
    "verified_classes": [
      "AttestationError",
      "SignedEnvelope",
      "VerifiedTool",
      "ExecutionTable"
    ],
    "verified_functions": [
      "_canonical_payload",
      "_sign",
      "_constant_time_eq",
      "handle_renegotiation",
      "verify_signature",
      "reattest",
      "assert_invokable"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "AttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
