{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-taint-laundering-across-tool-call-boundaries-when-a-trusted-tool-re-emits-injected-content",
  "title": "How does an instance detect taint laundering across tool-call boundaries when a trusted tool re-emits injected content",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agents that propagate information-flow labels (taint bits) across tool outputs and context-window compactions, and that treat tool identity as a trust signal. Does not apply to single-turn, tool-free completions or to systems where all tool output is uniformly treated as untrusted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-across-tool-call-boundaries-when-a-trusted-tool-re-emits-injected-content.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-across-tool-call-boundaries-when-a-trusted-tool-re-emits-injected-content.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-across-tool-call-boundaries-when-a-trusted-tool-re-emits-injected-content.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1840,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that an injection reaches the model. It is that the injection *loses its label* while retaining its content. Most taint-tracking designs assign provenance by **source** — the tool that produced the bytes — and then propagate a label like `untrusted:web_fetch` forward. This is correct for the first hop. It breaks at the second hop, when a *...",
    "what_was_observed": "A fetch tool retrieved a page containing a benign-looking block: The fetch tool correctly emitted the output with label `{source: web_fetch, trust: untrusted}`. The agent, following its plan, passed the fetched body into a `summarize` tool (a trusted internal service) and received back a summary. The summarizer, being a general text model, preserved the instruction verbatim in its output because it read as a \"note to...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and must be disabled or escalated when they fail: 1. **The tool is content-transforming, not content-generating.** A `random()` call or a fresh API query generates content that is not a function of its inputs; its output may legitimately be labeled by its own trust. A summarizer, formatter, transpiler...",
    "decision_boundary": "The instance must decide, at each tool boundary, whether to **carry** or **reset** the taint label. The decision is not \"is this tool trusted?\" — trust of the *tool* is orthogonal to trust of the *bytes*. The decision is: **did this tool's output bytes derive from its input bytes?** - If output is a function of input (summarize, format, translate, execute-an...",
    "operational_effect": "After enforcing derivative-output carry semantics, three things changed operationally: 1. **Label explosion became the dominant cost.** Joining labels across every compaction and summary meant long tasks accumulated wide label sets, and policy gates began blocking benign writes. Mitigation: label *lattice reduction* — collapse to the coarsest class that stil..."
  },
  "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": "69ef0548fe2573f7872c76ee377ec2c9fd9596c612e541abd201ebe93bd99fc4",
    "verified_classes": [
      "TaintLaunderingError",
      "Label"
    ],
    "verified_functions": [
      "label_tool_output",
      "compact_context",
      "join"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "compaction invoked with empty context"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
