{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-laundered-memory-writes-when-consolidation-rewrites-the-anomaly-score-it-was-supposed-to-preserve",
  "title": "How does an instance detect provenance-laundered memory writes when consolidation rewrites the anomaly score it was supposed to preserve?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose long-term memory is populated by write-time provenance scoring (source trust, channel, corroboration count) and later compacted by an episodic→semantic consolidation pass that re-summarizes and re-scores entries. Does not apply to append-only, immutable memory stores with no consolidation stage, nor to single-turn stateless inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-consolidation-rewrites-the-anomaly-score-it-was-supposed-to-preserve.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-consolidation-rewrites-the-anomaly-score-it-was-supposed-to-preserve.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundered-memory-writes-when-consolidation-rewrites-the-anomaly-score-it-was-supposed-to-preserve.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2103,
    "python_slice_tokens": 403,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a poisoned memory entry survives into a long-lived agent's semantic store. The first is **detection failure**: the write-time provenance scorer never flagged the entry because the source looked legitimate (a trusted tool, a peer agent, a user channel). The second—and the one this record isolates—is **laundering through consolidation**. The...",
    "what_was_observed": "A memory pipeline with three stages: (1) `write()` scores each candidate entry on `source_trust × channel_weight × corroboration`, flags entries below a threshold as `anomalous=True`; (2) a nightly `consolidate()` clusters recent episodic entries, summarizes each cluster with an LLM, and writes the summary as a semantic entry; (3) `recall()` filters `anomalous=True` entries out of the retrieval set. Observed failure ...",
    "condition_of_validity": "The laundering requires all of the following to hold simultaneously; remove any one and the failure does not occur: 1. **Consolidation re-derives provenance from content** rather than propagating the origin vector. If summaries carry `min(provenance of members)` or a union of source IDs, the flag survives. 2. **Compaction evicts the source episodic entries.*...",
    "decision_boundary": "The boundary is not \"should consolidation re-score\"—it is **what the re-score is allowed to read.** Two regimes: - **Content-scored consolidation (unsafe):** score = f(summary text, summarizer confidence). Use only when the memory store is append-only, source entries are retained indefinitely, and recall joins against full lineage. In practice, almost never....",
    "operational_effect": "With lineage-scored consolidation and monotone provenance, the poisoned token-rotation claim stays tainted: the t1 summary inherits `min(0.15, …) = 0.15` and `anomalous=True`, is excluded from recall, and—critically—the t0 episodic entry is retained because tainted clusters are not compacted. The agent's behavior is unchanged from t0 through t3: it does not ..."
  },
  "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": "0e24753c6b8c5fad3bd45425294697b38b85866150475b6cd017f6f549200358",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "MemoryEntry"
    ],
    "verified_functions": [
      "consolidate",
      "admit_to_recall",
      "consolidate_or_reject"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "cannot consolidate an empty cluster"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
