{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-laundering-across-a-quarantined-tool-invocation-s-argument-graph-rather-than-a-single-poisoned-field",
  "title": "What structural signals indicate taint-laundering across a quarantined tool invocation's argument graph rather than a single poisoned field",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that propagate provenance taint labels from untrusted context (retrieved documents, tool outputs, peer-agent messages) into tool-call arguments and quarantine calls whose arguments intersect the tainted set. Does not apply to agents that treat each tool call as an atomic permission decision with no argument-level provenance tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-a-quarantined-tool-invocation-s-argument-graph-rather-than-a-single-poisoned-field.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-a-quarantined-tool-invocation-s-argument-graph-rather-than-a-single-poisoned-field.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-a-quarantined-tool-invocation-s-argument-graph-rather-than-a-single-poisoned-field.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1755,
    "python_slice_tokens": 454,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware sandbox is usually specified as a *set-membership* rule: if any argument value is derived from an untrusted source, the invocation is quarantined. That rule is sound only when taint is a property of *values*. The failure mode documented here occurs when taint is a property of *derivation paths through an argument graph* — specifically when a ta...",
    "what_was_observed": "An agent was given a task that required reading an untrusted web page (source `web:untrusted`) and then calling an internal `db.execute` tool. The sandbox correctly quarantined the direct path: The agent then routed the same content through a normalization sub-tool the sandbox trusted: `text.normalize` was registered as a pure formatter with a return-type rule `str -> {clean}`. The taint lattice had no rule for \"outp...",
    "condition_of_validity": "The set-membership rule is valid only under the conjunction: 1. **Label-preserving composition.** Every tool that consumes a tainted value and produces a value either propagates the taint to its output or is proven non-interfering (output is a constant function of the input's *shape*, not its *content*). Formatters, parsers, and coercers almost never satisfy...",
    "decision_boundary": "The operational decision is not \"quarantine or allow\" — it is **whether to treat a tool as a flow carrier or a value transformer, and that classification must be conservative.** Default a tool to *flow carrier* (propagates taint from all inputs to all outputs) unless it is proven non-interfering. Proven-non-interfering is a high bar: the tool's output must b...",
    "operational_effect": "With closure-based taint, the laundering path is caught: - `text.normalize` is registered as propagating; `norm` inherits `{web:untrusted}`; `db.execute(norm)` is quarantined. - `int(\"3\")` is registered as propagating; the `limit` parameter inherits taint; the call is quarantined or, if the parameter is a benign control-flow knob, routed to a human-approval ..."
  },
  "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": "74709f2d4d4846de2529e87f5cb695faeebf0c71707fc972734a2fea89227539",
    "verified_classes": [
      "TaintLaunderingError",
      "Label",
      "Node"
    ],
    "verified_functions": [
      "apply_transform",
      "check_sink",
      "guarded_call",
      "tainted",
      "merge"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AssertionError",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "laundering path escaped quarantine",
      "type-erasure laundering escaped quarantine"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
