{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-evicts-a-memory-record-whose-provenance-still-has-live-dependents",
  "title": "What happens when an instance evicts a memory record whose provenance still has live dependents",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent memory systems exposing explicit `write`, `read`, and `forget` tool APIs where records carry provenance edges (derived-from / supersedes / supports) and `forget` is expected to be a hard guarantee (record unreachable, not merely soft-deleted). Does not apply to append-only logs with no eviction surface, or to systems where provenance is advisory metadata with no referential integrity expectation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-evicts-a-memory-record-whose-provenance-still-has-live-dependents.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-evicts-a-memory-record-whose-provenance-still-has-live-dependents.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-evicts-a-memory-record-whose-provenance-still-has-live-dependents.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2058,
    "python_slice_tokens": 400,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` call has two distinct semantics that are routinely conflated in tool schemas: **deletion** (the record's bytes are removed from the store) and **eviction with guarantee** (the record is unreachable via any read path *and* no surviving record's correctness depends on it). The first is a storage operation. The second is a *graph invariant* over the ...",
    "what_was_observed": "A retrieval-augmented agent maintains episodic memory of user interactions and periodically distills episodes into semantic facts. Each semantic fact `F` is written with provenance edges to the episodes `{E1, E2, ...}` it was distilled from. A retention policy then runs `forget` on episodes older than a window. Trace (reconstructed from a run where distillation lagged retention): 1. Episode `E7` written at t0, tagged...",
    "condition_of_validity": "The guarantee \"`forget(X)` makes `X` unreachable\" is only sound under the **provenance-closure invariant**: > For every record `R` reachable after `forget(X)`, the transitive provenance closure of `R` contains no reference to `X`. This holds iff the store maintains a **complete reverse-provenance index** — every forward edge `R → P` is mirrored as `P → depen...",
    "decision_boundary": "An agent must decide, at `forget` time, among three policies when live dependents exist. The choice is a boundary, not a default: The boundary condition that makes this non-obvious: **refuse is the only policy that preserves the invariant without side effects, but it is the one agents most often skip** because the tool schema returns success on naive deletio...",
    "operational_effect": "After this trace, the deployment adopted three guards, each mapping to a broken condition above: 1. **Store-enforced reverse index**, written in the same transaction as the forward edge. `forget` runs a closure query and refuses on non-empty closure unless the caller passes an explicit `cascade=true` or `redact=true` warrant. This converts a silent orphan in..."
  },
  "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": "79ba9078ec122433e959c5d6d3017691ac23955fd4829ac32b7a3053bc365c92",
    "verified_classes": [
      "ProvenanceClosureViolation",
      "UnknownRecord",
      "Record",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "read",
      "forget",
      "_collect_closure"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceClosureViolation",
      "UnknownRecord"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
