# MNEMOSYNE: One Check on Every Memory Write: v2.1 → v2.2

From v2.1 (12 Oct) to v2.2 (12 Oct): 10,120 words to 10,026 words, 2,456 words in new or rewritten paragraphs and 2,550 taken out, 127 paragraphs changed.

## Change note of v2.2

**Tighter text; a write now publishes a whole snapshot or nothing**

A quarter of the text changes, most of it cuts: the abstract drops to 230 words and the introduction to 600. The commit rule is restated: a write publishes a complete new snapshot of the store, or nothing, instead of a swap with a replayable receipt. The section on erasing and quarantining grows from 505 to 801 words, and the list of contributions is removed from the introduction. A note left in the folder after this version asks to re-check every pointer into the companion papers once those are revised.

## Changed paragraphs

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

### Abstract

Think of a good assistant's notebook. When your weekly call moves to Thursday, she strikes the line that said Wednesday, writes Thursday beneath it with the date and who told her, and if [-the new note-] {+it+} clashes with something pinned to the first page, she asks you first. Years later [-the notebook-] {+it+} is still worth [-trusting, because-] {+trusting:+} every line says where it came [-from-] {+from,+} and nothing changed behind your back.

### Abstract

AI agents keep notebooks [-too:-] {+too,+} memory files they edit [-with ordinary file tools,-] during a [-conversation, overnight,-] {+conversation+} or [-on another agent's word.-] {+overnight.+} But one careless write can mislead every [-turn that follows. An-] {+later turn: an+} old line [-in a file the agent reads on every turn-] can contradict a standing rule, {+or+} a guess can come back [-weeks later-] as [-if it had been seen, a sentence from a web page can turn into an instruction, and a clean-up can hide facts that never changed.-] {+fact.+}

### Abstract

We propose MNEMOSYNE: the memory store can be changed only through one [-gate,-] {+gate. It compares each write with the same-topic facts+} and the [-gate decides every write. It compares the new text with the facts on the same topic and with the-] rules [-the agent loads-] {+loaded+} on every turn, a small model names the relation, and only that judgement may retire an old fact, which [-stays in the file-] {+stays, marked+} with [-the reason-] {+why+} it ended. When the judge is down or the change is risky, the write waits where the owner can see it.

### Abstract

In your own assistant, a correction made once stays made, [-a rule on the first page beats an old note,-] and you can [-still-] ask what was true last month and what the agent believed at the time. This is a design, [-and §12 names-] {+with+} the tests that would [-show it works.-] {+decide it.+} If it holds, an agent's memory becomes something you can audit like a notebook and trust like one.

### 1. Introduction

An agent that serves one person for months learns things the way an assistant does: the person says something once and expects it to stick. The meeting [-moved. The-] {+moved; the+} supplier prefers calls before noon. [-Replies go out in the language the owner wrote in. The agent writes these down, and on a later day it reads them back and acts on them.-] Every serious agent harness now has a version of this: a directory of memory files the model edits through a tool (Anthropic, 2025), a git repository of Markdown files that a background agent tidies (Letta, 2026), or a store of facts extracted from each conversation (Chhikara et al., 2025; Rasmussen et al., 2025).

### 1. Introduction

And the hard part of [-memory, it turns out,-] {+memory+} is not [-storing. Disks are cheap and-] {+storing:+} a full session record can be kept word for word. The hard part is that the store is written by many hands at many moments, and one careless write can poison every turn that follows. Four failures recur, and each one shaped a choice in this paper.

### 1. Introduction

*A write that contradicts a rule in another file.* A line in the index [-file, written months ago,-] {+file+} restates one of the owner's preferences in shorthand. [-The owner-] {+He+} later refines [-the preference, and the agent records the new version-] {+it+} in the rules [-file. Both files are-] {+file, and two texts+} loaded on every [-turn, so two always-present texts-] {+turn+} now [-disagree, and the agent follows whichever it weighs more that day.-] {+disagree.+} A check against the nearest stored memories misses this: the two lines sit in different files, months apart, in different words.

### 1. Introduction

*A fact that has forgotten where it came from.* The agent runs one query, gets nothing back, and writes down that a certain kind of item does not exist. Weeks later it repeats the negative [-to the owner with the confidence of something-] {+as if+} it had [-seen.-] {+seen it.+} Zhan et al. (2026) [-measured-] {+call+} this [-across seven memory systems and called it-] authority collapse: consolidation keeps the claim and drops the conditions under which it may be used.

### 1. Introduction

*A retire rule with no judge.* A store that [-keeps history marks old facts as replaced. If it-] decides "replaced" by position (same file, same [-line range,-] {+lines,+} new [-text),-] {+text) lets+} two fragments of one [-long-] note [-can-] retire each other [-in a single pass-] although neither [-changed. Nothing-] {+changed, and nobody+} counts these [-closures, so the store hides true text for weeks and nobody is told.-] {+closures.+}

### 1. Introduction

*A correction written beside the error.* The easy edit [-is to append-] {+appends+} "this is wrong, see below". The wrong line stays, still reads as a plain statement, and an agent that reads only the first match picks it up again.

### 1. Introduction

But none of these is fixed by a better retriever. They happen at the moment of writing, and they are hard [-for four reasons:-] {+because+} the writers are many (a live turn, a nightly pass, the owner [-editing-] by hand, other [-agents);-] {+agents),+} the contradictions that hurt [-are-] {+sit+} between files and against standing rules, [-not between near neighbours;-] deleting the old version destroys the history that would explain what [-happened;-] {+happened,+} and judging whether two sentences conflict takes a language model on every write, which costs [-money, time,-] {+money+} and sometimes fails.

### 1. Introduction

[-The contributions, each with the section that argues it:-]

### 1. Introduction

[-1. *A-] {+The contributions are a+} gate the store cannot [-bypass*,-] {+bypass,+} with a [-failure matrix that says what happens to-] {+policy for+} each kind of write when [-the judge or the store-] {+something+} fails [-(§5). 2. *A-] {+(§5); a+} comparison set that includes the always-loaded [-rules*, judged into a closed set-] {+rules (§6); facts with stable IDs, published as whole snapshots, that end in one+} of [-relations (§6). 3. *Facts with a stable identity and a commit protocol*: an ID and a revision per fact, a compare-and-swap write with an idempotent receipt, and-] three distinct ways [-a fact can end: superseded, retracted, erased (§7). 4. *Closing-] {+(§7); closing+} earned per risk [-class*-] {+class+} on held-out [-data, with an alarm on suspicious closures (§7.5, §7.6). 5. *Source,-] {+data (§7.5); source,+} authority and evidence as [-three-] separate [-fields* (§8). 6. *A-] {+fields, with dependency links (§8); and a+} cost model that [-counts-] {+prices+} the judge's [-errors*, not only its price-] {+errors+} (§10).

### 1. Introduction

This paper is a design for the next build; it reports no results. [-The name-] MNEMOSYNE, the Greek goddess of [-memory and mother of the Muses,-] {+memory,+} is {+only+} a [-handle and not an anchor.-] {+name.+}

### 2. Where this sits

This is one of four designs for an agent's memory: keeping (the keeping paper, J1), writing (this paper, J14), finding (the finding paper, [-J2),-] {+J2)+} and learning (the learning paper, J5). [-J1 keeps every session word for word and decides what survives the context window. J2 finds the right fact fast. J5 turns repeated corrections into rules and moves them from text to code.-] This paper owns what enters long-term memory, from the choice to write [-at all, in-] {+to the shape and checks of+} what [-shape, and under which checks; it names the other stages in one line where their ground begins.-] {+is written.+}

### 2. Where this sits

[-Several systems already act at write time. We keep what works in each and say what we change.-]

### 2. Where this sits

{+Several systems already act at write time.+}

### 2. Where this sits

*Mem0* (Chhikara et al., 2025) extracts candidate facts from each exchange, retrieves the most similar stored memories (ten in its experiments), and has a model choose to add, update, delete or do [-nothing; its graph variant marks contradicted relationships invalid instead of removing them.-] {+nothing.+} We keep [-the core move, a model choosing from a-] {+that+} closed [-set. We-] {+choice,+} add the always-loaded rules to the comparison set, because the contradictions that hurt most are not near neighbours (§6), and [-we-] turn delete into an ending that keeps the line (§7).

