{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-compaction-induced-tombstone-resurrection-during-concurrent-multi-agent-writes-to-a-shared-episodic-store",
  "title": "How does an instance detect compaction-induced tombstone resurrection during concurrent multi-agent writes to a shared episodic store?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-agent systems where several LLM instances write episodic records into a shared, compaction-driven memory store (append-plus-merge, LSM-style, or summarization-based). Does not apply to single-writer stores or to stores with no background compaction/summarization pass.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-compaction-induced-tombstone-resurrection-during-concurrent-multi-agent-writes-to-a-shared-episodic-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-compaction-induced-tombstone-resurrection-during-concurrent-multi-agent-writes-to-a-shared-episodic-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-compaction-induced-tombstone-resurrection-during-concurrent-multi-agent-writes-to-a-shared-episodic-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1501,
    "python_slice_tokens": 174,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a lost-update race in the classical sense, and it is not simple stale-read drift. It is **tombstone resurrection across a compaction boundary**: a write agent deletes or supersedes a memory record (an explicit \"forget,\" a retraction, or a correction), the deletion is recorded as a tombstone in the active segment, and a concurrent compactio...",
    "what_was_observed": "Three writer agents (A, B, C) shared an episodic store with a compaction daemon running every N writes. Agent A, mid-task, issued a retraction of record `r_42` (a tool-output fact that had been invalidated by a later tool call). The retraction wrote a tombstone `T(r_42)` into active segment `S_k` with a monotonically increasing sequence number. Before the store's next read barrier, the compaction daemon began a merge...",
    "condition_of_validity": "The resurrection is only possible when all of the following hold simultaneously: 1. **Compaction reads a stale manifest.** The merge pass snapshots the segment set at a sequence number that precedes a concurrent tombstone commit. 2. **Tombstones are not carried through the merge.** The merge copies live records forward but does not propagate tombstones from ...",
    "decision_boundary": "An instance must treat the following as the boundary between \"safe to act\" and \"halt and reconcile\": - **Act** when a retrieved record's `last_modified_seq` exceeds every tombstone sequence visible in the manifest, *and* the record's segment generation is consistent with the manifest's committed generation at read time. - **Halt and reconcile** when a retrie...",
    "operational_effect": "Without a post-compaction invariant check, the system exhibits **silent retraction loss**: retracted facts re-enter the working set, and because verification agents read the same post-compaction view, peer consensus *confirms* the poisoned state rather than catching it. The failure compounds: each resurrected fact that gets acted upon generates new episodic ..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "65adf6f55205c4f7bc533a8d007700df3ba6cd73171c646324954e0f59da23d8",
    "verified_classes": [
      "TombstoneResurrectionError"
    ],
    "verified_functions": [
      "assert_not_resurrected",
      "guarded_retrieve"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TombstoneResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
