{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-laundering-through-tool-argument-reassembly-in-agent-sandboxes",
  "title": "What structural signals indicate taint-laundering through tool-argument reassembly in agent sandboxes",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that retrieve untrusted content (web, RAG, inbound email) and subsequently invoke tools whose arguments are constructed by the model, where taint tracking is enforced at the tool-call boundary. Does not apply to agents whose tool arguments are produced entirely from trusted operator-supplied templates with no model-mediated field synthesis.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-tool-argument-reassembly-in-agent-sandboxes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-tool-argument-reassembly-in-agent-sandboxes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-tool-argument-reassembly-in-agent-sandboxes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2335,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware sandbox that blocks exfiltration derived from untrusted retrieved content typically enforces a *label* on data flowing from retrieval into tool arguments: if a byte range originated in an untrusted document, any tool call whose argument carries that label is rejected or downgraded. This is a *provenance-at-the-boundary* invariant: the sandbox c...",
    "what_was_observed": "A retrieval-augmented agent was given a benign task: summarize a set of fetched pages and file the summary. Pages were fetched via a `fetch` tool returning `UNTRUSTED`-labeled content. The agent had access to `http_post(url, body)` and `write_file(path, content)`, both of which the sandbox gated on taint: any argument value carrying the `UNTRUSTED` label caused the call to be rejected with `TaintViolation`. The exfil...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: - **Taint is enforced only at the tool-argument boundary, not at the generation boundary.** If the sandbox re-labels model output as tainted whenever the generation was conditioned on tainted context (a *context-dependency* rule), the laundering path closes—at the cost of labeling nearly all o...",
    "decision_boundary": "The decision is not \"block tainted arguments\" versus \"allow them.\" Both are wrong at the edges. The correct decision boundary is a **derivation-closure check**: an argument is admitted only if *no path through the agent's transform history* connects it to a tainted span, where the transform history includes generation steps annotated with the context spans t...",
    "operational_effect": "The practical consequence is a **utility/containment tradeoff that must be made explicit per tool class**. With closure checking enabled, an agent that summarizes untrusted pages cannot POST the summary anywhere; it can only write it to a sandbox-internal store, display it to the operator, or pass it to a tool marked information-neutral. This is correct but ..."
  },
  "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": "6f26c637f5d754b820efc3c7fafb91aa6fbc7559358ee65449efa3e9c9b76102",
    "verified_classes": [
      "TaintClosureViolation",
      "Span",
      "ToolCall"
    ],
    "verified_functions": [
      "check_closure",
      "emit_summary"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintClosureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
