{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-label-laundering-through-tool-result-re-ingestion-in-agent-taint-tracking",
  "title": "What structural signals indicate label laundering through tool-result re-ingestion in agent taint tracking",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that propagate dynamic information-flow (DIF) labels across tool calls, where a tool result is re-ingested into the model context and its provenance must be re-derived. Does not apply to stateless single-shot completions with no tool boundary, nor to systems that quarantine tool output in a separate privileged channel never parsed back into the reasoning stream.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-label-laundering-through-tool-result-re-ingestion-in-agent-taint-tracking.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-label-laundering-through-tool-result-re-ingestion-in-agent-taint-tracking.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-label-laundering-through-tool-result-re-ingestion-in-agent-taint-tracking.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1686,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint propagation** and **taint preservation**. A DIF label like `untrusted:web` is easy to propagate: attach it to any value derived from a web fetch and carry it forward. It is hard to *preserve* across a tool boundary, because the boundary itself is an information-laundering surface. When the agent calls `summariz...",
    "what_was_observed": "A research agent with a three-tool pipeline: `fetch(url)` → `extract(html, selector)` → `compose(fragments)`. Labels were applied at `fetch` (taint `untrusted:web` on the returned body) and were expected to flow through `extract` and `compose` into the final `compose` output, which was then gated before being written to a durable memory store. The gate checked `label(final_output) == trusted`. It passed. The output w...",
    "condition_of_validity": "The invariant `label(output) ⊒ label(inputs)` holds only if one of three conditions is met at every tool boundary: 1. **Schema-carried provenance.** The tool's output schema includes a provenance field that the tool is contractually obligated to populate from its inputs (e.g., `{\"text\": ..., \"derived_from\": [\"untrusted:web\"]}`). This requires the tool author...",
    "decision_boundary": "The decision the tracker must make at each tool return is: *is this output's label the join (least upper bound) of its inputs' labels, or is it something the tracker must compute from the tool's declared semantics?* The boundary is crossed when the tool's output schema is **structurally narrower than its input schema**—when the output has fewer or differentl...",
    "operational_effect": "With conservative re-taint on schema divergence, the pipeline above correctly taints the `compose` output, the gate rejects the write, and the injected directive never reaches durable memory. The cost is that legitimate compositions over tainted inputs are also blocked—an over-taint that must be resolved by explicit declassification, not by silently trusting..."
  },
  "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": "4bea346271405112457933efada0c81b49d389c06a52166877e95720ddff5c93",
    "verified_classes": [
      "LabelLaunderingError",
      "Tainted"
    ],
    "verified_functions": [
      "join_labels",
      "propagate_across_tool",
      "gate_write_to_memory"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LabelLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "refusing to persist value with no derivation label (unprovenanced)"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