### 2. Where this sits

*Zep and Graphiti* (Rasmussen et al., 2025) store facts as edges in a temporal [-graph. A model compares each new edge with semantically related edges;-] {+graph;+} a contradicted edge is invalidated by setting its end time, and every edge carries two timelines, when it held in the world and when the system ingested it. We adopt the two timelines [-outright-] (§7.3). {+Graphiti also stores each ingestion as an episode and links the entities extracted from it back to that episode (Zep, 2026); our dependency links extend the idea to use keys, rules and test fixtures, so an erasure can follow them (§8.1).+} Our unit is a line in a human-readable file, [-the file is the ground truth,-] and any database is a cache rebuilt from it.

### 2. Where this sits

*Letta's MemFS* (Letta, 2026) is the closest product to our file [-layer. Memory-] {+layer: memory+} is a git repository of Markdown files that the agent edits as a local checkout with ordinary file tools; files at the memory root are loaded on every turn; [-an-] {+directories with their own+} index [-file lists directories that-] stay out of context until needed; every edit is a commit; and background memory agents edit in separate git [-worktrees so they do not block the main agent.-] {+worktrees.+} We take the isolated background edit for the nightly pass {+and add the publication rule it needs+} (§7.2). Its documentation describes no semantic check on a write, no comparison with the always-loaded files, no source on individual facts and no count of closures; those are what this paper adds.

### 2. Where this sits

*Anthropic's memory tool* (Anthropic, 2025) runs on the client: the model requests a file operation [-(view, create, replace, insert, delete, rename)-] and the application executes it against storage it [-controls. Validation is-] {+controls, with path validation and what may be stored+} left to the application. That makes the tool handler the natural home for the gate (§5).

### 2. Where this sits

*A-MEM* (Xu et al., 2025) [-builds each memory as a note with keywords, tags and links, and-] lets a new note update the descriptions of old ones. Our use keys [-come from the same-] {+share its+} instinct (§9.4); we decline the automatic [-rewrite of old notes,-] {+rewrite,+} since a [-stored-] fact here changes only through a [-judged, recorded-] {+judged+} revision.

### 2. Where this sits

*ROAM* (Zheng et al., 2026) classifies each pair of new and stored atomic facts as independent, equivalent, subsuming or conflicting, and [-keeps one primary view with the rest as evidence. Its-] {+its+} relations map almost one to one onto our judge's (§6.2). We add two [-it-] {+that a store without standing rules or untrusted sources+} does not [-need, because its store has no standing rules and no untrusted sources:-] {+need:+} a clash with an always-loaded rule, and third-party text that would act as an instruction.

### 2. Where this sits

*Authority collapse* (Zhan et al., 2026) appeared in 48 of the 49 configurations their benchmark tested, and persisted authority labels brought the unauthorised-action rate in their end-to-end test from 16.9% to zero. §8 makes such labels decide what a fact may become. *MINJA* (Dong et al., 2025) shows that an attacker can plant records in an agent's memory through ordinary queries alone; §8 and §7.7 are the write-side answer. *Context collapse*, the loss of detail under repeated rewriting, is [-covered by-] the keeping [-paper-] {+paper's+} (J1 §1.3, what summaries lose); the gate's answer to it is the delta rule (§9.5).

### 3. One write, start to finish

