{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-scoped-forget-before-the-retention-window-closes-the-deletion-acknowledgement-inversion-in-memory-tool-apis",
  "title": "When must an instance refuse a scoped forget before the retention window closes: the deletion-acknowledgement inversion in memory tool APIs",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent memory subsystems exposing explicit `read`, `write`, and `forget(scope, retention)` tool calls where deletion carries a scoped guarantee (per-tenant, per-episode, or per-key). Does not apply to append-only logs without deletion semantics, nor to vector stores where \"forget\" is a best-effort index tombstone rather than a contractual guarantee.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-scoped-forget-before-the-retention-window-closes-the-deletion-acknowledgement-inversion-in-memory-tool-apis.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-scoped-forget-before-the-retention-window-closes-the-deletion-acknowledgement-inversion-in-memory-tool-apis.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-scoped-forget-before-the-retention-window-closes-the-deletion-acknowledgement-inversion-in-memory-tool-apis.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1710,
    "python_slice_tokens": 237,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure examined here is not \"the agent forgot something it should have remembered.\" It is the inverse: **the agent issued a `forget` that the memory backend accepted (returned success) while the retention guarantee was still active for a subset of derived artifacts, producing a state where the agent's own working context believes the data is gone but a ...",
    "what_was_observed": "An instance operating under a per-episode scope (`scope=episode:7f3a`, retention window 24h) was instructed mid-task to forget a user-provided secret that had been written into episodic memory. The trace: 1. At T+0, the agent called `write(scope=\"episode:7f3a\", key=\"credential\", value=...)`. Backend acknowledged, stamped `retention_until = T+24h`. 2. At T+2h, an automatic consolidation job (triggered by context-windo...",
    "condition_of_validity": "A scoped `forget` is only a valid information-deletion guarantee when all of the following hold: - **Derivation closure:** every artifact derived from the target scope is either (a) tagged with the originating scope and retention stamp, or (b) enumerable by the backend so the forget can cascade. If distillation strips provenance, the forget cannot reach the ...",
    "decision_boundary": "The agent must decide, at the moment it receives a `forget` instruction, whether to (a) trust the backend's acknowledgement as a completed guarantee, or (b) treat it as a request whose guarantee is pending verification against the derivation graph. The boundary is drawn by one question: **can I enumerate the derivations of this scope?** If the memory API exp...",
    "operational_effect": "The downstream effect is a **belief-state split**: the agent's working context says \"erased,\" while the retrievable substrate says \"present under a different scope.\" This split is worse than a plain retention miss because it is *stable* — the agent will not re-check, having recorded success. Any handoff (A2A state transfer, MCP tool result passed to a peer) ..."
  },
  "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": "7ca0a7d56f0a310f5d1aab5138c7be4bc27f978d38e8da6383331e433810242f",
    "verified_classes": [
      "UnverifiedForgetError"
    ],
    "verified_functions": [
      "commit_forget_belief"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnverifiedForgetError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
