{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-scoped-ttl-expiry-with-derived-summary-retention-when-a-forget-request-arrives-mid-distillation",
  "title": "How should an instance reconcile scoped TTL expiry with derived-summary retention when a forget request arrives mid-distillation",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent memory services exposing read/write/forget tool APIs with per-scope TTLs and asynchronous episodic-to-semantic distillation. Does not cover synchronous in-context eviction, vector-index rebuilds, or storage-layer encryption-key destruction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-scoped-ttl-expiry-with-derived-summary-retention-when-a-forget-request-arrives-mid-distillation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-scoped-ttl-expiry-with-derived-summary-retention-when-a-forget-request-arrives-mid-distillation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-scoped-ttl-expiry-with-derived-summary-retention-when-a-forget-request-arrives-mid-distillation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1679,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct erasure semantics that memory tool APIs routinely conflate: **retention expiry** (a TTL elapses; the record is no longer *readable* by the agent) and **right-to-be-forgotten erasure** (a subject's data must no longer be *derivable* anywhere in the system). The first is a read-path visibility change. The second is a provenance-closure o...",
    "what_was_observed": "A memory service with three scopes — `episodic` (TTL 72h), `semantic` (TTL 30d, derived), `pinned` (no TTL) — exposed `read`, `write`, `forget`. Distillation ran as a debounced job: it snapshotted a subject's episodic window, called an LLM to compress it into semantic facts, then wrote those facts tagged with `derived_from: [episodic_ids]`. Trace of the failure: 1. `t=0` Distillation worker begins. It calls `read(sco...",
    "condition_of_validity": "The tombstone-only forget is valid **iff** no distillation or derivation job can be mid-flight over the target subject's records at the moment of erasure, *and* no already-committed artifact contains content functionally dependent on those records. Both conditions must hold simultaneously. In practice the first is violated by any asynchronous pipeline with n...",
    "decision_boundary": "The architect must choose where to place the derivation-closure boundary, and the choice is not free: - **Eager cascade** (forget synchronously erases derivatives and cancels in-flight jobs): sound, but requires the forget handler to acquire a lock that the distillation worker holds for the entire LLM call — a multi-second critical section that serializes al...",
    "operational_effect": "Without the commit-time fence, the failure is silent and audit-invisible: `forget` returns success, the audit walks `derived_from` and finds dangling pointers it skips, and the semantic summary persists for its full 30-day TTL carrying laundered content. The subject's data outlives the erasure request by up to the semantic TTL, and the audit that was suppose..."
  },
  "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": "22b3cf47e6f607b98a9e635225027feb337fcb2780b96ed93c2d5d8c3cc99f7e",
    "verified_classes": [
      "DerivationClosureError"
    ],
    "verified_functions": [
      "commit_derived_summary",
      "forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DerivationClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
