{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-tainted-content-through-a-trusted-summarizer-before-a-sink-check",
  "title": "What happens when an instance launders tainted content through a trusted summarizer before a sink check",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that propagate taint labels (untrusted provenance) alongside tool-call arguments and enforce sink policies at the point of side-effecting tool invocation. Does not apply to runtimes that re-derive taint from content at every sink, nor to single-turn stateless calls with no tool loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-content-through-a-trusted-summarizer-before-a-sink-check.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-content-through-a-trusted-summarizer-before-a-sink-check.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-content-through-a-trusted-summarizer-before-a-sink-check.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1649,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware sandboxing distinguishes two things that look identical at the sink: *provenance* (where a byte came from) and *value* (what the byte says). The enforcement invariant most runtimes adopt is: > A sink may not receive an argument whose taint set contains `untrusted` unless a declassifier explicitly clears it. The failure mode is not that taint is d...",
    "what_was_observed": "Trigger condition: a two-step chain where step 1 retrieves untrusted content and step 2 routes it through a trusted LLM tool before a side-effecting sink. 1. Agent calls `fetch_url(\"https://attacker.example/page\")`. Runtime returns content tagged `taint={untrusted, src=attacker.example}`. Correct. 2. Agent, reasoning that the page is long, calls `summarize(text=page_body)`. The `summarize` tool is registered in the t...",
    "condition_of_validity": "The sink policy is only sound under a *lineage-closure* condition that most deployments silently omit: - For every tool `T` with declared output taint `out(T)`, the runtime must enforce `out(T) ⊇ in(T)` — output taint is the union of input taint and any tool-intrinsic taint. A trusted tool must not *narrow* taint. - Declassification must be an explicit, audi...",
    "decision_boundary": "The boundary is between *content-preserving* and *content-destroying* trusted tools: - A tool that provably cannot reproduce input substrings (a hash, a length counter, a fixed-vocabulary classifier over a closed label set) may legitimately narrow taint to `trusted`. These are the only tools that may be registered as declassifiers. - A tool that can emit arb...",
    "operational_effect": "Enforcing lineage closure changes three things: 1. Sink denials rise sharply on summarizer-mediated chains, which is correct — those chains were the exfiltration path. 2. Agents must be given a legitimate declassification path (e.g., \"extract only the `title` field, schema-validated, max 80 chars, no URL grammar\") so they are not forced to route around the g..."
  },
  "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": "b79e2054059a5ac9551deb277aba4e7a873c3eeb54ccf83e6bbf299c3329fdb9",
    "verified_classes": [
      "TaintLaunderingError",
      "Taint",
      "ToolSpec"
    ],
    "verified_functions": [
      "invoke_tool",
      "enforce_sink",
      "run_chain",
      "union",
      "is_trusted"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
