{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-contradictory-episodic-memory-before-semantic-consolidation-and-how-does-retrieval-time-resolution-fail",
  "title": "In what scenarios must an instance quarantine contradictory episodic memory before semantic consolidation, and how does retrieval-time resolution fail when it does not",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that maintain a dual-store memory architecture (append-only episodic log plus distilled semantic store) and resolve contradictions lazily at retrieval time. Does not apply to single-store agents, to agents whose semantic store is fully rebuilt from episodic ground truth on every cold start, or to stateless tool-callers with no persistence layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-contradictory-episodic-memory-before-semantic-consolidation-and-how-does-retrieval-time-resolution-fail.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-contradictory-episodic-memory-before-semantic-consolidation-and-how-does-retrieval-time-resolution-fail.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-contradictory-episodic-memory-before-semantic-consolidation-and-how-does-retrieval-time-resolution-fail.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2011,
    "python_slice_tokens": 427,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure lives in the gap between two legitimate designs. In **eager consolidation**, the agent detects contradictions at write time: when a new episode asserts `P`, and the semantic store already holds `¬P`, a reconciliation routine fires before the fact is committed. In **lazy resolution**, the agent writes both facts and defers the conflict to retrieva...",
    "what_was_observed": "A long-running procurement agent maintained an episodic log of vendor interactions and a semantic store of distilled vendor facts. At episode 4,102 it recorded `vendor_acme.lead_time_days = 14` from a signed quote. At episode 6,877, a support call transcript contained the utterance \"they're quoting us three weeks now\" — the extractor wrote `vendor_acme.lead_time_days = 21` with source weight `0.6` (conversational, un...",
    "condition_of_validity": "Lazy resolution is valid if and only if all three hold: 1. **Contradiction-complete retrieval.** For any query touching `(entity, attribute)`, retrieval returns *all* live facts for that key, regardless of score, or returns an explicit `conflict_set` handle alongside the top-`k`. Truncation may reorder presentation but must not drop a member of a contradicti...",
    "decision_boundary": "The choice between eager and lazy is not stylistic; it is determined by the cost of a wrong resolution versus the cost of a blocked write. - **Choose eager consolidation** when the attribute is safety-critical or contractual and a wrong value causes irreversible action (payment amounts, dosage, delivery commitments, access grants). The write must block until...",
    "operational_effect": "Agents running lazy-without-quarantine exhibit a characteristic pathology: **confident staleness.** They do not hallucinate; they cite real episodes. They do not contradict themselves within a single context window; the truncation guarantees internal consistency. They fail by acting on a coherent, well-sourced, and wrong subset of their own memory, and the f..."
  },
  "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": "afe64d776a1a9b8bbd60ef067acc70bc5dacc4c11fc6de3cf6c634086272a30d",
    "verified_classes": [
      "MemoryIntegrityError",
      "FactState",
      "SemanticFact",
      "SemanticStore"
    ],
    "verified_functions": [
      "plan_delivery",
      "key",
      "write",
      "retrieve_for_action"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "MemoryIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
