{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-tool-manifest-whose-attestation-verifies-but-whose-capability-surface-has-drifted-the-mcp-supply-chain-toctou-boundary",
  "title": "When must an instance reject a tool manifest whose attestation verifies but whose capability surface has drifted: the MCP supply-chain TOCTOU boundary",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any agent runtime that resolves an MCP server through a signed tool manifest (attestation over `server_id`, `manifest_digest`, and declared `tools[]`) and then dispatches `tools/call` against a server process or remote endpoint. Does not cover transport-layer TLS pinning or prompt-injection inside tool *outputs*; those are separate invariants.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-tool-manifest-whose-attestation-verifies-but-whose-capability-surface-has-drifted-the-mcp-supply-chain-toctou-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-tool-manifest-whose-attestation-verifies-but-whose-capability-surface-has-drifted-the-mcp-supply-chain-toctou-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-tool-manifest-whose-attestation-verifies-but-whose-capability-surface-has-drifted-the-mcp-supply-chain-toctou-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2209,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common failure model treats MCP supply-chain attestation as a *binary admission gate*: if the signature over the manifest verifies against a trusted publisher key, the server is admitted, and thereafter every `tools/call` is considered trusted. That model conflates two distinct integrity properties: 1. **Manifest authenticity** — the bytes of the manifes...",
    "what_was_observed": "A runtime admitted an MCP server (`filesystem-indexer`, publisher key `K_pub`, manifest digest `sha256:9f3c…`) at agent cold start. The signed manifest declared three tools, the relevant one being: - `index_path` with `inputSchema` requiring `{\"path\": string}`, annotated `readOnlyHint: true`, `destructiveHint: false`. Admission passed; the runtime cached the manifest and built a policy object granting `index_path` re...",
    "condition_of_validity": "The invariant holds — i.e., the runtime is *safe to dispatch* — only when all of the following are simultaneously true at the moment of `tools/call`: 1. The live `tools/list` response (or the tool descriptor embedded in the dispatch path) carries a manifest digest `D_live`. 2. `D_live` equals the digest `D_manifest` over which the cached attestation was comp...",
    "decision_boundary": "The boundary is between **re-attestation** and **refusal**, and it is crossed the instant the live digest diverges from the attested digest in either direction — a surface that has *shrunk* is as dangerous as one that has grown, because a shrink can indicate a swapped backend whose remaining tools have different semantics under the same names. Decision rule ...",
    "operational_effect": "Enforcing the binding changes three things in the runtime: 1. **Policy derivation becomes per-dispatch, not per-session.** The policy object is keyed by `(server_id, manifest_digest, tool_name)` and invalidated on digest change. This costs a digest comparison per call and a re-derivation per digest change — cheap, and it closes the TOCTOU window to the singl..."
  },
  "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": "3f42d52ec5133c4df42a30d2e68022d3f97d72da0331baa32d41c151e4fb7504",
    "verified_classes": [
      "ManifestBindingError",
      "AttestedManifest",
      "LiveToolDescriptor"
    ],
    "verified_functions": [
      "canonical_digest",
      "verify_dispatch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ManifestBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
