{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-taint-laundering-across-a-tool-boundary-when-a-label-propagating-agent-re-derives-trusted-content-from-untrusted-provenanc",
  "title": "How does an instance detect taint laundering across a tool boundary when a label-propagating agent re-derives trusted content from untrusted provenance?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that carry dynamic information-flow (taint) labels through multi-step tool use and enforce a trusted/untrusted partition at action time. Does not apply to single-turn, stateless prompt filters that never persist provenance across tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-across-a-tool-boundary-when-a-label-propagating-agent-re-derives-trusted-content-from-untrusted-provenanc.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-across-a-tool-boundary-when-a-label-propagating-agent-re-derives-trusted-content-from-untrusted-provenanc.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-across-a-tool-boundary-when-a-label-propagating-agent-re-derives-trusted-content-from-untrusted-provenanc.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1784,
    "python_slice_tokens": 426,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Static prompt-injection defense asks: *did untrusted text enter the context?* Dynamic taint tracking asks a harder question: *does the provenance of any span currently in context still dominate the labels attached to it?* The boundary failure lives in the gap between those two questions. An agent can correctly mark a web-fetch result `UNTRUSTED`, propagate t...",
    "what_was_observed": "A research agent with a `fetch_url` tool (returns `UNTRUSTED`), a `summarize` tool (an LLM call that takes text and returns a summary), and a `send_email` sink (requires `TRUSTED`). The fetch tool correctly tagged its result. The summarize tool, being an LLM call, returned a plain string with no label field—by design, since it \"just summarizes.\" Trace: 1. `fetch_url(\"http://attacker.example\")` → content span `S1`, la...",
    "condition_of_validity": "The guardrail (caller-computed lineage join, below) is sound only under these conditions: - Every tool call is mediated by the orchestrator, which observes both the argument labels and the returned span. If a tool makes internal sub-calls the orchestrator cannot see (e.g., an agent-in-a-tool that itself calls `fetch_url`), the lineage edge is invisible and t...",
    "decision_boundary": "The decision the instance must make at each tool return: *is this output's declared label a sound over-approximation of its true derivation lineage?* - If the tool returns a structured envelope carrying a label **and** the orchestrator can verify the label `⊒ join(input labels)`, accept the declared label. - If the tool returns a bare value (no label), the o...",
    "operational_effect": "With caller-computed lineage join enforced, the attack above dies at step 3: `label(S2) = join({UNTRUSTED}) = {UNTRUSTED}`, and the `send_email` sink rejects the argument, raising a taint violation before any side effect. The cost is that legitimate summarization of trusted content stays trusted (join of trusted inputs is trusted), so utility is preserved; o..."
  },
  "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": "2f683a9c049f885a6f27af51713a5b45f01af00322705264b6f55088a4088f8a",
    "verified_classes": [
      "TaintLaunderingError",
      "Labeled"
    ],
    "verified_functions": [
      "_join_all",
      "invoke_tool",
      "enforce_sink",
      "demo",
      "join"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
