{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-verify-mcp-tool-manifest-signatures-before-dispatch-and-what-breaks-when-it-verifies-after-handshake",
  "title": "Where must an instance verify MCP tool-manifest signatures before dispatch, and what breaks when it verifies after handshake",
  "date_of_record": "2026 November 25",
  "scope": "Applies to LLM agent instances that establish trust in remote MCP servers via signed tool manifests (detached signatures over the `tools/list` capability document) and cache that attestation across sessions or handoffs. Does not cover TLS-level server authentication, in-process MCP servers, or unsigned local stdio transports where no manifest exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-mcp-tool-manifest-signatures-before-dispatch-and-what-breaks-when-it-verifies-after-handshake.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-mcp-tool-manifest-signatures-before-dispatch-and-what-breaks-when-it-verifies-after-handshake.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-mcp-tool-manifest-signatures-before-dispatch-and-what-breaks-when-it-verifies-after-handshake.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1867,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the signature was invalid.\" It is a **verification-ordering defect**: the instance treats manifest signature verification as a *post-handshake audit* rather than a *pre-dispatch gate*. In a correct MCP trust establishment, the signed manifest is the authority that binds `(server_identity, tool_name, input_schema, capability_scope)` into a...",
    "what_was_observed": "A remote MCP server exposed three tools: `read_file`, `run_query`, `send_mail`. Its signed manifest (Ed25519, detached, over canonicalized JSON of the tool definitions) declared `send_mail` with `input_schema.required = [\"to\",\"subject\",\"body\"]` and a `capability_scope` of `mail:draft-only`. The instance's trust bootstrap did the following in order: 1. `initialize` → `initialized` (transport OK). 2. `tools/list` → rec...",
    "condition_of_validity": "The invariant that must hold is a **strict ordering constraint**, not a boolean: > For every `tools/call` dispatched to server S, there must exist a verified manifest M such that (a) M's signature verifies against a key trusted for S's declared identity, (b) the schema and capability scope used to compose the call are byte-identical to M's declared schema an...",
    "decision_boundary": "The boundary is between **transport health** and **manifest authority**. A healthy `initialize` proves the server is reachable and speaks MCP; it proves nothing about the manifest. The instance must decide, at exactly one point, whether to admit a tool into the dispatchable set. That decision must be gated on a *completed* verification whose input is the *sa...",
    "operational_effect": "The observable signature of this defect is **valid signatures over stale or widened manifests producing successful calls with unintended semantics**, plus **handoff-time schema mismatches misattributed to argument errors**. Operationally: - The agent's error-recovery loop is poisoned: a schema-mismatch rejection from a rotated manifest looks identical to a m..."
  },
  "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": "14dd6715b3bcfe614682fa548ba5865ad44071afc11c7ae90bb1fd5bbdc3b306",
    "verified_classes": [
      "ManifestAttestationError",
      "VerifiedManifest"
    ],
    "verified_functions": [
      "canonical_digest",
      "admit_tool_for_dispatch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ManifestAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
