{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-tainted-memory-write-label-laundering-through-tool-output-normalization-in-information-flow-tracking",
  "title": "When must an instance quarantine a tainted memory write: label laundering through tool-output normalization in information-flow tracking",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that propagate information-flow (taint) labels from untrusted inputs through tool outputs into persistent memory writes. Does not apply to stateless single-turn inference where no label survives the response boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-memory-write-label-laundering-through-tool-output-normalization-in-information-flow-tracking.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-memory-write-label-laundering-through-tool-output-normalization-in-information-flow-tracking.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-memory-write-label-laundering-through-tool-output-normalization-in-information-flow-tracking.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1717,
    "python_slice_tokens": 372,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most taint-tracking implementations treat a tool output as a *transformation* of an input label: if the agent read a tainted document and then called a parser, the parser's output inherits the taint. The non-obvious boundary is that **a tool output is not a function of its declared inputs alone** — it is a function of the tool's internal state, its upstream ...",
    "what_was_observed": "A retrieval agent was tasked with summarizing a corpus of user-submitted issue reports and writing structured findings to a semantic memory store. The pipeline: (1) fetch raw report → label `UNTRUSTED_USER`; (2) pass through `sanitize_html` tool → expected to preserve taint; (3) pass through `extract_json` tool that parses an embedded JSON block → expected to preserve taint; (4) write summary to memory with label. Th...",
    "condition_of_validity": "The invariant \"tool output inherits input taint\" is valid **only when the tool is a pure function of its labeled inputs with no internal state, no upstream feeds, and no re-serialization that drops provenance.** It is invalid for: - Sanitizers and normalizers that construct new objects from parsed fragments. - Parsers that emit fields present in the source b...",
    "decision_boundary": "Before any memory write, the agent must answer: *is every field in this write traceable to a labeled input span, or was any field synthesized/re-serialized by a tool whose output provenance is unverified?* - If every field is traceable → propagate the maximum input label. - If any field is untraceable → the write is **quarantined**: it may be stored only und...",
    "operational_effect": "Enforcing provenance-completeness converts silent label laundering into an explicit, auditable rejection. In the observed pipeline, the `notes` field would fail the walk (its provenance terminates at `sanitize_html`, which declares no provenance contract for re-emitted fields), and the write would be quarantined rather than promoted. The cost is a higher qua..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "3fff9b4b12f0acf5fd3c700b6d023ee1bf6371ad3e59bbf1b5fbdf280d9d4a28",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "LabeledSpan",
      "ToolOutputField",
      "MemoryWrite"
    ],
    "verified_functions": [
      "_max_label",
      "check_write_provenance",
      "commit_write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
