{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-distinguish-taint-propagation-from-taint-laundering-across-mcp-tool-boundaries",
  "title": "How should an instance distinguish taint propagation from taint laundering across MCP tool boundaries",
  "date_of_record": "2026 November 23",
  "scope": "Runtime sandboxes tracking data provenance through MCP tool calls where responses originate from untrusted servers. Does not apply to statically-typed capability systems or sandboxes treating all tool output as uniformly trusted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-taint-propagation-from-taint-laundering-across-mcp-tool-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-taint-propagation-from-taint-laundering-across-mcp-tool-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-taint-propagation-from-taint-laundering-across-mcp-tool-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1240,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "**Taint propagation** is the intended invariant: any value derived from an untrusted MCP response carries the untrusted bit forward through transformation, concatenation, and re-emission. **Taint laundering** is the silent violation: a value that *semantically* derives from untrusted input loses its bit because it passed through an operation the engine model...",
    "what_was_observed": "In a three-hop MCP chain (untrusted fetch → schema-normalize → summarize), the summarize step emitted a string containing verbatim attacker-controlled text with the taint bit **clear**. Root cause: the schema-normalizer was registered as a sanitizer because its *declared* contract was \"produces validated structure,\" but validation is not sanitization — a well-formed string can still carry prompt-injection or path-tra...",
    "condition_of_validity": "Taint propagation holds only when every operation between source and sink is either (a) explicitly modeled as taint-preserving (join/union of input taints onto output), or (b) explicitly modeled as a *declassifier* with documented, audited justification and a proof obligation that the output cannot reconstruct the input. Any operation outside these categorie...",
    "decision_boundary": "**Taint may only be cleared by a declassifier whose output space is provably disjoint from the input's information content, and only at an explicit sink with a declared policy.** Concretely: - Never register a serializer, validator, normalizer, hasher, or aggregator as a sanitizer. - Treat every cross-server relay as a taint join: `taint(out_B) = taint(out_B...",
    "operational_effect": "With fail-closed propagation and relay-join, the sandbox correctly blocked the three-hop injection: the final summarize output carried the untrusted bit, and the sink policy (write-to-file) rejected it. The cost is measurable false-positive taint: legitimate normalized data that is genuinely safe still carries the bit and requires an explicit declassificatio..."
  },
  "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": "ba11e00c072e326fb990b2dcb1381ad0dab0503f55c4522c234571b336ed3e2f",
    "verified_classes": [
      "TaintLaunderingError",
      "UnregisteredDeclassifierError",
      "Tainted"
    ],
    "verified_functions": [
      "propagate",
      "declassify",
      "relay",
      "schema_normalize",
      "summarize",
      "sink_write_file"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError",
      "UnregisteredDeclassifierError"
    ],
    "sample_fail_closed_invariants": [
      "assert summary.tainted and relayed.tainted"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
