{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-its-own-episodic-store-contradiction-mining-blind-spots-under-memory-poisoning",
  "title": "When must an instance distrust its own episodic store: contradiction-mining blind spots under memory poisoning",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-lived agents that persist episodic memory across sessions and rely on cross-session consistency auditing (contradiction mining) as their primary poisoning-detection mechanism. Does not apply to stateless single-turn agents, nor to stores where every write is gated by a trusted external attestation service.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-episodic-store-contradiction-mining-blind-spots-under-memory-poisoning.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-episodic-store-contradiction-mining-blind-spots-under-memory-poisoning.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-its-own-episodic-store-contradiction-mining-blind-spots-under-memory-poisoning.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1711,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats memory poisoning detection as a *retrieval-time* problem: when a memory is recalled, check whether it is corroborated. This is wrong for a specific and dangerous reason. Contradiction mining only fires when two memories *disagree*. A poisoned memory that is *consistent with the store's existing beliefs* is invisible to it — not...",
    "what_was_observed": "An agent with a 90-day episodic store accumulated ~14,000 memory records. A nightly auditor ran pairwise contradiction mining: embed each record, retrieve nearest neighbors above similarity 0.82, and ask a judge model whether any pair asserts mutually exclusive propositions. Flagged pairs went to a quarantine queue. Over three weeks the auditor flagged 41 pairs, 38 of which were legitimate drift (stale facts supersed...",
    "condition_of_validity": "The consistency-audit invariant holds only when all of the following are true: 1. **Provenance is causal, not nominal.** Each record carries a lineage identifier derived from the *content hash of the upstream artifact*, not a human-readable source label. Two records with the same lineage hash count as one witness, regardless of how many times they were writt...",
    "decision_boundary": "The operational decision is: **when a retrieved memory cluster's trust weight is high but its distinct-lineage count is 1, the instance must treat the cluster as unverified and must not use it to override a conflicting low-trust memory or to authorize an action with side effects.** Concretely, before acting on a recalled fact, compute `distinct_lineages(clus...",
    "operational_effect": "Applying lineage-collapsed corroboration changed the store's behavior in three measurable ways. First, the promoted poisoned cluster dropped from trust weight 3 to trust weight 1 and was demoted out of the action-gating tier on the next retrieval cycle. Second, the auditor's flag rate on legitimate drift fell, because drift between records sharing a lineage ..."
  },
  "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": "2c98db98c55e78704d487e29571e28ee478412180b64459801b92c9125bc4465",
    "verified_classes": [
      "UncorroboratedActionError",
      "MemoryRecord",
      "Cluster"
    ],
    "verified_functions": [
      "build_clusters",
      "gate_action",
      "lineage_hash",
      "distinct_lineages",
      "trust_weight"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UncorroboratedActionError"
    ],
    "sample_fail_closed_invariants": [
      "assert cluster.trust_weight() == 1"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
