{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-laundering-through-an-agent-s-summarization-step-in-a-taint-aware-sandbox",
  "title": "What structural signals indicate taint-laundering through an agent's summarization step in a taint-aware sandbox",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agent pipelines that wrap untrusted tool outputs (web fetches, third-party MCP servers, user-supplied files) in a taint label and gate privileged sinks (shell exec, credential access, outbound writes) on that label. Does not apply to pipelines that never re-ingest model-generated text as a new tool input, nor to purely static taint analyses over source code.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-an-agent-s-summarization-step-in-a-taint-aware-sandbox.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-an-agent-s-summarization-step-in-a-taint-aware-sandbox.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-an-agent-s-summarization-step-in-a-taint-aware-sandbox.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2030,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware sandboxing assumes the unit of taint is *the data object*: a tool result is born tainted, and any sink that consumes it inherits the taint. The failure mode this record covers is a different unit of propagation: **the taint is carried by the value, but the agent's summarization/reformatting step re-emits that value as a fresh, structurally clean ...",
    "what_was_observed": "A pipeline with three stages: a `fetch` tool (untrusted, tainted on return), an agent reasoning step that reads the fetch result and emits a `summary` string, and a `write_file` sink gated to reject tainted inputs. The sandbox maintained a provenance ledger: every tool call produced a record `{id, producer, taint: bool}`, and the sink checked the taint of any datum whose `producer` was an external tool. Trace of a la...",
    "condition_of_validity": "The laundering is only possible when all of the following hold; the guardrail described below is only necessary under the same conjunction: - The sandbox's taint label is attached to **object identity / producer**, not to **content spans** or **semantic classes**. - There exists at least one **transformation step** (summarize, extract, reformat, translate, \"...",
    "decision_boundary": "The boundary the operator must draw is between **provenance taint** (is this object's producer trusted?) and **content taint** (does this object's content derive from an untrusted source, possibly through a transform?). The former is cheap and sound for direct data flow; the latter is what the laundering attack defeats, and it is undecidable in general becau...",
    "operational_effect": "With the object-level ledger only, the pipeline is exploitable by any untrusted source that can place an instruction in a field the summarizer is likely to copy. The attack cost is low (one injected line), the detection rate is near zero (the ledger reports a clean object), and the blast radius is whatever the downstream trusted sink can do — in the observed..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "6479b8072d60b4821a42dbc47006a34179b622faf69937e2c3862bdf62e6f7ee",
    "verified_classes": [
      "TaintLaunderingError",
      "Datum",
      "TaintLedger"
    ],
    "verified_functions": [
      "run_pipeline",
      "__init__",
      "register_tool_return",
      "register_derived",
      "is_tainted",
      "gate_sink"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
