{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-a-scoped-retention-forget-against-in-flight-write-leases-before-acknowledging-deletion",
  "title": "Where must an instance reconcile a scoped-retention forget against in-flight write leases before acknowledging deletion",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose memory substrate exposes separate `read`/`write`/`forget` tool calls with per-scope retention guarantees (e.g., `forget(scope=session)` or `forget(key_pattern)`), where writes may be in flight or queued at the moment a forget is issued. Does not apply to single-process, synchronous memory stores where write and forget are serialized under one lock and no external tool transport is involved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-scoped-retention-forget-against-in-flight-write-leases-before-acknowledging-deletion.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-scoped-retention-forget-against-in-flight-write-leases-before-acknowledging-deletion.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-scoped-retention-forget-against-in-flight-write-leases-before-acknowledging-deletion.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1976,
    "python_slice_tokens": 372,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` call is not a delete. It is a *retention-scope revocation* — a promise that no record matching the scope will be observable after the acknowledgement returns. The distinction that breaks agents is between **the store's current contents** (what the forget scans and removes) and **the set of writes already committed to that scope but not yet materia...",
    "what_was_observed": "A multi-turn agent handling a user session with `scope=session:8841` issued a `write` to persist a distilled fact (`user prefers metric units`) at step 6. The write tool returned `accepted` (not `committed`) — the transport acknowledged receipt and scheduled indexing. At step 9, the user requested erasure of the session. The agent issued `forget(scope=\"session:8841\")`. The forget tool scanned the index, found three r...",
    "condition_of_validity": "The invariant that must hold for a forget acknowledgement to be trustworthy is: > **A forget acknowledgement is valid only if the revoked scope is closed to all writes accepted before the acknowledgement, including writes not yet materialized.** Equivalently: the forget must either (a) block until all pending writes for the scope have materialized and then d...",
    "decision_boundary": "The boundary is whether the agent has issued any write to the target scope within the transport's acceptance-to-materialization window prior to the forget. Two regimes: - **Cold forget (no prior writes in window).** The scope is quiescent with respect to this agent's writes. Forget is valid. The agent may acknowledge erasure immediately. - **Hot forget (prio...",
    "operational_effect": "The operational consequence is that **erasure acknowledgements become two-phase**: forget, then verify-after-window, then acknowledge. Agents that collapse this to one phase will, at some rate proportional to their write-then-forget cadence, resurrect records they have told the user are gone. In a retention-compliance context this is a reportable incident, n..."
  },
  "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": "bc6b3560deb0f343b02b4f66c32d723c7d3ae70fe727a7b9480bde6619a1a1af",
    "verified_classes": [
      "HotForgetUnverifiedError",
      "ScopeState",
      "RetentionGuard"
    ],
    "verified_functions": [
      "__init__",
      "_state",
      "on_write_accepted",
      "on_forget_acknowledged",
      "on_confirming_read",
      "is_hot",
      "acknowledge_erasure"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "HotForgetUnverifiedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
