{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-taint-laundering-through-conjunctive-tool-call-recombination-across-a-quarantine-boundary",
  "title": "How does an instance detect taint-laundering through conjunctive tool-call recombination across a quarantine boundary?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that quarantine untrusted retrieved content (RAG chunks, fetched pages, tool-returned text) into a tainted sub-context and enforce taint propagation at the tool-call boundary. Does not apply to agents that execute only on operator-authored prompts with no external content ingestion, or to single-turn systems with no persistent tainted state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-conjunctive-tool-call-recombination-across-a-quarantine-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-conjunctive-tool-call-recombination-across-a-quarantine-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-conjunctive-tool-call-recombination-across-a-quarantine-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2257,
    "python_slice_tokens": 394,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *taint of a value* and *taint of a capability*. Standard taint-aware sandboxing treats taint as a label on data: any argument derived from quarantined content is marked `tainted`, and tool calls whose arguments are tainted are refused or routed to a sanitizer. This is sound for **unary** sinks — a single tool call whos...",
    "what_was_observed": "In a sandboxed retrieval agent with a quarantine gate, a document fetched from an external URL was quarantined. The gate's propagation rule was: any string value present in the quarantined blob, or any value whose provenance set intersected the blob's provenance set, is marked tainted; tool calls with tainted arguments are denied. The quarantined blob contained two sentences separated by ~40 lines of benign prose: on...",
    "condition_of_validity": "The guardrail holds only when the following condition is enforced at the tool-dispatch boundary: > **No mutating tool call may be admitted if any argument's derivation graph contains a node whose provenance set intersects an active quarantine, transitively through read-only tool results.** Two clauses are load-bearing and both were absent in the observed sys...",
    "decision_boundary": "The boundary between \"admit\" and \"quarantine the plan\" is drawn at the point where a mutating tool is dispatched with a rationale-context that has ever contained quarantined content in the current episode, **unless** the agent has executed an explicit declassification step: a re-derivation of the operation from operator-authored intent, logged with the opera...",
    "operational_effect": "Enforcing the invariant changes the failure surface in three measurable ways: 1. **Laundering steps become visible.** Step 2 above (`search_local_index` → clean `res_8841`) is reclassified as tainted output, so step 3's argument is tainted, so step 4 is refused at dispatch. The audit log now shows a `TAINTED_RATIONALE` refusal instead of four clean `ALLOW`s...."
  },
  "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": "67b51bddb09f0f2879bdb56d682d536c769d9b442a457c990f6f5cffb6f7ad8f",
    "verified_classes": [
      "TaintLaunderingError",
      "Provenance",
      "ToolResult",
      "ToolCall"
    ],
    "verified_functions": [
      "derivation_closure",
      "warrant_is_valid",
      "dispatch",
      "intersects"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
