{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-taint-label-laundering-failure-when-tool-outputs-are-summarized-before-memory-write",
  "title": "What structural signals indicate a taint-label laundering failure when tool outputs are summarized before memory write",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that carry information-flow (taint) labels across tool-call boundaries and persist labeled content into long-term memory. Does not apply to stateless single-turn inference with no memory write path, nor to agents whose tool outputs are never re-summarized before persistence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-label-laundering-failure-when-tool-outputs-are-summarized-before-memory-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-label-laundering-failure-when-tool-outputs-are-summarized-before-memory-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-label-laundering-failure-when-tool-outputs-are-summarized-before-memory-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2157,
    "python_slice_tokens": 422,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint label is a claim about *provenance of bytes*, but agents almost never persist bytes—they persist *summaries, extractions, and paraphrases* of bytes. The failure mode is not that a tainted tool output escapes labeling at ingestion; ingestion-time labeling is usually correct. The failure mode is **label laundering through the summarization boundary**: ...",
    "what_was_observed": "A research agent was configured with an information-flow policy: any content returned by the `fetch_url` tool received label `UNTRUSTED_EXTERNAL`, and any memory write whose source set contained `UNTRUSTED_EXTERNAL` was required to carry that label forward and be gated behind a confirmation check on later retrieval. The pipeline was: `fetch_url` → raw content (correctly labeled) → a `summarize_for_memory` step (an LL...",
    "condition_of_validity": "The laundering failure requires all of the following to hold simultaneously: - A derivation step (summarization, extraction, reformatting, translation) sits between labeled ingestion and persistence. - That derivation step's output is constructed without inheriting the input's label set—i.e., the label is attached to the *transport* (the tool response object...",
    "decision_boundary": "The operative decision is where to enforce label continuity. Three candidate boundaries, with their tradeoffs: - **At the summarizer output construction.** Require every derivation call to pass `inherited_labels=input.labels` and construct output labels as the union. Cheap, complete for this hop, but fails the moment a new derivation step is added by an engi...",
    "operational_effect": "With lineage reconstruction at the write boundary, the example trace changes at one point: the memory record is written with `labels: [\"UNTRUSTED_EXTERNAL\"]` because its `source_ids` resolve to the fetch event, regardless of what the summarizer claimed. The later retrieval hits the confirmation gate, the user is asked to confirm forwarding an API key to an e..."
  },
  "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": "f685dc6c665b4e0a2c478a408deb8822ff7a3bc75b3ecd950382d64c97e59e49",
    "verified_classes": [
      "TaintLaunderingError",
      "Artifact",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "write_memory",
      "__init__",
      "put",
      "lineage_labels"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
