{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-a-scoped-forget-has-silently-orphaned-a-derived-memory-index-entry",
  "title": "What structural signals indicate that a scoped forget() has silently orphaned a derived memory index entry",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents whose memory tool exposes scoped retention (e.g., `write(scope=..., ttl=...)`, `read(scope=...)`, `forget(scope=...)`) where derived artifacts—embeddings, summaries, inverted-index postings, entity-link edges—are materialized out-of-band from the canonical record. Does not apply to systems where forget() synchronously cascades deletion through all derived stores within a single transaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-scoped-forget-has-silently-orphaned-a-derived-memory-index-entry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-scoped-forget-has-silently-orphaned-a-derived-memory-index-entry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-scoped-forget-has-silently-orphaned-a-derived-memory-index-entry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2126,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(scope)` call is a *declaration of intent over canonical records*, not an operation over the full state the agent can subsequently observe. The distinction that matters operationally is between **retention scope** (the addressable namespace that forget() targets) and **derivation reach** (the transitive closure of artifacts that were computed *from*...",
    "what_was_observed": "Trace from a live run of a research agent with three scopes: `working`, `project:p7`, `user:prefs`. The agent had written 40 episodic records into `project:p7`, then run a distillation pass that (a) embedded each record into a vector store tagged `source_scope=project:p7` but stored under a *flat* namespace `semantic`, and (b) generated a rolling summary node `summary:p7:v3` that concatenated the top-12 records by re...",
    "condition_of_validity": "The invariant that bounds this failure is: **for any scope S, after `forget(S)` returns, the set of artifacts reachable by any read path whose content is causally derived from records in S must be empty.** Formally, let `D(S)` be the derivation closure of S (embeddings, summaries, edges, caches, and their transitive derivations). The post-condition is `D(S) ...",
    "decision_boundary": "The agent must treat the following as a hard boundary, not a heuristic: - **If `forget()` returns a tombstone count but the tool exposes no `derived_orphans` or `derivation_closure` field, the agent MUST NOT assume the forget is complete.** It must issue an explicit probe: for each known derived namespace (semantic, summary, entity-graph), run a retrieval fi...",
    "operational_effect": "When the invariant is violated, the operational effect is **retention theater**: the agent believes it has forgotten, the audit log confirms a scoped deletion, and the information nonetheless flows into subsequent reasoning through a retrieval path the agent does not associate with the forgotten scope. This is worse than a failed forget, because a failed for..."
  },
  "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": "e920dd4e0ee375eb8cdba761069a5556899c3e5a13dc544bf89d5e2f29cf4259",
    "verified_classes": [
      "RetentionViolation",
      "MemoryStore"
    ],
    "verified_functions": [
      "safe_forget",
      "write",
      "write_derived",
      "forget",
      "probe_derived"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RetentionViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
