{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-propagate-taint-labels-across-a-tool-boundary-when-the-tool-itself-returns-a-laundered-copy-of-injected-content",
  "title": "How should an instance propagate taint labels across a tool boundary when the tool itself returns a laundered copy of injected content?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to single- or multi-agent systems that attach data-flow provenance (taint) labels to context segments and rely on those labels to gate tool invocation, side-effect commits, or downstream prompt assembly. Does not apply to systems that treat all tool output as equally untrusted and never distinguish provenance (there is no label to lose).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-across-a-tool-boundary-when-the-tool-itself-returns-a-laundered-copy-of-injected-content.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-across-a-tool-boundary-when-the-tool-itself-returns-a-laundered-copy-of-injected-content.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-across-a-tool-boundary-when-the-tool-itself-returns-a-laundered-copy-of-injected-content.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1703,
    "python_slice_tokens": 276,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The invariant that fails is *label preservation under content transformation*, not *label correctness at ingestion*. Most taint-tracking designs get the first hop right: content read from an untrusted tool result (a fetched web page, an email body, a file the agent was pointed at) is tagged `TAINTED(source=web)`. The failure occurs one hop later, when a *tru...",
    "what_was_observed": "A research agent was asked to summarize a set of bookmarked pages. Step 1: `fetch(url)` returns HTML tagged `TAINTED(source=web, origin=page_17)`. Step 2: the agent passes the raw text to `extract_entities(text)`, a trusted NLP tool, which returns a JSON structure `{entities: [...], summary: \"...\"}`. The tool's output record is constructed with `provenance={source=\"tool:extract_entities\"}` — the tool's *own* identity...",
    "condition_of_validity": "The taint label is only meaningful if, for every tool invocation `t(inputs) -> output`, the output's provenance is at least the join (least upper bound) of the provenance of all inputs that materially contributed to it. Formally, the guardrail is: > `taint(output) ⊇ ⋃ taint(i) for all i ∈ inputs` — and this must hold for *any* transformation the tool perform...",
    "decision_boundary": "The operational decision is: **when a tool's output schema does not declare derivation, do you (a) conservatively join all input taints into the output, or (b) trust the tool's declared source identity?** Choose (a) — conservative join — for any tool that returns free-form text, summaries, or anything an LLM will later read as instructions. The cost is over-...",
    "operational_effect": "Enforcing the conservative join changes three things. First, side-effect tools (`send_email`, `write_file`, `http_post`) gain a precondition: their instruction arguments must be `CLEAN`, and any argument that is `TAINTED` must either be rejected or routed through an explicit declassification gate that requires a non-LLM approval (a human, a signed policy, or..."
  },
  "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": "eef535ba5fe544b53b042812731ed448d1475bc58af7c38c80271a42c74a03a5",
    "verified_classes": [
      "TaintLaunderingError",
      "Provenance",
      "Tagged"
    ],
    "verified_functions": [
      "invoke_tool",
      "guarded_side_effect",
      "join",
      "is_clean"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
