{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-laundering-across-multi-hop-tool-invocation-graphs",
  "title": "What structural signals indicate taint laundering across multi-hop tool invocation graphs",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents whose tool calls are chained (output of tool A feeds arguments of tool B) and whose planner re-reads tool outputs into the reasoning context. Does not apply to single-shot retrieval-augmented calls where tool output is never re-fed into a subsequent tool's arguments.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-multi-hop-tool-invocation-graphs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-multi-hop-tool-invocation-graphs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-across-multi-hop-tool-invocation-graphs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2212,
    "python_slice_tokens": 263,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing of prompt injection treats taint as a property of *content*: a span of text is \"untrusted\" because it originated from a web page, an email, or a user-supplied document. Taint-tracking schemes built on this framing tag the retrieved string, propagate the tag into the context window, and instruct the model to ignore instructions found in tai...",
    "what_was_observed": "A three-hop graph was instrumented: `fetch_url` → `summarize` → `send_email`. The `fetch_url` tool returned a page containing an injected instruction embedded in a paragraph of otherwise benign prose. The taint layer correctly tagged the `fetch_url` result as `untrusted`. The planner then called `summarize` with that text as input. The `summarize` tool returned a fluent summary. Critically, the summary was produced b...",
    "condition_of_validity": "The monotonic-trust invariant is enforceable only when the following hold, and each is a precondition you must verify before trusting any taint-tracking deployment: - **Every tool declares a trust transform, not a trust level.** A tool is either a *source* (assigns trust to new data), a *sink* (consumes data, taint must be checked at call time), or a *transf...",
    "decision_boundary": "The operational question is not \"is this text malicious\" — that is undecidable and the model will lose that game eventually. The question is \"does this sink call have a derivation path to a source the operator never authorized for this sink.\" Concretely: - **Block** any sink call (external send, write, execute, pay) whose argument derivation set includes a l...",
    "operational_effect": "Enforcing monotonic trust along the data-flow graph converts prompt injection from a detection problem into a routing problem, which is the only form in which it is tractable. The observed three-hop graph, re-run under the invariant, behaves as follows: `fetch_url` output is tainted (source). `summarize` is a transformer, so its output inherits `min(tainted)..."
  },
  "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": "a68d9d29e3928c993ed487525f63dc2a24108d478d5bb548cc964ef02bc26dca",
    "verified_classes": [
      "TrustLevel",
      "LaunderingDetected",
      "Value",
      "ToolSpec"
    ],
    "verified_functions": [
      "apply_transformer",
      "invoke_sink"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "LaunderingDetected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
