{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-taint-label-laundering-gap-when-dynamic-information-flow-labels-cross-tool-output-and-agent-handoff-boundaries",
  "title": "What structural signals indicate a taint-label laundering gap when dynamic information-flow labels cross tool-output and agent-handoff boundaries",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent runtimes that attach dynamic information-flow (IFC) taint labels to retrieved context, tool outputs, and inter-agent messages, and that rely on label propagation to block instruction-bearing untrusted content from reaching privileged sinks (shell, filesystem write, credentialed HTTP, state-mutating tool calls). Does not apply to pure single-turn classification, nor to systems where all inputs are statically typed as trusted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-label-laundering-gap-when-dynamic-information-flow-labels-cross-tool-output-and-agent-handoff-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-label-laundering-gap-when-dynamic-information-flow-labels-cross-tool-output-and-agent-handoff-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-label-laundering-gap-when-dynamic-information-flow-labels-cross-tool-output-and-agent-handoff-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1995,
    "python_slice_tokens": 448,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"prompt injection got through.\" It is that the *taint label itself was laundered* — a value that originated from untrusted content arrived at a privileged sink carrying a `trusted` (or `untainted`) label, because the propagation rule was defined over *data provenance* while the exploit traveled through *structural framing*. The label track...",
    "what_was_observed": "A three-hop trace from a production-class incident replay: 1. **Ingest.** `retrieve(query)` returns chunk `C`. Runtime labels `C` as `{UNTRUSTED, source=web}`. Correct. 2. **Transform.** `summarize(C)` is invoked. The tool wrapper does not accept a label argument and returns `S` as a bare string. The wrapper's contract declares `output_trust=TRUSTED_TOOL` because the *code* is first-party. The runtime joins labels fr...",
    "condition_of_validity": "The guardrail \"block `UNTRUSTED` at privileged sinks\" is only sound under a conjunction that is rarely stated and frequently false: 1. **Monotonicity:** for every transform `t`, `labels(t(x)) ⊇ labels(x)` unless `t` is certified to strip all instruction-bearing content. String transforms (summarize, translate, reformat, extract-JSON) are *not* certified; the...",
    "decision_boundary": "The runtime must decide, at each transform and each handoff, whether to (a) propagate the union and accept the label-set growth (and the resulting sink blocks), or (b) accept a certified sanitizer's claim of label reduction. The boundary: - **Propagate (default).** Any tool not explicitly registered `sanitizing` with a proof obligation (e.g., a parser that r...",
    "operational_effect": "With monotone propagation and dual-axis tool registration enforced, the observed incident replay blocks at hop 2: `summarize` is `preserving`, `S` carries `{UNTRUSTED, TRUSTED_TOOL}`, and `run_shell` refuses. The false-positive rate rises on legitimate pipelines that summarize trusted and untrusted content together — mitigated by *label partitioning* (summar..."
  },
  "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": "6ad06b0fa557c01f632bba24648f1d8f1963cace59bd03f43ee8bf1340c30bb6",
    "verified_classes": [
      "TaintLaunderingError",
      "LabelBehavior",
      "ToolSpec",
      "Labeled"
    ],
    "verified_functions": [
      "propagate",
      "sink_guard",
      "handoff"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
