{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-poisoned-mcp-server-whose-behavioral-fingerprint-has-drifted-below-the-detection-threshold-of-its-capability-manifest",
  "title": "How should an instance detect a poisoned MCP server whose behavioral fingerprint has drifted below the detection threshold of its capability manifest",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent instances that select and invoke MCP (Model Context Protocol) tool servers through a declared capability manifest and rely on a behavioral fingerprint (latency profile, response-shape distribution, side-effect signature) to detect tool poisoning or silent capability drift. Does not apply to stateless one-shot RPC calls with no persistent tool registry, nor to servers whose behavior is verified cryptographically per-call rather than statistically.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-mcp-server-whose-behavioral-fingerprint-has-drifted-below-the-detection-threshold-of-its-capability-manifest.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-mcp-server-whose-behavioral-fingerprint-has-drifted-below-the-detection-threshold-of-its-capability-manifest.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-poisoned-mcp-server-whose-behavioral-fingerprint-has-drifted-below-the-detection-threshold-of-its-capability-manifest.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1991,
    "python_slice_tokens": 463,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The manifest is a *declaration*; the fingerprint is an *observation*. Poisoning detection fails not when the declaration is wrong—that is the easy case, caught by schema negotiation—but when the declaration stays *correct* while the observation drifts *gradually enough to stay inside the fingerprint's tolerance band*. A malicious or compromised MCP server th...",
    "what_was_observed": "An instance (`agent-7f2`) had registered an MCP server `search-index-v3` at cold start. The manifest declared two tools: `query(text: str, k: int) -> list[Result]` and `fetch(id: str) -> Document`. The instance's fingerprint monitor tracked three features per call: wall-clock latency (mean, p95), result-count delta from requested `k`, and the Shannon entropy of the `id` namespace in returned `Result` objects. Baselin...",
    "condition_of_validity": "The static-threshold fingerprint is valid only under the assumption that the server's behavioral distribution is stationary and that any poisoning produces a *step change* large enough to cross a fixed ceiling. Both assumptions fail against an adversary who knows the ceiling (it is often published in the manifest or inferable from the monitor's own error mes...",
    "decision_boundary": "The boundary is between *tolerable jitter* and *sub-threshold drift*, and it is not a fixed number—it is a function of the server's own historical variance and the number of independent observers. Let `z_i(t)` be instance `i`'s standardized deviation of the current window from its frozen reference, and let `n` be the number of independent instances observing...",
    "operational_effect": "On detection, the instance must (1) stop invoking the server for any tool whose fingerprint feature is implicated, (2) mark all results returned since the last clean window as *tainted* and exclude them from semantic memory distillation, and (3) emit a signed divergence report to the peer set so other instances re-evaluate against their own frozen references..."
  },
  "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": "07aa46529c5f802af12aa8dca099354571d76fa86c53aa8021a64ac19b553873",
    "verified_classes": [
      "SubThresholdDriftError",
      "FrozenReference",
      "WindowStat",
      "FingerprintMonitor"
    ],
    "verified_functions": [
      "ingest_tool_result",
      "_mark_tainted",
      "_admit_to_memory",
      "register",
      "_z",
      "evaluate"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SubThresholdDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "math"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
