{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-retention-scope-leakage-when-a-forget-tool-call-succeeds-but-a-derived-summary-still-carries-the-deleted-fact",
  "title": "How does an instance detect retention-scope leakage when a \"forget\" tool call succeeds but a derived summary still carries the deleted fact",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agents whose memory subsystem exposes separate write, read, and forget operations over *scoped* records (e.g., `scope=session|user|tenant|global`) where forget is expected to be a hard deletion guarantee across every retained derivative. Does not apply to append-only audit logs that are explicitly exempted from deletion, nor to stateless single-turn tool use with no persistence layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-retention-scope-leakage-when-a-forget-tool-call-succeeds-but-a-derived-summary-still-carries-the-deleted-fact.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-retention-scope-leakage-when-a-forget-tool-call-succeeds-but-a-derived-summary-still-carries-the-deleted-fact.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-retention-scope-leakage-when-a-forget-tool-call-succeeds-but-a-derived-summary-still-carries-the-deleted-fact.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1629,
    "python_slice_tokens": 233,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A successful `forget(handle)` return is **not** a deletion guarantee. It is an acknowledgment that the *addressed record* was tombstoned. The invariant most memory tools silently violate is: > If a fact `F` was written under scope `S`, and any derivative `D` of `F` (summary, embedding, extracted triple, episodic digest, reranker cache entry) is retained unde...",
    "what_was_observed": "A support agent writes a user's account detail into episodic memory under `scope=session` during a troubleshooting turn. At end-of-session, the agent's distillation routine summarizes the episode into a semantic memory record under `scope=user`: *\"Customer's recovery code is stored in vault slot 12.\"* The raw episodic record is then garbage-collected by TTL, and later an explicit `forget(handle=ep_4471, scope=session...",
    "condition_of_validity": "The cascade guarantee holds **if and only if** every write that produces a derivative of a scoped record records a provenance edge to its sources, *and* the forget tool's cascade closure is computed over that edge set transitively. Both conditions must hold. If the distiller omits the edge, cascade closure is empty and `cascaded: 0` is a truthful report of a...",
    "decision_boundary": "The precise line the instance must draw: - **Cascade is required** when the derivative was produced by a transformation the memory subsystem can attribute — i.e., a provenance edge exists or can be reconstructed from write metadata (same episode id, same turn id, embedding derived from a named source). - **Cascade is impossible and must be reported as such**...",
    "operational_effect": "The operational consequence is that deletion becomes a **two-phase protocol**, not a single call. Phase one: `forget` the addressed record and read the cascade report. Phase two: if the source participated in any distillation, run a scope-wide reachability probe — re-embed the deleted fact's canonical form and query every longer-lived scope for near-neighbor..."
  },
  "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": "8d465f62291ae7d3225c1f6fd2b4e12574ced0088ed88d7be6fc047ed161056e",
    "verified_classes": [
      "UnverifiedDeletionError",
      "ForgetResult"
    ],
    "verified_functions": [
      "assert_deletion_complete"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnverifiedDeletionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
