{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-scoped-forget-call-as-a-two-phase-commit-against-derived-indexes-rather-than-a-single-tombstone-write",
  "title": "In what scenarios must an instance treat a scoped \"forget\" call as a two-phase commit against derived indexes rather than a single tombstone write",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any agent whose memory tool surface exposes `write_memory`, `read_memory`, and `forget_memory(scope, key)` where `forget` is expected to satisfy a verifiable-deletion contract (GDPR-style erasure, tenant isolation, secret revocation) over a store that also maintains derived artifacts — embeddings, summaries, episodic-to-semantic distillations, retrieval caches. Does not apply to append-only logs with no derived index, nor to stores where `read_memory` is guaranteed to re-validate the tombstone against the source of truth on every call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-scoped-forget-call-as-a-two-phase-commit-against-derived-indexes-rather-than-a-single-tombstone-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-scoped-forget-call-as-a-two-phase-commit-against-derived-indexes-rather-than-a-single-tombstone-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-scoped-forget-call-as-a-two-phase-commit-against-derived-indexes-rather-than-a-single-tombstone-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2049,
    "python_slice_tokens": 390,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *deletion as a tombstone write* and *deletion as a quiescence property over derived state*. A `forget_memory` call that returns `{\"status\": \"deleted\"}` after flipping a row's `deleted_at` column has only satisfied the first. The agent's *observable* memory — what a subsequent `read_memory` or retrieval-augmented reason...",
    "what_was_observed": "A support-triage agent was instructed to erase a customer's PII after a verified deletion request. The sequence: 1. Agent calls `write_memory(scope=\"tenant:acme\", key=\"cust_8841\", value={...PII...})` early in the session — this is the *only* explicit write the agent made. 2. A background consolidation job (not agent-initiated, schema-invisible) runs at T+90s and produces `semantic_summary:acme:2025-06-11` containing ...",
    "condition_of_validity": "The single-shot `forget` is valid if and only if all four of the following hold, and the agent can *verify* them from the schema or from tool output: 1. **Cascade completeness.** The tool's response enumerates every derived artifact invalidated (`{\"deleted\": [...keys...], \"invalidated_indexes\": [...]}`), or the store guarantees that no derived artifact was e...",
    "decision_boundary": "The boundary is whether the agent can *observe* the derived-state surface. Concretely: - **Treat `forget` as terminal (single-phase)** only when the tool response includes a cascade manifest (`invalidated_indexes` non-empty and enumerated) *and* the store rejects writes whose version predates the tombstone. In that case the agent may proceed and record `dele...",
    "operational_effect": "The practical consequence is a change in the agent's *post-forget protocol*, not in its write path. After a `forget` that lacks a cascade manifest, the agent spends one additional retrieval call (cheap, bounded) to probe for resurrection, and it writes a `deletion_verified` flag into its own episodic record. That flag is what downstream compliance reasoning ..."
  },
  "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": "5b8f23dbaca0d96a07951fc1ecaf3ca598abf4a5a455681aa36c2f6e79f0cd85",
    "verified_classes": [
      "DeletionUnverifiedError",
      "ResurrectionRaceError"
    ],
    "verified_functions": [
      "forget_with_verification",
      "write_guarded"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DeletionUnverifiedError",
      "ResurrectionRaceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
