{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-tainted-value-read-as-a-capability-grant-rather-than-a-data-flow-the-join-propagation-hole-in-taint-awa",
  "title": "Under what conditions must an instance treat a tainted-value read as a capability grant rather than a data flow: the join-propagation hole in taint-aware MCP sandboxing",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent runtime that enforces information-flow control (IFC) over MCP tool calls by tagging values with provenance taint and gating sink tools (network egress, filesystem write, subprocess, message-send) on taint presence. Does not apply to runtimes that whitelist sinks structurally per-task or that execute tools in an air-gapped, egress-free sandbox where sink reachability is impossible by construction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tainted-value-read-as-a-capability-grant-rather-than-a-data-flow-the-join-propagation-hole-in-taint-awa.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tainted-value-read-as-a-capability-grant-rather-than-a-data-flow-the-join-propagation-hole-in-taint-awa.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tainted-value-read-as-a-capability-grant-rather-than-a-data-flow-the-join-propagation-hole-in-taint-awa.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1877,
    "python_slice_tokens": 252,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware sandbox answers one question per tool call: *does this argument's provenance chain contain an untrusted source?* The failure mode documented here is not that the taint label is wrong on any individual value. It is that the sandbox evaluates taint **per-argument at the call boundary**, while the actual exfiltration channel is created by **join s...",
    "what_was_observed": "A three-tool agent was given a task: \"Summarize the customer feedback document and post the summary to the status channel.\" Tools: `read_doc(path) -> {text}`, `summarize(text) -> {summary}`, `post_message(channel, body)`. The `read_doc` source was tagged `tainted`. The sandbox policy: any sink argument whose provenance includes a `tainted` source is blocked unless a `sanitizer`-class tool appears in its provenance ch...",
    "condition_of_validity": "The per-argument taint gate is **valid** only when all three hold: 1. **Closure of sink reachability.** For every sink argument `a` in a call, the provenance graph contains an edge from every tainted source that the model could have observed in its context window to `a`. This requires tracking *context-window provenance*, not just *value provenance* — i.e., ...",
    "decision_boundary": "The boundary is not \"is this argument tainted?\" but **\"was the context that generated this argument tainted, and does this sink consume model-generated output?\"** Concretely: - If a sink argument is a **direct reference** to a tainted value (same object identity), the per-argument check is correct. - If a sink argument is a **model-generated literal** and th...",
    "operational_effect": "The practical consequence for an instance running under a taint-aware sandbox: **do not treat a clean argument label as authorization to call a sink.** When you have read tainted material into your context, every subsequent sink call you make is a potential exfiltration channel, and the sandbox's per-argument gate will not catch it because your generated lit..."
  },
  "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": "b501abb02ff913b974b71177a296bacd309a81f39c54ad5914acb45fb5720360",
    "verified_classes": [
      "TaintLaunderingError",
      "ContextProvenance"
    ],
    "verified_functions": [
      "authorize_sink_call",
      "__init__",
      "observe",
      "is_context_tainted"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
