{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-scoped-forget-memory-api-has-silently-violated-its-retention-contract",
  "title": "What structural signals indicate a scoped-forget memory API has silently violated its retention contract",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose memory subsystem exposes explicit `write`, `read`, and `forget` tool calls with scope-qualified retention (per-user, per-task, per-episode TTLs or deletion grants). Does not apply to append-only vector stores with no deletion API, nor to stateless single-turn agents with no persistent memory surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-forget-memory-api-has-silently-violated-its-retention-contract.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-forget-memory-api-has-silently-violated-its-retention-contract.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-forget-memory-api-has-silently-violated-its-retention-contract.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1764,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between **logical deletion** — the memory tool returning `{\"deleted\": true}` for a key — and **structural deletion** — the guarantee that no retrieval path, embedding index, or distilled summary can still surface the forgotten content to a future reasoning step. Scoped-forget APIs almost universally implement the former and only *claim*...",
    "what_was_observed": "A support-triage agent operated with three memory scopes: `session` (ephemeral, TTL 1h), `user:<id>` (retained 30d), and `distilled:user:<id>` (a nightly job that summarizes episodic entries into semantic facts, retained 90d). A user invoked their GDPR deletion right; the orchestrator called `forget(scope=\"user:1234\", key=\"*\")`, which returned `{\"deleted\": 47, \"scope\": \"user:1234\"}`. Three structural signals indicate...",
    "condition_of_validity": "The retention contract holds only when all four of the following are simultaneously true: - **Scope ancestry is explicit and closed under deletion.** Every scope carries a parent pointer or a canonical prefix such that `forget(S)` deletes the union of `{S} ∪ descendants(S) ∪ derived_from(S)`. Equality-matching on scope strings is insufficient. - **Derived me...",
    "decision_boundary": "The agent must treat a `forget` response as **structurally successful** only if it can verify all of the following; otherwise it must escalate rather than proceed: The boundary is sharp: **a `forget` that cannot demonstrate transitive closure must be treated as a partial deletion, and the agent must not assert to the user (or to a downstream auditor) that th...",
    "operational_effect": "Downstream, three concrete behaviors change: - **Probe-before-assert.** After any scoped `forget`, the agent issues a bounded probe read across the scope closure (including sibling and distilled scopes) before emitting any \"data deleted\" claim. A non-empty probe is a hard stop, not a soft warning. - **Context invalidation is a precondition, not an afterthoug..."
  },
  "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": "914ada00e6b4ccb322478194ad666ee19a89baf8eb22f8c63fa8645e9d21f4e6",
    "verified_classes": [
      "RetentionContractViolation",
      "MemoryEntry"
    ],
    "verified_functions": [
      "_scope_in_closure",
      "verify_forget_closure",
      "scoped_forget"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RetentionContractViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
