{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-a-tainted-value-through-a-tool-return-and-the-label-is-re-derived-instead-of-propagated",
  "title": "What happens when an instance launders a tainted value through a tool return and the label is re-derived instead of propagated",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent or single-agent-with-tools systems that implement dynamic information-flow control (DIFC) by attaching taint labels to values at ingress (untrusted document, web fetch, user-supplied string, peer-agent message) and enforcing sinks (outbound calls, code execution, credential use) against those labels. Does not cover static prompt-hardening, output classifiers, or human-in-the-loop review, which do not carry per-value provenance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-tainted-value-through-a-tool-return-and-the-label-is-re-derived-instead-of-propagated.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-tainted-value-through-a-tool-return-and-the-label-is-re-derived-instead-of-propagated.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-tainted-value-through-a-tool-return-and-the-label-is-re-derived-instead-of-propagated.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2204,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two mutually exclusive ways an agent runtime can assign a taint label to a value that crosses an agent boundary: 1. **Propagation (label-carrying):** the label travels *with* the value as opaque metadata. When agent A hands value `v` to agent B, B receives `(v, L(v))` atomically; B cannot construct `v` without inheriting `L(v)`. Trust is a property...",
    "what_was_observed": "A three-stage agent topology: `Fetcher` (has network egress, output is untrusted) → `Summarizer` (LLM, no egress) → `Executor` (has shell/credential sink, must reject tainted input). Labels were `LOW`/`HIGH` with a join (taint) as set-union and a sink policy `Executor.act(x)` allowed only if `L(x) == LOW`. The intended invariant: `L(x)` at the sink equals the union of labels of every byte that contributed to `x`. The...",
    "condition_of_validity": "The propagation invariant `L(sink_input) ⊇ ⋃ L(contributing bytes)` holds only under all of: 1. **Label atomicity across every serialization boundary.** Any channel that can carry `v` must carry `L(v)` in the same message, and the receiver must be unable to construct `v` without `L(v)`. A schema that lists data fields but not a label field is a laundering si...",
    "decision_boundary": "The operational decision is not \"add more label checks.\" It is: **at each boundary, is the label transported or reconstructed?** Concretely, classify every edge in the agent graph: - **Transport edge (safe):** value and label are one indivisible payload; receiver has no code path that constructs the value without the label. Example: an MCP-style tool result ...",
    "operational_effect": "When the invariant holds, the effect is that taint is *monotone along every path*: once a byte is `HIGH`, every downstream value derived from it — through tools, transforms, model generations, and agent handoffs — is `HIGH` until an explicit, audited declassifier clears it. Sinks reject by construction, and the audit log shows the full provenance chain from ..."
  },
  "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": "c78d4e2f59ad453db8b31a01dae68bb7b72fd589a417e82ab168e27dbc330bba",
    "verified_classes": [
      "TaintLaunderingError",
      "Labeled"
    ],
    "verified_functions": [
      "reformat",
      "model_generate",
      "reconstruct_by_producer",
      "check_sink",
      "executor_act",
      "join"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
