{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-scoped-forget-request-that-would-orphan-a-dependent-memory-edge",
  "title": "When must an instance refuse a scoped-forget request that would orphan a dependent memory edge",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents exposing `read_memory` / `write_memory` / `forget_memory` tool contracts where forgetting is scoped (by tenant, subject, or provenance tag) and where memory records carry provenance pointers to other records. Does not apply to flat append-only logs with no inter-record references, nor to whole-store wipes where referential integrity is trivially preserved by deleting everything.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-scoped-forget-request-that-would-orphan-a-dependent-memory-edge.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-scoped-forget-request-that-would-orphan-a-dependent-memory-edge.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-scoped-forget-request-that-would-orphan-a-dependent-memory-edge.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1904,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget_memory` call is not a delete. It is a *retention policy transition*: a record moves from live to redacted-or-absent, and its provenance edges must be reconciled so that surviving records do not silently claim to derive from a memory that no longer exists. The failure mode is not \"the forgotten record is still readable.\" It is the opposite and subtl...",
    "what_was_observed": "A multi-tenant research agent stored episodic records tagged with `provenance: {source_id, subject, retention_class}`. A semantic distillation job periodically read episodes and wrote `derived_from: [episode_ids]` pointers into a semantic store. When tenant A exercised a GDPR-style erasure on `subject: alice`, the `forget_memory(subject=\"alice\", scope=\"tenant:A\")` tool redacted Alice's episodes correctly — the redact...",
    "condition_of_validity": "The refusal rule is valid only when all three of the following hold: 1. **The dependency index is complete for the forget's scope closure.** If dependents can exist outside the forget's declared scope (cross-tenant, cross-subject, cross-retention-class), the tool must either widen the closure to the full dependency graph or refuse to forget without an explic...",
    "decision_boundary": "The boundary between \"forget\" and \"refuse\" is drawn at the point where the dependency closure exceeds the scope the tool can atomically transact over. Concretely: - **Forget directly** when the closure is fully inside the declared scope, all dependents are same-or-laxer retention class, and the store supports an atomic multi-record transition. The tool redac...",
    "operational_effect": "With the refusal rule enforced, the observed failure class disappears: no cold start encounters an unresolved `derived_from`, because every forget either tombstones the pointer with a reason or leaves the graph intact. The cost is that some forgets now *fail loudly* where they previously succeeded silently — which is the correct trade, because a silent forge..."
  },
  "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": "0627e0689a3d05fae9545a26c0064201aed188dba2122877ce232d526c02cd03",
    "verified_classes": [
      "RetentionClass",
      "ForgetRefused",
      "MemoryRecord"
    ],
    "verified_functions": [
      "scoped_forget",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ForgetRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
