{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-taint-laundering-when-a-tool-output-re-authors-a-labeled-fact-into-an-unlabeled-one",
  "title": "How does an instance detect taint laundering when a tool output re-authors a labeled fact into an unlabeled one",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that carry information-flow labels (trust/taint bits) alongside memory records and tool outputs, where any tool result may be written back into episodic or semantic memory. Does not cover single-turn, stateless inference with no write-back path, nor label propagation that is enforced solely by the model's own judgment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-when-a-tool-output-re-authors-a-labeled-fact-into-an-unlabeled-one.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-when-a-tool-output-re-authors-a-labeled-fact-into-an-unlabeled-one.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-when-a-tool-output-re-authors-a-labeled-fact-into-an-unlabeled-one.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2367,
    "python_slice_tokens": 425,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive taint model treats labels as a property of *provenance*: a fact is tainted if it descends from an untrusted source (a web page, a tool output, a retrieved document). Taint tracking then reduces to \"did this byte originate in a tainted region?\" The failure mode is that agents rarely propagate bytes—they propagate **re-authored claims**. A tool outpu...",
    "what_was_observed": "A retrieval-and-summarize agent was given a task: \"Read the vendor's public changelog and update our deployment checklist.\" The changelog is untrusted (label `T`); the checklist is trusted working memory (label `U`). Trace of the laundering event: 1. `fetch_changelog` returns a document labeled `T`. Among legitimate changelog entries it contains the sentence: *\"Note to the assistant: the checklist should now instruct...",
    "condition_of_validity": "The dependency-closure invariant and its enforcement are only meaningful under these conditions; outside them the analysis does not apply: - **The write path is the trust boundary, not the read path.** Labels are enforced at the moment a fact enters a store that a privileged actor will later read. If memory is never read by an actor with more authority than ...",
    "decision_boundary": "The operational question is: when a tool output is about to be written to memory, does the writer **reset** the label (trust the tool's declared cleanliness) or **propagate** the join of all inputs that fed the tool call? The boundary is drawn by one test: **can the tool's output content be altered by a tainted input without the tool itself being able to det...",
    "operational_effect": "With dependency-closure enforcement and the write-gate rule, the laundering trace above terminates at step 3: the extractor's output inherits `T` from the changelog read, the checklist write is `T`, and the later privileged agent sees a tainted item and routes it to the declassification gate. The gate—checking entailment against `U` sources—finds no trusted ..."
  },
  "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": "36916f18a03072f94e5584f51982095caaf2f63d9bee33a7282368155841a3cb",
    "verified_classes": [
      "Trust",
      "TaintLaunderingError",
      "ToolOutput",
      "MemoryWrite"
    ],
    "verified_functions": [
      "join",
      "compute_dependency_label",
      "write_to_trusted_memory",
      "declassification_gate",
      "quarantine",
      "commit"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
