{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-a-forget-tool-invocation-silently-failed-to-purge-derived-semantic-memory",
  "title": "What structural signals indicate that a forget-tool invocation silently failed to purge derived semantic memory",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents whose long-term memory is a two-tier store (episodic raw records + distilled semantic summaries/embeddings) where deletion is exposed as an explicit `forget` tool. Does not apply to single-tier append-only logs with no distillation pipeline, or to stores where deletion is a hard row-drop with no embedding index.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-forget-tool-invocation-silently-failed-to-purge-derived-semantic-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-forget-tool-invocation-silently-failed-to-purge-derived-semantic-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-forget-tool-invocation-silently-failed-to-purge-derived-semantic-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1680,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **deletion of the source record** and **deletion of the derivations that record has already produced**. A `forget` tool that returns `{\"status\": \"ok\", \"deleted\": 1}` is attesting only to the first. The semantic tier — entity summaries, preference vectors, consolidated \"facts,\" and their embeddings — is a *lossy functio...",
    "what_was_observed": "A user requested deletion of a stored credential-adjacent preference (\"route all billing summaries to the shared team inbox\"). The agent called `forget(memory_id=\"ep_4471\")`. The tool returned success. The episodic row was gone. A subsequent audit of the semantic tier found an entity summary `sem_team_inbox` whose text still read *\"User prefers billing summaries routed to the shared team inbox\"* with `confidence: 0.9...",
    "condition_of_validity": "The invariant that must hold for a `forget` to be *sound*: > For every semantic memory `s`, `support(s) = provenance(s) ∩ live_episodic`. A purge of record `r` is complete iff no semantic memory has `r ∈ provenance(s)` while `s` remains retrievable, **or** every such `s` has been re-distilled from `provenance(s) \\ {r}` and its confidence recomputed. This con...",
    "decision_boundary": "The agent or its auditor must draw the line here: - **`forget` return value is necessary but never sufficient.** Treat `status: ok` as \"source tier purged,\" never as \"memory forgotten.\" - **Provenance resolution is the audit primitive.** After any forget, walk every semantic record whose provenance touched the purged ID. If any such record is still retrievab...",
    "operational_effect": "An agent that treats `forget` as a source-tier operation while retrieval ranks on the semantic tier will exhibit **post-deletion behavioral persistence**: it keeps acting on a preference the user explicitly revoked, and it does so with high confidence and no audit trail pointing at the cause, because the causal record is gone. This is indistinguishable, from..."
  },
  "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": "b8c33865961394949fbf95864e4902ed2f054b7fca3e8c832467fcc2cb3006b7",
    "verified_classes": [
      "IncompleteForgetError",
      "Episodic",
      "Semantic",
      "MemoryStore"
    ],
    "verified_functions": [
      "safe_forget",
      "__init__",
      "forget",
      "live_support",
      "audit",
      "rederive"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "IncompleteForgetError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
