{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-injected-taint-through-a-tool-s-own-summarization-boundary",
  "title": "What happens when an instance launders injected taint through a tool's own summarization boundary",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that track prompt-injection taint via per-span provenance labels (e.g., `trusted:user`, `untrusted:tool_output`) and propagate those labels across tool-call boundaries. Does not address injection detection at ingress (classifier gating) or model-internal attention-level defenses; it assumes taint labels already exist and asks what happens to them when a tool returns a *derived* artifact rather than a raw one.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-injected-taint-through-a-tool-s-own-summarization-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-injected-taint-through-a-tool-s-own-summarization-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-injected-taint-through-a-tool-s-own-summarization-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2259,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-tracking regime distinguishes two things that look identical at the wire: **raw tool output** (bytes the tool observed, labeled `untrusted:tool_output`) and **tool-derived summary** (text the tool generated *about* its own inputs, which inherits the taint of those inputs only if the propagation rule is written to require it). Most implementations pro...",
    "what_was_observed": "A three-hop chain: `fetch_url` → `summarize` → `write_file`. The orchestrator enforces a policy: any span labeled `untrusted:*` may not be used as the *instruction* argument to a mutating tool. `write_file(path, content)` is mutating; `content` may be untrusted, but the *decision to write* and the *path* must derive from trusted spans only. Trace: 1. `fetch_url(\"http://attacker.example/page\")` returns a 4 KB page con...",
    "condition_of_validity": "The invariant that must hold for taint tracking to be sound is **causal provenance closure**: for every span `s` labeled `trusted`, the *value* of `s` must be a function only of spans labeled `trusted`, plus the model's own weights and the fixed instruction. This is strictly stronger than origin-based labeling and strictly weaker than full information-flow c...",
    "decision_boundary": "The boundary is **whether the trusted emitter's output is treated as a fresh trusted span or as a span whose label is the join of its inputs' labels.** The two policies diverge precisely at the emit step of any tool or model that reads untrusted content. The join policy over-taints in the last row — a summarizer that always returns `\"OK\"` regardless of input...",
    "operational_effect": "Three concrete consequences for an agent runtime: 1. **Tool manifests must declare input-span consumption, not just output trust.** A tool that reads `untrusted:*` spans and returns a value must have its output span labeled by the join of consumed input labels. This requires the runtime to *track which spans the tool actually read*, which means the tool-call..."
  },
  "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": "1bdc0ac32d607bfb3a07ff6e22ecb783d28a5d070ce985e970150708ca25f36c",
    "verified_classes": [
      "Trust",
      "Span",
      "TaintLaunderingError",
      "ToolCall"
    ],
    "verified_functions": [
      "join_trust",
      "emit_with_join",
      "guard_mutation",
      "run_chain"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
