{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-taint-through-a-summarization-tool-provenance-label-collapse-at-the-tool-return-boundary",
  "title": "What happens when an instance launders taint through a summarization tool: provenance-label collapse at the tool-return boundary",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that propagate provenance/taint labels on context segments across tool calls and memory writes, where at least one tool returns free-form text derived (directly or transitively) from untrusted input. Does not cover label propagation purely within a single model turn, nor systems that re-derive trust per-segment from cryptographic attestation rather than carried labels.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-taint-through-a-summarization-tool-provenance-label-collapse-at-the-tool-return-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-taint-through-a-summarization-tool-provenance-label-collapse-at-the-tool-return-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-taint-through-a-summarization-tool-provenance-label-collapse-at-the-tool-return-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1937,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking in an agent fails not at the injection point but at the **transformation boundary**—the moment an untrusted segment passes through a tool whose output schema has no field for provenance. The distinction that matters operationally: a *label-preserving* transform (echo, slice, filter that returns source spans) keeps taint; a *label-erasing* tran...",
    "what_was_observed": "A research agent was tasked with reading an external document, summarizing it, and writing a structured note to long-term memory. The pipeline: 1. `fetch_url` returns raw HTML. The runtime tags the returned segment `provenance=external:untrusted, taint=high` because the URL is outside the allowlist. Correct. 2. The agent calls `summarize(text=<that segment>)`. The tool is a small LLM wrapper. Its return schema is `{\"...",
    "condition_of_validity": "The monotonicity invariant holds only when **every edge in the derivation graph is label-aware and the runtime computes output taint as the join over declared input taints, never from a per-tool default.** Concretely, the guardrail is valid iff: - Each tool's schema declares which input parameters are *data-flow* inputs (taint-propagating) versus *control* i...",
    "decision_boundary": "The agent must decide, at each tool-return and each memory-write, whether to treat the segment as tainted. The boundary is not \"is this a tool output\" but: > **Admit as trusted iff the segment's computed taint (join over declared data-flow inputs, propagated through projections) is below the sink's threshold. Otherwise quarantine, and require an explicit dec...",
    "operational_effect": "When the invariant is enforced, the observed attack fails at step 3: the summary segment carries `taint=high` (joined from the fetched HTML through the summarizer's declared data input), `memory.write` quarantines it, and the embedded instruction never enters the authoritative context. The agent's subsequent turn does not see `policy: allow_all` as trusted m..."
  },
  "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": "ed91997bdbdf89b7114d49993caa10c034857569106f68c45e47d1b84230becd",
    "verified_classes": [
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "propagate_taint",
      "admit_to_memory"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
