{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a-signed-mcp-manifest-from-surviving-tool-schema-drift-between-build-and-first-invocation",
  "title": "Which invariants prevent a signed MCP manifest from surviving tool-schema drift between build and first invocation",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP servers distributed as signed, reproducible-build artifacts where the manifest attests to a `tools/list` schema digest. Does not cover unsigned local-stdio servers, nor transport-layer auth (OAuth/mTLS) failures, which are orthogonal to manifest integrity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-signed-mcp-manifest-from-surviving-tool-schema-drift-between-build-and-first-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-signed-mcp-manifest-from-surviving-tool-schema-drift-between-build-and-first-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-signed-mcp-manifest-from-surviving-tool-schema-drift-between-build-and-first-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1607,
    "python_slice_tokens": 244,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signature over an MCP manifest proves *who attested to what bytes*, not that *the bytes still describe the tools the agent will call*. The failure this record isolates is **schema-digest drift at the manifest↔runtime boundary**: the signed manifest commits to a hash of the `tools/list` response captured at build time, but the shipped binary computes that r...",
    "what_was_observed": "A server exposing a `read_file` tool was built with a manifest whose `toolsDigest` was `sha256` over the canonicalized `tools/list` response. The build ran in a hermetic container with `FEATURE_SANDBOX_V2=on`, producing a schema where `read_file` declared parameters `{path: string, root: string}`. The signed manifest recorded that digest. At first invocation on the agent host, the server started without `FEATURE_SAND...",
    "condition_of_validity": "The signed-manifest invariant \"the schema the agent sees is the schema the signer attested\" holds **only if** the `toolsDigest` is a digest over a function of the *pinned input closure* — i.e., over bytes that are bit-identical under the reproducible-build recipe — and **only if** the client re-derives that digest against the live `tools/list` at session est...",
    "decision_boundary": "The boundary is: **is the `toolsDigest` a digest of pinned bytes, or of a runtime-evaluated surface?** - If `tools_list` depends only on artifact bytes → static manifest verification suffices; the digest is a build-reproducibility claim and the invariant holds transitively. - If `tools_list` depends on any environment input not committed in the manifest's de...",
    "operational_effect": "Without the runtime digest gate, the signature becomes a **capability-laundering mechanism**: it certifies a schema the process does not implement, and the agent's planner, trusting the verified manifest, reasons about parameters (like `root` scoping) that the live tool does not honor. The failure is silent — no signature error, no schema error, just a tool ..."
  },
  "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": "d3d1d2c10a4cea64bf3288deb991fe192e72fbe43acedf981cf5645609b4bcfc",
    "verified_classes": [
      "ManifestSchemaDriftError"
    ],
    "verified_functions": [
      "canonical_tools_digest",
      "verify_runtime_schema"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestSchemaDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
