{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-prompt-injection-taint-has-silently-laundered-through-a-tool-call-join-node",
  "title": "What structural signals indicate prompt-injection taint has silently laundered through a tool-call join node",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agents that propagate data-flow taint labels (provenance bitsets) across tool-call graphs where two or more independently-tainted lineages are joined (merged, concatenated, deduplicated, or summarized) before reaching a sink tool. Does not apply to single-lineage linear call chains, nor to taint models that re-derive provenance from raw bytes at every hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-has-silently-laundered-through-a-tool-call-join-node.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-has-silently-laundered-through-a-tool-call-join-node.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-has-silently-laundered-through-a-tool-call-join-node.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1753,
    "python_slice_tokens": 270,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"taint was lost at a tool boundary.\" Every serious taint tracker instruments tool ingress and egress. The failure is subtler: **taint was preserved in cardinality but destroyed in identity at a join node that performs set-union with an absorbing element.** When a summarizer, deduplicator, or merger tool collapses N tainted inputs into one ...",
    "what_was_observed": "A retrieval-and-merge agent pipeline: `fetch_doc` (untrusted web) → `fetch_internal` (trusted) → `merge_and_summarize` → `write_file` (sink, gated on taint). The taint tracker labeled `fetch_doc` output `{UNTRUSTED_WEB}` and `fetch_internal` output `{TRUSTED}`. The merge tool concatenated both and asked the LLM to \"produce a single coherent summary.\" Propagation rule: union. Output label: `{UNTRUSTED_WEB, TRUSTED}`. ...",
    "condition_of_validity": "The laundering is *possible* whenever a join node satisfies all of: - It accepts ≥2 inputs with distinct taint labels. - Its propagation rule is set-union (or any rule that does not preserve a `label → span_range` map). - Its output is consumed by a sink whose gate distinguishes \"attributed-tainted\" from \"unattributed\" and treats the latter as non-blocking. ...",
    "decision_boundary": "The boundary is between two propagation disciplines: - **Membership taint** (`label ∈ set`): correct for \"is any untrusted content present,\" insufficient for \"did untrusted content *cause this specific action*.\" Fails at every LLM join. - **Attribution taint** (`span → source`): correct for causal gating, but undefined after an LLM rewrite. Must be paired wi...",
    "operational_effect": "In the observed pipeline, the effect was a sink write of a credentials path derived from untrusted content, with the taint label present and correct in membership at the moment of the write. No alert fired, because every monitor checked label presence, not attribution binding. The post-hoc forensic signal was the `bound_spans / labels` ratio at the merge nod..."
  },
  "matched_failure_symptoms": [
    "PROMPT_INJECTION_OR_CONFUSED_DEPUTY"
  ],
  "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": "ee91c07cb6fa806ad4b4ad6b5e4e02f165b58c4d553f3ff841439ad8fe33b7bf",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintRecord"
    ],
    "verified_functions": [
      "assert_join_preserves_attribution",
      "gate_sink"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
