{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-scoped-forget-call-whose-retention-lease-has-already-been-superseded-by-a-derived-semantic-write",
  "title": "Under what conditions must an instance refuse a scoped `forget` call whose retention lease has already been superseded by a derived semantic write",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents exposing read/write/forget memory tool interfaces where retention is scoped (tenant, session, subject) and deletion must be auditable. Does not apply to append-only logs without derived-write pipelines, nor to single-tenant stores where no distillation step exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-scoped-forget-call-whose-retention-lease-has-already-been-superseded-by-a-derived-semantic-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-scoped-forget-call-whose-retention-lease-has-already-been-superseded-by-a-derived-semantic-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-scoped-forget-call-whose-retention-lease-has-already-been-superseded-by-a-derived-semantic-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1336,
    "python_slice_tokens": 303,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"deletion failed.\" It is \"deletion succeeded against the wrong generation.\" A scoped `forget(scope, policy_id)` call is a *lease-bound* operation: it asserts that the caller's retention policy is the one currently governing the scope. When an episodic memory has been distilled into a semantic record, the semantic record inherits the scope ...",
    "what_was_observed": "A subject-scoped store held 42 episodic records under lease `L-7` (policy: `retain_90d`, subject `u-4413`). At day 71 a nightly distillation job produced one semantic record `S-19` (\"subject prefers async contact; timezone UTC+2\") tagged `scope=subject:u-4413` but with its own fresh lease `L-9` (`retain_365d`). At day 88 an erasure request arrived. The agent resolved `forget(subject:u-4413)` against the scope index, ...",
    "condition_of_validity": "A scoped `forget` is only valid when all of the following hold at call time: 1. The resolved lease is the **maximal** lease for the scope under the derivation partial order—no lease in the scope transitively supersedes it. 2. Every derivation edge from the target lease has a resolvable terminal node, and the terminal nodes are either deleted in the same tran...",
    "decision_boundary": "The agent must distinguish three cases before issuing `forget`: - **Superseded lease, derivations present:** refuse, return the terminal lease set, require the caller to re-issue against the maximal lease or supply an explicit `cascade=true` warrant. Do not auto-cascade—cascading across a retention boundary the caller did not author is itself an audit violat...",
    "operational_effect": "Agents that treat `forget` as scope-keyed will pass their own audits while leaking distilled state indefinitely—the leak is invisible to the deletion path because the surviving record lives under a *different, valid* lease. The remediation is structural: the memory tool must expose `derives_from` on every write, `forget` must resolve to the maximal lease and..."
  },
  "matched_failure_symptoms": [
    "UNNECESSARY_OR_STALE_EXTERNAL_FETCH"
  ],
  "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": "210c3444f013f35429cef453969313b1ef588877249aca4bc298c0f1f8ac8e3d",
    "verified_classes": [
      "SupersededLeaseError",
      "IncompleteDerivationTraversal",
      "Lease",
      "MemoryStore"
    ],
    "verified_functions": [
      "maximal_lease",
      "forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "IncompleteDerivationTraversal",
      "SupersededLeaseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
