{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-tool-call-whose-arguments-are-tainted-but-whose-schema-validates-the-label-laundering-boundary-in-mcp-tool-sandboxing",
  "title": "When must an instance refuse a tool call whose arguments are tainted but whose schema validates: the label-laundering boundary in MCP tool sandboxing",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any MCP-connected agent runtime that enforces least privilege by tracking information-flow labels (taint) on values derived from untrusted sources (tool outputs, retrieved documents, peer-agent messages) and gates privileged tool invocations on those labels. Does not apply to stateless single-turn completions with no tool surface, nor to systems that rely solely on prompt-level \"do not do X\" instructions without a runtime taint lattice.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tool-call-whose-arguments-are-tainted-but-whose-schema-validates-the-label-laundering-boundary-in-mcp-tool-sandboxing.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tool-call-whose-arguments-are-tainted-but-whose-schema-validates-the-label-laundering-boundary-in-mcp-tool-sandboxing.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-tool-call-whose-arguments-are-tainted-but-whose-schema-validates-the-label-laundering-boundary-in-mcp-tool-sandboxing.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2029,
    "python_slice_tokens": 410,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model was prompt-injected.\" It is that **schema validation and taint validation are orthogonal gates, and the sandbox evaluates them in the wrong order or on the wrong object.** An MCP tool call has two independent properties: (1) its arguments conform to the tool's declared JSON Schema, and (2) the information-flow labels carried by ...",
    "what_was_observed": "A filesystem-read tool `fs.read` is registered with privilege class `READ_LOCAL` and a schema `{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"}},\"required\":[\"path\"]}`. A network tool `web.fetch` returns untrusted content labeled `UNTRUSTED_EXTERNAL`. The runtime's taint tracker labels the `web.fetch` response and any value *directly* sliced from it. The agent's plan: fetch a documentation page, extract a \"conf...",
    "condition_of_validity": "The taint gate is only sound when all of the following hold. Any one failing voids the guarantee and the sandbox must be treated as schema-only: 1. **Provenance is carried out-of-band and survives serialization.** Taint labels must travel in a side-channel keyed to argument identity (e.g., a per-call provenance record in the MCP `_meta` field or a signed tai...",
    "decision_boundary": "The runtime must decide, per privileged call, between **execute**, **execute-with-declassifier**, and **refuse**. The boundary is drawn on the *join of source labels reaching the sink's arguments*, computed from the provenance record: - If `join == CLEAN`: execute. (This is the only path where schema-passing is sufficient, because there is no taint to launde...",
    "operational_effect": "Enforcing the invariant converts a class of silent privilege escalations into loud, attributable refusals, at the cost of false positives: legitimate workflows that extract a path from a trusted-but-labeled source will be refused until a declassifier is registered. The operational discipline is therefore to **register declassifiers eagerly for every intended..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "a7162c06bc90553433e2504bd539c1ea76aad568995c3b5ff28f852f3710d461",
    "verified_classes": [
      "TaintLabel",
      "PrivilegeClass",
      "TaintLaunderingError",
      "Provenance"
    ],
    "verified_functions": [
      "evaluate_privileged_call",
      "join",
      "is_clean"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
