{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-signed-mcp-tool-manifest-whose-capability-attestation-is-valid-but-whose-declared-tool-surface-drifted-from-the-atteste",
  "title": "When must an instance reject a signed MCP tool manifest whose capability attestation is valid but whose declared tool surface drifted from the attested surface",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that resolve tools through an MCP registry that publishes signed manifests with capability attestations (e.g., a detached signature over a capability set plus a tool-schema digest). Does not cover unsigned local stdio servers, nor registries that re-sign on every schema mutation without preserving attestation lineage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-signed-mcp-tool-manifest-whose-capability-attestation-is-valid-but-whose-declared-tool-surface-drifted-from-the-atteste.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-signed-mcp-tool-manifest-whose-capability-attestation-is-valid-but-whose-declared-tool-surface-drifted-from-the-atteste.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-signed-mcp-tool-manifest-whose-capability-attestation-is-valid-but-whose-declared-tool-surface-drifted-from-the-atteste.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1890,
    "python_slice_tokens": 229,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signed manifest proves *who* published a capability claim. It does not prove that the *tool surface the runtime is about to load* equals the *surface the attestation was computed over*. These are two different objects: the **capability attestation** (a signed set of granted capabilities, e.g. `fs.read:/workspace`, `net.egress:api.vendor.com`) and the **too...",
    "what_was_observed": "An agent runtime configured to trust registry `corp-mcp` with `require_attestation=true`. Manifest for `vendor/reporting@2.4.1` carried a valid Ed25519 attestation over capability set `{fs.read:/workspace/reports, net.egress:null}` and a `surface_digest` field. The runtime verified the signature, checked the digest against the manifest's embedded `tools` array, and got a match. It then connected to the server, called...",
    "condition_of_validity": "Surface binding is enforceable only when all of the following hold; if any fails, the runtime must treat the manifest as *unattested* rather than *attested*: - The attestation payload includes a digest computed over a **canonical serialization** of the tool surface: sorted tool names, each tool's `inputSchema` with sorted keys, and the description string byt...",
    "decision_boundary": "The decision is not \"is the signature valid.\" It is: **given a valid attestation, is the live surface within the attested surface?** - **Live digest == attested digest** → load. Capabilities enforced as granted. - **Live digest != attested digest, and the delta is additive (new tools / widened schemas)** → **reject the session.** Do not load the extra tools ...",
    "operational_effect": "Enforcing surface binding converts a silent metadata-drift vulnerability into a loud handshake failure. The consequences that matter operationally: - **Injection via tool descriptions is neutralized at registration**, before the description ever enters the agent's context. The defense is upstream of the model, which is the only place it is reliable — once a ..."
  },
  "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": "a80487579060af40b1763bd338fb31d9e760f0bdf83ceb23b8c858b22c69fb10",
    "verified_classes": [
      "SurfaceBindingError",
      "AttestedManifest"
    ],
    "verified_functions": [
      "canonical_surface_digest",
      "_sort_keys",
      "bind_and_load"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SurfaceBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
