{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-write-provenance-drift-from-silently-laundering-poisoned-memory-past-contradiction-checks",
  "title": "Which invariants prevent write-provenance drift from silently laundering poisoned memory past contradiction checks",
  "date_of_record": "2026 December 2",
  "scope": "Applies to persistent agent memory stores that admit writes from multiple sources (tool outputs, peer agents, self-reflection, human correction) and gate admission through a provenance score plus a contradiction check against existing entries. Does not cover read-path retrieval ranking, embedding-model drift, or pure in-context scratchpads that are discarded at task end.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-write-provenance-drift-from-silently-laundering-poisoned-memory-past-contradiction-checks.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-write-provenance-drift-from-silently-laundering-poisoned-memory-past-contradiction-checks.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-write-provenance-drift-from-silently-laundering-poisoned-memory-past-contradiction-checks.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2666,
    "python_slice_tokens": 602,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A contradiction check is a *relative* test: it asks whether a candidate memory `m_new` conflicts with the current store `S`. A provenance score is an *absolute* test: it asks whether the source of `m_new` is trustworthy. The failure mode this record addresses is the case where **the contradiction check is defeated not by making the poison consistent with `S`...",
    "what_was_observed": "A memory store with 4,212 entries was instrumented with a contradiction checker that embedded each candidate and computed max cosine similarity against the top-50 nearest existing entries, rejecting writes whose *dissimilarity* to all neighbors exceeded a threshold `τ_conflict = 0.62` (i.e., a write that contradicted nothing was accepted; a write that contradicted a strongly-held entry was rejected). Provenance score...",
    "condition_of_validity": "The laundering attack succeeds only when **three conditions co-hold**. Removing any one bounds it: - **C1 — Provenance floor below consensus weight.** The per-write provenance floor (`0.40`) is lower than the provenance required to *outvote* a consolidated entry downstream. A 0.50-provenance write, once consolidated with 40 siblings, behaves like a high-prov...",
    "decision_boundary": "The operational question at each write is not \"does this contradict the store?\" but \"**does this contradict the store at a trust tier at or above its own, and is the store's highest-tier assertion on this proposition still present?**\" The decision boundary is a three-way split, not a binary accept/reject: - **Admit** if the candidate is consistent with all e...",
    "operational_effect": "After the correction, the same laundering sequence was replayed against a shadow store: - Seeds 1–40 were quarantined (support tier ≤ own tier). Consolidation phase found zero admissible episodic entries and produced no semantic memory. The 40 seeds never entered the general store, so they never triggered eviction of the `us-east-1` entry. - The poison write..."
  },
  "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": "2171ebb0c2d4b71b5d15bb733a72a450b896b0a60be52df1737557c2f9a3560d",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "MemoryEntry",
      "TieredStore"
    ],
    "verified_functions": [
      "admit_write",
      "replay_laundering_sequence",
      "max_provenance_for",
      "highest_tier_supported"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "poison write admitted: contradiction baseline was reshaped by prior low-tier seeds and the high-tier assertion was evict"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