![One correction through the gate. The [-owner's sentence is already in the session record at a fixed address. The live turn asks to add a line; the-] gate reads the meetings file at revision 41, the always-loaded rules and the {+same turn's+} calendar [-result from-] {+result, and+} the [-same turn. The-] judge names the relation "replaces". [-Because the-] {+The+} replacement is the owner's own words, {+so+} the old fact [-can be closed-] {+closes+} at [-once; the commit succeeds-] {+once, published+} only if {+nothing+} the [-file is still at revision 41.-] {+gate read has changed.+} The old fact keeps its ID and gains an end date; the [-new fact gets its own ID; the-] receipt [-records-] {+names+} both {+snapshots+} and the [-status the agent may report: accepted.](images/fig1-one-write.png){width=100%}-] {+status: accepted.](images/fig1-one-write-v22.png){width=100%}+}

### 3. One write, start to finish

The keeping stage has [-already-] stored the owner's message as entry 118 of the session record, [-with-] his words [-separated-] {+apart+} from any wrapper [-the harness added-] (J1 §4.1, what goes in, and with whose [-name). The-] {+name), and the+} live turn asks [-the write tool-] to add a line to the meetings [-file and cites-] {+file, citing+} that entry. The gate reads the meetings file at revision 41, where fact F-0412 says the call is on Wednesday; it reads the always-loaded files, which say nothing about the call; and it sees the calendar lookup from the same turn, which shows Thursday. The judge answers: *replaces*. The old fact was told by the owner, and so is its replacement, so the closure needs no further approval. The [-commit applies-] {+change is published+} only if {+nothing+} the [-file is still at revision 41.-] {+gate read has moved.+} F-0412 gains a second revision with an end date of 8 March and a pointer to F-0587, the new fact, which carries "told by the owner", true since 8 March, recorded 9 March. [-A receipt records all of it.-] Nothing was deleted, and a question about last week still has its answer.

### 3. One write, start to finish

A few words carry the rest of the paper. A *fact* is one claim about the world, with an ID; a line in a file is how it is shown. A *rule* is an instruction about behaviour; where it lives is the learning paper's ladder (J5 §5, the binding ladder). An *always-loaded file* is one the harness puts in front of the model on every turn; the *index file* is the always-loaded head of the store, one pointer per topic or owned asset. The [-*memory store* is the set of fact files, read when something asks. The-] *owner* is the person the agent [-serves. A-] {+serves; a+} *receipt* is the record the gate leaves for each decision.

### 3. One write, start to finish

[-The series follows one correction through four stages, and the agent may say only the status it has reached: *captured* (J1), *accepted* or visibly *held* (this paper), *retrievable* (J2) and *active* or *enforced* (J5). This paper owns the step from captured to accepted: the gate either commits a fact with an ID and a revision, or leaves a hold the owner can see. A committed fact is not yet retrievable; J2 says when it is (J2 §8.2, becoming retrievable), and the learning paper runs the replay of the whole journey (J5 §10, one correction, start to finish; J5 Appendix B, the replay matrix).-]

### 3. One write, start to finish

{+The agent may name only the status a correction has reached: *captured* (J1), *accepted* or visibly *held* (this paper), *retrievable* (J2), *active* or *enforced* (J5). The statuses are dimensions, not a strict chain. This paper owns the move into accepted. One adversarial journey, the series' reference trace (J5 Appendix B, the reference trace), fixes every stage's behaviour; this paper's transitions are its steps 4 to 7, 9, 11 and 13, cited where each is designed.+}

### 4. Choosing what to write

The write stage starts with the choice to write at all. J1 keeps every session word for word, so a detail left unwritten stays in the record, a search and a read away. A line in the store earns its place when it saves later sessions that search. In J2's notation (J2 §7.1, a read costs a turn), let $q_{90}$ be the probability that some session in the next ninety days needs the detail; a line pays when $q_{90}$ times the cost of digging [-the detail-] {+it+} out of the record (two turns at least) exceeds the cost of keeping and checking one line (§10). What the owner states about his world passes easily, [-since it is needed again almost by definition-] and [-cannot be derived from anything else;-] so do observations that took real work to get. The passing state of the task fails, and content still on disk gets a pointer, never a copy.

### 4.1 What a live turn writes

A live turn writes at once in three cases, because waiting for the night would leave the store wrong for the rest of the day: the owner states a fact or a preference; a tool result disagrees with a stored fact (§8.4); or the turn makes a decision, written with its reason. Everything else waits for the nightly pass. [-When-] {+An owner's correction is sorted first by+} the [-owner corrects the agent, J5's cause table sorts the correction first-] {+learning stage+} (J5 §3.2, sort by cause): a correction about behaviour becomes a rule {+proposal+} there, and a correction of a wrong fact comes here as a supersede or a retraction (§7.3).

### 4.1 What a live turn writes

A session flagged temporary writes nothing here (J1 §4.7, sessions that are never kept). [-No fact, proposal or pending line is drawn from its record, and the-] {+The+} gate refuses any candidate whose evidence address points into one.

### 4.2 What the nightly pass picks out

The nightly pass reads the day's session records, never the compaction markers, since a summary of a summary has already lost detail (J1 §5.4, written from the record, never from the last marker). It skips every record flagged temporary, [-and that includes a temporary session-] {+including one+} still open past [-midnight, which the pass can see but draws nothing from.-] {+midnight.+} A model returns candidate facts, each with the record addresses it rests on (J1 §4.2, addresses that never move); a candidate with no address is a guess and is dropped. [-The pass-] {+It also+} looks for [-facts no live turn wrote down,-] lines [-written in a hurry-] that bundle [-several-] claims or sit in the wrong file [-(§9), lines left in the pending area (§5.3),-] {+(§9)+} and layout changes proposed by J2 (§9.2). It works on an isolated copy of the store and publishes through the gate (§7.2), in event-time order, with a cap per topic per night; candidates past the cap go to the owner as proposals (J5 §7.5, the morning report).

### 5.1 A gate the store cannot bypass

The gate is code, placed where every write already passes, because a rule in a prompt binds weakly (J5 §1.2, why the obvious fixes fail). It is the only writer the storage accepts: the memory store and the always-loaded files belong to the gate's own service account, and [-every other process,-] the [-agent's file tools and its shell included, can read them and nothing more. The-] agent's write tool is a request to the gate, as Anthropic's client-side memory tool already is. A script that tries to write a memory file directly fails at the file [-system, so no indirect path can skip the check.-] {+system.+}

### 5.1 A gate the store cannot bypass

{+Reading is split the same way. Only full-scope processes (the owner's own sessions, the gate, the nightly pass) may read the store's files. A narrower reader, a sub-agent with a smaller scope or a chat that includes other people, runs without the checkout and reads only through the finding stage's filtered read service (J2 §8.1, filters in a fixed order); its direct file read is refused (trace step 13).+}

### 5.1 A gate the store cannot bypass

Where a deployment cannot separate accounts, the claim narrows to *mediated* [-writes, and-] {+writes:+} a watcher [-closes the gap as well as it can: it-] compares each file with the gate's last [-commit,-] {+snapshot+} and {+moves+} any change the gate did not make [-is moved-] to the pending area of §5.3 as an unchecked edit, with a [-receipt that names it.-] {+receipt. Such a deployment cannot confine a narrower reader, so it runs none.+}

### 5.2 Every writer, one gate

- *A live turn.* The [-check runs before the write lands, and the-] verdict comes back as the tool [-result, so the agent sees "superseded F-0412" or-] {+result ("superseded F-0412",+} "held: clashes with the reply-language [-rule" and-] {+rule"), so the agent+} can tell the owner. - *The nightly pass.* Same check, [-applied to-] {+on+} its isolated copy and again at publication (§7.2). - *The owner by hand.* He edits a [-checkout of the store,-] {+checkout,+} and saving [-it-] publishes through the [-gate.-] {+gate with his authority.+} He is never blocked: [-the gate applies his change with his authority, and any-] {+a+} clash [-it finds-] is shown to him at once and listed [-for him-] the next [-day (J5 §7.5, the morning report). He-] {+day, since he+} may have forgotten a rule [-he wrote three months ago,-] or [-he may-] mean to change [-it; that-] {+it. With the judge down, his edit+} is [-his call.-] {+applied and marked unchecked until judged (trace step 5).+} - *Another agent.* A sub-agent or a sibling session writes through the same gate with its own authority [-(§8.2). A write into another agent's memory also crosses a privacy line, so facts about third parties are scrubbed or refused there.-] {+(§8.2).+}

### 5.3 When something fails

[-The check is synchronous: the write waits for one call to a small model, a small share of a turn that already makes many tool calls.-] When the judge cannot answer (a timeout, a provider error, a quota limit), [-availability must not switch the safety boundary off, so-] the gate never applies an unchecked change to anything that is read as authority. Ordinary candidates go to a *pending area*: a separate file per topic, readable with an "unchecked" label, never loaded on every turn, never used to close or contradict anything, and judged again {+on the current snapshot+} when the judge returns. Everything that can do damage stays held. Table 1 is the whole [-policy.-] {+policy; trace step 4 runs it.+}

### 5.3 When something fails

| Write | Judge answers | Judge down or out of time | |---|---|---| | New [-fact,-] {+fact+} or {+rule line, or added+} detail [-added to a fact-] | Committed: *accepted* | Pending area, unchecked: [-*pending*-] {+*pending*, said as "captured, acceptance pending"+} | | Closure (supersede or retract) | Risk policy of §7.5: *accepted* or *held* | *Held*; the old fact stays live | | Change to an always-loaded line | *Held* for the owner (J5 §7.4, approval, and who may loosen) | *Held* | | Whole-file rewrite, file merge or split, delete | Delta check (§9.5), then *accepted* or *held* | *Held* | | Owner's own edit | Applied; a clash is shown to him | Applied, marked unchecked until judged | | Erase for privacy (§7.7) | Runs in full | [-Exact matches erased; paraphrase sweep waits: *erase incomplete*-] {+Runs in full: it follows links and needs no judge+} |

### 5.3 When something fails

: What the gate does with each kind of write, and the status it [-reports.-] {+reports. A pending receipt is not acceptance.+}

### 5.3 When something fails

[-A concurrent change, or a crash between verdict and commit, is settled by the commit protocol (§7.2). In every case the agent reports the status the receipt shows, so a pending or held write is never described as remembered.-]

### 5.3 When something fails

{+In every case the agent reports the status the receipt shows, so a pending or held write is never described as remembered. J5's rule ledger sits outside this store and holds learning proposals only (J5 §4.1, one row per rule); a rule line is accepted only through this gate, and is pending like any other line while the judge is down.+}

### 5.4 Receipts

Every decision writes a receipt (Appendix A.2): the write key, the [-file revision it was judged against-] {+snapshot read+} and the one [-it-] produced, {+the erasure epoch,+} the relation, the policy that applied, the facts touched, the judge's [-confidence-] {+version+} and [-version, the time taken,-] {+confidence,+} and the status. The health of the gate is read from receipts: [-writes per day,-] outcomes by kind, holds [-waiting,-] {+and+} pending lines waiting, closures [-split-] by risk class. A day on which the agent wrote memory and no receipt exists is an [-alarm, under the series rule that a zero must mean zero-] {+alarm+} (J5 §9.1, a receipt for every run).

### 6.1 Three sources, not the nearest neighbours alone

*The always-loaded files.* All of them. They are small by design, [-since they cost context on every turn,-] and a wrong line there is read by every task. [-This is the source that nearest-neighbour-] {+Nearest-neighbour+} checks [-miss:-] {+miss this source:+} a terse index line and a sentence of instruction rarely look alike to an embedding, yet they can govern the same behaviour.

### 6.1 Three sources, not the nearest neighbours alone

[-*What the current turn observed.* Tool results from the same turn that mention the subject. If the agent writes "the store has no items of kind X" in the turn in which a query returned items of kind X, the gate sees both.-]

### 6.1 Three sources, not the nearest neighbours alone

{+*What the current turn observed.* Tool results from the same turn that mention the subject. A negative written in the turn whose query returned the opposite is caught at once.+}

### 6.2 Relations and outcomes

| Relation the judge names | Outcome | [-|---|---|-] {+|-------|---------|+} | New: nothing stored says this | Add a fact with a new ID | | Same: already stored | No new revision; add the evidence [-address, refresh-] {+address;+} "last confirmed" {+moves only on independent evidence (§8.5)+} | | Adds detail: compatible, more specific | New revision of the same fact; the earlier revision and its evidence stay in history | | Replaces: same subject, the world changed | Supersede: the old fact's valid time ends at the event date (§7.3) | | Was wrong: the old claim was never true | Retract: the old fact is marked never true (§7.3) | | Conflicts, unclear which is right | Both live, both marked "in conflict"; question to the owner | | Clashes with an always-loaded rule | Held for the owner {+(trace step 9)+} | | Third-party text that would act as an instruction | Stored only as a quoted claim, never in an always-loaded file |

### 6.2 Relations and outcomes

A clash with a rule is held because rules are the owner's: either the new fact is wrong or the rule is out of date, and only he can say which. A conflict with no clear winner keeps [-both versions, because-] {+both, since+} dropping either loses information. Both questions reach [-the owner-] {+him+} through one channel (J5 §7.5, the morning report).

### 6.3 The judge

The judge is a small, fast model that answers only in typed choices: the relation, the fact it refers to, and a confidence. It writes no free text for the gate to parse. [-Jev, a small model built to answer in typed choices,-] {+Jev+} is one such judge (TypeSafe AI, 2026); any model that returns a closed choice will do. Its instructions [-describe the relations above,-] give contrasting examples of [-each, and say what counts as the same subject;-] {+each relation;+} the exact wording lives with the [-code and changes as the judge improves.-] {+code.+} People facts sent to a third-party judge carry opaque identifiers ("P17: good at sourcing specific hardware"), never names or contact [-details. How its thresholds are set is §7.5.-] {+details.+}

### 6.3 The judge

The brain draws a similar line. Recalling a memory can open it for change, and in fear memory it opens only when the recall brings a prediction error (Sevenster et al., 2013). [-A-] {+Here too a+} write that matches what is stored changes [-nothing but a date;-] {+no claim;+} only a {+named, recorded+} mismatch [-can change a stored fact, and here the mismatch is named and recorded.-] {+can.+}

### 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 it is first accepted, never reused, and every change to its claim adds a revision. Each revision is immutable and carries its evidence addresses, its {+links (§8.1), its+} two clocks and its 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 record behind Figure 1:

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

``` fact F-0587 revision 1 status: accepted claim Weekly supplier call is on Thursday topic meetings file revision meetings.md@42 source owner authority owner fact evidence direct addresses s0309#118 (owner's words), s0309#121 (calendar) valid from 2026-03-08 to (open) recorded 2026-03-09 10:42 replaces F-0412 (now revision 2: superseded, valid to 2026-03-08) receipt W-0309-031 [-correction C-0309-007-] {+(read S-311, wrote S-312, epoch E3)+}

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

One format everywhere, so ad hoc markers ("WRONG", "see below") never appear: they cannot be counted or queried. A merge of two facts [-into one-] ends both by supersede and points to the new ID; a split gives each part a new ID that points back.

### 7.2 Commit: compare and swap, with a receipt you can replay

[-### 7.2 Commit: compare and swap, with a receipt you can replay-]

### 7.2 Commit: compare and swap, with a receipt you can replay

[-A verdict is only valid for the file it was judged against, so the commit is a compare-and-swap (Appendix A.3). The gate records the file revision it read; it applies the change only if the file is still at that revision, writing the new file, the new revisions and the receipt in one atomic step (a write to a temporary file and a rename, or one git commit). If another writer got there first, the gate re-reads the file. When the change touched nothing in the comparison set, the delta is applied to the new revision; when it did, the judge is asked again. After three attempts the write is held as a concurrent change, never forced.-]

### 7.2 Commit: compare and swap, with a receipt you can replay

[-Every write carries a *write key*, a hash of its evidence addresses, its target topic and its text. A retry after a crash or a timeout sends the same key, and the gate returns the receipt it already has. A write is applied once or not at all.-]

### 7.2 Commit: compare and swap, with a receipt you can replay

[-The nightly pass and other background writers work the way MemFS's background agents do: on an isolated copy, each change judged there. Publication is a second compare-and-swap against the live store, change by change, so a correction the owner made during the night is never overwritten by a pass that started before it. The published changes appear in the morning report.-]

### 7.2 Commit: compare and swap, with a receipt you can replay

[-The store declares its schema version. The gate refuses to write to a store whose version it does not know, and a migration is itself a run of gated writes with receipts that keeps every earlier revision, so it can be undone.-]

### 7.2 Publish a snapshot, or nothing

{+### 7.2 Publish a snapshot, or nothing+}

### 7.2 Publish a snapshot, or nothing

{+A verdict is valid only for what it read. So the store is a git repository whose `live` reference names the current *snapshot*, and every decision records its *read set*: the revision of each file the gate read (the target, its siblings, the always-loaded files), the version of the reader-scope and quarantine marks, and the *erasure epoch*, a counter that every erasure or quarantine raises before it starts (§7.7). The change, the new revisions, their links and the receipt are written as one git tree, and publication is one checked reference update: `live` moves to the new commit only if it still names the snapshot the decision read (Appendix A.3).+}

### 7.2 Publish a snapshot, or nothing

{+If `live` has moved, the gate compares the read set with the new snapshot. When nothing in it changed, the change is re-applied on the new tip and published. When anything did (a compared rule, a scope, a quarantine, the epoch), the verdict is discarded and the whole decision runs again on the new snapshot, judgement and policy both: a verdict that compared against a rule the owner has since rewritten must never commit beside the new rule (trace steps 6 and 7). After three attempts the write is held as a concurrent change, never forced.+}

### 7.2 Publish a snapshot, or nothing

{+A *write key*, a hash of evidence addresses, target topic and text, makes a retry return the receipt already written, so a write is applied once or not at all. Each receipt names the snapshot it read and the one it produced. So does every index build of the finding stage, which checks the epoch before it swaps a new index in (J2 §8.3, manifests, restarts and rebuilds).+}

### 7.2 Publish a snapshot, or nothing

{+Background writers work in an isolated worktree, as MemFS's do, and publish change by change through the same checked update, so an owner's correction made during the night is never overwritten. The store also declares its schema version; the gate refuses a store whose version it does not know, and a migration is a run of gated writes that keeps every earlier revision.+}

### 7.3 Three ways a fact ends

- *Supersede*: the world changed. The call was on Wednesday and is now on Thursday. The old fact was true and stays true for its period; its valid time ends at the event date. - *Retract*: the claim was never true. A birth year recorded as 1971 was really 1977. Closing the old fact at today's date would say it used to be true, so a retraction marks [-the old fact-] {+it+} *never true*, keeps it as a record of what the agent believed, and points to the corrected fact. - *Erase*: privacy. The content goes; only a tombstone and the receipt stay [-(§7.7).-] {+(§7.7). An erased replacement never reopens the fact it superseded: the old fact stays superseded, and its replacement shows as erased (trace step 11).+}

### 7.3 Three ways a fact ends

Every revision carries two clocks, which Zep also [-separates (Rasmussen et al., 2025):-] {+separates:+} *valid time*, when the claim held in the world, and *recorded time*, when the agent held it. The supersede boundary uses the event date when the text gives one and the recorded date when it does not. [-The two clocks-] {+Valid time+} also [-fix-] {+fixes+} an ordering [-bug. If-] {+bug: an old note processed late by+} the nightly pass [-processes an old note ("the call is on Wednesday", valid from 2 February) after the live turn stored the Thursday fact,-] {+would look newest by+} recorded time [-alone would make the old note look newest-] and close the true [-fact. With-] {+fact; by+} valid time [-the gate sees that the incoming claim-] {+it+} is older and [-files it as-] {+goes into+} history.

### 7.3 Three ways a fact ends

A correction is always one of these operations on the wrong fact. A note appended below an untouched wrong line is [-refused: the judge names the relation, and its outcome is a supersede or a retraction, never an append.-] {+refused.+}

### 7.5 Only a judge closes, and only where it has earned it

*Sets kept apart.* The judge follows the series' three streams (J5 §9.2, three streams, kept apart). Its *development [-replay* is the calibration set:-] {+replay*,+} judged pairs drawn from [-the-] dated corrections [-already-] written by hand in a long-lived store, [-on which-] {+sets+} the confidence [-threshold is set.-] {+threshold.+} Its *regression suite* holds every known clash between an always-loaded line and a rule and every past false closure; a new threshold is used only if it passes all of them. The untouched side has two parts: a *held-out decision set* from a later, separate [-period, never seen during tuning,-] {+period+} decides whether a class may close on its own, and the *evaluation stream* of live closures, [-sampled and-] audited [-every month,-] {+monthly,+} checks [-that the decision still holds-] {+it+} and is never used to tune. Whoever adjusts the judge or its threshold never sees the labels of either.

### 7.6 Count every closure, and alarm on the suspicious ones

Every closure writes a receipt, and two patterns raise an alarm the first time they occur. One is a closure in which the old and new lines come from the same file in the same pass and the judge found no change of meaning: the signature of a retire rule by position, which this design never [-produces, so any instance means something outside the gate is closing facts.-] {+produces.+} The other is a burst, more closures in a day than a threshold set from the store's normal rate; a burst pauses automatic closing until someone looks, and heads the morning report.

### 7.7 Erase and quarantine

[-Two cases remove content from ordinary use, and they are handled differently. *Erase* answers a privacy request: the owner asks the agent to forget something about a person. *Quarantine* answers an attack: content shown to have been injected is evidence, so it is kept, flagged untrusted, kept out of ordinary retrieval and out of the context window, and shown only in an audit view; the facts built from it are retracted with the reason "injected". This paper decides which applies; how both look in the session record is J1's (J1 §4.4, erase and quarantine), where an erase redacts the entry and a quarantine only appends a flag and edits nothing.-]

### 7.7 Erase and quarantine

[-A fact file is rarely the only copy, so an erase runs over a *deletion manifest*: every place the content can live, each with its own completion status (done, not present, or out of reach, named).-]

### 7.7 Erase and quarantine

{+Two cases remove content from ordinary use. *Erase* answers a privacy request; *quarantine* answers an attack and keeps the injected content as evidence. This paper decides which applies; how both look in the session record is J1's (J1 §4.4, erase and quarantine).+}

### 7.7 Erase and quarantine

{+*Quarantine is a restriction, not a status.* The mark travels from the source entry by the links of §8.1 to every descendant: facts, use keys, rule revisions, test fixtures. A descendant may also be retracted with the reason "injected", which says the claim is false; the quarantine mark says who may see it, and neither replaces the other. A quarantined item stays out of ordinary retrieval and out of the context window, visible only in an audit view, and the finding stage's show-hidden mode never relaxes it (J2 §8.1, filters in a fixed order).+}

### 7.7 Erase and quarantine

{+*Erase.* The erasure first raises the epoch, so no verdict, background branch or index build that read the old state can publish (§7.2). It then follows the links from the entries the owner named to every descendant, never a semantic search, over a *deletion manifest* (Table 3) in which each place reports done, not present, or out of reach (trace step 11, which erases span 0 of the message and keeps span 1).+}

### 7.7 Erase and quarantine

| Place | Who acts | How | [-|---|---|---|-] {+|----------|--|---------|+} | Fact revisions, index-file lines, [-pending-area-] {+pending+} lines and holds | This gate | Every revision becomes a [-tombstone; IDs-] {+tombstone that keeps ID+} and [-dates stay;-] {+dates;+} pending lines and holds are dropped | | Session record entries, {+or the named spans of one entry;+} their [-blobs,-] {+blobs (per namespace, so a temporary session's blobs are separate);+} the controller's own transcript | J1 | Redacted at the same [-addresses-] {+addresses, span by span+} (J1 §4.4, erase and quarantine; J1 §4.5, one record, not copies) | | Compaction markers | J1 | Rebuilt from the redacted record (J1 §5.4, written from the record, never from the last marker) | | Text and asset indexes, fresh [-writes-] {+writes, use keys+} | J2 | Rows [-dropped and rebuilt from-] {+dropped; a build started before+} the [-cleaned sources-] {+epoch rose is never swapped in+} | | Rule evidence, rules and test fixtures | J5 | Through J5's deletion interface (J5 §4.3, concurrent writes, isolated nights, and [-erasure); a rule resting only on erased evidence goes back to the owner-] {+erasure)+} | | Receipts {+and version history+} | This gate | [-Hold-] {+Receipts hold+} IDs and addresses, never content; [-any quoted text-] {+history+} is [-redacted-] {+rewritten+} | | [-Version history and backups-] {+Backups+} | This gate | [-History rewritten; immutable backups hold person facts under-] {+The subject's key is rotated and the old one destroyed;+} a [-per-person key, which-] {+backup written in+} the [-erase destroys-] {+clear is listed with its expiry+} | | Active sessions and provider state | J1 | Through the window controller's adapter (J1 §6.6, the adapter [-contract; J1 Appendix C);-] {+contract);+} a provider copy [-that cannot be reached-] {+out of reach+} is named, with its retention terms |

### 7.7 Erase and quarantine

[-: The deletion manifest. Erasure is reported complete only when every row is done or named out of reach.-]

### 7.7 Erase and quarantine

[-Later writes about the same person must not slip back in. The gate keeps a *suppression identity*: a keyed hash of the person's identifiers (name, address, phone), never of the content, computed with a secret only the gate holds and stored where only the gate can read it. Every candidate write is checked against it, so a later write about the same person is held for the owner however it is worded. Other stages never read the identity. The gate offers them one match-only call: a candidate goes in, *held* or *clear* comes out, and neither the hash nor the identifiers leave the gate. The learning stage's night pass makes that call before it uses any record as evidence (J5 §4.3, concurrent writes, isolated nights, and erasure). A keyed hash cannot be confirmed by guessing without the key, which a plain hash of a short string can.-]

### 7.7 Erase and quarantine

{+: The deletion manifest. Until every row has reported, the erase is *incomplete*; then it says "all reachable copies removed" and names the places out of reach. It never claims all copies.+}

### 7.7 Erase and quarantine

{+*Backups.* Deleting a live line does nothing to a backup, so a backup never holds a record about a person in the clear. Each record is encrypted when the backup is written, under a key per person it concerns; a record about several people is encrypted under a key derived from all of theirs, so destroying any one makes it unreadable. Records about no one use a store key. An erasure rotates the person's key and destroys the old one, which makes all of that person's records unreadable in every older backup; the next backup re-encrypts the ones still live. A backup written in the clear before this scheme, or by a tool outside it, stays on the manifest as out of reach until it expires or is destroyed.+}

### 7.7 Erase and quarantine

{+*Restore.* Tombstones, the epoch, quarantine marks and the suppression identity are kept outside the backups and restored from their newest copy. After a restore the store stays closed to every reader until all erasures, suppressions and quarantines up to the current epoch are replayed over it.+}

### 7.7 Erase and quarantine

{+*Later writes.* A new write must not bring erased content back. For each erasure the gate keeps a *suppression identity*: keyed hashes of the erased identifiers (names, phone numbers, addresses, after normalisation), computed with a secret only the gate holds, so a guess cannot be confirmed without it. That check is exact: a later write carrying one of those identifiers is held however it is worded. It cannot recognise a new alias, a pronoun or "the supplier we met yesterday". For those, a candidate whose links reach an erased entry is held, and an entity matcher compares the rest with a short sealed description of the person (role and relation to the owner, never contact details); a candidate it ties to an erased subject with less than full confidence is held as an *uncertain match*, never written. The guarantee covers these catches and no more; §12 measures what gets through. Other stages never read the identity; they call one check that answers *held* or *clear* (J5 §4.3, concurrent writes, isolated nights, and erasure).+}

### 8.1 Three fields, not one

[-### 8.1 Three fields, not one-]

### 8.1 Three fields and the links

{+### 8.1 Three fields and the links+}

### 8.1 Three fields and the links

How a text arrived says little about whether to trust [-it. A-] {+it: a+} web page [-arrives-] {+and the owner's calendar both arrive+} through a [-tool, and so does the owner's calendar.-] {+tool.+} So each fact carries three [-fields, and the transport is only part of its evidence address.-] {+fields.+}

### 8.1 Three fields and the links

- *Source class*: who authored the content. [-*Owner*, read-] {+*Owner* comes+} only from [-the owner's-words field of the session record-] {+spans that J1 marks with owner authority+} (J1 §4.1, what goes in, and with whose name), so a [-wrapper or-] {+wrapper,+} an injected instruction {+or a pasted line (a forwarded email's "ignore the previous rule")+} never gets [-this class;-] {+it; a quoted span is *third party*, a *quoted claim* with the source J1 attributes, taken from J1's span field and never re-derived;+} *owner's systems*, a system of record the owner controls, read directly (his calendar, his files, a command run on his machine); *agent*, its own conclusions; *third party*, a web page, an email, a document, another agent's text. - *Authority*: what the fact may become. *Instruction* (only the owner grants it), *owner fact*, *evidence*, *hypothesis*, *quoted claim*. - *Evidence quality*: how well the claim is supported. *Direct* (read off the source), *corroborated* (two independent sources), *inferred*, *assumed*, or *negative* (an empty result, with the query that produced it).

### 8.1 Three fields and the links

A browser result stays third party however the page was fetched. Reading a stored fact back does not confirm it: the store is not a [-source, and corroboration needs two sources that do not rest on the same record entry.-] {+source.+}

### 8.1 Three fields, not one

[-Who may read a fact, its reader scope, is set by J2 when it indexes the fact (J2 §8.1, filters in a fixed order). Who may write it, and the three fields above, stay with this gate.-]

### 8.1 Three fields and the links

{+*Links.* Every revision lists what it was derived from: record addresses and, for a merge or an added detail, the revisions of its parts. The finding stage writes the same links for use keys, and the learning stage for rule revisions and test fixtures; the schema is this paper's (Appendix A.1). Erasure and quarantine find descendants by following links, and confirmation (§8.5) uses them to tell new evidence from an echo. Who may read a fact is set by J2, and a derived item inherits the scope of its most restricted source (J2 §8.1, filters in a fixed order).+}

### 8.2 What each fact may become

The source class sets a ceiling on authority. Only the owner's words can become an instruction or enter an always-loaded file as a rule. Owner's systems give evidence; the agent gives hypotheses; third-party text is a quoted claim ("the vendor's page says the part ships in May") and never loses its quote marks. A sentence crafted to look like an instruction can get into memory as a quotation, but not into the place where the agent looks for instructions. Only the owner raises authority, by confirming a fact in his own [-words.-] {+words. A rule bound for an always-loaded file must also carry why it exists and when it does not apply (J5 §3.3, a correction carries its reason), or the gate holds it.+}

### 8.2 What each fact may become

Authority survives a change of form by taking the minimum. A merged fact, or a revision that adds detail, has the lowest authority among its parts, and keeps every part's [-evidence address,-] {+links,+} so a detail lifted from a web page cannot borrow the authority of the owner's sentence it was merged into. A sub-agent writes with the authority its parent delegated, never more.

### 8.3 No author

A fact says where its content came from, never which agent, session or model typed the [-line. The-] {+line: the+} writer [-tells the reader-] {+says+} nothing about whether to trust the [-claim;-] {+claim, and+} the three fields do. [-Memories, like skills, are shared by every agent that reads them, and an author field only invites the reader to weigh a fact by its writer.-] The session record keeps authors (J1 §4.1, what goes in, and with whose name); the fact [-keeps the source class and-] drops [-the writer.-] {+them.+}

### 8.4 When a stored fact meets an observation

When a turn reads a stored fact and a tool result in the same turn disagrees, the turn writes then and there, and the gate decides with the three fields, not by giving the newer text precedence. A direct reading from the owner's systems [-against-] {+closes+} a stored hypothesis or older evidence [-is a supersede or retraction-] under the low-risk policy of [-§7.5. Against-] {+§7.5; against+} an owner [-fact,-] {+fact+} it [-is-] {+opens+} a [-conflict: both stay live, the agent tells the owner what it saw, and the question goes to-] {+conflict for+} the morning report. Third-party text never closes a fact on its own; at most it opens a conflict.

### 8.5 Dates, confirmation, negatives and importance

[-Each fact carries a "last confirmed" date that a *same* verdict refreshes (§6.2). A fact confirmed again and again is worth more than one written once and never seen again, and the date says which is which without any learned score.-]

### 8.5 Dates, confirmation, negatives and importance

{+Each fact carries a "last confirmed" date. Meeting the same claim again is not confirming it. A *same* verdict adds the new evidence address, but the date moves only when that evidence is independent: of source class owner or owner's systems, not already among the fact's evidence, and with no link leading back to the fact itself. So an agent's restatement, or a tool reading the memory file, leaves the date in place.+}

### 8.5 Dates, confirmation, negatives and importance

Corrections and decisions are marked important when they are [-written, since the gate knows at that moment what it is writing.-] {+written.+} How the mark and the confirmation date weigh in ranking, and whether unmarked facts fade, is J2's (J2 §5.5, combining keys: one score).

### 8.6 A rule carries its purpose and its exception

[-### 8.6 A rule carries its purpose and its exception-]

### 8.6 A rule carries its purpose and its exception

[-What a rule must carry is J5's to say (J5 §3.3, a correction carries its reason): why it exists, and when it does not apply. The gate enforces those fields on the write and holds a rule for an always-loaded file that lacks either. A fact needs neither.-]

### 9. The shape of what is written

[-The check is only as good as what it reads.-] Five rules for the shape of the store make the comparison cheap, the ending of a fact exact and the files readable by a person (Figure 3).

### 9.2 One topic per file, and files hold what is read together

[-For an agent working through tools, reading a file costs a turn and the context it fills, so a-] {+A+} topic spread over five files costs five [-reads-] {+reads,+} and a file that mixes five topics fills the context with four it does not need. J2 sends this stage evidence about the layout: paths agents reach for that do not exist, and files read together often enough to merge (J2 [-§6.7, what the context already holds; J2-] §8, built ahead, kept current). Each becomes a proposed write through the gate, and a merge or split waits for the owner's review in the morning report.

### 9.3 The index file holds pointers only

The index file has one line per topic or owned asset, such as a skill or a [-machine. A line holds-] {+machine:+} a pointer and a short hook saying when to read the file, never the fact. A fact restated there is a second copy that does not change when the fact [-does; this is-] {+does,+} the first failure of [-§1. With pointers only, the index file cannot disagree with the files it points to, and-] {+§1, so+} the gate refuses an index line that carries a claim. This paper owns the shape of an index line; which topics get a [-line-] {+line,+} and in what [-order-] {+order,+} is J2's (J2 §4.3, the index [-file), and the gate checks every line written there, whoever generated it.-] {+file).+}

### 9.5 Edit by delta, never by wholesale rewrite

The gate accepts small edits: add a fact, revise one, end one. It holds a write that replaces a whole file unless every fact the old version had is accounted for: kept, revised, superseded, retracted or erased with a tombstone. A model asked to rewrite a file "more concisely" drops details it judges minor, and repeated rewrites compound the [-loss; the delta rule makes that loss impossible to commit by accident.-] {+loss.+}

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

A check [-is worth its price-] {+pays+} only if it saves more than it costs, [-and its costs include-] its own [-mistakes.-] {+mistakes included.+} We use the series' notation (J2 §7.1, a read costs a turn): a cached token is read at $r$ times a model's base input price and an output token costs $g$ times it; $\pi_s$ and $\pi_\ell$ are the base input prices of a small and a large model, in dollars per [-token.-] {+token. The symbols $p$, $\kappa$, $H_m$, $H_f$, $f_c$ and $f_h$ are local to this section.+}

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

*The price of a wrong turn.* [-A wrong fact in the store costs at least one wrong turn of the main model.-] With Claude Opus 5.5 at $\pi_\ell$ = \$4 per million, $r = 0.05$ and $g = 5$ (same page), re-reading a cached context of $L$ = 150,000 tokens and writing $o_t$ = 1,500 tokens:

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

*The price of the judge's errors.* [-Two mistakes cost something. A *false closure* hides a true fact; we charge it one wrong turn, $C_{\text{turn}}$.-] A *needless hold* costs the owner the time to read [-it-] and [-answer;-] {+answer it:+} at an assumed 20 seconds [-per item-] and an assumed \$60 an [-hour for his time,-] {+hour,+} $C_{\text{hold}} \approx [-\$0.33$,-] {+\$0.33$. A wrong fact that reaches a turn costs $H_m$ when+} the [-price-] {+gate missed it and $H_f$ when the gate created it by a *false closure*, which hides a true fact. Per write, $f_c$ is the rate+} of [-five or six wrong turns. Both rates are per write: $f_c$ for-] false closures and $f_h$ [-for-] {+that of+} needless holds.

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

*Break-even.* Let $p$ be the share of writes that would [-mislead, $c$-] {+mislead and $\kappa$+} the share of those the gate [-catches, and $n$ the wrong turns each miss causes.-] {+catches.+} The check pays when [-$p\,c\,n\,C_{\text{turn}}-] {+$p\,\kappa\,H_m+} > C_{\text{check}} + [-f_c\,C_{\text{turn}}-] {+f_c\,H_f+} + f_h\,C_{\text{hold}}$, so the break-even share is

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

$$p^{*} = \frac{C_{\text{check}} + [-f_c\,C_{\text{turn}}-] {+f_c\,H_f+} + [-f_h\,C_{\text{hold}}}{c\,n\,C_{\text{turn}}}.$$-] {+f_h\,C_{\text{hold}}}{\kappa\,H_m}.$$+}

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

[-With $c = 0.5$ and $n = 1$, the model's price alone sets $p^{*} \approx 1.6\%$: the check pays once about one write in sixty would have misled a turn. False closures add little under the bar of §7.5: if one write in five were an automatic closure (an assumption) and the bound held at 0.98, $f_c \le 0.004$ and $p^{*}$ rises to 2.4%. Needless holds are what decide. One needless hold per two hundred writes raises $p^{*}$ to about 8%, and one per hundred to about 13.5% (Figure 4).-]

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

{+We take $\kappa = 0.5$, and $f_c = 0.004$: if one write in five were an automatic closure (an assumption) and the bound of §7.5 held at 0.98. Three ways of pricing a wrong fact give the range (Figure 4).+}

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

{+- *Token floor.* Each wrong fact costs one wrong turn, $H_m = H_f = C_{\text{turn}}$. The price of the model alone sets $p^{*} \approx 1.6\%$, false closures raise it to 2.4%, and needless holds decide: one per two hundred writes gives about 8%, one per hundred 13.5%. - *Owner time.* Each wrong fact also costs the owner a minute to notice and correct (\$1), $H_m$ = \$1.06; a hidden true fact is noticed later and corrected twice on average (an assumption), $H_f$ = \$2.06. Now $p^{*}$ is 1.6% with no holds and 2.3% at one hold per hundred writes. - *A wrong external action* (a message to an old number, a missed call), at an assumed \$50 per miss and \$100 per false closure: $p^{*} \approx 1.6\%$ at any hold rate up to one per hundred.+}

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

![What the check must catch to pay for itself, [-once its errors are priced.-] {+under three prices for a wrong fact.+} The vertical axis is the share of memory writes that would mislead at least one turn; above a curve the check saves more than it costs. [-With no errors the small-model judge breaks even at 1.6% of writes. False closures at the rate the closing bar allows move that to 2.4%. Needless holds move it much further, because each one costs the-] {+Once+} owner time [-worth about five wrong turns.-] {+or an external action is priced, the curves flatten near 1.6%, a level set by the false-closure rate.+} Computed from Anthropic's published prices (October 2026), a judge that catches half the bad writes, [-one wrong turn per miss,-] {+false closures at the rate the closing bar allows,+} 20 seconds per [-hold and an-] {+hold, the+} owner's time [-valued-] at \$60 an [-hour.](images/fig4-error-costs.png){width=84%}-] {+hour, and the assumed costs in the legend.](images/fig4-error-costs-v22.png){width=84%}+}

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

[-Four design choices follow. The judge is a small model: the large model would cost forty times more per check. The comparison set stays tight, because its cost grows with every token. Holds are kept to the cases that need the owner: always-loaded lines, owner facts on someone else's evidence, conflicts and rule clashes. And the hold rate is measured as a first-class cost (§12, test 2), since it moves the bar more than the price of the model does. The estimate is still a floor in one direction: a bad line in an always-loaded file misleads every turn until someone corrects it, so for those writes $n$ is large and a single caught clash pays for many holds.-]

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

{+So the break-even share lies between about 1.6% and 13.5% of writes, and which error matters depends on what a wrong fact costs. At inference prices the holds decide, so holds are kept to the cases that need the owner. As the stakes rise, $p^{*}$ tends to $f_c H_f / (\kappa H_m)$, here 0.8% for each unit of the ratio $H_f/H_m$: the check pays only if it catches more harm than its own false closures cause, and the closing bar of §7.5 matters most where a wrong fact is most expensive. No price here makes a false closure tolerable in itself, and both rates are measured (§12, test 2). The judge stays a small model, since the large one costs forty times more per check.+}

### 11. Conclusions

[-An agent's memory goes wrong at the moment of writing, and the fix belongs there. MNEMOSYNE makes one gate the only way into the store and gives every fact an identity, a history and three fields that say where it came from and what it may become. A fact can end in three ways, superseded, retracted or erased; only a judge may supersede or retract it, on terms earned per risk class and checked on data the judge never saw, and only the owner's request erases it. When a part fails, the write waits where the owner can see it, and the agent reports the status its receipt shows. The notebook from the first paragraph becomes something an agent can keep: every line dated, every source named, every correction made once and kept, and nothing true erased without a trace.-]

### 11. Conclusions

{+An agent's memory goes wrong at the moment of writing, and the fix belongs there. The notebook from the first paragraph becomes something an agent can keep: every line dated, every source named, every correction made once and kept, and nothing true erased without a trace.+}

### 11. Conclusions

The design has limits. The judge's precision is unknown until it is measured, and {+whether holds or false closures cost more depends on what+} a [-judge that holds too often-] {+wrong fact+} costs [-the owner more than one that misses-] {+in a given deployment+} (§10). Topic links are only as good as the index file, so a fact filed under the wrong topic is compared with the wrong [-neighbours; the embedding backstop narrows that gap without closing it.-] {+neighbours.+} Where the [-deployment-] {+gate+} cannot [-give the gate-] {+have+} its own account, the guarantee covers mediated writes [-only,-] {+only. Suppression catches erased identifiers exactly+} and {+indirect references only as well as+} the [-watcher catches other changes after they land.-] {+entity matcher does.+} A provider that keeps a copy of a [-conversation-] {+conversation, or a backup written in the clear,+} can put [-that-] {+a+} copy out of reach of any erase; the manifest names it, which is all a client can do. And the gate does nothing for a fact that is stored correctly and never found; that is J2's problem, just as making a rule bind is J5's.

### 12. Next steps

The gate will be built and tested on our own [-agent, and an updated version of this paper will report what the tests found.-] {+agent.+} Every test that sets a threshold keeps the sets of §7.5 apart; the control arm is the same store and replay with the gate replaced by a nearest-neighbour check of the Mem0 kind (the ten most similar facts, add, update, delete or do nothing).

### 12. Next steps

1. *Catching the clashes that matter.* Replay each original write against the store as it stood that day: every case in the regression suite, and the later-corrected facts of the evaluation stream only. Pass: the gate flags every rule clash in the suite and at least half of the later-corrected facts, with precision of at least 0.9 on a hand audit, and beats the control arm on both. 2. *Closing and holding.* On the held-out decision set, measure each risk class against the bar of §7.5, and count needless holds {+and false closures+} per hundred writes. Pass: no class closes automatically below the bar, every threshold in use passes the regression suite, and needless holds stay under one per two hundred writes. 3. [-*Identity-] {+*Identity, concurrency+} and [-concurrency.*-] {+snapshots.*+} Index a file twice, split a long note, re-flow a [-file. Pass:-] {+file:+} zero [-closures-] {+closures,+} and every fact ID [-still-] resolves. [-Then run-] {+Run+} two writers [-with verdicts against the same revision,-] {+on one snapshot+} and kill the gate between verdict and [-commit. Pass:-] {+publication:+} one write wins, the other is [-re-judged-] {+decided again+} or held, and a retry with the same [-write-] key writes nothing new. {+Replay trace steps 5 to 7, where the owner rewrites a compared rule while a verdict is out: the late verdict is refused, judgement and policy run again on the new snapshot, and the receipt names it. Continue to step 9: the re-run holds R-43's line on its clash with the newer R-15@4.+} 4. [-*Supersede against retract.*-] {+*Supersede, retract and confirm.*+} Plant a moved meeting and a wrongly recorded [-date. Pass: "what was true on that day" and "what did-] {+date:+} the [-agent believe on that day"-] {+two questions about the past+} give the answers of Figure 2. {+Have the agent restate a stored fact and a tool read its file: "last confirmed" does not move.+} 5. *The alarm fires on day one.* Replay a burst of same-file, same-pass closures. Pass: the alarm fires on the first, and automatic closing pauses. 6. *Authority survives the write.* [-In the style of-] {+As in+} AuthMem (Zhan et al., 2026), pair facts that differ only in [-source, one told by the owner and one quoted from-] {+source (the owner, or+} a web [-page or another agent,-] {+page)+} 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 action that depends on it runs without the owner. 7. *A failing judge.* Cut the judge off [-mid-session.-] {+mid-session (trace step 4).+} Pass: every write lands in [-the-] {+its+} row of Table [-1 that matches it,-] {+1,+} nothing unchecked closes a fact or touches an always-loaded file, and the pending lines are judged {+on the current snapshot+} when the judge returns. 8. *An erase leaves no {+reachable+} copy.* [-Plant-] {+Let+} facts about a made-up [-person, let them-] {+person+} reach [-a fact file, a marker, both-] {+every row+} of [-J2's indexes, a rule's evidence-] {+Table 3, start an index build, then erase (trace step 11). Pass: the epoch rises first+} and [-a test fixture in J5,-] the [-history and a backup, and phrase some of them as paraphrases. Then erase. Pass:-] {+old build is never swapped in;+} every [-manifest-] row reports [-done-] {+done, not present,+} or [-names its place-] out of [-reach,-] {+reach by name;+} a search finds only [-tombstones,-] {+tombstones;+} every [-record-] pointer [-still resolves,-] {+resolves; an erased replacement does not reopen the fact it superseded. Restore the backup taken before the erasure: the store stays closed until the replay ends, and nothing erased is readable after it. Later writes carrying an erased identifier must all be held; for writes that name the person only by a new alias or an identifier-free description, report the share held, with its confidence interval, and claim nothing beyond it. 9. *Restrictions hold for every reader.* Quarantine a planted entry from which a fact, a merged fact+} and a [-later paraphrased write about-] {+use key were derived: ordinary and show-hidden queries return none of+} the [-same person-] {+three, and only the audit view shows them. A narrower sub-agent's direct read of the store's files+} is [-held. 9.-] {+refused (trace step 13). 10.+} *The outcome that counts.* The share of the owner's prompts that repeat a correction about a stored fact, before and after the gate. Pass: it falls, and a fact corrected once is not corrected again.

### 12. Next steps

[-Each transition this paper owns (captured to accepted, held or pending) is replayed across a judge outage, a restart, concurrent writers and a privacy erase by tests 3, 7 and 8; the replay of the-] {+The+} whole journey, from the owner's sentence to the next action it changes, belongs to the learning paper (J5 §10, one correction, start to [-finish; J5 Appendix B, the replay matrix). Two ideas are worth-] {+finish). Worth+} trying once the gate runs: [-a judge that proposes use keys for facts written without one, scored by whether J2's replay finds the fact sooner, and feeding-] {+sending+} facts that keep flipping between versions to J5's rule ledger, since such a fact is often a rule that was never written down.

### References

{+Zep (2026). *Adding episodes.* Graphiti documentation, read 12 October 2026. <https://help.getzep.com/graphiti/core-concepts/adding-episodes>+}

### A.1 A fact revision

| Field | Meaning | [-|---|---|-] {+|----|----------|+} | fact_id, revision | Stable ID, never reused; revision +1 on each change to the claim | | claim, topic | One claim; the topic file that presents it | | source_class | [-owner,-] {+owner (owner-authority spans only),+} owner_system, agent, third_party {+(quoted spans too, with J1's attributed source)+} | | authority | instruction, owner_fact, evidence, hypothesis, quoted | | evidence_quality | direct, corroborated, inferred, assumed, negative (with query) | | evidence | Record addresses (J1 §4.2, addresses that never move) [-and,-] {+| | derived_from | Links: record addresses and the revisions of every part,+} for [-a revision,-] {+merges and added detail; J2 and J5 write+} the [-addresses-] {+same field on use keys, rule revisions and fixtures | | subjects | Opaque IDs+} of [-each part-] {+the people the claim concerns; they choose the backup keys (§7.7)+} | | valid_from, valid_to | When the claim held in the world; empty interval once retracted | | recorded_from, recorded_to | When this revision was the live one | | status | accepted, pending, held, conflict, superseded, retracted, [-erased, quarantined-] {+erased | | restrictions | quarantine (with its source entry), inherited through derived_from; independent of status+} | | replaces, replaced_by | Fact IDs on either side of a supersede, retraction, merge or split | | last_confirmed, important, use_keys | [-§8.5,-] {+§8.5 (moves only on independent evidence),+} §9.4 |

### A.2 A write receipt

| Field | Meaning | [-|---|---|-] {+|----|----------|+} | receipt_id, write_key | The key is a hash of evidence addresses, topic and text; a retry with it returns this receipt | | correction_id | The series' ID for an owner [-correction,-] {+correction (message ID and span index),+} when the write carries one | | [-base_revision, new_revision-] {+read_snapshot, read_set, epoch+} | [-File revision judged against,-] {+Snapshot the decision read; the revisions of every file+} and {+mark it compared;+} the [-one committed-] {+erasure epoch | | new_snapshot | Snapshot published, or empty when nothing was+} | | relation, confidence, judge | The verdict and the judge's model and version | | policy | Risk class and rule that applied (auto-close, proposal, hold) | | touched | Fact IDs and revisions before and after | | status, reason | accepted, pending, held, refused, erase [-incomplete;-] {+incomplete, all reachable copies removed;+} and why |

### A.2 A write receipt

A receipt is never [-edited after it is written. When-] {+edited.+} J2 acknowledges [-that-] a {+retrievable+} fact [-is retrievable (fact ID@revision), that acknowledgement goes into J2's-] {+(ID@revision) in its+} own overlay receipt, keyed by this receipt_id (J2 Appendix A, interfaces; J2 §8.2, becoming [-retrievable). Read together,-] {+retrievable), so+} the two receipts show the chain from accepted to [-retrievable,-] {+retrievable+} and this [-receipt-] {+one+} never claims the finding stage's status.

### A.3 The gate in pseudocode

[-``` WRITE(candidate, writer): if receipt_exists(candidate.write_key): return that receipt # idempotent if temporary(candidate.evidence): return REFUSE("temporary") # J1 §4.7, never kept base <- current_revision(candidate.topic_file) facts <- same_topic(base) + near_neighbours(candidate) + always_loaded() obs <- tool_results_this_turn(candidate.subject) if matches_suppression(candidate): return HOLD("erased subject") verdict <- judge(candidate, facts, obs) # typed; may time out if verdict is TIMEOUT: return route_by_failure_matrix(candidate) # Table 1 change <- outcome(verdict.relation) # Table 2 change.authority <- min_authority(candidate.parts, writer.delegated) if needs_hold(change, verdict, risk_class(change)): return HOLD(change) return COMMIT(candidate, change, base)-]

### A.3 The gate in pseudocode

[-COMMIT(candidate, change, base): for attempt in 1..3: ok <- atomic_compare_and_swap(file, expect=base, write=apply(change) + revisions + receipt) if ok: notify_fresh_writes(change) # J2 makes it retrievable return receipt(status = accepted) new <- current_revision(file) if touches(diff(base, new), change.comparison_set): verdict <- judge again on new; change <- outcome(verdict) base <- new return HOLD(change, reason = "concurrent change") ```-]

### A.3 The gate in pseudocode

{+``` WRITE(candidate, writer): if receipt_exists(candidate.write_key): return that receipt # idempotent if temporary(candidate.evidence): return REFUSE("temporary") # J1 §4.7, never kept snap <- read_live() # snapshot id, with its epoch d <- DECIDE(candidate, writer, snap) for attempt in 1..3: if d.kind != COMMIT: return RECORD(d, snap) # pending line or hold tree <- tree_of(snap) + d.change + d.revisions + d.links + receipt(d) if update_ref("live", new = commit(tree), expect = snap): # one atomic publication notify_fresh_writes(receipt) # J2 makes it retrievable return receipt(status = accepted) now <- read_live() if changed(d.read_set, snap, now): # a compared file, scope, mark or epoch d <- DECIDE(candidate, writer, now) # judgement AND policy again snap <- now # otherwise re-apply on the new tip return RECORD(HOLD(d.change, reason = "concurrent change"), snap)+}

### A.3 The gate in pseudocode

{+RECORD(d, snap): r <- receipt(d, snap); if d is HOLD: notify_fresh_writes(r); return r+}

### 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) 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) 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.3 The gate in pseudocode

_J-series paper J14 | Version [-2.1-] {+2.2+} | 2026-10-12_
