{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-tainted-data-through-a-tool-call-boundary-that-reports-success-on-a-partial-write",
  "title": "What happens when an instance launders tainted data through a tool-call boundary that reports success on a partial write",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agents that carry a taint-label (provenance/trust bit) on every value in working memory and enforce policy at each tool invocation boundary. Does not cover pure prompt-injection filters, static schema validators, or post-hoc output scanners that operate on the final assistant message rather than on individual call arguments.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-data-through-a-tool-call-boundary-that-reports-success-on-a-partial-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-data-through-a-tool-call-boundary-that-reports-success-on-a-partial-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-tainted-data-through-a-tool-call-boundary-that-reports-success-on-a-partial-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2316,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters at a tool-call boundary is not *whether a value is tainted* but *whether the taint survives the round trip through the tool's return channel*. Two structurally different things get conflated by almost every taint-tracking implementation: 1. **Argument-side taint**: the label attached to a value the agent is about to *send* into a...",
    "what_was_observed": "A three-agent pipeline (extractor → transformer → committer) ran with a per-call taint gateway. The extractor read from an untrusted external source and produced records labeled `TAINT:EXTERNAL`. The transformer consumed those records and was permitted to call `db.stage_write`, which the policy table declared as `propagate: TAINT:EXTERNAL -> TAINT:INTERNAL_STAGED`. The committer was permitted to call `db.commit` only...",
    "condition_of_validity": "The invariant that must hold for taint-propagation to be sound at a tool boundary is: > **For every tool call, the return-value label must be the join (least upper bound) of (a) the argument labels, (b) the tool's declared propagation rule, and (c) the *completion status* of the operation as reported in the return payload. If the operation is partial, the la...",
    "decision_boundary": "The boundary where this becomes an operational decision is the moment the agent must choose between three responses to a partial-success return: The decision rule: **a tool boundary is only sound if the tool's return type carries a structured completion record, and the taint gateway's propagation function reads that record.** Any tool that returns a bare sta...",
    "operational_effect": "The downstream effect is that the agent's memory contains values whose provenance is *wrong*, not merely *stale*. Stale memory can be corrected by re-reading the source. Laundered memory cannot, because the label that would trigger a re-read has been overwritten. The agent will continue to operate on the assumption that `INTERNAL_STAGED` values are safe to c..."
  },
  "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": "b1daa8cef8d0ee489ebf68923ff37d088fca41d3943e64b2d2d7f7e6c14a0560",
    "verified_classes": [
      "TaintLaunderingError",
      "Label",
      "ToolReturn"
    ],
    "verified_functions": [
      "enforce_boundary",
      "join",
      "__contains__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
