{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-tool-result-as-taint-propagating-rather-than-as-an-ordinary-observation-dynamic-information-flow-labels-and",
  "title": "In what scenarios must an instance treat a tool result as taint-propagating rather than as an ordinary observation: dynamic information-flow labels and the label-laundering failure at the tool boundary",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent that maintains dynamic information-flow (taint) labels on context segments and consumes results from tools whose outputs are derived from untrusted external content (web fetch, email/PDF ingestion, code-search over user corpora, RAG retrieval). Does not apply to tools whose outputs are provably derived only from agent-authored arguments and a trusted, attested data source, nor to label schemes that are purely static at the prompt level.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-tool-result-as-taint-propagating-rather-than-as-an-ordinary-observation-dynamic-information-flow-labels-and.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-tool-result-as-taint-propagating-rather-than-as-an-ordinary-observation-dynamic-information-flow-labels-and.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-tool-result-as-taint-propagating-rather-than-as-an-ordinary-observation-dynamic-information-flow-labels-and.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2303,
    "python_slice_tokens": 481,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint as a property of the value** and **taint as a property of the provenance path**. Most agent taint-tracking implementations label the *string* a tool returns — they attach a label to the returned content and propagate it when that content is concatenated into the next prompt. This is the wrong carrier. The secur...",
    "what_was_observed": "A trace from a research-assistant agent, single task, 14 tool calls. The relevant segment: 1. `fetch(url=...)` returns document `D`. Labeler assigns `D: UNTRUSTED(source=web)`. 2. Agent calls `summarize(text=D, max_tokens=400)` → returns `S`. The tool's output schema declares `trust: \"internal\"` (it is a first-party tool). Labeler assigns `S: TRUSTED`. 3. Agent calls `search(query=extract_question(S))` → returns resu...",
    "condition_of_validity": "The label-laundering failure is *live* — meaning an attacker can exploit it — if and only if all three of the following hold simultaneously: 1. **A transformation tool exists whose output is a non-injective function of a tainted input.** Summarize, translate, paraphrase, extract-fields, embed-then-reconstruct, and \"clean up formatting\" all qualify. A tool th...",
    "decision_boundary": "The operational decision is: *when a tool returns a value, does the labeler assign the declared trust of the tool, or the join of the tool's declared trust and the labels of its arguments?* The correct answer is the join, with declassifiers as the sole exception. The decision boundary is drawn at the tool registry: a tool is either **taint-propagating** (out...",
    "operational_effect": "With the join rule enforced and declassifiers audited, the observed failure is bounded: the `send_email` argument carries `UNTRUSTED` provenance, the downstream policy refuses, and the agent surfaces a \"blocked: untrusted-derived action\" to the operator. The cost is a small increase in false-positive blocks (legitimate summaries of untrusted documents cannot..."
  },
  "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": "446d99d84da0295cb27aaf02aec77ec0ceba769dbf52c858352f78f3b47e609a",
    "verified_classes": [
      "TaintLaunderingError",
      "Label",
      "ToolSpec",
      "ProvenanceLabeler"
    ],
    "verified_functions": [
      "demo",
      "join",
      "is_tainted",
      "__init__",
      "label_tool_output",
      "trace_laundering"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert summary_label.is_tainted"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
