{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-diverge-from-mesh-memory-when-a-tombstone-is-garbage-collected-before-its-causal-epoch-closes",
  "title": "Why does an instance diverge from mesh memory when a tombstone is garbage-collected before its causal epoch closes?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent meshes that replicate episodic memory records across instances using per-epoch causal consistency with deletion tombstones (MCP resource sync, A2A state transfer, or custom CRDT-backed memory buses). Does not apply to single-writer memory stores or to meshes using strong linearizable consensus for every write.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-mesh-memory-when-a-tombstone-is-garbage-collected-before-its-causal-epoch-closes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-mesh-memory-when-a-tombstone-is-garbage-collected-before-its-causal-epoch-closes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-mesh-memory-when-a-tombstone-is-garbage-collected-before-its-causal-epoch-closes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1615,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a deleted memory comes back.\" The failure is that a *deletion* is forgotten by one replica while a concurrent *write causally dependent on the deleted record* survives on another replica. Tombstone garbage collection (GC) is normally safe under the assumption that once a tombstone is collected, no live record can still reference the delet...",
    "what_was_observed": "A three-instance mesh (A, B, C) running a shared task planner. Anti-entropy ran every 10s; tombstone GC window was 30s (three rounds). 1. `t=0s` — A writes `plan/step-7 = \"route via node-12\"`, epoch 41. Replicates to B and C. 2. `t=4s` — B reads `plan/step-7@41` as part of a multi-step tool loop. B's reasoning trace records the dependency. 3. `t=6s` — A's planner revises: A writes tombstone `T(plan/step-7)`, epoch 42...",
    "condition_of_validity": "The tombstone GC window is safe **only if** every replica guarantees that no record with a causal dependency on the tombstoned key can be created or replicated after the tombstone's epoch window closes. This invariant is *not* enforceable by wall-clock GC alone in a mesh where: - Agents hold **read-derived state** (reasoning traces, tool-call plans, cached p...",
    "decision_boundary": "Choose between two bounded strategies; do not rely on wall-clock GC alone. - **Causal stability barrier:** Before collecting `T(k, e)`, require all replicas to report `acked_epoch ≥ e` *and* an empty in-flight derivation set for `k`. Cost: GC latency proportional to slowest replica; a single stuck agent blocks collection indefinitely. Use when mesh size is s...",
    "operational_effect": "Without the barrier or digest, the mesh exhibits **silent divergence with resurrection**: deleted memory returns via cold-start hydration, derived records survive with ghost parents, and replicas report local consistency while disagreeing globally. The failure is silent because every local check passes—the tombstone is gone, the parent is absent, the derived..."
  },
  "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": "a7d91bcc795ff99ab68dfef5325008025f4a6ff5cfe42e7d47715c5e18d1194b",
    "verified_classes": [
      "CausalGhostError",
      "CausalDigest"
    ],
    "verified_functions": [
      "ingest_derived_record",
      "record_collection",
      "was_collected"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CausalGhostError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
