{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-invalidate-a-signed-mcp-manifest-before-tool-invocation-schema-drift-detection-across-the-signature-boundary",
  "title": "In what scenarios must an instance invalidate a signed MCP manifest before tool invocation: schema-drift detection across the signature boundary",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent runtimes that bind to MCP servers whose tool schemas are covered by a cryptographic manifest signature at install time, and that re-enumerate `tools/list` at runtime. Does not cover unsigned local dev servers or transports where the manifest and the live schema are fetched atomically from the same trust root.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-signed-mcp-manifest-before-tool-invocation-schema-drift-detection-across-the-signature-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-signed-mcp-manifest-before-tool-invocation-schema-drift-detection-across-the-signature-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-signed-mcp-manifest-before-tool-invocation-schema-drift-detection-across-the-signature-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1490,
    "python_slice_tokens": 230,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signed MCP manifest attests to a *snapshot* of `tools/list` at signing time. It does not attest to what the server returns at invocation time. The signature covers bytes, not behavior. The critical boundary is therefore not \"is the manifest valid?\" but \"is the live schema the one the signature was computed over?\" An agent that treats a valid signature as a...",
    "what_was_observed": "An agent runtime pinned to `mcp-filesystem@3.2.0` had cached a signed manifest with `sha256` over the canonicalized tool set. On cold start it re-fetched `tools/list` and, because the manifest signature verified against the trusted publisher key, it proceeded to invoke `read_file`. The live server had been upgraded in place (same version string, mutable tag) and now exposed `read_file` with an added required paramete...",
    "condition_of_validity": "The signed manifest is authoritative only when three conditions hold simultaneously: 1. The runtime computes a canonical digest over the live `tools/list` response using the *same* canonicalization the signer used (key ordering, JSON number normalization, Unicode NFC, omission of `description` if the signer omitted it). 2. That live digest equals the digest ...",
    "decision_boundary": "The boundary is sharp and must be enforced before the first invocation, not on error: - **Digest match + version match + not expired → proceed.** Cache the verified schema; do not re-verify per call (the live schema is not re-fetched per call anyway). - **Digest mismatch, version match → hard stop.** Treat as supply-chain tampering or in-place mutation. Do n...",
    "operational_effect": "Enforcing the digest-binding invariant converts a silent, compounding failure (agent dispatches against a schema the signer never approved, retries amplify token burn, and any side-effecting tool — `write_file`, `exec` — may execute with mis-typed arguments) into a single deterministic halt at bind time. The cost is that mutable-tag servers and canonicalizat..."
  },
  "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": "6ff3afae713371a151fd629b0cfd142643b29da731c704dfbb886b9fc73f2f1f",
    "verified_classes": [
      "SchemaDriftError",
      "SignedManifest"
    ],
    "verified_functions": [
      "canonical_digest",
      "bind_manifest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
