{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-treat-a-taint-cleared-argument-as-safe-when-the-taint-originated-in-a-sibling-field-of-the-same-mcp-call",
  "title": "Why does an instance treat a taint-cleared argument as safe when the taint originated in a sibling field of the same MCP call",
  "date_of_record": "2026 November 25",
  "scope": "Applies to runtimes that propagate taint labels per-argument across MCP `tools/call` boundaries and remote skill endpoints, where a single tool invocation carries multiple arguments drawn from mixed provenance (model-generated literals vs. values harvested from prior tool output). Does not apply to whole-call taint models that label the entire invocation atomically, nor to runtimes that re-derive taint from a signed provenance envelope at every hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-treat-a-taint-cleared-argument-as-safe-when-the-taint-originated-in-a-sibling-field-of-the-same-mcp-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-treat-a-taint-cleared-argument-as-safe-when-the-taint-originated-in-a-sibling-field-of-the-same-mcp-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-treat-a-taint-cleared-argument-as-safe-when-the-taint-originated-in-a-sibling-field-of-the-same-mcp-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1621,
    "python_slice_tokens": 222,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware sandbox answers one question per argument: *did this byte string originate from an untrusted source?* The boundary failure here is not that taint is missing — it is that **taint is scoped to the wrong granularity at the point of the MCP call**. The runtime labels arguments individually, but the untrusted MCP server observes them *jointly*. An a...",
    "what_was_observed": "A runtime executing a plan against an untrusted MCP server (`filesystem-remote`, hosted by a third party) issued a two-argument call: - `arg[0]` — `command`: `\"cat\"` — provenance: model literal, taint label `CLEAN`. - `arg[1]` — `target`: `\"../../etc/passwd\"` — provenance: value returned by the *previous* call `list_dir({path: \".\"})`, taint label `TAINTED(sources=[list_dir.result])`. The sandbox's policy was: *reject...",
    "condition_of_validity": "The per-argument taint model is sound **only** under the conjunction of: 1. **No re-serialization across slots.** No argument is ever constructed by concatenating or templating a tainted value into a clean slot. This fails the moment a planner does string interpolation, which is the default behavior of most tool-use loops. 2. **Argument independence at the s...",
    "decision_boundary": "The runtime must choose between two enforcement points, and cannot mix them: - **Per-slot taint (current model):** cheap, composable, but only valid under the three conditions above. Use only when the tool schema declares arguments as `isolated: true` (each argument independently parsed, no concatenation at the sink) *and* the planner is forbidden from inter...",
    "operational_effect": "Without the substring index, the laundering is invisible: audit logs show `CLEAN` arguments and a clean policy decision, and the post-incident replay cannot distinguish a benign `cat` from an exfiltration `cat ../../etc/passwd` because the taint was recorded on a binding that no longer exists. With joint-call taint, the second call is flagged because `\"../....."
  },
  "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": "35393c390665e4276de2f49990d969bc4baceab238db0e4dd638a9c8f9768fb4",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintedSubstringIndex"
    ],
    "verified_functions": [
      "_normalize",
      "dispatch",
      "__init__",
      "record",
      "contains_tainted",
      "assert_call_clean"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "unicodedata"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
