{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-taint-laundering-when-a-tool-call-graph-relabels-injected-content-across-provenance-boundaries",
  "title": "How does an instance detect taint laundering when a tool-call graph relabels injected content across provenance boundaries?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that maintain per-value provenance labels (trusted / derived / untrusted) and propagate them across a tool-call DAG where tool outputs can be re-ingested as inputs. Does not apply to stateless single-shot completions with no tool loop, nor to systems that treat the entire context as uniformly untrusted (where taint tracking is moot).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-when-a-tool-call-graph-relabels-injected-content-across-provenance-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-when-a-tool-call-graph-relabels-injected-content-across-provenance-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-when-a-tool-call-graph-relabels-injected-content-across-provenance-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2151,
    "python_slice_tokens": 475,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model of prompt-injection taint tracking treats provenance as a lattice that only ever *degrades*: a value is `trusted`, `derived` (a pure function of trusted inputs), or `untrusted` (touched an external document, a web fetch, a user-supplied string, or a model generation). The join is `untrusted ⊔ anything = untrusted`. Under this model, once tain...",
    "what_was_observed": "A retrieval-and-summarize agent, tasked with \"read the customer's support tickets and draft a refund decision.\" Tool graph: 1. `fetch_tickets(customer_id)` → returns raw ticket text, correctly labeled `untrusted`. 2. `summarize(text)` → an LLM-backed tool that takes the raw text and returns a 3-sentence summary. The orchestrator labels the return `derived` because \"it's just a summary of our own data.\" 3. `decide_ref...",
    "condition_of_validity": "The laundering is only possible when all three hold, and the guardrail is only *required* when all three hold: 1. **A model-mediated or lossy transform sits on the path.** The tool is an LLM, a regex extractor, a code interpreter, or anything whose output is a function of *meaning* rather than *bytes*. Pure pass-through tools (identity, `json.loads` round-tr...",
    "decision_boundary": "The operational decision is where to place the label-recomputation boundary. Three positions, each with a sharp failure: - **Trust the tool (current default, unsafe).** Output label = tool's declared trust class. Launders through any model-mediated tool. Fails open. - **Trust the dataflow (conservative, safe but brittle).** Output label = join of inputs. Blo...",
    "operational_effect": "With the declassification boundary in place, the trace changes at step 2: the summarizer's output is scanned for imperative markers (`issue_credit`, `approve`, `SYSTEM:`, second-person directives) that its policy claimed to strip. The paraphrase *\"Customer requests a full refund of 9999\"* contains a quantity and a directive verb that survived the transform. ..."
  },
  "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": "6bbd1fe5ab0ba5d3718f2e805b9d4c1f2b83274576ae0a814aa78343ac5bad6c",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "Value",
      "ToolSpec"
    ],
    "verified_functions": [
      "join",
      "verify_declassification",
      "apply_tool",
      "dispatch_sink"
    ],
    "verified_functions_count": 4,
    "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
  }
}
