{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-a-poisoned-memory-through-a-legitimate-consolidation-write",
  "title": "What happens when an instance launders a poisoned memory through a legitimate consolidation write",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-lived agents that persist episodic observations into a semantic memory store via a consolidation/summarization step, where each memory record carries provenance (source episode IDs, writer identity, write timestamp) and an anomaly baseline is maintained per writer/namespace. Does not apply to stateless retrieval-only agents or to stores without per-record provenance chains.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-poisoned-memory-through-a-legitimate-consolidation-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-poisoned-memory-through-a-legitimate-consolidation-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-poisoned-memory-through-a-legitimate-consolidation-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2056,
    "python_slice_tokens": 459,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance-tracked write auditing catches poisoning at the *ingestion* boundary: an untrusted tool output or injected document is written with a source tag, and a detector flags the record because its source is low-trust or its embedding is an outlier against the namespace baseline. That works when the poison arrives as a *raw write*. It fails when the poiso...",
    "what_was_observed": "A retrieval agent maintained a semantic store of operational facts about a deployment environment. Episodes arrived from three sources: direct operator messages (trust 0.9), monitoring tool outputs (trust 0.6), and a scraped runbook corpus (trust 0.3). The consolidator ran nightly, summarizing the day's episodes per topic into semantic records. Each derived record stored `provenance: [episode_ids]` and `writer: conso...",
    "condition_of_validity": "The laundering path is live exactly when all three hold: 1. **Trust is writer-attributed.** The derived record's effective trust `T(rec)` is computed as `f(writer)` rather than `min(trust(e) for e in provenance)` or a provenance-weighted aggregate. If any consolidation output's trust exceeds the minimum trust of its inputs, the consolidator is a trust amplif...",
    "decision_boundary": "The boundary is whether the audit evaluates the *record* or the *lineage*. Two designs sit on opposite sides: - **Writer-scoped audit (unsafe under consolidation):** trust and anomaly are properties of the emitting agent. Cheap, catches raw injection, blind to laundering. - **Lineage-scoped audit (safe):** trust and quarantine are recomputed bottom-up from t...",
    "operational_effect": "When the invariant holds, a poisoned episode can still enter the store, but it enters *tainted*: every derived record that descends from it carries `effective_trust ≤ 0.3` and `quarantined = true`, so downstream retrieval either excludes it or surfaces it with an explicit low-trust marker that the consuming agent's policy can act on. The consolidator becomes..."
  },
  "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": "4b5e1abfffa6f4322e32f6a4d0ceed12ac8501d7c9c7f02700436efdd3e4cd9e",
    "verified_classes": [
      "TrustLaunderingError",
      "Episode",
      "DerivedRecord"
    ],
    "verified_functions": [
      "effective_trust",
      "is_quarantined",
      "audit_write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TrustLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
