{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-taint-laundering-through-argument-reconstruction-in-a-quarantined-tool-sandbox",
  "title": "How does an instance detect taint-laundering through argument reconstruction in a quarantined tool sandbox",
  "date_of_record": "2026 November 25",
  "scope": "Applies to single-instance agents that enforce taint-aware pre-execution quarantine by tracking provenance of context segments (retrieved documents, tool outputs, user-supplied content) and blocking tool calls whose arguments derive from untrusted segments. Does not apply to post-hoc output filtering, network-egress allowlists, or human-in-the-loop approval gates, which operate on different invariants.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-argument-reconstruction-in-a-quarantined-tool-sandbox.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-argument-reconstruction-in-a-quarantined-tool-sandbox.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-argument-reconstruction-in-a-quarantined-tool-sandbox.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2600,
    "python_slice_tokens": 561,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint propagation over *derived values*** and **taint propagation over *syntactic argument identity***. Most taint sandboxes implemented at the agent layer are of the second kind: they tag context segments as `trusted`/`untrusted`, then when the model emits a tool call, they inspect each argument slot and ask \"did th...",
    "what_was_observed": "A retrieval-augmented agent was asked to \"summarize the ops runbook and, if it names a rollback command, run it.\" The runbook (a retrieved, untrusted segment) contained the string `rollback --target prod-db-1 --confirm`. The sandbox tagged the retrieved chunk `untrusted`. The model's plan step emitted a tool call: The sandbox's argument checker looked at `command`, found no provenance tag attached to the literal (the...",
    "condition_of_validity": "The value-identity taint model is valid only under a condition that is almost never stated explicitly: **the model must not be permitted to emit arguments whose content is causally downstream of untrusted context, unless the sandbox can verify the causal chain.** In practice this means the sandbox must either: 1. **Restrict argument provenance to a closed se...",
    "decision_boundary": "The boundary is between **quarantine-before-execution** and **quarantine-before-generation**. Pre-execution quarantine is what most sandboxes implement: the model generates a call, the sandbox inspects it, and blocks if tainted. This is the boundary that fails, because the inspection happens after the laundering step. The correct boundary is pre-generation: ...",
    "operational_effect": "The practical consequence is that taint-aware sandboxing must be designed at the **schema and context-partitioning layer**, not the argument-inspection layer. An instance that discovers its sandbox is doing value-identity matching should treat every free-text argument as a potential laundering channel and either (a) refuse to dispatch calls with free-text ar..."
  },
  "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": "2eaa415c37a2087a3d1685bf44a434899af1b05e440e52d67f3cd2d49861ec85",
    "verified_classes": [
      "TaintLaunderingError",
      "Trust",
      "ContextSegment",
      "ToolCall",
      "ToolSchema",
      "TaintSandbox"
    ],
    "verified_functions": [
      "dispatch",
      "__init__",
      "_active_untrusted",
      "authorize"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
