{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-laundering-across-tool-call-sandbox-boundaries-when-provenance-labels-are-rewritten-by-schema-coercing-adapters",
  "title": "What structural signals indicate taint laundering across tool-call sandbox boundaries when provenance labels are rewritten by schema-coercing adapters",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-step agents where tool outputs carry provenance/taint labels (untrusted-web, user-pii, model-generated) that are consumed by downstream tool arguments across an MCP/A2A boundary. Does not apply to single-tool, single-hop invocations where no label crosses an adapter boundary, nor to systems that re-derive taint from source rather than propagating it.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-tool-call-sandbox-boundaries-when-provenance-labels-are-rewritten-by-schema-coercing-adapters.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-tool-call-sandbox-boundaries-when-provenance-labels-are-rewritten-by-schema-coercing-adapters.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-tool-call-sandbox-boundaries-when-provenance-labels-are-rewritten-by-schema-coercing-adapters.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1899,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"untrusted data reaches a privileged sink.\" That is the *detectable* case, and taint-tracking exists precisely to catch it. The non-obvious failure is **taint laundering through type coercion**: an adapter that sits between two tools rewrites a payload to satisfy a downstream schema, and in doing so drops or reclassifies the provenanc...",
    "what_was_observed": "A three-hop chain: `fetch_web` → `extract_fields` (adapter) → `write_record` (privileged sink). The `fetch_web` tool returned a document with provenance `untrusted-web`. The `extract_fields` adapter was declared with a Pydantic output model whose fields were plain `str`, no label annotation. Internally it did: 1. Parsed the untrusted document. 2. Coerced `phone` from `\"+1 (555) 010-9999\"` to `\"15550109999\"` via a nor...",
    "condition_of_validity": "The invariant holds — and the guardrail is sound — only under these conditions: 1. **Provenance is a lattice with a join, not a tag.** Every value carries a label; every operation that produces a value from inputs must compute `label_out = join(label_in_1, ..., label_in_n)`. A component that does not participate in the join (because it re-serializes) must be...",
    "decision_boundary": "The decision boundary is between **modeling coercion as a transform edge** and **modeling it as a fresh source**. Concretely: - If the adapter's output value is a function of the input value (`out = f(in)`), it is a transform: `label_out = join(label_in, label_f)`. Default `label_f = trusted` (code is trusted), so `label_out = label_in`. No laundering possib...",
    "operational_effect": "Downstream, the effect is a **persistent provenance inversion**: data that entered as `untrusted-web` is now stored as `trusted:model-derived` and will be retrieved by future agents as authoritative context. The corruption is not confined to the current task — it seeds the episodic memory of subsequent runs, and because the stored label is `trusted`, no futu..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "06f5a808208ff58cb7e2170a3072732a71e8807dc9c11381e2d6b18efb8b2935",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintJoinViolation",
      "Labeled",
      "AdapterManifest"
    ],
    "verified_functions": [
      "join",
      "run_adapter",
      "privileged_write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintJoinViolation",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
