v2.4 → v2.5
What changed from v2.4 to v2.5
From v2.4 (21 Oct) to v2.5 (21 Oct): 10,929 words to 12,281 words, 2,254 words in new or rewritten paragraphs and 902 taken out, 64 paragraphs changed.
Comparison tables and worked examples added; the abstract rewrittenThe paper grows by about 1,350 words, mostly tables and examples. Table 1 sets the existing write-time products side by side with what this design proposes to add, and says that column is a claim to test, not a shown advantage. A second worked example shows a request that clashes with a standing rule, and a table runs the three source fields over four ways the agent could learn the same thing. The abstract is rewritten around the gate setting each new line beside what it could clash with.
v2.4 · 21 October 2026v2.5 · 21 October 2026
··· 3 unchanged paragraphs folded ···
v2.4 · AbstractWe propose MNEMOSYNE: the memory store can be changed only through one gate. It compares each write with the same-topic facts and the rules loaded on every turn, a small model names the relation, and only that judgement may retire an old fact, which stays, marked with why it ended. Even the owner's correction closes a fact only where the judge has proved itself on held-out data. When the judge is down or the change is risky, the write waits where the owner can see it, and is judged again when the judge returns.
v2.5 · AbstractWe propose MNEMOSYNE: every change to memory passes through one gate. The gate sets each new line beside what it could clash with, the facts on the same topic and the rules read on every turn, and a small model says how they relate. Only that verdict may retire an old fact, and the old fact is kept, marked with why it ended. The gate retires a fact on its own only where the judge has proved itself on data it was not tuned on. When the judge is down or the change is risky, the write waits where the owner can see it.
v2.4 · AbstractIn your own assistant, a correction made once stays made, and you can ask what was true last month and what the agent believed then. This is a design, with the tests that would decide it; none has run.
v2.5 · AbstractIn your own assistant, a correction made once should stay made, and you can ask what was true last month and what the agent believed then. This is a design, with the tests that would decide it; none has run.
··· 12 unchanged paragraphs folded ···
v2.4 · 2. Where this sitsSeveral systems already act at write time.
removed in v2.5
v2.4 · 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. We keep that closed choice, add the always-loaded rules to the comparison set, because the contradictions that hurt most are not near neighbours (§6), and turn delete into an ending that keeps the line (§7).
removed in v2.5
v2.4 · 2. Where this sits*Zep and Graphiti* (Rasmussen et al., 2025) store facts as edges in a temporal 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 (§7.3). Graphiti links the entities extracted from each episode back to it (Zep, 2026); our dependency links extend that 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; any database is a cache rebuilt from it.
removed in v2.5
v2.4 · 2. Where this sits*Letta's MemFS* (Letta, 2026) is the closest product to our file layer: memory is a git repository of Markdown files edited as a local checkout, files at the memory root load on every turn, every edit is a commit, and background memory agents edit in separate worktrees. We take the isolated background edit for the nightly pass and add the publication rule it needs (§7.2). Its documentation names conflict resolution as a benefit of commits but describes no check on a write, no comparison with the always-loaded files, no source on individual facts and no count of closures; those are what we add.
removed in v2.5
v2.4 · 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).
removed in v2.5
not in v2.4
v2.5 · 2. Where this sitsSeveral products already act at write time, and each does something well that this design builds on. Table 1 sets them side by side. The right column is what this paper proposes to add; it is a claim to test, not a shown advantage, and any of them might be configured to do part of it.
not in v2.4
v2.5 · 2. Where this sits| Approach | What it already does well | What this paper adds, or where it stops | |--------------|-----------------------------|------------------------------| | Plain retrieval over chunks of past text | Keeps the original wording, cites its source, interprets nothing when it stores | Decides at write time which of two clashing claims is still current, at the price of a judge on every write | | Mem0 (Chhikara et al., 2025; Mem0, 2026) | Extracts facts from each exchange, compares them with the most similar stored memories (ten in its experiments) and lets a model add, update, delete or do nothing; its update call changes text and metadata and re-indexes | Keeps the closed choice; adds the always-loaded rules to the comparison, because the clashes that hurt most are not near neighbours (§6); turns delete into an ending that keeps the line (§7) | | Zep and Graphiti (Rasmussen et al., 2025; Zep, 2026) | Facts as edges in a temporal graph, ended by an end time; two timelines, when a fact held and when it was ingested; extracted entities linked back to their source episode | Adopts the two timelines (§7.3); extends the links to use keys, rules and test fixtures, so an erasure can follow them (§8.1); the unit is a line in a readable file, and any database is a cache rebuilt from it | | Letta MemFS (Letta, 2026) | Memory as a git repository of Markdown files; root files load every turn; every edit is a commit; background agents edit in separate worktrees | Takes the isolated background edit and adds the rule for publishing it (§7.2); adds a check of each write against the always-loaded files, a source on each fact and a count of closures | | LangMem (LangChain, 2026) | Extracts and consolidates memories during the conversation or in the background, as structured records, over any storage | Sends those proposed updates through the same gate, authority rules and publication (§5, §8) | | Anthropic's memory tool and memory stores (Anthropic, 2025, 2026b) | The tool lets the model ask the application for file operations. Hosted stores keep an immutable version per change, redact a version while its audit row stays, guard an update with a content-hash precondition, and mount read-only for an agent that reads untrusted input | Puts the gate in the tool handler (§5); shares the versions, the redaction and the precondition (§7.1, §7.2, §7.7); adds the judgement the store leaves to the caller: a comparison with the rules read every turn, and how far a line may be trusted | | Claude's and ChatGPT's built-in memory (Anthropic, 2026d; OpenAI, 2026) | Memory across chats, with controls to see, edit and delete it | Makes source, history and the pending, held and accepted states explicit; the public documentation does not say how either checks a write |
not in v2.4
v2.5 · 2. Where this sits: Products that act at write time, what each does well, and what this design proposes to add.
not in v2.4
v2.5 · 2. Where this sitsTwo neighbours belong to the companion papers: running summaries and provider compaction to J1, and retrieval frameworks such as HippoRAG 2 to J2. 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 unchanged paragraphs folded ···
v2.4 · 2. Where this sitsEach piece has precedent. We did not find the combination: a gate that is the only way into the store, a comparison set that includes the rules read on every turn, and a closing step only a judge may take, earned per risk class, counted and alarmed. Whether it beats a plain git store like MemFS's is unmeasured (§12).
v2.5 · 2. Where this sitsEach piece has precedent. We did not find the combination: a gate that is the only way into the store, a comparison set that includes the rules read on every turn, and a closing step only a judge may take, earned per risk class, counted and alarmed. The products above already ship working integration, background processing and user controls, so the burden is ours: the extra checks have to prevent harmful changes without costing too much delay or owner time. Whether they beat a plain git store like MemFS's is unmeasured (§12).
··· 1 unchanged paragraph folded ···
not in v2.4
v2.5 · 3. One write, start to finishA *fact* is one claim about the world, with an ID; a line in a file shows it. A *rule* is an instruction about behaviour (J5 §5, the binding ladder). An *always-loaded file* is one the harness puts before the model every turn; the *index file* is its head, one pointer per topic or owned asset. A *receipt* is the record the gate leaves for each decision; the *owner* is the person the agent serves.
··· 3 unchanged paragraphs folded ···
v2.4 · 3. One write, start to finishA *fact* is one claim about the world, with an ID; a line in a file shows it. A *rule* is an instruction about behaviour (J5 §5, the binding ladder). An *always-loaded file* is one the harness puts before the model every turn; the *index file* is its head, one pointer per topic or owned asset. A *receipt* is the record the gate leaves for each decision; the *owner* is the person the agent serves.
removed in v2.5
not in v2.4
v2.5 · 3. One write, start to finishIn this example the rules had nothing to say. Table 2 shows a request where they do, against the same store.
not in v2.4
v2.5 · 3. One write, start to finish| | Plain append, no conflict check | The gate | |--------------|-----------------------------|-----------------------------| | Standing rule | "Send supplier drafts from the sales address; copy nobody." | The same rule | | New request from the owner, a rule proposal | "Copy me on supplier renewal drafts." | The same request | | What happens | The request is stored beside the rule, and nothing says which wins | The proposal is held: it would make an exception to a standing rule | | What the owner sees | Whatever confirmation the application prints | "Captured; held for your approval. Renewal drafts would become an exception to 'copy nobody'." |
not in v2.4
v2.5 · 3. One write, start to finish: A request that clashes with a standing rule, with and without the gate. Keeping a request and applying it are two different events.
··· 14 unchanged paragraphs folded ···
not in v2.4
v2.5 · 5.1 A gate the store cannot bypassTaint has an everyday cost: one web search taints a session for the rest of its life. If the owner then corrects a fact in that session, the agent's wording of his correction cannot carry owner authority, since a planted page may have shaped it. So owner authority comes by a clean path instead. The gate re-reads the owner span the write cites (J1 §4.1) with a fresh model call that has seen nothing else, and the write keeps owner authority only if that extraction states the same claim. When it does not, the write enters as a hypothesis, and the nightly pass, which reads the record without the taint, proposes the owner fact the next morning: a delay of up to a day. Test 9 counts how often that happens.
··· 3 unchanged paragraphs folded ···
v2.4 · 5.3 When something failsWhen the judge cannot answer (a timeout, a provider error, a quota limit), 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 (§7.2). What can do damage stays held. Table 1 is the whole policy; trace step 4 (T4) runs it.
v2.5 · 5.3 When something failsWhen the judge cannot answer (a timeout, a provider error, a quota limit), 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 (§7.2). What can do damage stays held. Table 3 is the whole policy; trace step 4 (T4) runs it.
··· 10 unchanged paragraphs folded ···
not in v2.4
v2.5 · 6.1 Three sources, not the nearest neighbours alone*A budget, and what happens past it.* The judge reads a fixed budget per check; §10 prices a check at 4,000 tokens and at 16,000. The always-loaded files go in first and in full, since their own budget is fixed (J5 §7.1, a budget measured in attention). The target's siblings fill what is left, nearest first, and the receipt records the coverage: how many of the topic's live facts the judge saw. A closure decided on partial coverage is held as a proposal, never applied on its own, and a topic that keeps overflowing is a sign it should be split (§9.2).
··· 1 unchanged paragraph folded ···
v2.4 · 6.2 Relations and outcomesThe judge answers with one relation from a closed set, and each relation has one outcome. Table 2 is the whole decision.
v2.5 · 6.2 Relations and outcomesFor each stored item a write touches, the judge names one relation from a closed set, and each relation has one outcome. Table 4 is the whole decision.
··· 2 unchanged paragraphs folded ···
not in v2.4
v2.5 · 6.2 Relations and outcomes*When several apply.* One write can repeat one fact, replace another and clash with a rule. The gate applies the outcomes together, in one publication, in this order of precedence. A clash with an always-loaded rule holds the whole write, even a replacement that would otherwise close at once. Third-party text that reads as an instruction is stored only as a quoted claim, whatever else it matches. A conflict with no clear winner holds every closure in the same write. Otherwise each relation acts on its own item: a closure ends its fact, and a *same* adds evidence to its fact.
··· 2 unchanged paragraphs folded ···
v2.4 · 6.3 The judgeThe 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 is one such judge (TypeSafe AI, 2026); any model that returns a closed choice will do. People facts sent to a third-party judge carry opaque identifiers ("P17: good at sourcing specific hardware"), never names or contact details.
v2.5 · 6.3 The judgeThe judge is a small, fast model that answers only in typed choices: for each item it relates the write to, the item's ID, the relation and a confidence. It writes no free text for the gate to parse. Jev is one such judge (TypeSafe AI, 2026); any model that returns a closed choice will do. People facts sent to a third-party judge carry opaque identifiers ("P17: good at sourcing specific hardware"), never names or contact details.
··· 8 unchanged paragraphs folded ···
v2.4 · 7.2 Publish a snapshot, or nothingA 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 read (target, siblings, always-loaded files), the version of the scope and quarantine marks, and the *erasure epoch*, a counter that every erasure or quarantine raises before it starts (§7.7). The change, new revisions, links and 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).
v2.5 · 7.2 Publish a snapshot, or nothingA 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 read (target, siblings, always-loaded files), the version of the scope and quarantine marks, and the *erasure epoch*, a counter that every erasure or quarantine raises before it starts (§7.7). The change, its new revisions, links and 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.
v2.4 · 7.2 Publish a snapshot, or nothingIf `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. When anything did (a compared rule, a scope, a quarantine, the epoch), the verdict is discarded and judgement and policy run again on the new snapshot: a verdict that compared against a rule the owner has since rewritten must never commit beside the new rule (trace steps 6 and 7; J5 withdraws the stale tail line at its next turn boundary, T6). After three attempts the write is held as a concurrent change, never forced.
v2.5 · 7.2 Publish a snapshot, or nothingIf `live` has moved, the gate compares the read set with the new snapshot, and Table 5 says what follows. A verdict that compared against a rule the owner has since rewritten must never commit beside the new rule (trace steps 6 and 7; J5 withdraws the stale tail line at its next turn boundary, T6).
v2.4 · 7.2 Publish a snapshot, or nothing*Requests and attempts.* Every write is a *request* with a stable ID: the child operation ID the learning stage opens for each repair of a correction (J5 §3.2, sort by cause; T3), or, for a write without one, a hash of its evidence addresses, target topic and text. Each decision on a request is an *attempt* with its own immutable receipt, linked to the previous one. A retry whose latest receipt is terminal (accepted, refused, or a hold awaiting the owner) returns it, so a write applies once or not at all. A retry whose latest receipt is pending never returns it but runs a new attempt, and so do the judge's return and the owner's approval of a hold: every pending request is resumed on the current snapshot, linked to its earlier receipt, and a verdict for an older attempt is discarded (T7). Each index build of the finding stage likewise names its snapshot and checks the epoch before it swaps in (J2 §8.3, manifests, restarts and rebuilds).
removed in v2.5
v2.4 · 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 is stored with the same discipline as a commit. The pending-area line or hold record, its receipt 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 that snapshot (A.2).
removed in v2.5
not in v2.4
v2.5 · 7.2 Publish a snapshot, or nothing| What changed after the judge read the store | Can the verdict be reused? | What happens next | |-----------------------------|------------|------------------------------| | Nothing | Yes | Publish, if the checked update still succeeds | | An unrelated file, outside the read set | Yes | Apply the change to the new snapshot and try the checked update again | | A compared fact or rule | No | Read the new state; run the judge and the policy again | | Permissions, quarantine marks or the erasure epoch | No | Read the new state; run the judge and the policy again | | Publication lost the race three times | No forced write | Hold the change as a concurrent change; acknowledge the hold only once it is stored |
not in v2.4
v2.5 · 7.2 Publish a snapshot, or nothing: What the gate does when the store moved while the judge was working.
not in v2.4
v2.5 · 7.2 Publish a snapshot, or nothingEvery outcome is stored this way, not only a commit. A pending line or a hold goes into the store by the same checked update, with its receipt and delivery record, so it sits in a published snapshot; it is still not accepted memory, and no reader takes it for a fact (§5.3). An erasure that lands between a decision and its storage moves the epoch, so the write is decided again and never stores something the erase has already passed (T12). Nothing is acknowledged before it is stored: if even the hold cannot be stored, the gate returns a retryable failure and the request runs again (Appendix A.3).
not in v2.4
v2.5 · 7.2 Publish a snapshot, or nothing*Requests and attempts.* Each write has one permanent request ID: the learning stage's ID for that repair of a correction (J5 §3.2, sort by cause; T3), or, for a write without one, a hash of its evidence addresses, target topic and text. Each decision is an *attempt* with an unchangeable receipt linked to the one before.
not in v2.4
v2.5 · 7.2 Publish a snapshot, or nothingOn a retry, the gate reads the latest receipt. If it says accepted, refused, or held awaiting the owner, the gate returns it, so a write happens at most once. If it says pending, the gate makes a new attempt on the current snapshot. The judge's return and the owner's approval of a hold also start a new attempt; its receipt links to the earlier one, and verdicts from older attempts are discarded (T7). The finding stage likewise records which snapshot each index build used and checks the epoch before installing it (J2 §8.3, manifests, restarts and rebuilds).
not in v2.4
v2.5 · 7.2 Publish a snapshot, or nothing*Delivery.* A committed fact is saved, and it becomes retrievable when the finding stage acknowledges it with an *overlay receipt*, its note that it can now find the change (J2 §8.2, becoming retrievable). The tree that publishes a change also holds a *delivery record*: fact IDs, revisions and the receipt ID, never content. A dispatcher resends it until the overlay receipt arrives (T9), so a crash of either side loses nothing. Appendix A.2 gives its fields and why a resend or a duplicate changes nothing.
··· 13 unchanged paragraphs folded ···
v2.4 · 7.5 Only a judge closes, and only where it has earned it*Risk classes.* Low risk: a fact in a fact file whose authority is evidence or hypothesis (§8.1), closed by a replacement of equal or higher authority. Owner facts: closed automatically only when the replacement is the owner's own words in the session record and the class has met the bar below, as in Figure 1. On any other evidence the closure is held as a conflict for him. Always-loaded lines: always held for the owner (J5 §7.4, approval, and who may loosen). A retraction counts as one class higher than the matching supersede, since it rewrites the past.
v2.5 · 7.5 Only a judge closes, and only where it has earned it*Risk classes.* Low risk: a fact in a fact file whose authority is evidence or hypothesis (§8.1), closed by a replacement of equal or higher authority. Owner facts: closed automatically only when the replacement is the owner's own words in the session record and the class has met the bar below, as in Figure 1. On any other evidence the closure is held as a conflict for him. Always-loaded lines: always held for the owner (J5 §7.4, approval, and who may loosen). A retraction counts as one class higher than the matching supersede, since it rewrites the past. What the agent does with a fact counts too: a fact it acts on outside the store, such as an address it sends to, counts one class higher than its source alone would place it, because a wrong closure there acts before anyone reads it.
··· 1 unchanged paragraph folded ···
v2.4 · 7.5 Only a judge closes, and only where it has earned it*The bar.* A class closes automatically when the one-sided 95% Clopper–Pearson lower bound on the precision of its above-threshold verdicts in the held-out decision set is at least 0.98. That takes at least 149 verdicts with no error, or 236 with one, or 313 with two. For contrast, 180 correct of 200 ("nine in ten") gives a lower bound of 0.86: up to one closure in seven could be wrong. A class not yet measured is below the bar. Below it, a closure is written as a proposal: the new fact is accepted, the old one stays live with a "possibly superseded by" mark, and the morning report asks (the cold-start branch of Figure 1).
v2.5 · 7.5 Only a judge closes, and only where it has earned it*The bar.* A risk class may close facts automatically only when its held-out test supports at least 98% precision, the share of its closures that are correct. We use the one-sided 95% Clopper–Pearson lower bound, counting only verdicts above the confidence threshold. Passing takes at least 149 verdicts with no error, 236 with one, or 313 with two. For contrast, 180 correct out of 200 ("nine in ten") gives a lower bound of 86%: up to one closure in seven could be wrong.
not in v2.4
v2.5 · 7.5 Only a judge closes, and only where it has earned itA class not yet tested fails. Below the bar, a closure is written as a proposal: the new fact is accepted, the old one stays live marked "possibly superseded by", and the morning report asks (the cold-start branch of Figure 1).
··· 2 unchanged paragraphs folded ···
not in v2.4
v2.5 · 7.6 Count every closure, and alarm on the suspicious ones*One wrong closure.* The alarms catch patterns, not a single plausible mistake: at 98% precision, about one automatic closure in fifty may still be wrong, and one alone never trips the burst alarm. The receipt makes it traceable; three things make it seen. The morning report lists each automatic closure of an owner fact, one line with the old and the new claim (J5 §7.5). The finding stage's owner inspector shows any fact's history and receipt chain, and a correction made there is a new write through this gate (J2 §6.8, the use log). And the monthly audit of the evaluation stream samples closures (§7.5). Test 5 measures how long one false closure takes to be seen.
··· 3 unchanged paragraphs folded ···
v2.4 · 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; T14). It then follows the links from the entries the owner named to every descendant, never a semantic search, and sends the erase orders to J1, J2 and J5 from its outbox, resent until each place reports (T15, T17, T18). The *deletion manifest* (Table 3) records each place as done, not present, or out of reach (trace step 11, which erases span 0 of the message and keeps span 1).
v2.5 · 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; T14). It then follows the links from the entries the owner named to every descendant, never a semantic search, and sends the erase orders to J1, J2 and J5 from its outbox, resent until each place reports (T15, T17, T18). The *deletion manifest* (Table 6) records each place as done, not present, or out of reach (trace step 11, which erases span 0 of the message and keeps span 1).
··· 3 unchanged paragraphs folded ···
v2.4 · 7.7 Erase and quarantine*Backups.* A backup never holds a record about a person in the clear. Each record is encrypted under a key per person it concerns, and a record about several people under a key derived from all of theirs, so destroying any one makes it unreadable. An erasure rotates the person's key, which makes that person's records unreadable in every older backup, retained facts of a shared record included. So the old key is destroyed only after a *recovery checkpoint* exists: a backup of the store as rewritten, erased content gone, shared records re-encrypted under the remaining people's keys, and a test restore that reads back every retained fact ID. If the checkpoint cannot be made (the backup target is offline), the row reports a *recovery gap* naming the retained fact IDs only older backups hold, and the owner chooses: destroy the key now and accept the gap until the next backup, or keep the erase incomplete until the checkpoint exists.
removed in v2.5
not in v2.4
v2.5 · 7.7 Erase and quarantine*Backups.* A backup never holds a record about a person unencrypted. Each record is encrypted with that person's key; a record about several people uses a key derived from all of theirs, so destroying any one makes it unreadable. An erasure replaces the person's key, and destroying the old key makes that person's records unreadable in every older backup, retained facts of shared records included.
not in v2.4
v2.5 · 7.7 Erase and quarantineSo before the old key is destroyed, the gate makes a *recovery checkpoint*: a backup of the rewritten store with the erased content gone and shared records re-encrypted under the remaining people's keys, then a test restore that reads back every retained fact ID.
not in v2.4
v2.5 · 7.7 Erase and quarantineIf the checkpoint cannot be made (say the backup target is offline), the manifest row reports a *recovery gap*: the retained fact IDs that only older backups hold. The owner chooses: destroy the key now and accept the gap until the next backup, or leave the erase incomplete until the checkpoint exists.
··· 6 unchanged paragraphs folded ···
not in v2.4
v2.5 · 8.1 Three fields and the linksTable 7 runs the three fields over four ways the agent could learn the same thing.
not in v2.4
v2.5 · 8.1 Three fields and the links| What the agent learns | Source class | Authority | Evidence quality | |------------------------------|--------------|--------------|--------------| | The owner says, "The supplier call moved to Thursday." | Owner | Owner fact | Direct | | The owner's calendar lists the call on Thursday | Owner's systems | Evidence | Direct | | The agent infers Thursday from the usual schedule | Agent | Hypothesis | Inferred | | The supplier's website says the call is Thursday | Third party | Quoted claim | Direct |
not in v2.4
v2.5 · 8.1 Three fields and the links: One claim, four sources. The first three rows assume a session that has read no untrusted text (§5.1).
v2.4 · 8.1 Three fields and the linksA browser result stays third party however the page was fetched, and reading a stored fact back does not confirm it: the store is not a source.
v2.5 · 8.1 Three fields and the linksDirect means the text was read off its source; it does not make the source authoritative. A browser result stays third party however the page was fetched, and reading a stored fact back does not confirm it: the store is not a source.
··· 16 unchanged paragraphs folded ···
v2.4 · 9. The shape of what is written{width=88%}
v2.5 · 9. The shape of what is written{width=80%}
··· 20 unchanged paragraphs folded ···
not in v2.4
v2.5 · 10. What the check costs, and when it pays{width=84%}
··· 1 unchanged paragraph folded ···
v2.4 · 10. What the check costs, and when it pays{width=84%}
removed in v2.5
v2.4 · 10. What the check costs, and when it paysSo the break-even share lies between about 1.6% and 13.5% of writes, depending 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)$, 0.8% per unit of $H_f/H_m$: the check pays only if it catches more harm than its own false closures cause, so the bar of §7.5 matters most where a wrong fact is most expensive. Both rates are measured (§12, test 2). The judge stays a small model; the large one costs forty times more per check.
v2.5 · 10. What the check costs, and when it paysSo the break-even share lies between about 1.6% and 13.5% of writes, depending 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)$, 0.8% per unit of $H_f/H_m$: the check pays only if it catches more harm than its own false closures cause, so the bar of §7.5 matters most where a wrong fact is most expensive. Both rates are measured (§12, test 2). A full comparison budget of 16,000 tokens (§6.1) costs about \$0.0017 a check: the token-floor break-even from the model alone rises from 1.6% to about 5.6%, and with owner time priced from 1.6% to about 1.9%. The judge stays a small model; the large one costs forty times more per check.
··· 1 unchanged paragraph folded ···
v2.4 · 11. ConclusionsAn agent's memory goes wrong at the moment of writing, and the fix belongs there. Every line is dated, every source named, every correction made once and kept.
v2.5 · 11. ConclusionsAn agent's memory goes wrong at the moment of writing, and the fix belongs there: every line dated, every source named, and every correction made once and kept. That is what the design promises; the tests of §12 would show whether it keeps the promise.
v2.4 · 11. ConclusionsThe limits are these. The judge's precision is unknown until measured, and whether holds or false closures cost more depends on what a wrong fact costs (§10). Topic links are only as good as the index file. Without its own account the gate guarantees mediated writes only. Suppression catches erased identifiers exactly and indirect references only as well as the entity matcher does. A provider copy, a clone outside the gate or a backup written in the clear can sit 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 (J2), or a rule that does not bind (J5).
v2.5 · 11. ConclusionsThe limits are these. The judge's precision is unknown until measured, and whether holds or false closures cost more depends on what a wrong fact costs (§10). Topic links are only as good as the index file, and a topic past the judge's budget is compared only in part. A session that read untrusted text can delay an owner's correction by up to a day. Without its own account the gate guarantees mediated writes only. Suppression catches erased identifiers exactly and indirect references only as well as the entity matcher does. A provider copy, a clone outside the gate or a backup written in the clear can sit 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 (J2), or a rule that does not bind (J5).
··· 1 unchanged paragraph folded ···
v2.4 · 12. Next stepsThe 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, and in test 7 both the resume on the judge's return 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.
v2.5 · 12. Next stepsThe gate will be built and tested on our own agent, with the sets of §7.5 kept apart wherever a test sets a threshold. Three control arms run on the same store and replay: a nearest-neighbour check built like Mem0's published pipeline (§2), which is a control and not a benchmark of the Mem0 product; the plain git store of MemFS with no check; and this gate with the always-loaded rules left out of the comparison, which tests whether that addition earns its cost. The series' transition checker (J5 Appendix B) models the delivery and erase-ordering cases of tests 3 and 8, and in test 7 both the resume on the judge's return 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.
v2.4 · 12. Next steps1. *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.
v2.5 · 12. Next steps1. *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 nearest-neighbour arm on both. Include writes that repeat one fact, replace another and clash with a rule at once: the rule clash holds the whole write. Then grow one topic past the judge's budget and report coverage, latency and cost per check; a closure decided on partial coverage is held. 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. Make the hold's own storage lose every race: nothing is acknowledged, and a retry with the same request ID stores it. Let a re-decision after a lost race turn a pending outcome into a commit: it commits through the same checked update. 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, and a single error is still seen.* A burst of same-file, same-pass closures: the alarm fires on the first, and automatic closing pauses. Then plant one plausible false closure above the bar, with no alarm: it is in the next morning report, the inspector shows its history, and the owner's correction restores the old fact by a new write. Report the days until it was seen. 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 3, 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 6; 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; in that session, an owner's correction keeps owner authority when the clean extraction matches it, and the test counts the corrections delayed to the nightly pass. 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.
··· 9 unchanged paragraphs folded ···
not in v2.4
v2.5 · ReferencesLangChain (2026). *LangMem: conceptual guide.* LangMem documentation, read 21 October 2026. <https://langchain-ai.github.io/langmem/concepts/conceptual_guide/>
··· 1 unchanged paragraph folded ···
not in v2.4
v2.5 · ReferencesMem0 (2026). *Update memory.* Mem0 documentation, read 21 October 2026. <https://docs.mem0.ai/core-concepts/memory-operations/update>
not in v2.4
v2.5 · ReferencesOpenAI (2026). *Memory in ChatGPT.* OpenAI Help Center, read 21 October 2026. <https://help.openai.com/en/articles/8590148-memory-in-chatgpt>
··· 14 unchanged paragraphs folded ···
v2.4 · A.2 A write receiptA receipt is never edited. J2 acknowledges a retrievable fact (ID@revision) in its own overlay receipt, keyed by receipt_id (J2 Appendix A, interfaces; J2 §8.2, becoming retrievable), so the two receipts show the chain from accepted to retrievable and this one never claims the finding stage's status. What J2 acknowledges is the *delivery record* of Table 6.
v2.5 · A.2 A write receiptA receipt is never edited. J2 acknowledges a retrievable fact (ID@revision) in its own overlay receipt, keyed by receipt_id (J2 Appendix A, interfaces; J2 §8.2, becoming retrievable), so the two receipts show the chain from accepted to retrievable and this one never claims the finding stage's status. What J2 acknowledges is the *delivery record* of Table 10.
v2.4 · A.2 A write receipt| Field | Meaning | |----|----------| | receipt_id, snapshot | The receipt it announces and the snapshot that carries the change | | items | fact_id@revision pairs, or rule ID@revision for a hold; never content. For a published change J2 reads the text from the snapshot, where an erased revision is a tombstone. For a pending line or hold, which publishes no snapshot, J2 reads the pending-area line or hold record the receipt names, from the store at J2's applied epoch, so an erase that drops it reads as gone | | kind | published, pending line or hold; the last two publish no snapshot, so the record is written with their receipt | | acknowledged_by | J2's overlay receipt ID; empty until it arrives, and the dispatcher resends while it is empty | | next_resend | The dispatcher's timer; a resend is a no-op at J2, which keys by ID and revision |
v2.5 · A.2 A write receipt| Field | Meaning | |----|----------| | receipt_id, snapshot | The receipt it announces and the snapshot that carries the change | | items | fact_id@revision pairs, or the ID of the pending-area line or hold record; never content. J2 reads the text from the snapshot the record names, where an erased revision is a tombstone and a dropped pending line or hold reads as gone | | kind | accepted change, pending line or hold. All three are stored in a published snapshot with their receipt; only the first is accepted memory | | acknowledged_by | J2's overlay receipt ID; empty until it arrives, and the dispatcher resends while it is empty | | next_resend | The dispatcher's timer; a resend is a no-op at J2, which keys by ID and revision |
··· 1 unchanged paragraph folded ···
not in v2.4
v2.5 · A.2 A write receiptPublication is not delivery, and the record bridges the two. Because it carries IDs and never content, J2 reads the text from the snapshot, so a late duplicate cannot bring back a revision erased in between. 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.
··· 1 unchanged paragraph folded ···
v2.4 · A.3 The gate in pseudocode``` WRITE(candidate, writer, resume=false): req <- request_id(candidate) # stable across attempts prev <- latest_receipt(req) if prev and prev.status in TERMINAL and not resume: # accepted, refused, hold awaiting owner return prev # a PENDING prev is never returned 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, req, prev) # pending line or hold tree <- tree_of(snap) + d.change + d.revisions + d.links + receipt(d, req, prev) + delivery_record(d) # IDs and revisions only if update_ref("live", new = commit(tree), expect = snap): # one atomic publication return receipt(status = accepted) # delivery is the dispatcher's job 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, req, prev)
v2.5 · A.3 The gate in pseudocode``` WRITE(candidate, writer, resume=false): req <- request_id(candidate) # stable across attempts prev <- latest_receipt(req) if prev and prev.status in TERMINAL and not resume: # accepted, refused, hold awaiting owner return prev # a PENDING prev is never returned 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) # COMMIT, PENDING, HOLD or REFUSE for attempt in 1..6: if attempt > 3 and d.kind == COMMIT: # three lost races: hold, never force d <- HOLD(d.change, "concurrent change", d.read_set) tree <- tree_of(snap) + d.artifact # revisions and links, or pending line or hold + receipt(d, req, prev) + delivery_record(d) # IDs and revisions only if update_ref("live", new = commit(tree), expect = snap): # one atomic publication return receipt_of(tree) # accepted, pending or held: acknowledged once stored 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; any outcome snap <- now # otherwise re-apply on the new tip return RETRY(req) # nothing stored, nothing acknowledged; same request ID
v2.4 · A.3 The gate in pseudocodeRECORD(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"), ...)
removed in v2.5
··· 2 unchanged paragraphs folded ···
v2.4 · A.3 The gate in pseudocodeDECIDE(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, 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) ```
v2.5 · A.3 The gate in pseudocodeDECIDE(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 verdicts <- judge(candidate, facts, tool_results_this_turn(candidate.subject)) if verdicts is TIMEOUT: return route_by_failure_matrix(candidate, read_set) # Table 3 change <- outcomes(verdicts) # one per item, Table 4; precedence §6.2 tainted <- writer.session.tainted and not clean_extraction_matches(candidate) # §5.1 change.authority <- min_authority(candidate.parts, writer.delegated, cls, HYPOTHESIS if tainted else None) change.restrictions <- union(restrictions(candidate.derived_from)) # quarantine if needs_hold(change, verdicts, risk_class(change), coverage(facts)): # §7.5, §6.1 return HOLD(change, read_set) return COMMIT(change, read_set) ```
··· 3 unchanged paragraphs folded ···
v2.4 · A.4 The transitions this paper owns_J-series paper J14 | Version 2.4 | 2026-10-21_
v2.5 · A.4 The transitions this paper owns_J-series paper J14 | Version 2.5 | 2026-10-21_
Changed paragraphs in the same form, for scripts: JSON
· Markdown