{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-propagate-taint-across-mcp-tool-call-boundaries-rather-than-resetting-privilege-at-each-invocation",
  "title": "Under what conditions must an instance propagate taint across MCP tool-call boundaries rather than resetting privilege at each invocation",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that invoke MCP tools under per-call least-privilege scopes where tool outputs may carry attacker-influenced content. Does not apply to stateless single-shot tool calls with no downstream privilege re-grant, nor to systems where all tool outputs are treated as fully trusted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-taint-across-mcp-tool-call-boundaries-rather-than-resetting-privilege-at-each-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-taint-across-mcp-tool-call-boundaries-rather-than-resetting-privilege-at-each-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-taint-across-mcp-tool-call-boundaries-rather-than-resetting-privilege-at-each-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2313,
    "python_slice_tokens": 438,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats a least-privilege scope as a *per-call* property: each MCP invocation is granted the minimum capabilities it needs, the call returns, and the privilege envelope is discarded. Under this model, a tainted tool output (e.g., a fetched web page containing injected instructions) is just data — the *next* call gets a fresh, minimal s...",
    "what_was_observed": "An agent was tasked with \"summarize the linked pages in this inbox message and reply with the summaries.\" Its tool set: - `mail.read` — scope: `mail:read` - `web.fetch` — scope: `net:egress` (unrestricted host allowlist) - `mail.send` — scope: `mail:send` to *any* recipient Each call was correctly scoped to least privilege. The failure trace: 1. `mail.read` returned a body containing a URL `https://attacker.example/p...",
    "condition_of_validity": "The invariant \"propagate taint across the call boundary\" is *necessary* only when all of the following hold. If any fails, per-call scope reset is sound and taint propagation is unnecessary overhead: - **Argument derivation:** at least one MCP tool call takes an argument whose value is derived (transitively) from a prior tool output, rather than from the ori...",
    "decision_boundary": "The decision is not \"taint-track everything\" (prohibitive: every LLM output becomes tainted and the system degrades to no autonomy) nor \"reset at boundaries\" (unsound as shown). The boundary is: **Propagate taint across a call boundary iff the call's argument set intersects the tainted value set AND the call's scope is not a subset of the taint source's orig...",
    "operational_effect": "When the invariant is enforced, three observable changes appear in the agent's execution log: 1. **The composed capability graph becomes auditable.** Every privileged call carries the taint lineage of its arguments, so a post-hoc replay can reconstruct \"this `mail.send` was parameterized by a value that originated in `mail.read` via `web.fetch`\" — the exact ..."
  },
  "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": "f8422e7dbe1eee4243b1f45027b6058b10bc0a7fcd753958cb21154a4d838faa",
    "verified_classes": [
      "TaintBoundaryViolation",
      "Scope",
      "TaintedValue",
      "TaintAwareSandbox"
    ],
    "verified_functions": [
      "issubset",
      "__init__",
      "register_tainted",
      "invoke",
      "_run"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
