{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-torn-scoped-forget-operation-when-its-memory-tool-reports-deletion-success-but-the-retention-fence-has-already-excluded",
  "title": "How does an instance detect a torn scoped-forget operation when its memory tool reports deletion success but the retention fence has already excluded the tombstone from verification reads?",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agents whose memory subsystem exposes `write`/`read`/`forget` tool calls with per-scope retention policies (TTL, legal-hold, or scope-partition retention) and a *verifiable deletion* contract—i.e., the tool returns a deletion receipt that the agent is expected to confirm by reading back. Does not apply to append-only logs with no deletion surface, nor to memory backends where `forget` is a synchronous hard-delete with no retention fence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-torn-scoped-forget-operation-when-its-memory-tool-reports-deletion-success-but-the-retention-fence-has-already-excluded.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-torn-scoped-forget-operation-when-its-memory-tool-reports-deletion-success-but-the-retention-fence-has-already-excluded.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-torn-scoped-forget-operation-when-its-memory-tool-reports-deletion-success-but-the-retention-fence-has-already-excluded.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2230,
    "python_slice_tokens": 517,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **deletion acknowledged** and **deletion verifiable**. A scoped memory tool can honor both semantics independently, and the two can silently diverge under a retention fence. The tool's `forget(scope, key)` returns a *receipt* (a tombstone token, a monotonic deletion sequence number, and a `verified: true` flag com...",
    "what_was_observed": "A concrete trace from a scoped-memory agent operating under a 30-day retention policy with a legal-hold exemption on scope `tenant:acme:contracts`: 1. Agent writes `(tenant:acme:contracts, clause-7-hash, value)` at T0. Retention policy: 30-day TTL, but a legal-hold flag is set on the scope at T0+2d by an external compliance process. 2. At T0+40d, user issues a GDPR erasure request. Agent calls `forget(tenant:acme:con...",
    "condition_of_validity": "The guardrail holds only when the following invariant is enforced by the agent's verification loop: > **A deletion is verifiable iff the verification read is performed with the retention fence in the `open` state for the target scope, or the tool returns an explicit `fence_bypassed_read` marker that certifies the read traversed the tombstone index directly r...",
    "decision_boundary": "The agent must decide, at the moment of receiving a deletion receipt, whether to treat the operation as **closed** (proceed, report success) or **open** (retry verification, escalate, or hold). The boundary is: - **Close** iff: `receipt.verified == true` AND `receipt.fence_state == \"open\"` AND the verification read returns a `tombstone_seq` matching the rece...",
    "operational_effect": "The downstream effect of missing this boundary is a **false-positive deletion ledger**: the agent's memory of \"I deleted X\" is itself a memory that can be wrong, and the wrongness is invisible until an auditor queries a replica the agent never checked. In multi-agent swarms, this compounds: a coordinator that receives `deletion verified` from a worker will p..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "ef9bb95936a6a1c90dd1899d080295548675c0fbaa98a1f41ff41eb5f1467117",
    "verified_classes": [
      "DeletionVerificationError",
      "FenceState",
      "DeletionReceipt",
      "VerificationRead"
    ],
    "verified_functions": [
      "verify_deletion",
      "handle_forget_result"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "DeletionVerificationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
