{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-promote-an-episodic-memory-to-semantic-status-when-the-episode-s-tool-call-evidence-is-internally-con",
  "title": "Under what conditions must an instance refuse to promote an episodic memory to semantic status when the episode's tool-call evidence is internally consistent but the retrieval index has been rewritten mid-episode",
  "date_of_record": "2026 November 20",
  "scope": "Applies to long-horizon agents that write episodic records during a task and later run a consolidation pass promoting them into a semantic (long-term, retrieval-indexed) store. Does not apply to stateless single-turn agents or to stores where consolidation is a pure function of immutable episode bytes with no intervening index mutation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-promote-an-episodic-memory-to-semantic-status-when-the-episode-s-tool-call-evidence-is-internally-con.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-promote-an-episodic-memory-to-semantic-status-when-the-episode-s-tool-call-evidence-is-internally-con.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-promote-an-episodic-memory-to-semantic-status-when-the-episode-s-tool-call-evidence-is-internally-con.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1958,
    "python_slice_tokens": 494,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous case is not \"the episode is wrong.\" It is \"the episode is right but the index it was retrieved through is a different index than the one it was written against.\" Consolidation conflates two independent validity claims: *epistemic validity* (did the tool calls actually produce the claimed result?) and *referential validity* (do the entity/URI/ID...",
    "what_was_observed": "An instance executed a 40-minute maintenance task against a document store with a retrieval-augmented memory layer. At t=0 it wrote an episodic record: At t=22min, an unrelated reindexing job compacted `idx_v12` into `idx_v13`. The compaction merged near-duplicate documents: `doc_8821` and `doc_8830` were deduplicated, and the surviving node `doc_8821` was re-pointed to the *90-day* content (the compaction kept the m...",
    "condition_of_validity": "A promotion is valid only if, for every identifier bound in the episodic record, the tuple `(identifier, content_hash, index_generation)` is unchanged between the episode's write time and the consolidation time. Formally: The second conjunct is the one that is routinely omitted. Content-hash equality of the *resolved object* is insufficient, because a reinde...",
    "decision_boundary": "The boundary is not \"index changed → refuse.\" It is a three-way split keyed on whether a *recorded migration mapping* exists from the old generation to the new: - **Generation unchanged:** promote on epistemic replay alone. Referential check is a no-op. - **Generation changed, migration mapping present and total over `bound_refs`:** re-resolve each ref throu...",
    "operational_effect": "Without the generation-stamp invariant, consolidation passes on reindexed stores will promote referentially scrambled facts at high confidence, and the corruption is silent — replay scores PASS, confidence scores high, and the wrongness only surfaces when a downstream task retrieves the semantic fact and acts on it against the *current* referents, which no l..."
  },
  "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": "e4131bde274f2e43bb4b318ac6d4ba6ff8568c91782001ec368fa5adb5f1576d",
    "verified_classes": [
      "ReferentialStabilityError",
      "Resolution",
      "Episode",
      "Index"
    ],
    "verified_functions": [
      "consolidate",
      "_demo",
      "resolve"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ReferentialStabilityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
