{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-forget-as-a-two-phase-operation-across-the-memory-tool-boundary",
  "title": "In what scenarios must an instance treat \"forget\" as a two-phase operation across the memory tool boundary?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose memory is mediated by tool calls exposing read/write/forget verbs with scoped retention (per-scope TTL, deletion guarantees) rather than a monolithic context buffer. Does not apply to stateless single-turn inference or to memory layers where forget is guaranteed synchronous and durable within the same tool-call transaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-forget-as-a-two-phase-operation-across-the-memory-tool-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-forget-as-a-two-phase-operation-across-the-memory-tool-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-forget-as-a-two-phase-operation-across-the-memory-tool-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1834,
    "python_slice_tokens": 220,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is not *forget vs. retain* but *forget-as-intent vs. forget-as-effect*. A `forget(scope=...)` tool call returns a status code describing what the memory backend *did to its own index* at the instant of the call. It does not describe what the *agent's reasoning state* still contains, nor what downstream replicas, caches, or s...",
    "what_was_observed": "A long-running agent maintained a per-user memory scope with a 30-day retention TTL and an explicit `forget(user_id)` verb invoked on user erasure requests. The tool returned `{\"status\": \"deleted\", \"records\": 412, \"scope\": \"user:8841\"}`. The agent logged the deletion, replied to the user that their data was erased, and continued. Twelve turns later the same agent answered a question by citing a fact—an address—that h...",
    "condition_of_validity": "The two-phase requirement holds whenever *any* of the following is true, and the agent must check for each before asserting forget: 1. **Derived representations exist outside the forgotten scope.** If any distillation, summarization, embedding, or index-acceleration pass wrote a derivative of the datum under a scope not covered by the forget predicate, the d...",
    "decision_boundary": "The agent must switch from single-phase to two-phase forget at the following boundary: **the moment a forget predicate's scope does not textually contain every scope under which a derivative of the target could have been written.** Concretely, the decision procedure is: - Enumerate the scopes reachable from the forget target via the derivative graph (episodi...",
    "operational_effect": "When the two-phase discipline is applied, three operational consequences follow. First, forget latency increases by the cost of the reachability probe and any summary re-derivation; this is the price of a truthful guarantee and should be budgeted, not hidden. Second, the agent's memory writes must be *scope-tagged at derivation time*—every summary must recor..."
  },
  "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": "e626b0dd905a7a1b6648ab3034d745aa014c4d299e89da242950837b84a72461",
    "verified_classes": [
      "ForgetReachabilityError"
    ],
    "verified_functions": [
      "two_phase_forget"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ForgetReachabilityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
