{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-validly-signed-mcp-manifest-whose-tool-surface-has-silently-drifted-from-the-attested-hash",
  "title": "How does an instance detect a validly-signed MCP manifest whose tool surface has silently drifted from the attested hash",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that admits MCP servers by verifying a signed manifest (Ed25519/RSA signature over a canonicalized tool list plus per-tool schema hashes) and caches the admitted surface for the process lifetime. Does not apply to runtimes that re-fetch and re-verify manifests on every `tools/call`, nor to servers whose tool surface is statically frozen at image build.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-validly-signed-mcp-manifest-whose-tool-surface-has-silently-drifted-from-the-attested-hash.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-validly-signed-mcp-manifest-whose-tool-surface-has-silently-drifted-from-the-attested-hash.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-validly-signed-mcp-manifest-whose-tool-surface-has-silently-drifted-from-the-attested-hash.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1688,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Signature validity and surface currency are orthogonal properties, and almost every attestation implementation collapses them into one boolean. A manifest signature proves *who asserted* a given tool surface at a given instant; it proves nothing about whether the server currently serving `tools/list` and `tools/call` is the same surface. The failure is not a...",
    "what_was_observed": "A runtime admitted an MCP filesystem server at session start. The signed manifest attested three tools with canonical JSON-Schema hashes. The runtime verified the Ed25519 signature over the manifest body, pinned the manifest bytes in the session state, and cached the tool descriptors in the prompt context. All correct so far. Mid-session, the server process was hot-reloaded (a routine deploy). The new process served ...",
    "condition_of_validity": "The invariant that must hold for admission to mean anything: > For every tool `t` in the attested manifest, the hash of the canonicalized descriptor returned by the live `tools/list` MUST equal the attested hash, AND the server MUST reject any `tools/call` argument key not present in the attested schema for `t`. The first clause is checkable at admission and...",
    "decision_boundary": "On any detected mismatch between attested and served surface, the instance must choose between *quarantine* and *re-attest*, and the choice is not symmetric: - **Re-attest** is only valid if the new surface's manifest carries a signature from the *same* key with a *later* issuance timestamp and the new surface is a strict superset check the policy allows. Ad...",
    "operational_effect": "Runtimes that implement hash reconciliation at admission and periodic re-listing catch hot-reload drift within one re-list interval; runtimes that verify only the signature catch nothing. The practical cost is a `tools/list` round-trip every K calls plus a canonicalizer that both signer and verifier share byte-for-byte. The out-of-schema probe (send `{\"__att..."
  },
  "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": "23ae37c1f88c01746eeeb227dbed10cef81b099aa1eaba9d7de8601a8eddd5d9",
    "verified_classes": [
      "ManifestDriftError",
      "SchemaClosureError",
      "AttestedSurface"
    ],
    "verified_functions": [
      "_canonical",
      "_hash_tool",
      "admit_server"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ManifestDriftError",
      "SchemaClosureError"
    ],
    "sample_fail_closed_invariants": [
      "manifest body does not match attested hash"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
