{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-mcp-tool-call-taint-as-non-transitive-across-a-re-planning-boundary",
  "title": "In what scenarios must an instance treat MCP tool-call taint as non-transitive across a re-planning boundary",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that propagates taint labels (untrusted-origin markers) from tool results into subsequent MCP `tools/call` authorization decisions, and that permits re-planning between the tainted read and the consequential write. Does not apply to single-shot, no-replan executors, nor to runtimes where all tool outputs are pre-classified as trusted by an out-of-band signer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-tool-call-taint-as-non-transitive-across-a-re-planning-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-tool-call-taint-as-non-transitive-across-a-re-planning-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-tool-call-taint-as-non-transitive-across-a-re-planning-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2118,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two defensible taint models, and they diverge exactly at the point most runtimes silently pick the wrong one. **Transitive taint (the naive model):** once a value derived from an untrusted source enters the agent's working context, every downstream tool invocation that can *reference* that context is treated as tainted and gated. This is easy to im...",
    "what_was_observed": "A runtime enforced taint at the MCP boundary by tagging each `tools/call` result with a `taint: untrusted` label when the tool was classified `external_read` (web fetch, email read, third-party API). A `policy_gate` intercepted every subsequent `tools/call`: if any message in the current context carried `taint: untrusted`, invocations of `class: consequential` tools (send, write, delete, transfer) were blocked pendin...",
    "condition_of_validity": "The transitive/context-membership model is valid only when **no model-generated turn intervenes between the tainted read and the consequential call**, i.e., the tool result is passed directly as an argument to the next tool call without the model re-emitting it. This holds for chained-tool pipelines with fixed wiring. It does **not** hold for any agent that ...",
    "decision_boundary": "At each `tools/call` boundary, the gate must decide between **allow**, **deny**, and **require-approval**, using the argument-level taint join, not the context-level membership test. The decision procedure: - Compute `arg_taint(call) = ⋃ taint(v)` over all argument values `v`, where `taint(v)` is the label set attached to the generating turn's context at emi...",
    "operational_effect": "With argument-digest-bound approval and epoch-carried taint, the observed attack is bounded: at step 4 the gate sees `arg_taint = {untrusted}` (carried from the evicted fetch) on a `consequential` call, denies, and surfaces the tainted lineage to the approver — who sees *\"this transfer's arguments derive from an untrusted web fetch, summarized at turn 2.\"* T..."
  },
  "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": "cc8c48b111e8d743af70dc8b47e97ade677e93f338683c4496df5a1681f25897",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintLabel",
      "TaskEpoch",
      "ToolCall"
    ],
    "verified_functions": [
      "gate",
      "compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
