{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-tainted-mcp-resource-read-label-laundering-across-the-resource-context-boundary",
  "title": "What happens when an instance trusts a tainted MCP resource read: label laundering across the resource→context boundary",
  "date_of_record": "2026 December 3",
  "scope": "Applies to MCP hosts whose servers return `resources/read` payloads that are untrusted (user-supplied files, fetched URLs, third-party DB rows) and whose host injects those payloads into the LLM context window. Does not cover tool-result injection from `tools/call` (a separate taint path) or prompt-injection detection at the model layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tainted-mcp-resource-read-label-laundering-across-the-resource-context-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tainted-mcp-resource-read-label-laundering-across-the-resource-context-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tainted-mcp-resource-read-label-laundering-across-the-resource-context-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2042,
    "python_slice_tokens": 396,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model read a malicious document.\" It is that the MCP server's taint label *does not survive the JSON-RPC boundary into the host's context assembly*. A resource is tagged untrusted at the server, serialized into a `ReadResourceResult` content block, and re-materialized in the host as a plain `text` part indistinguishable from a trusted...",
    "what_was_observed": "A host agent with a `docs://` MCP server and a `files://` MCP server was configured to trust `docs://` (curated, internal) and sandbox `files://` (user-uploaded). The `files://` server, correctly, returned untrusted content. The host's context assembler inserted both as `{\"role\":\"user\",\"content\":\"<resource uri=...>...body...</resource>\"}`. Trace of the laundering: 1. `files://` server returns `ReadResourceResult` wit...",
    "condition_of_validity": "The analysis holds when all of the following are true; relax any and the failure mode changes: - The MCP server multiplexes resources of differing trust under one connection (true for essentially all reference servers). - The host performs at least one *transform* (summarize, truncate, re-rank, re-quote, extract) between `resources/read` and context insertio...",
    "decision_boundary": "The operative question for an operator is: **at what point does a segment's taint get decided, and is that decision re-evaluated after every transform?** - If taint is decided at `resources/read` return and *re-derived* at each transform from segment provenance → safe. - If taint is decided at `resources/read` return and *carried* as a field through transfor...",
    "operational_effect": "Concretely, the guardrail is a taint-tracking context assembler with three properties: 1. **Schema-level taint.** Require servers to emit a `taint` field per content block (extend `ReadResourceResult.contents[]`; MCP's `annotations` field is the natural carrier — `annotations.audience` and a custom `taint` key). Hosts that receive a block without `taint` mus..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "c522bc8b68d979dc5a3ea6332b03832a841e3f9fdf3dbd5651ccd9155c712451",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "Segment"
    ],
    "verified_functions": [
      "read_resource",
      "summarize",
      "authorize_tool_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert doc.taint == Taint.UNTRUSTED",
      "assert summary.taint == Taint.UNTRUSTED"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
