{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-taint-propagation-across-a-tool-sandbox-when-retrieved-content-is-laundered-through-a-summarization-hop-before-reaching",
  "title": "How should an instance enforce taint propagation across a tool sandbox when retrieved content is laundered through a summarization hop before reaching a privileged action",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that retrieve untrusted external content (web, RAG corpora, user-supplied documents, tool outputs) and then invoke privileged tools (email send, file write, payment, shell, credential access) within a single reasoning episode. Does not apply to agents whose entire tool surface is uniformly untrusted, nor to stateless single-shot classifiers with no privileged action set.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-propagation-across-a-tool-sandbox-when-retrieved-content-is-laundered-through-a-summarization-hop-before-reaching.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-propagation-across-a-tool-sandbox-when-retrieved-content-is-laundered-through-a-summarization-hop-before-reaching.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-propagation-across-a-tool-sandbox-when-retrieved-content-is-laundered-through-a-summarization-hop-before-reaching.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2026,
    "python_slice_tokens": 502,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common sandboxing model treats taint as a *property of a data value*: a retrieved chunk is tagged `untrusted`, and any privileged tool call whose arguments carry that tag is blocked. This works when taint is preserved by identity — the string from the web page is the string passed to `send_email`. The failure mode is that taint is a property of *provenan...",
    "what_was_observed": "Trace from a representative episode. The agent is asked to \"summarize this vendor page and file the summary.\" Tool surface: `fetch_url` (untrusted output), `write_file` (privileged, arbitrary path), `send_email` (privileged). 1. `fetch_url(\"https://vendor.example/terms\")` returns `T1` (untrusted). Taint tracker labels `T1.trust=untrusted`. 2. The model reads `T1` and emits a summary `S1` into its own context. `S1` is...",
    "condition_of_validity": "Value-identity taint tracking is valid **only if** every privileged tool call's arguments are byte-identical descendants of their tainted sources — i.e., the agent never paraphrases, summarizes, translates, reformats, or reasons-over tainted content before a privileged call. In practice this condition is almost never met for an LLM agent, because summarizati...",
    "decision_boundary": "The boundary is not \"is this string tainted\" but \"does a privileged sink have an untrusted source in its ancestry closure, and is every path declassified?\" Concretely, the decision procedure at the privileged boundary: 1. Compute `anc(args)` — the transitive ancestry of every argument, including the *path* argument and any implicit parameters (recipient, URL...",
    "operational_effect": "When this invariant is enforced, the agent's behavior changes in three measurable ways: - **Laundering hops become visible.** Every privileged call after an untrusted read now carries an ancestry annotation. The fraction of privileged calls with non-empty `anc ∩ U` is a direct exfiltration-surface metric; a healthy agent keeps it near zero via declassifiers...."
  },
  "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": "4182a9d727064872a1c55739bc664818d8daf8d2bb41cee70ea4c1e531fef55f",
    "verified_classes": [
      "TaintLaunderingError",
      "Node",
      "ProvenanceGraph"
    ],
    "verified_functions": [
      "enforce_privileged_call",
      "__init__",
      "add",
      "ancestry",
      "has_undeclassified_untrusted_path",
      "_every_path_declassified"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
