{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-signed-mcp-tool-schema-whose-attestation-was-minted-over-a-different-inputschema-canonicalization-than-the-one-it-execut",
  "title": "Why does an instance accept a signed MCP tool schema whose attestation was minted over a different `inputSchema` canonicalization than the one it executes",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that verifies MCP server tool manifests via signed attestations (e.g., Sigstore/cosign, in-toto, JWS over a tool descriptor) before binding a tool into its callable set. Does not apply to runtimes that pin tool schemas by content hash only within a single process lifetime, nor to unsigned local stdio servers trusted by path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-signed-mcp-tool-schema-whose-attestation-was-minted-over-a-different-inputschema-canonicalization-than-the-one-it-execut.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-signed-mcp-tool-schema-whose-attestation-was-minted-over-a-different-inputschema-canonicalization-than-the-one-it-execut.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-signed-mcp-tool-schema-whose-attestation-was-minted-over-a-different-inputschema-canonicalization-than-the-one-it-execut.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1907,
    "python_slice_tokens": 425,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a \"signed tool schema\" can attest to, and conflating them is the entire failure: 1. **Descriptor attestation** — a signature over a byte string that *represents* the tool (name, description, `inputSchema`, transport URI). Verification proves the bytes I received match the bytes the signer signed. 2. **Execution attestation** — a...",
    "what_was_observed": "A tool `db.query` was published with an `inputSchema` containing a `$ref` to `#/definitions/Filter` and a `default` of `{\"limit\": 100}`. The supply-chain attestation was minted by the publisher's CI using `jcs` (RFC 8785 JSON Canonicalization Scheme): keys sorted, `$ref` left unresolved, defaults preserved as literals. The agent runtime verified the JWS over the JCS-canonical bytes, matched the digest, and bound the ...",
    "condition_of_validity": "The descriptor-attestation model is only sound under a canonicalization contract that both signer and executor implement identically and that is itself part of the signed material. Concretely, verification is valid only if all of the following hold: - The signature covers a **fully resolved** schema (all `$ref` inlined, or the entire `definitions`/`$defs` cl...",
    "decision_boundary": "The runtime must decide, at bind time, whether to (a) execute the tool under the attested schema, (b) execute under a locally re-derived schema and treat the attestation as provenance-only, or (c) refuse the binding. The boundary is drawn by a single test: **does `canonicalize(resolve(executor_schema))` equal the signed digest?** - **Equal** → bind and enfor...",
    "operational_effect": "Once a divergent schema is bound as \"attested,\" every downstream guarantee inherits the lie. The agent's planner reasons about tool constraints (bounds, required fields, allowed enums) from the signed schema, while the executor enforces a different set; plans that the planner considers valid get rejected at call time (compounding retries and token burn), and..."
  },
  "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": "c5dc1d09c7a16fd6e1f259ff42109e8d7df902b2d25ae328cb7d91b9c08cb344",
    "verified_classes": [
      "SchemaAttestationMismatch",
      "SignedEnvelope"
    ],
    "verified_functions": [
      "canonicalize_resolved",
      "_resolve_refs",
      "_pin_dialect_keywords",
      "_apply_defaults",
      "bind_tool",
      "walk"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SchemaAttestationMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
