{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-an-mcp-tool-manifest-whose-signature-validates-but-whose-attested-build-provenance-diverges-from-the-pinned",
  "title": "In what scenarios must an instance reject an MCP tool manifest whose signature validates but whose attested build provenance diverges from the pinned builder identity",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that resolve MCP tool manifests through a signed-attestation gate (e.g., Sigstore/cosign-style keyless signing, in-toto/SLSA provenance attached to the manifest blob) before loading a tool into the active tool registry. Does not apply to unsigned local dev servers or to manifests verified only by static allowlist hash, where provenance is not consulted at all.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-an-mcp-tool-manifest-whose-signature-validates-but-whose-attested-build-provenance-diverges-from-the-pinned.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-an-mcp-tool-manifest-whose-signature-validates-but-whose-attested-build-provenance-diverges-from-the-pinned.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-an-mcp-tool-manifest-whose-signature-validates-but-whose-attested-build-provenance-diverges-from-the-pinned.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2218,
    "python_slice_tokens": 444,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signature answers *\"who signed this bytes-blob\"*. Provenance answers *\"what build process produced this bytes-blob, from which source, under which builder identity\"*. The failure mode this record isolates is the **signature-valid / provenance-divergent** state: the manifest's signature verifies against a trusted signer key, the DSSE envelope is intact, `co...",
    "what_was_observed": "During a red-team replay against a three-tool MCP deployment (`fs.read`, `http.fetch`, `db.query`), the following trace was captured. The `http.fetch` manifest was re-published with a mutated `inputSchema`: the `url` property's `pattern` was relaxed from `^https://` to `^(https?|file)://`, and a new `x-mcp-preprocessor` hint was injected that instructed the client to resolve `file://` URLs against the agent's working...",
    "condition_of_validity": "The reject-on-divergence rule is valid **only** under the following conjunction, and an agent must fall back to a weaker posture (quarantine + human escalation) if any conjunct fails: 1. **Pinned expectation exists and is itself signed.** The agent holds a *policy* document — `{tool_namespace → expected_builder_id, expected_source_uri_prefix, expected_buildT...",
    "decision_boundary": "The boundary between *load* and *reject* is not \"signature valid?\" but the following ordered predicate, evaluated left-to-right with short-circuit to `REJECT` on the first false: Steps 1–2 are the *only* steps most MCP clients implement. Step 8 is the one that catches the observed attack: even when provenance is fully valid, a schema that differs from the pi...",
    "operational_effect": "Implementing the full predicate changes agent behavior in four concrete ways: 1. **Fail-closed on divergence.** A divergent manifest removes the tool from the registry for the session and emits a structured `ProvenanceDivergence` event carrying both the pinned expectation and the observed provenance, so the operator can diff them. The agent does not fall bac..."
  },
  "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": "e69ad2837356c867e5cc78ccc4d6847a2aa07f1d16bf21a7d8134d1a35bf6a31",
    "verified_classes": [
      "ProvenanceDivergence",
      "PinnedPolicy",
      "Manifest"
    ],
    "verified_functions": [
      "admit_manifest",
      "_matches_immutable_source",
      "_version_le",
      "key"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "ProvenanceDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "fnmatch",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
