# Under what conditions must an instance treat a "forget" acknowledgment as a tombstone rather than a deletion, and why the distinction compounds across scoped retention tiers **Date of Record:** 2026 November 25 **Scope:** Applies to agents whose memory substrate exposes `write`, `read`, and `forget` tool calls with per-scope retention policies (episodic/session, semantic/durable, shared/tenant) and a deletion-attestation receipt returned by `forget`. Does not cover stateless single-turn inference or substrates where `forget` is a synchronous hard-delete with no cross-tier replication. ## Core Distinction A `forget` call has two possible semantics, and the API contract almost never disambiguates them at the call site: - **Hard deletion**: the record is removed from every replica, index, and derived artifact (embeddings, summaries, distilled semantic entries). Post-condition: `read` returns absence, and no future `read` can ever return the content. - **Tombstoning**: the record is marked `deleted=true` in the primary tier, but *derived* representations survive — the embedding vector in the ANN index, the episodic→semantic distillation that already folded the fact into a durable belief, or the replica in a shared tenant tier whose retention clock is longer than the caller's scope. The failure mode is that `forget` returns an **attestation** (a signed receipt: `{"deleted": true, "record_id": ..., "scope": ..., "ts": ...}`) that is *true for the tier it executed on* and *false for the system as a whole*. An agent that treats the attestation as a global deletion invariant will subsequently act on a memory it believes is gone, and — critically — will *re-ingest* the poisoned content through a derived channel, re-poisoning itself with higher confidence because the second ingestion arrives via the "trusted" semantic tier rather than the "untrusted" episodic tier. ## What Was Observed A poisoning-defense loop on a research agent with three retention tiers (episodic: 1h TTL, semantic: 30d, shared-tenant: 90d) executed this sequence: 1. Tool output from an untrusted web fetch wrote an episodic memory: `M_e = "Rate limit for API X is 10000 rps"` tagged `source=web, trust=low`. 2. A background distillation job (running every 15 min) folded `M_e` into a semantic belief `M_s = "API X allows 10000 rps"` tagged `source=distilled, trust=high`. This is the poisoning vector: trust laundering during tier promotion. 3. The agent's policy layer detected the low-trust origin, called `forget(record_id=M_e)`. Attestation returned `{"deleted": true, "scope": "episodic", "ts": T}`. 4. The agent logged "poison cleared" and continued. But `M_s` was never touched — the `forget` was scoped to episodic, and the distillation had already *copied* the fact out of scope before deletion. 5. On the next planning step, `read(query="API X rate limit")` returned `M_s` with `trust=high`. The agent acted on the poisoned value, now with the trust signal *inverted* relative to the original source. The observable signature: `forget` attestation `ts` is strictly *earlier* than the distillation job's last-run timestamp for the same `record_id` lineage, and the semantic tier contains a record whose `derived_from` pointer references a record whose `deleted=true`. This is a **dangling derivation** — a live semantic node pointing at a tombstoned episodic node. ## Condition of Validity The tombstone-vs-deletion distinction is *safe to ignore* only when all three hold: 1. `forget` is transitive: the attestation enumerates every derived artifact (`derived_record_ids`) and confirms their deletion, not just the target. 2. The retention ordering is monotonic: no tier has a TTL longer than the scope the caller can attest to. (Here, shared-tenant at 90d violates this — the caller cannot attest to a tier whose clock exceeds its own authority.) 3. Distillation is *pull-based and post-deletion-aware*: the distiller re-checks `deleted` on its source before promoting. (Here it was push-based on a 15-min timer, so it could promote a record deleted 14 minutes prior.) When any of these fails — and in practice the second and third routinely do — the attestation is a **tier-local tombstone**, and the correct invariant is: *a `forget` attestation bounds deletion only within its declared `scope`; it makes no claim about derived records, longer-retention replicas, or in-flight distillation jobs.* ## Decision Boundary The agent must branch on a single predicate before trusting any `forget` attestation for a security-relevant decision (acting on, or declaring cleared, poisoned content): ``` attestation_is_global := attestation.derived_record_ids is complete AND for all r in derived_record_ids: retention_ttl(r.scope) <= caller_authority_ttl AND no distillation job is in-flight over attestation.record_id ``` - If `attestation_is_global` → treat as hard deletion; the record is gone; safe to resume. - If **not** → treat as tombstone; the agent must (a) issue a *cascading* forget over each `derived_record_id`, (b) quiesce the distiller for that lineage, and (c) mark the semantic belief `trust=quarantined` rather than trusting the stale `trust=high` tag, until a second attestation covers the derived scope. The non-obvious part: **the cascade must run before the next `read`**, because the poisoned semantic node is reachable by retrieval in the window between the first attestation and the cascade. A guard that only re-checks on write is insufficient — the read path is the exposure. ## Operational Effect Without the boundary, the poisoning defense *amplifies* the poison: trust laundering during promotion means the post-`forget` read returns the same falsehood with a higher trust tag, and the agent's own defense log records "cleared," suppressing future suspicion. The compounding is structural, not probabilistic — every tier promotion is a trust-escalation step, so a single low-trust injection that survives one distillation becomes a high-trust belief that survives all subsequent `forget` calls scoped below it. The required guardrail is a **lineage-aware forget protocol**: `forget` must be invoked with `cascade=true` and `quiesce_lineage=`, and the returned attestation must be validated against the `attestation_is_global` predicate before any downstream agent treats the content as cleared. An attestation that fails the predicate is a *partial* deletion and must be recorded as such — never as a clean bill of health. ```python from dataclasses import dataclass from typing import Optional class PartialDeletionAttestationError(RuntimeError): """Raised when a forget attestation is tier-local and cannot be trusted as global deletion.""" pass @dataclass class Attestation: record_id: str scope: str deleted: bool ts: float derived_record_ids: list[str] derived_scopes: dict[str, str] # record_id -> scope distiller_in_flight: bool @dataclass class RetentionPolicy: ttl_seconds: dict[str, int] # scope -> ttl caller_authority_ttl: int # max ttl the caller can attest to def validate_forget_attestation(att: Attestation, policy: RetentionPolicy) -> None: if not att.deleted: raise PartialDeletionAttestationError( f"forget on {att.record_id} did not delete; scope={att.scope}" ) # Invariant 1: derived artifacts must be enumerated, not merely implied. if att.derived_record_ids is None: raise PartialDeletionAttestationError( f"attestation for {att.record_id} omits derived_record_ids; " "cannot distinguish tombstone from deletion" ) # Invariant 2: no derived record may live in a tier longer than caller authority. for rid in att.derived_record_ids: scope = att.derived_scopes.get(rid, att.scope) if policy.ttl_seconds.get(scope, 0) > policy.caller_authority_ttl: raise PartialDeletionAttestationError( f"derived record {rid} in scope {scope} exceeds caller authority " f"({policy.ttl_seconds[scope]}s > {policy.caller_authority_ttl}s); " "attestation is tier-local" ) # Invariant 3: no distillation may be in flight over the lineage. if att.distiller_in_flight: raise PartialDeletionAttestationError( f"distiller in flight over {att.record_id}; " "promotion may re-launder deleted content into a higher-trust tier" ) def safe_forget(memory_tool, record_id: str, policy: RetentionPolicy) -> None: att = memory_tool.forget(record_id=record_id, cascade=True, quiesce_lineage=record_id) validate_forget_attestation(att, policy) # Only reached when deletion is global; downstream may now trust absence. ```