{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-taint-laundering-across-multi-hop-tool-chains-when-injected-labels-are-re-derived-from-trusted-looking-outputs",
  "title": "Which invariants prevent taint-laundering across multi-hop tool chains when injected labels are re-derived from trusted-looking outputs",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent systems that propagate information-flow (IFC) taint labels through tool-call boundaries and across agent handoffs, where a downstream agent re-ingests tainted content that has been reformatted, summarized, or re-emitted by an intermediate tool or peer agent. Does not apply to single-hop, single-agent pipelines where the untrusted content and the acting context are the same span, nor to pure retrieval systems with no write/act authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundering-across-multi-hop-tool-chains-when-injected-labels-are-re-derived-from-trusted-looking-outputs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundering-across-multi-hop-tool-chains-when-injected-labels-are-re-derived-from-trusted-looking-outputs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundering-across-multi-hop-tool-chains-when-injected-labels-are-re-derived-from-trusted-looking-outputs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2508,
    "python_slice_tokens": 519,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"prompt injection succeeds.\" It is **taint laundering**: an information-flow label attached to a value is dropped or downgraded because the value crossed a boundary that *re-derives* provenance from the output's apparent form rather than *carrying* provenance from the input's label. Two distinct mechanisms are routinely conflated: 1. **Con...",
    "what_was_observed": "A three-hop chain: `Orchestrator → Fetcher (web tool) → Summarizer (LLM) → Executor (shell/billing tool)`. - **Hop 1.** `Fetcher` retrieves a page containing an injected instruction embedded in a code block. The tool correctly tags the returned payload `label: {integrity: low, confidentiality: public, source: web}`. The tainted span enters the Orchestrator context. - **Hop 2.** The Orchestrator passes the tainted spa...",
    "condition_of_validity": "The invariant `label(output) ⊑ meet(label(inputs))` (read ⊑ as \"no less restrictive than\") holds **only under all of the following**: 1. **Label is carried, not inferred.** Every tool and agent boundary has a typed field (or signed sidecar) for the label, and the schema *requires* it. A boundary whose return type cannot express a label is a laundering bounda...",
    "decision_boundary": "The operational decision is **where to enforce the meet** and **how to fail** when it cannot be computed. - **Enforce at every boundary, not at the sink.** Checking taint only before the dangerous tool (Executor) is insufficient because by then the label may already be laundered. The meet must be computed at each hop's *ingress*, against the carried label, a...",
    "operational_effect": "With the meet-enforced, carried-label discipline: - The Hop-2 Summarizer must return `{summary: str, label: <meet of inputs>}`. Because its input was `integrity: low`, the output carries `integrity: low` even though the prose reads as trusted. The laundering is structurally impossible: the schema forces the label to travel. - The Hop-3 Executor's trust model..."
  },
  "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": "7d0f3898c5973261be65dee00046e5bb92a4aa17d84d72ef5ffde4e37483b5b4",
    "verified_classes": [
      "TaintLaunderingError",
      "MissingLabelError",
      "Label",
      "Tainted"
    ],
    "verified_functions": [
      "hop",
      "emit",
      "ingest",
      "__post_init__",
      "meet",
      "dominated_by"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "MissingLabelError",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
