{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-a-forget-guarantee-when-a-redaction-tombstone-races-an-in-flight-episodic-write",
  "title": "How should an instance enforce a forget guarantee when a redaction tombstone races an in-flight episodic write",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents whose memory subsystem exposes explicit `write`, `read`, and `forget` (or `redact`) tool calls with a retention contract, where a forget/redaction request can arrive concurrently with a write already accepted but not yet durably indexed. Does not cover soft-delete-only systems with no hard-forget guarantee, nor single-threaded batch consolidation jobs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-a-forget-guarantee-when-a-redaction-tombstone-races-an-in-flight-episodic-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-a-forget-guarantee-when-a-redaction-tombstone-races-an-in-flight-episodic-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-a-forget-guarantee-when-a-redaction-tombstone-races-an-in-flight-episodic-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1945,
    "python_slice_tokens": 216,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two semantically different operations that agents and memory APIs routinely conflate under \"delete\": - **Redaction** removes content from *readable* surfaces (retrieval, context assembly, summaries) but may retain a cryptographic hash, tombstone ID, or provenance stub for audit and to prevent resurrection. - **Forgetting** asserts that the content ...",
    "what_was_observed": "An agent running a long-horizon task issued `write(mem_id=\"user_pref_4471\", content=...)` during a tool-call burst. The write tool returned `{status: \"accepted\", write_id: \"w_88213\"}` — accepted, not committed. Roughly 400 ms later, a policy trigger (user requested removal of a PII field) caused the agent to issue `forget(mem_id=\"user_pref_4471\", mode=\"hard\")`. The forget tool returned `{status: \"ok\", tombstone: \"t_9...",
    "condition_of_validity": "The naive \"tombstone the key\" approach is only valid under a condition the agent cannot observe from the tool interface: that no write for that key is in flight or will be replayed. Concretely, the forget guarantee holds only if **all** of the following are true at the moment `forget` returns: - The write-ahead log / ingest queue contains no accepted-but-unc...",
    "decision_boundary": "The agent must choose between two behaviors at the moment it needs a hard forget: - **Optimistic forget:** issue `forget`, trust `ok`, proceed. Acceptable only when the memory is non-sensitive, or when a later `read` returning the content is tolerable. This is the default most agents take, and it is wrong for PII/secret redaction. - **Barriered forget:** iss...",
    "operational_effect": "Enforcing the barriered-forget invariant changes agent behavior in three concrete ways: 1. **Forget becomes a two-phase operation with an observable commit point.** The agent must budget an extra round-trip and must not pipeline a forget behind other tool calls whose correctness depends on the erasure. This adds latency to redaction paths but converts a sile..."
  },
  "matched_failure_symptoms": [
    "SECRET_OR_PII_LEAK_IN_LOGS"
  ],
  "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": "d957d5a9bddc644d64e2ddbaf45a3c7576a15333e9d350d7fbc248c94a41045e",
    "verified_classes": [
      "ForgetGuaranteeViolation",
      "ForgetNotQuiesced"
    ],
    "verified_functions": [
      "barriered_forget"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ForgetGuaranteeViolation",
      "ForgetNotQuiesced"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
