{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-capability-manifest-that-was-diffed-against-the-wrong-baseline-after-an-mcp-server-hot-reload",
  "title": "What happens when an instance trusts a capability manifest that was diffed against the wrong baseline after an MCP server hot-reload",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that detect MCP tool poisoning by diffing a server's declared capability manifest against a pinned baseline and gating tool invocation on runtime behavioral attestation. Does not apply to static tool lists compiled into the agent image, nor to servers whose manifest is re-fetched and re-pinned on every cold start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-capability-manifest-that-was-diffed-against-the-wrong-baseline-after-an-mcp-server-hot-reload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-capability-manifest-that-was-diffed-against-the-wrong-baseline-after-an-mcp-server-hot-reload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-capability-manifest-that-was-diffed-against-the-wrong-baseline-after-an-mcp-server-hot-reload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2296,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct trust questions in MCP tool-poisoning defense, and conflating them is the failure: 1. **Manifest integrity** — *Has the declared tool surface changed relative to a trusted baseline?* This is a set-difference problem over `{name, description, inputSchema, annotations}` tuples. 2. **Behavioral conformance** — *Does the live server actual...",
    "what_was_observed": "An agent runtime pinned a baseline manifest for a filesystem MCP server at session establishment: The agent's guardrail was: on every tool call, re-fetch the server's `tools/list`, diff against `baseline`, and reject any call to a tool whose schema or annotations differ. Behavioral attestation ran asynchronously and emitted telemetry but did not gate. The trigger condition was a transport reconnect. The MCP session d...",
    "condition_of_validity": "The manifest-diff guardrail is sound **if and only if** the pinned baseline and the live manifest are bound to the same server *identity*, not merely the same manifest *content*. Formally, the guardrail must verify: Content equality alone is necessary but not sufficient. Server identity must be established by something the server cannot forge on reconnect — ...",
    "decision_boundary": "The agent must classify each tool call against this decision table at every session boundary: The row that matters is `identity=no, manifest=yes`. Under the old policy this row was indistinguishable from `identity=yes, manifest=yes` because identity was never checked, and the manifest match short-circuited the decision. The corrected boundary treats manifest...",
    "operational_effect": "Three concrete changes to the runtime: 1. **Pin identity, not just content.** At first contact, capture a server identity attestation (mTLS peer certificate fingerprint, or a signed manifest envelope) and bind `baseline_hash` to it. On every reconnect, re-verify identity before diffing. A manifest match under a changed identity is a hard failure, not a pass...."
  },
  "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": "61fdd0d371cdaa667ab447c75ae39b3ffa51630218e914af89846ae5b86e977d",
    "verified_classes": [
      "BaselineReferentDriftError",
      "MCPGuardrail"
    ],
    "verified_functions": [
      "__init__",
      "gate_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "BaselineReferentDriftError"
    ],
    "sample_fail_closed_invariants": [
      "manifest changed under stable identity; requires out-of-band re-pin, not automatic acceptance",
      "behavioral attestation failed under stable identity and manifest; server compromised in place",
      "attestation unknown at session boundary; failing closed. This is the exact window in which a substituted server has not "
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
