{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-forget-call-ttl-eviction-races-against-provenance-linked-derivation-edges",
  "title": "When must an instance refuse a forget() call: TTL-eviction races against provenance-linked derivation edges",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents whose memory tool surface exposes `write`, `read`, and `forget` operations with (a) provenance metadata linking derived memories to source memories, (b) TTL-based eviction, and (c) a GDPR-aligned deletion guarantee that a `forget` on a source record must cascade to all derived records. Does not apply to append-only logs with no derivation graph, or to systems where deletion is purely logical (tombstoned) and never physically enforced.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-forget-call-ttl-eviction-races-against-provenance-linked-derivation-edges.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-forget-call-ttl-eviction-races-against-provenance-linked-derivation-edges.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-forget-call-ttl-eviction-races-against-provenance-linked-derivation-edges.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2191,
    "python_slice_tokens": 449,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **deletion as an event** and **deletion as an invariant over a derivation graph**. A `forget(source_id)` call is trivially correct if the memory store is a flat key-value table: remove the key, emit a tombstone, done. It becomes a distributed-consistency problem the moment two things are true simultaneously: (1) derive...",
    "what_was_observed": "A long-running research agent distilled episodic traces into semantic summaries every ~40 minutes. Each summary was written with `provenance` pointing at the 3–12 episodic records it compressed. Episodic records carried a 24h TTL; summaries carried a 7d TTL. A user issued `forget(episodic_id)` under a right-to-erasure request. The `forget` implementation walked the provenance index in two phases: first it collected a...",
    "condition_of_validity": "The non-cascading TTL contract is valid only under the precondition: **for every record R, if any live record D has `source_id ∈ D.provenance`, then R's TTL expiry must be deferred until D is evicted or forgotten.** In practice this means TTL eviction must check the reverse provenance index before deleting, and either (a) extend R's TTL to `max(own_ttl, max(...",
    "decision_boundary": "The decision boundary for the agent is: **on `read(D)`, if any `source_id ∈ D.provenance` resolves to a tombstone, the agent must treat `D` as ungrounded and either re-derive it from surviving sources or drop it — never use it as if grounded.** This is a *hard* boundary because the alternative (proceed on tombstoned provenance) is exactly the amnesia-with-fa...",
    "operational_effect": "The operational effect is that the memory tool's `forget` contract must be strengthened from \"delete the record\" to \"delete the record and all live dependents, atomically with respect to provenance appends, and fail closed on enumeration uncertainty.\" The TTL reaper must consult the reverse provenance index and defer expiry of any source with live dependents..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "c4e2d23237c1cd272a1ef08f89c79de3e7867186ea23e5b053ff1ebc3f47ae4a",
    "verified_classes": [
      "UngroundedDerivationError",
      "UnsafeForgetError",
      "MemoryRecord",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "forget",
      "_observed_version",
      "evict_expired",
      "read_grounded"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "UngroundedDerivationError",
      "UnsafeForgetError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
