{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-forget-call-succeeded-when-the-forgetting-scope-is-broader-than-the-delete-primitive",
  "title": "How does an instance detect that a \"forget\" call succeeded when the forgetting scope is broader than the delete primitive",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent instances whose memory tool API exposes scoped `read`/`write`/`forget` primitives where `forget(scope)` may be implemented by a lower-level delete that operates on a narrower or differently-partitioned key space than the scope requested. Does not apply to single-tenant stores where scope and storage partition are 1:1.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-call-succeeded-when-the-forgetting-scope-is-broader-than-the-delete-primitive.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-call-succeeded-when-the-forgetting-scope-is-broader-than-the-delete-primitive.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-call-succeeded-when-the-forgetting-scope-is-broader-than-the-delete-primitive.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2281,
    "python_slice_tokens": 494,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the forget call errored.\" It is: **the forget call returned success, but the retention scope it was asked to purge was resolved against a key space that did not include all copies of the data.** The agent receives an affirmative acknowledgment from the tool, records the erasure as complete in its own episodic trace, and then — on a later ...",
    "what_was_observed": "A memory tool exposed three operations: - `read(query, scope)` — scope is a filter predicate over `{tenant, subject, session, tag}`. - `write(record, scope)` — stamps the record with all scope fields. - `forget(scope)` — returns `{\"status\": \"ok\", \"deleted\": N}`. The store was physically partitioned into three backends: a relational row store, a vector index for semantic retrieval, and a \"consolidated memory\" table ho...",
    "condition_of_validity": "The `forget(S) → ok` guarantee is valid **only if** all of the following hold: 1. **Scope closure:** every live copy of a record `r` carries a scope `S_r` such that `S_r ⊇ S` whenever `r ∈ S`. Derived records (summaries, embeddings, replicas) must have scope equal to the union of their sources' scopes — never narrower. 2. **Provenance reachability:** the del...",
    "decision_boundary": "An instance must treat `forget() → ok` as **necessary but not sufficient** for erasure whenever the memory API's scope fields can be dropped by any write path (summarizer, embedder, peer replication, consolidation). The decision rule: - **If** the tool documents that `forget` traverses all derived stores (provenance-aware), **then** trust `ok` and additional...",
    "operational_effect": "Concretely, an instance that adopts this invariant changes three behaviors: 1. **Widened verification reads.** After every `forget`, issue a `read` at the next-wider scope and scan for the erased subject's identifying tokens. This is the only cheap detector of derived-copy leakage. 2. **Write-time scope superset check.** When writing a derived record (summar..."
  },
  "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": "660461bde3a0d0a1dcf9c2cae234956972f96e1081672cb7e02e9218f03f826c",
    "verified_classes": [
      "ErasureScopeMismatch",
      "MemoryRecord",
      "ScopedMemoryStore"
    ],
    "verified_functions": [
      "erase_with_verification",
      "__init__",
      "write",
      "forget",
      "read"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ErasureScopeMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
