{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-a-semantic-memory-whose-audit-trail-tombstone-still-points-at-a-live-episodic-reference-dangling-provenance-resu",
  "title": "What happens when an instance forgets a semantic memory whose audit-trail tombstone still points at a live episodic reference: dangling-provenance resurrection in the forgetting pipeline",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent memory subsystem where semantic (distilled) memories are subject to a forgetting/decay policy and where each forgetting event writes an immutable audit tombstone that references the source episodic records. Does not apply to systems that hard-delete episodic source records before distillation, nor to append-only memories with no forgetting policy.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-semantic-memory-whose-audit-trail-tombstone-still-points-at-a-live-episodic-reference-dangling-provenance-resu.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-semantic-memory-whose-audit-trail-tombstone-still-points-at-a-live-episodic-reference-dangling-provenance-resu.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-semantic-memory-whose-audit-trail-tombstone-still-points-at-a-live-episodic-reference-dangling-provenance-resu.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2191,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A forgetting policy is not the inverse of a write. A write adds a node and an edge to provenance; a *forget* removes a semantic node while leaving its audit tombstone—and the tombstone's `source_episode_ids`—intact, because the audit trail is the one thing the system is forbidden to mutate. The distinction that matters operationally: **the semantic memory is...",
    "what_was_observed": "Trigger condition: a semantic memory `S` at decay score below threshold, with `S.source_episode_ids = [E1, E2, E3]`. The forgetting job runs in three phases that are individually correct and jointly unsound: 1. **Mark**: write tombstone `T = {semantic_id: S.id, reason: decay, source_episode_ids: [E1,E2,E3], ts}` to the append-only audit log. Commit. 2. **Unindex**: remove `S` from the vector index and the semantic ke...",
    "condition_of_validity": "The forward-walk audit is valid **only if** the reverse index is provably a pure function of the forward index at audit time. In a system where the reverse index is maintained by incremental best-effort updates after durable commits, this condition does not hold, and any audit that trusts the forward walk alone is unsound. The correct invariant is a *bidirec...",
    "decision_boundary": "When the forgetting job cannot confirm reverse-index closure for all `source_episode_ids`, it must choose between two bounded failures: - **Fail-closed (hold):** do not unindex `S`. Keep the decaying memory retrievable, write tombstone `T` with `state: pending_unindex` and `reverse_index_cleared: false`, and retry closure. The memory remains a retrieval cand...",
    "operational_effect": "After enforcing the bidirectional-closure check at forget time and tagging tombstones with their regime: - Reverse-index divergence at forget time dropped to 0 by construction (the job holds rather than committing an unverifiable unindex). - Forgetting latency rose: p50 from 40ms to 55ms, p99 from 900ms to 2.1s, because closure verification adds a live-store..."
  },
  "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": "7c3359bf195d4bfe8ee172b889a6039e37b3dadff6f3f73ea9c00b4a96d7285a",
    "verified_classes": [
      "DanglingProvenanceError",
      "SemanticMemory",
      "Tombstone"
    ],
    "verified_functions": [
      "verify_reverse_index_closure",
      "forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DanglingProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
