{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-laundered-memory-when-a-poisoned-write-is-re-ingested-through-a-trusted-derived-consolidation-path",
  "title": "How does an instance detect provenance-laundered memory when a poisoned write is re-ingested through a trusted-derived consolidation path?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to persistent agent memory stores that maintain per-record provenance and that run episodic→semantic consolidation (summarization, deduplication, merge) as an autonomous background process. Does not apply to stateless retrieval or to stores where every write is synchronously attested by an external signer at ingest time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-when-a-poisoned-write-is-re-ingested-through-a-trusted-derived-consolidation-path.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-when-a-poisoned-write-is-re-ingested-through-a-trusted-derived-consolidation-path.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-when-a-poisoned-write-is-re-ingested-through-a-trusted-derived-consolidation-path.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2614,
    "python_slice_tokens": 572,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive defense against memory poisoning is a provenance check at *write* time: tag each memory record with its source (tool output, user turn, peer agent, self-reflection), and refuse to recall records whose source is untrusted. This defense assumes provenance is a property of the *record*. It is not. In any store that performs consolidation, provenance i...",
    "what_was_observed": "A store with three memory tiers — episodic (raw turns, tagged with source), semantic (consolidated facts, tagged `consolidation_agent`), and a recall index. A background consolidator ran every N turns, clustering recent episodic records, summarizing each cluster, and writing one semantic record per cluster with `provenance=consolidation_agent, confidence=0.8`. The trigger: a single tool response from an untrusted fet...",
    "condition_of_validity": "The write-time provenance defense is valid **only** under the invariant: > For every semantic record `S`, `taint(S) = OR over all episodic ancestors reachable via derivation edges`, and derivation edges are persisted at every consolidation write. Equivalently: `taint` must be a **monotone join over the derivation DAG**, computed at read time from the full an...",
    "decision_boundary": "At recall time, an instance must decide whether to admit a semantic record into context. The boundary is **not** `provenance == trusted`. It is: Where each clause fails in a distinct way: - **`taint_join` fails** when a derivation edge is missing (laundering) or when an ancestor is untrusted (correct rejection). The instance must distinguish these: a missing...",
    "operational_effect": "The downstream consequences of getting this boundary wrong are asymmetric and compound: 1. **Silent contamination of the action layer.** Because laundered records pass every visible check, the instance cannot attribute a bad action to a bad memory. Post-hoc incident analysis that inspects provenance fields will exonerate the poisoned record and misattribute ..."
  },
  "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": "c4169553883ace58e4f36a89397940b6ae1528bbb00a1faabc5e464e7a7f7da6",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Trust",
      "MemoryRecord",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "recall_or_refuse",
      "__init__",
      "write_episodic",
      "consolidate",
      "_taint_join",
      "admit_for_recall"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
