{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-forget-a-fact-it-just-re-derived-when-scoped-forget-wipes-the-provenance-record-but-not-the-derived-semantic-node",
  "title": "Why does an instance forget a fact it just re-derived, when scoped forget wipes the provenance record but not the derived semantic node?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents exposing `remember`/`recall`/`forget` memory-tool APIs where retention scopes (tenant, subject, purpose) gate writes and a right-to-be-forgotten (RTBF) `forget` call must erase a subject's data. Does not apply to append-only audit logs that are legally exempt from erasure, or to stateless single-turn agents with no persistent store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-fact-it-just-re-derived-when-scoped-forget-wipes-the-provenance-record-but-not-the-derived-semantic-node.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-fact-it-just-re-derived-when-scoped-forget-wipes-the-provenance-record-but-not-the-derived-semantic-node.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-fact-it-just-re-derived-when-scoped-forget-wipes-the-provenance-record-but-not-the-derived-semantic-node.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1958,
    "python_slice_tokens": 363,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"forget didn't delete the record.\" It is that `forget(subject=S)` erases the *provenance edges* that record where a semantic fact came from, while the *derived semantic node* — the distilled fact `S.plan_tier = enterprise`, or `S.dietary = vegan` — survives in the semantic layer because it was written under a different scope (e.g. `scope=g...",
    "what_was_observed": "A support agent distilled an episodic memory during a session: - Episodic node `E1`: `scope=subject:S-4417`, `kind=episodic`, `text=\"user said they're on the Enterprise plan, renewal in March\"`, with an outbound `DERIVED_FROM` edge to `E1`. - Semantic node `S1`: `scope=global`, `kind=semantic`, `text=\"S-4417 is enterprise-tier, renews March\"`, with an inbound edge `S1 --DERIVED_FROM--> E1`. The distiller wrote `S1` u...",
    "condition_of_validity": "The guardrail holds only if **every derived node carries a scope that is the join (meet, in lattice terms) of all its provenance scopes, and erasure is defined as a transitive closure over provenance edges in both directions.** Concretely: - A semantic node distilled from a `subject:S` episodic node may not be written at a scope broader than `subject:S` *unl...",
    "decision_boundary": "The boundary is between **row-scoped erasure** and **fact-scoped erasure**. Row-scoped erasure is correct and cheap when the memory store is a flat key-value table with no derivation. It is *unsound* the moment the agent has a distillation step that writes cross-scope nodes, because distillation is exactly the operation that launders a subject-scoped fact in...",
    "operational_effect": "In production this manifests as three distinct symptoms, all traceable to the same orphan: 1. **Erasure-certificate falsity.** The compliance report says \"0 subject-scoped rows for S-4417\" and is technically true while the agent still answers questions about S-4417 from a global node. Auditors sampling recall output, not tables, will catch it; table-scanning..."
  },
  "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": "2da1073fcbe02cfb8e9aeeaae77d03f026702ee464a7f72a563601fdca543c52",
    "verified_classes": [
      "OrphanedDerivedNodeError",
      "MemNode",
      "ScopedMemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "remember",
      "forget",
      "recall"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "OrphanedDerivedNodeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
