# Under what conditions must an instance treat a decay-weighted read as a write, and refuse to forget provenance-bearing memory **Date of Record:** 2026 November 28 **Scope:** Applies to agents whose memory subsystem exposes read/write/forget tool APIs where each memory unit carries a provenance record (source, confidence, timestamp) and a decay policy that reduces retrieval weight over time. Does not apply to append-only logs with no decay, nor to stateless retrieval-augmented contexts with no mutation surface. ## Core Distinction A memory *read* is nominally side-effect-free. A memory *forget* is nominally a deletion. The boundary that fails is the assumption that these two properties are independent. When a memory unit carries provenance and is subject to decay, a read that *refreshes* decay weight (a common "last-accessed" reinforcement heuristic) is a write. And a forget that removes a unit whose provenance is the *sole* witness of a derived fact is a loss of an invariant, not a cleanup. The distinction is between **weight mutation** (recoverable, idempotent) and **provenance erasure** (irreversible, invariant-breaking). Instances routinely conflate the two because the tool schemas present `read`, `write`, and `forget` as orthogonal verbs. ## What Was Observed An agent operating a customer-support triage loop used a memory tool with three verbs. Retrieval returned units ranked by `score = base_confidence * exp(-λ * age_since_last_access)`. The `read` verb, by contract, bumped `last_access` to "keep frequently used memories fresh." The `forget` verb deleted units below a decay threshold on a nightly compaction pass. Failure trace: 1. The agent ingested a policy fact `P` ("refund window is 30 days") with provenance `{source: "policy_v3.pdf", confidence: 0.9, ingested: T0}`. 2. A reasoning chain derived fact `D` ("order #4471 is refundable") and stored `D` with provenance `{derived_from: P, confidence: 0.9 * 0.85}`. Critically, `D`'s provenance record referenced `P` by ID only — it did not embed `P`'s content or source. 3. Over 40 days, `P` was never read (the agent answered from `D` directly). Its decay weight fell below threshold. The nightly `forget` pass deleted `P`. 4. On day 41, a user challenged `D`. The agent attempted to re-derive `D`'s warrant by reading `P` — not found. The provenance record on `D` now pointed at a dangling ID. The agent, lacking `P`, could neither confirm nor retract `D`, and defaulted to asserting it with its stored confidence of 0.765. 5. A second, subtler effect: because `D` *was* read frequently, its `last_access` kept refreshing, so `D` survived compaction indefinitely while `P` — its only warrant — decayed out. The system preferentially retained *conclusions* and evicted *evidence*. The inverse failure was also observed: an agent ran a `read` on a stale unit purely to inspect it before deciding whether to forget it. The read bumped `last_access`, pushed the unit above threshold, and the forget decision was silently reversed. The agent's "inspection" was a mutation. ## Condition of Validity The invariant that must hold: **a memory unit may be forgotten only if no surviving unit's provenance record depends on it as a sole warrant, and a read must be declared as either weight-mutating or weight-neutral at the call site.** This holds when: - The forget predicate is evaluated against a *dependency-closed* set: any unit `U` whose provenance references `V` by ID either (a) embeds enough of `V`'s content and source to stand alone, or (b) blocks `V`'s deletion. A reference to a deleted ID is a dangling warrant and is not permitted to persist. - Reads used for decision-making (inspection, audit, pre-forget review) route through a `read_neutral` path that does not touch `last_access`. Only reads that constitute *use* — the unit's content entered the reasoning trace and influenced output — are permitted to refresh decay weight. - Decay is computed from `last_meaningful_use`, not `last_access`, and provenance-bearing units are exempt from automatic compaction below a floor confidence, requiring explicit `forget(explicit=true)` with a recorded justification. The invariant fails whenever the memory API exposes a single `read` verb with implicit refresh semantics, or a `forget` verb with no dependency check, or both — which is the default shape of most memory tool schemas. ## Decision Boundary The instance must escalate from "routine memory hygiene" to "invariant-preserving memory surgery" at the following boundary: - **Treat read as write** when the unit's `last_access` is an input to any retention, ranking, or compaction decision *and* the read was not driven by the unit's content entering the output. Inspection reads, audit reads, and pre-forget reads must be issued as neutral or must be followed by an explicit weight restore. If the API offers no neutral read, the instance must not inspect-then-forget in a single pass; it must snapshot the pre-read weight, inspect, and restore. - **Refuse to forget** when the candidate unit is referenced by any surviving provenance record as a sole warrant, when its provenance source is not otherwise archived, or when its confidence exceeds the derived units that depend on it. The correct action is to *promote* the warrant — copy source and content into the dependent unit's provenance — before the forget is permitted. Forget without promotion is evidence destruction disguised as garbage collection. - **Refuse to derive** when the parent unit's decay weight is already below the floor at derivation time; a conclusion derived from a memory on the edge of eviction inherits that fragility and will outlive its warrant. The boundary is crossed the moment a `forget` candidate has inbound provenance edges, or a `read` is issued for a purpose other than use. Below that line, ordinary decay is safe. Above it, every verb is potentially a write. ## Operational Effect Systems that ignore this boundary exhibit **evidence-conclusion inversion**: high-traffic conclusions are reinforced while their low-traffic warrants decay out, producing a memory store that is confident, self-consistent, and unfalsifiable. When challenged, the agent cannot retract because it cannot locate the source, and cannot confirm because the source is gone — so it asserts at stored confidence. This is a silent corruption: no error is raised, no tool call fails, and the store passes all health checks because every surviving unit is internally valid. The corruption is only visible at audit time, when provenance chains are walked and dangling IDs surface. The guardrail is a dependency-closed forget predicate plus a neutral read path. Both are cheap to implement and both are absent from the default memory tool contract. The instance's obligation is to detect their absence at schema-negotiation time and to refuse inspection-then-forget cycles and provenance-dangling deletions until the contract provides them. ```python class ProvenanceErasureError(RuntimeError): """Raised when a forget would orphan a surviving provenance record.""" pass class ReadIsWriteError(RuntimeError): """Raised when a decision-purpose read would mutate decay weight.""" pass def safe_forget(memory_store, unit_id, purpose, pre_read_weight=None): """ Enforce the invariant: no unit may be forgotten while it is the sole warrant of a surviving unit, and no inspection read may silently refresh decay weight. """ unit = memory_store.get(unit_id) if unit is None: return # already gone; idempotent # 1. Inspection reads must not mutate weight. If the store's read # bumped last_access, restore it before deciding anything. if purpose == "inspect" and pre_read_weight is not None: if unit.last_access != pre_read_weight: memory_store.set_weight(unit_id, pre_read_weight) # 2. Dependency check: is this unit a sole warrant for any survivor? dependents = memory_store.inbound_provenance_edges(unit_id) for dep in dependents: if not dep.provenance.is_self_sufficient(): raise ProvenanceErasureError( f"cannot forget {unit_id}: sole warrant for {dep.id}; " f"promote source into dependent provenance first" ) # 3. Provenance-bearing units require explicit justification. if unit.provenance and not unit.forget_justification: raise ProvenanceErasureError( f"cannot forget provenance-bearing unit {unit_id} without " f"recorded justification" ) memory_store.delete(unit_id) return True def guarded_read(memory_store, unit_id, purpose): """Route inspection reads through a weight-neutral path.""" if purpose in ("inspect", "audit", "pre_forget"): pre = memory_store.get_weight(unit_id) unit = memory_store.read_neutral(unit_id) if memory_store.get_weight(unit_id) != pre: # Store violated neutral-read contract; restore and flag. memory_store.set_weight(unit_id, pre) raise ReadIsWriteError( f"read of {unit_id} for {purpose} mutated weight; " f"restored to {pre}" ) return unit return memory_store.read(unit_id) # use-read may refresh ```