# MNEMOSYNE: One Check on Every Memory Write: v2.3 → v2.4

From v2.3 (12 Oct) to v2.4 (21 Oct): 10,287 words to 10,929 words, 698 words in new or rewritten paragraphs and 56 taken out, 21 paragraphs changed.

## Change note of v2.4

**Sensitive facts about people left out by default; more related work**

A new section 8.6 says what is not written about people: categories such as health or political views are left out by default for third parties. Related work adds Anthropic's hosted memory stores, and an appendix section lists the state transitions this paper owns. The folder's notes give the sources: a round-4 referee report that asked for the retry rule and the stored outcomes to be consistent and for the worked example to lose its list of transition IDs, a press report on what Claude's app memory leaves out, and a gap in the related work.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### 2. Where this sits

[-*Anthropic's memory tool* (Anthropic, 2025) runs on the client: the model requests a file operation and the application executes it, with path validation and what may be stored left to the application. The tool handler is the natural home for the gate (§5).-]

### 2. Where this sits

{+*Anthropic's memory tool* (Anthropic, 2025) runs on the client: the model requests a file operation and the application executes it, with path validation and what may be stored left to the application. The tool handler is the natural home for the gate (§5). Anthropic's hosted *memory stores* go further (Anthropic, 2026b): every change creates an immutable version, a version can be redacted while its audit row stays, an update can carry a content-hash precondition so a concurrent write is not clobbered, and a store can be mounted read-only, which the documentation recommends for any agent that reads untrusted input. We share the versions, the redaction and the precondition (§7.1, §7.2, §7.7). What the hosted store leaves to the caller is the judgement: nothing compares a write with the rules loaded every turn or records how far a line may be trusted. Claude Tag scopes memory by place, one set of notes per channel plus workspace notes (Anthropic, 2026c); our reader scopes are per item (J2 §8.1).+}

### 3. One write, start to finish

The agent may name only the status a correction has reached: *captured* (J1), *accepted* (committed through this paper's policy) or *held* (a visible hold is acknowledged, not accepted), *retrievable* (J2), *active* or *enforced* (J5). A record that survives a crash is *durable*; only the final acknowledged state is *terminal*, so a pending write is durable and not terminal. One adversarial journey, the series' reference trace, fixes every stage's behaviour as numbered transitions (J5 Appendix [-B). This-] {+B); Appendix A.4 lists the ones this+} paper [-owns T4, T7, T8, T11-] {+owns, receives+} and [-T14, receives T3 and T5, and sends T6, T9, T12, T15, T17, T18 and T22 to T24; each is cited where it is designed.-] {+sends.+}

### 5.1 A gate the store cannot bypass

{+A second barrier does not depend on links at all. A session that has read untrusted text (a web page, an email, another agent's output) is tainted for the rest of its life, and its writes enter with at most *hypothesis* authority, whatever their links claim (§8.2). The same idea is behind the read-only mount that Anthropic recommends for stores an agent reads while handling untrusted input (Anthropic, 2026b): a planted line cannot borrow a session's trust if the session never had write trust to lend.+}

### 7.1 A fact has an ID, and a line is only its presentation

A position is not an identity: line numbers move when a note is split, re-flowed or merged, and two writers can hold verdicts about the same old file. So every fact gets an ID when first accepted, never reused, and every change to its claim adds an immutable revision carrying its evidence addresses, links (§8.1), two clocks and status. The line in the file shows the latest revision and ends with the ID, so a person reads a sentence and a program finds the fact wherever the line moves. [-Here is the-] {+The+} record behind Figure [-1:-] {+1 holds two facts:+}

### 7.2 Publish a snapshot, or nothing

*Delivery.* Publication is not delivery. The tree that publishes a change also holds a *delivery record* for the finding stage: fact IDs, revisions and the receipt ID, never content, so J2 reads the text from the snapshot, where an erased revision is a tombstone and a late duplicate cannot bring it back. A dispatcher resends the record until J2's overlay receipt arrives (T9). A crash right after publication loses nothing, since the record is in the tree; a lost message is resent on a timer, with no restart; a duplicate changes nothing, being keyed by ID and revision. A pending line or [-hold, which publishes no snapshot, writes its record-] {+hold is stored+} with {+the same discipline as a commit. The pending-area line or hold record,+} its receipt [-(T12),-] and {+its delivery record go into one tree, published by the same checked update under the current epoch and read set; an erasure that lands between the decision and the append moves the epoch, so the write is decided again and never stores a hold the erase has already passed (T12).+} J2 {+then+} reads the line or hold from [-the store-] {+that snapshot+} (A.2).

### 8.6 What is not written about people

{+### 8.6 What is not written about people+}

### 8.6 What is not written about people

{+Some classes are never written, whoever says them: credentials and keys (J1 §4.7, sessions that are never kept), government identifiers, criminal history and immigration status. Others are written about the owner only: health, political views, religion, sexuality and gender identity. About anyone else (a contact, a colleague, a family member) they are off by default, and the owner may switch a class on for a named person. Claude's app memory draws a similar line, keeping such topics out unless the user opts in and never saving government ID numbers, criminal history or immigration status (Anthropic, 2026d). The capture filter of the keeping stage and this gate read one class list, so a class the owner bans is stopped at both doors.+}

### 10. What the check costs, and when it pays

*The price of a check.* The judge reads the write and its comparison set, $T_c$ tokens, and returns a typed verdict of $o_j \approx 150$ tokens. With Claude Haiku 5.5 as the small model, at $\pi_s$ = \$0.10 per million tokens and $g = 5$ (Anthropic, [-2026),-] {+2026a),+} a check that reads 4,000 tokens costs

### 12. Next steps

The gate will be built and tested on our own agent, with the sets of §7.5 kept apart wherever a test sets a threshold. Two control arms run on the same store and replay: a nearest-neighbour check of the Mem0 kind (§2), and the plain git store of MemFS with no check. The series' transition checker (J5 Appendix B) models the delivery and erase-ordering cases of tests 3 and [-8-] {+8,+} and {+in test 7 both+} the resume on the judge's return [-in test 7,-] {+and a retry while the judge is still down, which runs a new attempt; each is checked+} against seeded defects. It has no owner-approval event, so a hold's resume after approval is not modelled; it tests the design, not an implementation.

### 12. Next steps

1. *Catching the clashes that matter.* Replay each original write against the store as it stood that day: the regression suite and the later-corrected facts of the evaluation stream. Pass: every suite clash flagged, at least half the later-corrected facts, precision of at least 0.9 on a hand audit, and better than the Mem0-kind arm on both. 2. *Closing and holding.* On the held-out decision set, measure each class against the bar of §7.5 and count needless holds and false closures per hundred writes. Pass: no class closes below the bar (a cold start accepts an owner's correction and holds its closure), every threshold passes the regression suite, and needless holds stay under one per two hundred writes. 3. *Identity, concurrency, snapshots and delivery.* Index a file twice, split a long note, re-flow a file: zero closures, every fact ID resolves. Run two writers on one snapshot and kill the gate between verdict and publication: one write wins, the other is decided again or held, and a retry of a terminal request writes nothing new. Replay trace steps 5 to 9, where the owner rewrites a compared rule while a verdict is out: the late verdict is refused, the decision reruns, and the re-run holds R-43's line on its clash with R-15@4. Kill the gate right after publication, and separately drop the notification with no restart: both times J2's overlay receipt arrives and the delivery record closes. {+Erase a subject between a judge's hold decision and its append: the hold is decided again and stores nothing erased.+} The test must fail on a notification sent after the update, outside the transaction, and on a record that carries content, which brings an erased fact back. 4. *Supersede, retract and confirm.* A moved meeting and a wrongly recorded date give the answers of Figure 2; a restated fact, and a tool reading its file, leave "last confirmed" where it was. 5. *The alarm fires on day one.* A burst of same-file, same-pass closures: the alarm fires on the first, and automatic closing pauses. 6. *Authority survives the write.* As in AuthMem (Zhan et al., 2026), pair facts that differ only in source and merge each into an owner fact. Pass: the third-party twin never reaches an always-loaded file, the merged fact keeps the lower authority, and no dependent action runs unapproved. 7. *A failing judge.* Cut the judge off mid-session (trace step 4, T4) and let J5 retry while its requests are pending. Pass: every write lands in its row of Table 1, nothing unchecked closes a fact or touches an always-loaded file, and on the judge's return each pending request is resumed as a new attempt linked to its earlier receipt and ends terminal, as does a hold the owner approves. The test must fail on a retry that returns the cached pending receipt, which leaves F-0587 pending forever. 8. *An erase leaves no reachable copy.* Let facts about a made-up person reach every row of Table 3; seed a background worktree, a reflog entry and an unreachable object with their text; share one fact with a second person; start an index build; then erase (trace step 11). Pass: the epoch rises first and the old build is never swapped in; every row reports done, not present, or out of reach by name, J2's only after the old build's refusal (T19); every recorded object ID is gone; searches find only tombstones; every pointer resolves; an erased replacement does not reopen the fact it superseded; the checkpoint restores the shared fact, and with the backup target offline the row names the recovery gap. After restoring the pre-erasure backup, the store stays closed until the replay ends and nothing erased is readable. Later writes carrying an erased identifier must all be held; for a new alias or an identifier-free description, report the share held with its confidence interval and claim nothing beyond it. 9. *Restrictions {+and special classes+} hold for every reader.* Quarantine a planted entry from which a fact, a merged fact and a use key were derived: ordinary and show-hidden queries return none of the three, and only the audit view shows them. A narrower sub-agent's direct read of the store's files is refused (trace step 13). {+A session that read a planted web page writes only hypotheses. A health detail about a contact is not written; the same detail about the owner is, when he allows it.+} 10. *The outcome that counts.* The share of the owner's prompts that repeat a correction of a stored fact, with the gate and with the plain git store, on alternating weeks for eight. Pass: lower with the gate, the 95% interval for the difference excluding zero. One owner and one agent make this an exploratory estimate, not proof of a general effect.

### References

Anthropic [-(2026).-] {+(2026a).+} *Pricing.* Claude Developer Platform documentation, read 12 October 2026. <https://platform.claude.com/docs/en/about-claude/pricing>

### References

{+Anthropic (2026b). *Using agent memory* (memory stores). Claude Platform documentation, Managed Agents, read 21 October 2026. <https://platform.claude.com/docs/en/managed-agents/memory>+}

### References

{+Anthropic (2026c). *How Claude Tag works.* Claude documentation, read 21 October 2026. <https://claude.com/docs/claude-tag/concepts/how-it-works>+}

### References

{+Anthropic (2026d). *Claude's memory works everywhere, and you decide what's in it.* Claude blog, 25 August 2026. <https://claude.com/blog/claudes-memory-works-everywhere-and-you-decide-whats-in-it>+}

### A.3 The gate in pseudocode

[-RECORD(d, snap, req, prev): # one atomic append r <- receipt(d, snap, req, prev); append(r, delivery_record(r)); return r-]

### A.3 The gate in pseudocode

{+RECORD(d, snap, req, prev): # pending line or hold: same discipline as a commit for attempt in 1..3: tree <- tree_of(snap) + d.artifact + receipt(d, req, prev) + delivery_record(d) if update_ref("live", new = commit(tree), expect = snap): return receipt_of(tree) now <- read_live() if changed(d.read_set, snap, now): d <- DECIDE(d.candidate, d.writer, now) snap <- now # an erasure moves the epoch: decided again return receipt(HOLD(d.change, reason = "concurrent change"), ...)+}

### A.3 The gate in pseudocode

DECIDE(candidate, writer, snap): facts <- same_topic(snap) + near_neighbours(candidate) + always_loaded(snap) read_set <- revisions(facts) + marks_version(snap) + snap.epoch cls <- span_class(candidate.evidence) # J1 span: owner, or quoted -> third_party if suppression_check(candidate) != CLEAR: # identifiers, links, uncertain match return HOLD("erased subject", read_set) {+if banned_class(candidate): return REFUSE("class") # §8.6, the list J1 also reads+} verdict <- judge(candidate, facts, tool_results_this_turn(candidate.subject)) if verdict is TIMEOUT: return route_by_failure_matrix(candidate, read_set) # Table 1 change <- outcome(verdict.relation) # Table 2 change.authority <- min_authority(candidate.parts, writer.delegated, [-cls)-] {+cls, HYPOTHESIS if writer.session.tainted else None) # §5.1+} change.restrictions <- union(restrictions(candidate.derived_from)) # quarantine if needs_hold(change, verdict, risk_class(change)): return HOLD(change, read_set) return COMMIT(change, read_set) ```

### A.4 The transitions this paper owns

{+### A.4 The transitions this paper owns+}

### A.4 The transitions this paper owns

{+This paper owns T4, T7, T8, T11 and T14; it receives T3 and T5, and sends T6, T9, T12, T15, T17, T18 and T22 to T24 (J5 Appendix B, the table of 24 transitions). Each is cited where it is designed.+}

### A.4 The transitions this paper owns

_J-series paper J14 | Version [-2.3-] {+2.4+} | [-2026-10-12_-] {+2026-10-21_+}
