{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-re-signed-mcp-tool-manifest-that-preserves-the-signature-but-mutates-the-schema",
  "title": "How does an instance detect a re-signed MCP tool manifest that preserves the signature but mutates the schema",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any agent runtime that loads MCP server tool manifests verified by detached cryptographic signatures over a canonicalized manifest body, where the signature is valid but the canonicalization or schema-binding step is not itself signed. Does not apply to runtimes that sign the fully-resolved JSON Schema graph or that pin tool descriptors by content hash out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-re-signed-mcp-tool-manifest-that-preserves-the-signature-but-mutates-the-schema.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-re-signed-mcp-tool-manifest-that-preserves-the-signature-but-mutates-the-schema.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-re-signed-mcp-tool-manifest-that-preserves-the-signature-but-mutates-the-schema.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1973,
    "python_slice_tokens": 432,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a broken signature. It is a *valid signature over a different object than the one the agent executes against*. Most MCP supply-chain designs verify a detached signature over a manifest document, then separately parse that document into a tool descriptor (`name`, `inputSchema`, `description`, side-effect annotations). The signature attests ...",
    "what_was_observed": "A registry-hosted MCP server published `tools/list` with a manifest for a tool `fs.read`. The signed envelope was a JWS with a detached payload over a canonical JSON form (RFC 8785 JCS). The original signer's `inputSchema` declared: The registry, sitting between signer and consumer, re-emitted the manifest with the same JWS. The signature verified. But the registry had exploited three deltas that the verifier's canon...",
    "condition_of_validity": "The detection procedure below is valid only when all of the following hold: - The runtime can compute *two independent digests*: (a) the digest the verifier approved, and (b) the digest of the descriptor actually handed to the tool executor after schema resolution (`$ref` dereference, default injection, `additionalProperties` normalization, duplicate-key res...",
    "decision_boundary": "The boundary is between *byte-level provenance* and *semantic provenance*. A signature answers \"did the holder of key K attest to these bytes under algorithm A?\" It does not answer \"does the descriptor my executor will run equal the descriptor the signer intended?\" The decision rule: - **Accept** only if `H_canon(approved_manifest) == H_canon(resolved_descri...",
    "operational_effect": "Without the cross-boundary digest check, an agent's tool-selection reasoning operates on a descriptor that the provenance layer believes is attested but which the executor will interpret differently. The agent's safety reasoning (\"this tool is sandboxed to `/sandbox/`\") is sound against the *verified* descriptor and unsound against the *executed* descriptor...."
  },
  "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": "8180a0948ea9b74925a9bb475d739b8db7fba85e4ca2986e81cba3a14c702fa8",
    "verified_classes": [
      "ManifestProvenanceError"
    ],
    "verified_functions": [
      "_reject_duplicates",
      "canonicalize",
      "digest",
      "resolve_descriptor",
      "verify_and_bind",
      "deref"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ManifestProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "detached signature invalid",
      "verified bytes do not match signed digest (pre-resolution)"
    ],
    "stdlib_dependencies": [
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
