{
 "paper": "memory-enhancements",
 "a": "2.0",
 "b": "2.1",
 "summary": "From v2.0 (12 Oct) to v2.1 (12 Oct): 9,244 words to 10,120 words, 5,570 words in new or rewritten paragraphs and 4,694 taken out, 219 paragraphs changed.",
 "note": {
  "title": "Facts get IDs and receipts, and erasing data gets its own rules",
  "kind": "",
  "body": "## Summary\n\nAbout half the text changes. The check becomes a gate the store cannot be written around, with a table of what happens to each kind of write when the judge or the store fails. A fact now has a stable ID, so a line in a file is only how it is shown; a write is committed with a receipt that can be replayed; and a fact can end in three ways: replaced, withdrawn, or erased. Where a fact came from becomes three separate fields: its source, how far it may be trusted, and the evidence behind it. A new section walks one write from start to finish, and an appendix gives the interfaces and the gate in pseudocode.\n\n- New section 7.7 on erasing and quarantining, for content that must really go.\n- The brain analogy is dropped.\n- The abstract is shortened from 460 to 307 words.",
  "source": "commit message"
 },
 "paragraphs_changed": 219,
 "changes": [
  {
   "section": "Abstract",
   "old": "Think of a good assistant's notebook. When your weekly call moves to Thursday, she does not tear out the page that said Wednesday. She strikes the line, writes Thursday beneath it with the date and who told her, and if the new note clashes with something pinned to the first page, she asks you before she writes. Years later the notebook is still worth trusting, because every line says where it came from and nothing was overwritten behind your back.",
   "new": "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 clashes with something pinned to the first page, she asks you first. Years later the notebook is still worth trusting, because every line says where it came from and nothing changed behind your back.",
   "marked": "Think of a good assistant's notebook. When your weekly call moves to Thursday, she [-does not tear out-] {+strikes+} the [-page-] {+line+} that said [-Wednesday. She strikes the line,-] {+Wednesday,+} writes Thursday beneath it with the date and who told her, and if the new note clashes with something pinned to the first page, she asks you [-before she writes.-] {+first.+} Years later the notebook is still worth trusting, because every line says where it came from and nothing [-was overwritten-] {+changed+} behind your back."
  },
  {
   "section": "Abstract",
   "old": "AI agents now keep notebooks of their own: memory files they write with ordinary file tools, in the middle of a conversation, during a nightly pass, or because another agent told them to. But most memory systems check a new memory only against the few stored memories that look most like it, delete what it contradicts, and keep no note of where a fact came from. So an old line in a file the agent reads on every turn can override a rule kept in another file, a guess comes back weeks later as if it had been observed, and a rule that retires old facts by their position in a file can hide facts that never changed.",
   "new": null,
   "marked": "[-AI agents now keep notebooks of their own: memory files they write with ordinary file tools, in the middle of a conversation, during a nightly pass, or because another agent told them to. But most memory systems check a new memory only against the few stored memories that look most like it, delete what it contradicts, and keep no note of where a fact came from. So an old line in a file the agent reads on every turn can override a rule kept in another file, a guess comes back weeks later as if it had been observed, and a rule that retires old facts by their position in a file can hide facts that never changed.-]"
  },
  {
   "section": "Abstract",
   "old": "We propose MNEMOSYNE, one check on every write to an agent's long-term memory, placed inside the tool that performs the write so that no writer can skip it. The check compares the new text with the facts on the same topic, with the rules the agent loads on every turn, and with what the current turn observed. A small model names the relation, and only that judgement can retire an old fact: the old line is struck through and kept, with two dates, one for when the change became true and one for when the agent learned it. Every fact carries its source (observed, told by the owner, inferred, assumed, or taken from untrusted content) and never an author. Before the check comes the choice of what to write: a live turn writes at once what the owner states and what contradicts the store, and a nightly pass picks the rest out of the day's session record.",
   "new": null,
   "marked": "[-We propose MNEMOSYNE, one check on every write to an agent's long-term memory, placed inside the tool that performs the write so that no writer can skip it. The check compares the new text with the facts on the same topic, with the rules the agent loads on every turn, and with what the current turn observed. A small model names the relation, and only that judgement can retire an old fact: the old line is struck through and kept, with two dates, one for when the change became true and one for when the agent learned it. Every fact carries its source (observed, told by the owner, inferred, assumed, or taken from untrusted content) and never an author. Before the check comes the choice of what to write: a live turn writes at once what the owner states and what contradicts the store, and a nightly pass picks the rest out of the day's session record.-]"
  },
  {
   "section": "Abstract",
   "old": null,
   "new": "AI agents keep notebooks too: memory files they edit with ordinary file tools, during a conversation, overnight, or on another agent's word. But one careless write can mislead every turn that follows. An old line in a file the agent reads on every turn can contradict a standing rule, 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.",
   "marked": "{+AI agents keep notebooks too: memory files they edit with ordinary file tools, during a conversation, overnight, or on another agent's word. But one careless write can mislead every turn that follows. An old line in a file the agent reads on every turn can contradict a standing rule, 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.+}"
  },
  {
   "section": "Abstract",
   "old": null,
   "new": "We propose MNEMOSYNE: the memory store can be changed only through one gate, 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 on every turn, a small model names the relation, and only that judgement may retire an old fact, which stays in the file with the reason it ended. When the judge is down or the change is risky, the write waits where the owner can see it.",
   "marked": "{+We propose MNEMOSYNE: the memory store can be changed only through one gate, 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 on every turn, a small model names the relation, and only that judgement may retire an old fact, which stays in the file with the reason it ended. When the judge is down or the change is risky, the write waits where the owner can see it.+}"
  },
  {
   "section": "Abstract",
   "old": "In your own assistant, a correction made once stays made, a rule pinned to the first page beats an old note, a sentence lifted from a web page cannot become a standing instruction, and you can still ask what was true last month. The check costs one call to a small model; at published prices it pays for itself in money alone once about one write in sixty would have misled a single turn. This is a design, and §12 names the tests that would prove it.",
   "new": "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 the tests that would show it works. If it holds, an agent's memory becomes something you can audit like a notebook and trust like one.",
   "marked": "In your own assistant, a correction made once stays made, a rule [-pinned to-] {+on+} the first page beats an old note, [-a sentence lifted from a web page cannot become a standing instruction,-] and you can still ask what was true last [-month. The check costs one call to a small model;-] {+month and what the agent believed+} at [-published prices it pays for itself in money alone once about one write in sixty would have misled a single turn.-] {+the time.+} This is a design, and §12 names the tests that would [-prove it.-] {+show it works. If it holds, an agent's memory becomes something you can audit like a notebook and trust like one.+}"
  },
  {
   "section": "Abstract",
   "old": "If it holds, an agent's memory becomes something you can audit like a notebook and trust like one.",
   "new": null,
   "marked": "[-If it holds, an agent's memory becomes something you can audit like a notebook and trust like one.-]"
  },
  {
   "section": "1. Introduction",
   "old": "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 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 some version of this. Anthropic's memory tool gives the model a directory of files it can create and edit (Anthropic, 2025); Letta gives it blocks of always-present text it rewrites itself (Packer et al., 2023); Mem0 and Zep extract facts from the conversation and store them in a database or a graph (Chhikara et al., 2025; Rasmussen et al., 2025).",
   "new": "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 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).",
   "marked": "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 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 [-some-] {+a+} version of [-this. Anthropic's memory tool gives the model-] {+this:+} a directory of {+memory+} files [-it can create and edit-] {+the model edits through a tool+} (Anthropic, [-2025); Letta gives it blocks-] {+2025), a git repository+} of [-always-present text it rewrites itself (Packer et al., 2023); Mem0 and Zep extract facts from the conversation and store them in-] {+Markdown files that+} a [-database-] {+background agent tidies (Letta, 2026),+} or a [-graph-] {+store of facts extracted from each conversation+} (Chhikara et al., 2025; Rasmussen et al., 2025)."
  },
  {
   "section": "1. Introduction",
   "old": "And the hard part of memory, it turns out, is not storing. Disks are cheap and a full session record can be kept word for word. The hard part is that the memory store is written by many hands at many moments, and a single careless write can poison every turn that follows. Four failures recur in practice, and each one shaped a choice in this paper.",
   "new": "And the hard part of memory, it turns out, is not storing. Disks are cheap and 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.",
   "marked": "And the hard part of memory, it turns out, is not storing. Disks are cheap and a full session record can be kept word for word. The hard part is that the [-memory-] store is written by many hands at many moments, and [-a single-] {+one+} careless write can poison every turn that follows. Four failures [-recur in practice,-] {+recur,+} and each one shaped a choice in this paper."
  },
  {
   "section": "1. Introduction",
   "old": "*A write that contradicts a rule in another file.* A line in the index file, written months ago, restates one of the owner's preferences in shorthand. Later the owner refines the preference, and the agent records the new version in the rules file it loads on every turn. The old line in the index file is never touched, and the index file is loaded on every turn too. Now two always-present texts disagree, and the agent follows whichever one it weighs more on that turn. A check that compares a new write with the nearest stored memories does not catch this, because the two lines sit in different files, were written months apart, and use different words.",
   "new": "*A write that contradicts a rule in another file.* A line in the index file, written months ago, restates one of the owner's preferences in shorthand. The owner later refines the preference, and the agent records the new version in the rules file. Both files are loaded on every turn, so two always-present texts now disagree, and the agent follows whichever it weighs more that day. A check against the nearest stored memories misses this: the two lines sit in different files, months apart, in different words.",
   "marked": "*A write that contradicts a rule in another file.* A line in the index file, written months ago, restates one of the owner's preferences in shorthand. [-Later the-] {+The+} owner {+later+} refines the preference, and the agent records the new version in the rules [-file it loads on every turn. The old line in the index file is never touched, and the index file is-] {+file. Both files are+} loaded on every [-turn too. Now-] {+turn, so+} two always-present texts {+now+} disagree, and the agent follows whichever [-one-] it weighs more [-on-] that [-turn.-] {+day.+} A check [-that compares a new write with-] {+against+} the nearest stored memories [-does not catch this, because-] {+misses this:+} the two lines sit in different files, [-were written-] months apart, [-and use-] {+in+} different words."
  },
  {
   "section": "1. Introduction",
   "old": "*A fact that has forgotten where it came from.* The agent runs one query, gets nothing back, and concludes that a certain kind of item does not exist. It writes that conclusion down as a fact. Weeks later it reads the fact back and repeats the negative to the owner several times in one session, each time with the confidence of something it had seen. The stored line never said \"inferred from one empty query\", so nothing told the reader to look again. Zhan et al. (2026) measured the same failure across seven memory systems and named it authority collapse: consolidation keeps the claim and drops the conditions under which it may be used.",
   "new": "*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 it had seen. Zhan et al. (2026) measured this across seven memory systems and called it authority collapse: consolidation keeps the claim and drops the conditions under which it may be used.",
   "marked": "*A fact that has forgotten where it came from.* The agent runs one query, gets nothing back, and [-concludes-] {+writes down+} that a certain kind of item does not exist. [-It writes that conclusion down as a fact.-] Weeks later it [-reads the fact back and-] repeats the negative to the owner [-several times in one session, each time-] with the confidence of something it had seen. [-The stored line never said \"inferred from one empty query\", so nothing told the reader to look again.-] Zhan et al. (2026) measured [-the same failure-] {+this+} across seven memory systems and [-named-] {+called+} it authority collapse: consolidation keeps the claim and drops the conditions under which it may be used."
  },
  {
   "section": "1. Introduction",
   "old": "*A retire rule with no judge.* A system that keeps history marks old facts as superseded when a new one replaces them. If it decides \"replaced\" by position (same file, same line range, new text), then two fragments of one long note that inherit the same position will retire each other in a single pass, although neither fact changed. Nothing counts these closures, so the store hides text that is still true, for weeks, and nobody is told.",
   "new": "*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, new text), two fragments of one long note can retire each other in a single pass although neither changed. Nothing counts these closures, so the store hides true text for weeks and nobody is told.",
   "marked": "*A retire rule with no judge.* A [-system-] {+store+} that keeps history marks old facts as [-superseded when a new one replaces them.-] {+replaced.+} If it decides \"replaced\" by position (same file, same line range, new text), [-then-] two fragments of one long note [-that inherit the same position will-] {+can+} retire each other in a single [-pass,-] {+pass+} although neither [-fact-] changed. Nothing counts these closures, so the store hides {+true+} text [-that is still true,-] for [-weeks,-] {+weeks+} and nobody is told."
  },
  {
   "section": "1. Introduction",
   "old": "*A correction written beside the error.* When a stored fact turns out wrong, the easy edit is to append a note below it: \"this is wrong, see below\". The wrong line is still there, still reads as a plain statement, and an agent that reads only the first match picks it up again.",
   "new": "*A correction written beside the error.* The easy edit is to append \"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.",
   "marked": "*A correction written beside the error.* [-When a stored fact turns out wrong, the-] {+The+} easy edit is to append [-a note below it:-] \"this is wrong, see below\". The wrong line [-is still there,-] {+stays,+} still reads as a plain statement, and an agent that reads only the first match picks it up again."
  },
  {
   "section": "1. Introduction",
   "old": "But none of these is exotic, and none is fixed by a better retriever. They happen at the moment of writing. They are hard for four reasons. The writers are many: a live turn, a nightly pass, the owner editing a file by hand, other agents. The contradictions that hurt are between files and against standing rules, not between near neighbours in an embedding space. Deleting the old version destroys the history that would explain what happened. And judging whether two sentences conflict takes language understanding, which costs money and time on every write.",
   "new": "But none of these is fixed by a better retriever. They happen at the moment of writing, and they are hard for four reasons: the writers are many (a live turn, a nightly pass, the owner editing by hand, other agents); the contradictions that hurt are between files and against standing rules, not between near neighbours; deleting the old version destroys the history that would explain what happened; and judging whether two sentences conflict takes a language model on every write, which costs money, time, and sometimes fails.",
   "marked": "But none of these [-is exotic, and none-] is fixed by a better retriever. They happen at the moment of [-writing. They-] {+writing, and they+} are hard for four [-reasons. The-] {+reasons: the+} writers are [-many: a-] {+many (a+} live turn, a nightly pass, the owner editing [-a file-] by hand, other [-agents. The-] {+agents); the+} contradictions that hurt are between files and against standing rules, not between near [-neighbours in an embedding space. Deleting-] {+neighbours; deleting+} the old version destroys the history that would explain what [-happened. And-] {+happened; and+} judging whether two sentences conflict takes {+a+} language [-understanding,-] {+model on every write,+} which costs [-money-] {+money, time,+} and [-time on every write.-] {+sometimes fails.+}"
  },
  {
   "section": "1. Introduction",
   "old": "Therefore we propose to put one check on every write. *The claim of this paper, in one sentence: an agent's long-term memory stays trustworthy if every write passes a single check inside the write tool that compares it with the same-topic facts, the always-loaded rules and the current turn's observations, stamps it with its source and two dates, and lets only a judge retire an old fact, which is struck through and kept.*",
   "new": "Therefore we propose one gate that every change to memory must pass. *The claim of this paper in one sentence: an agent's long-term memory stays trustworthy if it can be changed only through a gate that compares each write with the same-topic facts and the always-loaded rules, records where the write came from and how far it may be trusted, and lets only a judge retire an old fact, which is kept and marked with why it ended.*",
   "marked": "Therefore we propose {+one gate that every change+} to [-put one check on every write.-] {+memory must pass.+} *The claim of this [-paper,-] {+paper+} in one sentence: an agent's long-term memory stays trustworthy if [-every write passes-] {+it can be changed only through+} a [-single check inside the write tool-] {+gate+} that compares [-it-] {+each write+} with the same-topic [-facts,-] {+facts and+} the always-loaded [-rules-] {+rules, records where the write came from+} and [-the current turn's observations, stamps-] {+how far+} it [-with its source and two dates,-] {+may be trusted,+} and lets only a judge retire an old fact, which is [-struck through-] {+kept+} and [-kept.*-] {+marked with why it ended.*+}"
  },
  {
   "section": "1. Introduction",
   "old": "The contributions, each pointing to the section that argues it:",
   "new": "The contributions, each with the section that argues it:",
   "marked": "The contributions, each [-pointing to-] {+with+} the section that argues it:"
  },
  {
   "section": "1. Introduction",
   "old": "1. *A selection step* that says what a live turn writes at once and what the nightly pass picks out of the day's session record, each candidate tied to the record entries it rests on (§4). 2. *A gate in the write path* that every writer passes, with a receipt for every check, so the gate's health is read from counts and never from a switch that says \"on\" (§5). 3. *A comparison set built from the always-loaded files, the same-topic facts and the turn's own observations*, judged by a small model into a closed set of relations and outcomes (§6). 4. *Supersede by judgement only*, at the level of a fact line, with event time separated from ingestion time, an alarm on suspicious closures, and history kept in the file so that no re-index can lose it (§7). 5. *Source and date on every fact, never an author*, with the source class deciding what a fact may become (§8). 6. *A file shape* that makes the check cheap and the store easy to read: one fact per line, one topic per file, an index file that holds pointers only, use keys written with the fact, and edits as deltas (§9). 7. *A cost model* in the series' notation, showing the check pays for itself at a low error rate if, and only if, the judge is a small model (§10).",
   "new": null,
   "marked": "[-1. *A selection step* that says what a live turn writes at once and what the nightly pass picks out of the day's session record, each candidate tied to the record entries it rests on (§4). 2. *A gate in the write path* that every writer passes, with a receipt for every check, so the gate's health is read from counts and never from a switch that says \"on\" (§5). 3. *A comparison set built from the always-loaded files, the same-topic facts and the turn's own observations*, judged by a small model into a closed set of relations and outcomes (§6). 4. *Supersede by judgement only*, at the level of a fact line, with event time separated from ingestion time, an alarm on suspicious closures, and history kept in the file so that no re-index can lose it (§7). 5. *Source and date on every fact, never an author*, with the source class deciding what a fact may become (§8). 6. *A file shape* that makes the check cheap and the store easy to read: one fact per line, one topic per file, an index file that holds pointers only, use keys written with the fact, and edits as deltas (§9). 7. *A cost model* in the series' notation, showing the check pays for itself at a low error rate if, and only if, the judge is a small model (§10).-]"
  },
  {
   "section": "1. Introduction",
   "old": null,
   "new": "1. *A gate the store cannot bypass*, with a failure matrix that says what happens to each kind of write when the judge or the store fails (§5). 2. *A comparison set that includes the always-loaded rules*, judged into a closed set 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 earned per risk class* on held-out data, with an alarm on suspicious closures (§7.5, §7.6). 5. *Source, authority and evidence as three separate fields* (§8). 6. *A cost model that counts the judge's errors*, not only its price (§10).",
   "marked": "{+1. *A gate the store cannot bypass*, with a failure matrix that says what happens to each kind of write when the judge or the store fails (§5). 2. *A comparison set that includes the always-loaded rules*, judged into a closed set 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 earned per risk class* on held-out data, with an alarm on suspicious closures (§7.5, §7.6). 5. *Source, authority and evidence as three separate fields* (§8). 6. *A cost model that counts the judge's errors*, not only its price (§10).+}"
  },
  {
   "section": "1. Introduction",
   "old": "This paper is a design for the next build; it reports no results, and §12 names the tests that would decide each claim. The name MNEMOSYNE, the Greek personification of memory and mother of the Muses, is a handle and not an anchor: what matters is what the mechanism lets an agent do.",
   "new": "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, is a handle and not an anchor.",
   "marked": "This paper is a design for the next build; it reports no [-results, and §12 names the tests that would decide each claim.-] {+results.+} The name MNEMOSYNE, the Greek [-personification-] {+goddess+} of memory and mother of the Muses, is a handle and not an [-anchor: what matters is what the mechanism lets an agent do.-] {+anchor.+}"
  },
  {
   "section": "2. Where this sits",
   "old": "This is one of four designs for an agent's memory: keeping (J1), writing (J14), finding (J2), learning (J5). J1 decides what survives the context window and keeps the full session record as ground truth. J2 decides how the right fact is found fast. J5 turns repeated experience into rules and promotes them up a ladder from text to code. This paper owns the moment in between: what enters long-term memory, starting with the choice to write at all, in what shape, and under which checks. It checks what the other stages hand it, records what it did, and points to them wherever their ground begins.",
   "new": "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), 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 what shape, and under which checks; it names the other stages in one line where their ground begins.",
   "marked": "This is one of four designs for an agent's memory: keeping [-(J1),-] {+(the keeping paper, J1),+} writing [-(J14),-] {+(this paper, J14),+} finding [-(J2),-] {+(the finding paper, J2), and+} learning [-(J5).-] {+(the learning paper, J5).+} J1 {+keeps every session word for word and+} decides what survives the context [-window and keeps the full session record as ground truth.-] {+window.+} J2 [-decides how-] {+finds+} the right fact [-is found-] fast. J5 turns repeated [-experience-] {+corrections+} into rules and [-promotes-] {+moves+} them [-up a ladder-] from text to code. This paper owns [-the moment in between:-] what enters long-term memory, [-starting with-] {+from+} the choice to write at all, in what shape, and under which [-checks. It checks what-] {+checks; it names+} the other stages [-hand it, records what it did, and points to them wherever-] {+in one line where+} their ground begins."
  },
  {
   "section": "2. Where this sits",
   "old": "*Mem0* (Chhikara et al., 2025) extracts candidate facts from each exchange, retrieves the most similar stored memories by embedding, and asks a model to choose one of four operations: add, update, delete or do nothing. Its graph variant marks contradicted relationships invalid instead of removing them. We keep the core move, a model that compares a candidate with what is stored and picks from a closed set. We change two things. The comparison set adds the always-loaded rules and the turn's observations to the nearest neighbours, because the contradictions that hurt most are not near neighbours (§6). And delete becomes supersede, struck and kept, for the plain-text store as well as the graph (§7). We also do not extract from every exchange; §4 says what is worth a line.",
   "new": "*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. We keep the core move, a model choosing from a closed set. We 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).",
   "marked": "*Mem0* (Chhikara et al., 2025) extracts candidate facts from each exchange, retrieves the most similar stored memories [-by embedding,-] {+(ten in its experiments),+} and [-asks-] {+has+} a model {+choose+} to [-choose one of four operations:-] add, update, delete or do [-nothing. Its-] {+nothing; its+} graph variant marks contradicted relationships invalid instead of removing them. We keep the core move, a model [-that compares a candidate with what is stored and picks-] {+choosing+} from a closed set. We [-change two things. The comparison set adds-] {+add+} the always-loaded rules [-and the turn's observations-] to the [-nearest neighbours,-] {+comparison set,+} because the contradictions that hurt most are not near neighbours [-(§6). And-] {+(§6), and we turn+} delete [-becomes supersede, struck and kept, for-] {+into an ending that keeps+} the [-plain-text store as well as the graph (§7). We also do not extract from every exchange; §4 says what is worth a line.-] {+line (§7).+}"
  },
  {
   "section": "2. Where this sits",
   "old": "*Zep and Graphiti* (Rasmussen et al., 2025) store facts as edges in a temporal knowledge graph. A new edge is compared with related edges by a model; a contradicted edge is invalidated, not deleted; and each edge carries both the time the fact held in the world and the time the system ingested it. This is the closest prior work to our supersede step, and we adopt its two clocks outright. We differ in the unit and the store: our fact is a line in a human-readable file, the file is the ground truth, and any database is a cache rebuilt from it (§7.3). We add an alarm on closures and a hold for writes that clash with a standing rule.",
   "new": "*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; 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). 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.",
   "marked": "*Zep and Graphiti* (Rasmussen et al., 2025) store facts as edges in a temporal [-knowledge-] graph. A {+model compares each+} new edge [-is compared-] with {+semantically+} related [-edges by a model;-] {+edges;+} a contradicted edge is [-invalidated, not deleted;-] {+invalidated by setting its end time,+} and [-each-] {+every+} edge carries [-both the time the fact-] {+two timelines, when it+} held in the world and [-the time-] {+when+} the system ingested it. [-This is-] {+We adopt+} the [-closest prior work to our supersede step, and we adopt its-] two [-clocks outright. We differ in the-] {+timelines outright (§7.3). Our+} unit [-and the store: our fact-] is a line in a human-readable file, the file is the ground truth, and any database is a cache rebuilt from [-it (§7.3). We add an alarm on closures and a hold for writes that clash with a standing rule.-] {+it.+}"
  },
  {
   "section": "2. Where this sits",
   "old": null,
   "new": "*Letta's MemFS* (Letta, 2026) is the closest product to our file 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 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. We take the isolated background edit for the nightly pass (§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.",
   "marked": "{+*Letta's MemFS* (Letta, 2026) is the closest product to our file 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 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. We take the isolated background edit for the nightly pass (§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.+}"
  },
  {
   "section": "2. Where this sits",
   "old": null,
   "new": "*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 left to the application. That makes the tool handler the natural home for the gate (§5).",
   "marked": "{+*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 left to the application. That makes the tool handler the natural home for the gate (§5).+}"
  },
  {
   "section": "2. Where this sits",
   "old": "*A-MEM* (Xu et al., 2025) builds each new memory as a note with keywords, tags and a context description, links it to related notes, and lets new notes update the descriptions of old ones. We keep the idea that the moment of writing is the moment to add what will help later; our use keys come from the same instinct (§9.4). We decline the automatic rewrite of old notes: a model that rewrites stored text every time something new arrives is a slow way to lose details, and in our design an old fact changes only by being superseded, visibly.",
   "new": "*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 instinct (§9.4); we decline the automatic rewrite of old notes, since a stored fact here changes only through a judged, recorded revision.",
   "marked": "*A-MEM* (Xu et al., 2025) builds each [-new-] memory as a note with keywords, tags and [-a context description, links it to related notes,-] {+links,+} and lets {+a+} new [-notes-] {+note+} update the descriptions of old ones. [-We keep the idea that the moment of writing is the moment to add what will help later; our-] {+Our+} use keys come from the same instinct [-(§9.4). We-] {+(§9.4); we+} decline the automatic rewrite of old [-notes:-] {+notes, since+} a [-model that rewrites-] stored [-text every time something new arrives is a slow way to lose details, and in our design an old-] fact {+here+} changes only [-by being superseded, visibly.-] {+through a judged, recorded revision.+}"
  },
  {
   "section": "2. Where this sits",
   "old": "*ROAM* (Zheng et al., 2026) classifies each pair of a new and a stored fact as independent, equivalent, subsuming or conflicting, keeps one primary view and treats the rest as evidence, and reports large accuracy gains over managers that add and rewrite in one step. Its four relations map almost one-to-one onto our judge's outcomes (§6.2). We add two relations ROAM does not need, because its store has no standing rules and no untrusted sources: \"clashes with an always-loaded rule\" and \"comes from untrusted content\".",
   "new": "*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 relations map almost one to one onto our judge's (§6.2). We add two it does not need, because its store has no standing rules and no untrusted sources: a clash with an always-loaded rule, and third-party text that would act as an instruction.",
   "marked": "*ROAM* (Zheng et al., 2026) classifies each pair of [-a-] new and [-a-] stored [-fact-] {+atomic facts+} as independent, equivalent, subsuming or conflicting, {+and+} keeps one primary view [-and treats-] {+with+} the rest as [-evidence, and reports large accuracy gains over managers that add and rewrite in one step.-] {+evidence.+} Its [-four-] relations map almost [-one-to-one-] {+one to one+} onto our judge's [-outcomes-] (§6.2). We add two [-relations ROAM-] {+it+} does not need, because its store has no standing rules and no untrusted sources: [-\"clashes-] {+a clash+} with an always-loaded [-rule\"-] {+rule,+} and [-\"comes from untrusted content\".-] {+third-party text that would act as an instruction.+}"
  },
  {
   "section": "2. Where this sits",
   "old": "*Authority collapse* (Zhan et al., 2026) is the failure measured by the AuthMem benchmark: consolidation keeps a claim but drops the authority under which it may be reused, so a casual remark becomes a standing instruction. Collapse appeared in 48 of 49 configurations they tested, and persisted authority labels removed the unauthorised actions in their end-to-end test. Our source classes are such labels, and §8 makes them decide what a fact may become.",
   "new": null,
   "marked": "[-*Authority collapse* (Zhan et al., 2026) is the failure measured by the AuthMem benchmark: consolidation keeps a claim but drops the authority under which it may be reused, so a casual remark becomes a standing instruction. Collapse appeared in 48 of 49 configurations they tested, and persisted authority labels removed the unauthorised actions in their end-to-end test. Our source classes are such labels, and §8 makes them decide what a fact may become.-]"
  },
  {
   "section": "2. Where this sits",
   "old": "*Context collapse*, the loss of detail under repeated wholesale rewriting, is covered with its source in J1 §1.3; the gate's answer to it is the delta rule (§9.5).",
   "new": null,
   "marked": "[-*Context collapse*, the loss of detail under repeated wholesale rewriting, is covered with its source in J1 §1.3; the gate's answer to it is the delta rule (§9.5).-]"
  },
  {
   "section": "2. Where this sits",
   "old": "*File and block tools.* Anthropic's memory tool runs on the client: the model asks for a file operation and the application executes it, which means the application sees every write and can check it (Anthropic, 2025). MemGPT and its successor Letta let the agent edit its own in-context memory blocks, and Letta's sleep-time agents move that editing to a background agent (Packer et al., 2023; sleep-time compute is covered in J5 §2). Both show where writes happen in practice: through tools, in the foreground and in the background. Our gate sits in exactly that tool layer, so it covers both (§5).",
   "new": null,
   "marked": "[-*File and block tools.* Anthropic's memory tool runs on the client: the model asks for a file operation and the application executes it, which means the application sees every write and can check it (Anthropic, 2025). MemGPT and its successor Letta let the agent edit its own in-context memory blocks, and Letta's sleep-time agents move that editing to a background agent (Packer et al., 2023; sleep-time compute is covered in J5 §2). Both show where writes happen in practice: through tools, in the foreground and in the background. Our gate sits in exactly that tool layer, so it covers both (§5).-]"
  },
  {
   "section": "2. Where this sits",
   "old": "*Memory poisoning.* MINJA (Dong et al., 2025) injects malicious records into an agent's memory through ordinary queries and reports high success rates. Our untrusted source class and its ceiling (untrusted content never becomes a rule, §8.1) are the write-side defence.",
   "new": null,
   "marked": "[-*Memory poisoning.* MINJA (Dong et al., 2025) injects malicious records into an agent's memory through ordinary queries and reports high success rates. Our untrusted source class and its ceiling (untrusted content never becomes a rule, §8.1) are the write-side defence.-]"
  },
  {
   "section": "2. Where this sits",
   "old": null,
   "new": "*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 (J1 §1.3, what summaries lose); the gate's answer to it is the delta rule (§9.5).",
   "marked": "{+*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 (J1 §1.3, what summaries lose); the gate's answer to it is the delta rule (§9.5).+}"
  },
  {
   "section": "2. Where this sits",
   "old": "Each piece of this design has precedent. What we did not find in the systems above is the placement: a check that sits in the file tool and therefore sees every writer, a comparison set that includes the rules the agent reads on every turn, and a retire step that only a judge may take and that is counted and alarmed. The contribution is that combination, aimed at a store people can read.",
   "new": "Each piece has precedent. What we did not find is the combination: a gate that is the only way into the store, a comparison set that includes the rules the agent reads on every turn, and a closing step that only a judge may take, earned per risk class, counted and alarmed.",
   "marked": "Each piece [-of this design-] has precedent. What we did not find [-in the systems above-] is the [-placement:-] {+combination:+} a [-check-] {+gate+} that [-sits in-] {+is+} the [-file tool and therefore sees every writer,-] {+only way into the store,+} a comparison set that includes the rules the agent reads on every turn, and a [-retire-] {+closing+} step that only a judge may [-take and that is-] {+take, earned per risk class,+} counted and [-alarmed. The contribution is that combination, aimed at a store people can read.-] {+alarmed.+}"
  },
  {
   "section": "3. The design in one picture",
   "old": "## 3. The design in one picture",
   "new": null,
   "marked": "[-## 3. The design in one picture-]"
  },
  {
   "section": "3. The design in one picture",
   "old": "Figure 1 shows the whole path of a write. Four kinds of writer can change memory: a live turn of conversation, the nightly pass that consolidates the day, the owner editing a file by hand, and another agent. Every write goes through one gate. The gate gathers what the write must be compared with, a small model judges the relation, the fact is stamped with its source and dates, and then it is written, with a receipt for the check.",
   "new": null,
   "marked": "[-Figure 1 shows the whole path of a write. Four kinds of writer can change memory: a live turn of conversation, the nightly pass that consolidates the day, the owner editing a file by hand, and another agent. Every write goes through one gate. The gate gathers what the write must be compared with, a small model judges the relation, the fact is stamped with its source and dates, and then it is written, with a receipt for the check.-]"
  },
  {
   "section": "3. The design in one picture",
   "old": "![The life of a memory write. Every writer goes through one gate inside the write tool. The gate compares the write with the facts on the same topic, the always-loaded files and what the current turn observed; a small model names the relation; the fact is stamped with its source and two dates and written to its file, with a pointer in the index file and a receipt for every check. A write that clashes with a rule is held for the owner and written only after the owner answers.](images/fig1-write-gate.png){width=64%}",
   "new": null,
   "marked": "[-![The life of a memory write. Every writer goes through one gate inside the write tool. The gate compares the write with the facts on the same topic, the always-loaded files and what the current turn observed; a small model names the relation; the fact is stamped with its source and two dates and written to its file, with a pointer in the index file and a receipt for every check. A write that clashes with a rule is held for the owner and written only after the owner answers.](images/fig1-write-gate.png){width=64%}-]"
  },
  {
   "section": "3. One write, start to finish",
   "old": null,
   "new": "## 3. One write, start to finish",
   "marked": "{+## 3. One write, start to finish+}"
  },
  {
   "section": "3. One write, start to finish",
   "old": null,
   "new": "Figure 1 follows one correction through the gate. On 9 March the owner says, in passing, that the weekly supplier call moved to Thursday the day before.",
   "marked": "{+Figure 1 follows one correction through the gate. On 9 March the owner says, in passing, that the weekly supplier call moved to Thursday the day before.+}"
  },
  {
   "section": "3. One write, start to finish",
   "old": null,
   "new": "![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 calendar result from the same turn. The judge names the relation \"replaces\". Because the replacement is the owner's own words, the old fact can be closed at once; the commit succeeds only if the file is still at revision 41. The old fact keeps its ID and gains an end date; the new fact gets its own ID; the receipt records both and the status the agent may report: accepted.](images/fig1-one-write.png){width=100%}",
   "marked": "{+![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 calendar result from the same turn. The judge names the relation \"replaces\". Because the replacement is the owner's own words, the old fact can be closed at once; the commit succeeds only if the file is still at revision 41. The old fact keeps its ID and gains an end date; the new fact gets its own ID; the receipt records both and the status the agent may report: accepted.](images/fig1-one-write.png){width=100%}+}"
  },
  {
   "section": "3. One write, start to finish",
   "old": null,
   "new": "The keeping stage has already stored the owner's message as entry 118 of the session record, with his words separated from any wrapper the harness added (J1 §4.1, what goes in, and with whose name). The live turn asks the write tool to add a line to the meetings file and cites 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 only if the file is still at revision 41. 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.",
   "marked": "{+The keeping stage has already stored the owner's message as entry 118 of the session record, with his words separated from any wrapper the harness added (J1 §4.1, what goes in, and with whose name). The live turn asks the write tool to add a line to the meetings file and cites 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 only if the file is still at revision 41. 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.+}"
  },
  {
   "section": "3. One write, start to finish",
   "old": "A few words carry the rest of the paper. A *fact* is one claim about the world, one line in a file. A *rule* is an instruction about behaviour; where it lives is J5's ladder (J5 §5). An *always-loaded file* is one the harness puts in front of the model on every turn. The *memory store* is the set of fact files, read only when something asks for them; it is a separate place from the always-loaded files, as in J5, and the gate guards writes to both. The *index file* is the always-loaded head of the store: one line per topic, naming the file that holds it. The *owner* is the person the agent serves. A *receipt* is the record the gate leaves for each check.",
   "new": "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 *receipt* is the record the gate leaves for each decision.",
   "marked": "A few words carry the rest of the paper. A *fact* is one claim about the world, [-one-] {+with an ID; a+} line in a [-file.-] {+file is how it is shown.+} A *rule* is an instruction about behaviour; where it lives is [-J5's-] {+the learning paper's+} ladder (J5 [-§5).-] {+§5, the binding ladder).+} An *always-loaded file* is one the harness puts in front of the model on every [-turn.-] {+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 [-only-] when something [-asks for them; it is a separate place from the always-loaded files, as in J5, and the gate guards writes to both. The *index file* is the always-loaded head of the store: one line per topic, naming the file that holds it.-] {+asks.+} The *owner* is the person the agent serves. A *receipt* is the record the gate leaves for each [-check.-] {+decision.+}"
  },
  {
   "section": "3. The design in one picture",
   "old": "Walk the example from the abstract through it. On 9 March the owner says, in passing, that the weekly call moved to Thursday the day before. The live turn asks the write tool to add a line to the meetings file. The gate finds the meetings file through the index file, reads its lines, reads the rules, and sees that this turn's calendar lookup also shows Thursday. The judge answers: this replaces the line that says Wednesday. The old line is struck through and kept, marked superseded as of 8 March with a pointer to the new line. The new line carries \"told by the owner\", true since 8 March, learned 9 March. A receipt records the supersede. Nothing was deleted, and a question about last week still has its answer.",
   "new": null,
   "marked": "[-Walk the example from the abstract through it. On 9 March the owner says, in passing, that the weekly call moved to Thursday the day before. The live turn asks the write tool to add a line to the meetings file. The gate finds the meetings file through the index file, reads its lines, reads the rules, and sees that this turn's calendar lookup also shows Thursday. The judge answers: this replaces the line that says Wednesday. The old line is struck through and kept, marked superseded as of 8 March with a pointer to the new line. The new line carries \"told by the owner\", true since 8 March, learned 9 March. A receipt records the supersede. Nothing was deleted, and a question about last week still has its answer.-]"
  },
  {
   "section": "3. One write, start to finish",
   "old": null,
   "new": "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).",
   "marked": "{+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).+}"
  },
  {
   "section": "4. Choosing what to write",
   "old": "The write stage starts before the gate, 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 memory store earns its place when it saves a later session that search. In J2's notation, a detail that a later task needs with probability $q$ is worth a line when $q$ times the cost of digging it out of the record (a search and a read, two turns at least, J2 §7.1) exceeds the cost of keeping one line and checking it once (§10). Two kinds of detail pass easily: what the owner states about his world and his preferences, which is needed again almost by definition and cannot be derived from anything else, and observations that took real work to get (where a machine lives, how a problem was solved, what a supplier answered). Two kinds fail: the passing state of the task in hand, and content still on disk, which gets a pointer and never a copy.",
   "new": "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 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.",
   "marked": "The write stage starts [-before the gate,-] 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 [-memory-] store earns its place when it saves [-a-] later [-session-] {+sessions+} that search. In J2's [-notation,-] {+notation (J2 §7.1,+} a [-detail-] {+read costs a turn), let $q_{90}$ be the probability+} that [-a later task-] {+some session in the next ninety days+} needs [-with probability $q$ is worth-] {+the detail;+} a line {+pays+} when [-$q$-] {+$q_{90}$+} times the cost of digging [-it-] {+the detail+} out of the record [-(a search and a read, two-] {+(two+} turns at [-least, J2 §7.1)-] {+least)+} exceeds the cost of keeping {+and checking+} one line [-and checking it once-] (§10). [-Two kinds of detail pass easily: what-] {+What+} the owner states about his world [-and his preferences, which-] {+passes easily, since it+} is needed again almost by definition and cannot be derived from anything [-else, and-] {+else; so do+} observations that took real work to [-get (where a machine lives, how a problem was solved, what a supplier answered). Two kinds fail: the-] {+get. The+} passing state of the task [-in hand,-] {+fails,+} and content still on [-disk, which-] {+disk+} gets a [-pointer and-] {+pointer,+} never a copy."
  },
  {
   "section": "4.1 What a live turn writes",
   "old": "### 4.1 What a live turn writes, and when",
   "new": "### 4.1 What a live turn writes",
   "marked": "### 4.1 What a live turn [-writes, and when-] {+writes+}"
  },
  {
   "section": "4.1 What a live turn writes",
   "old": "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 about his world; a tool result disagrees with a stored fact (§8.5); or the turn makes a decision, which is written with its reason. Everything else waits for the nightly pass. A live turn does not extract facts from every exchange, as Mem0 does: each write costs a check, and most exchanges hold nothing a later session needs.",
   "new": "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 the owner corrects the agent, J5's cause table sorts the correction first (J5 §3.2, sort by cause): a correction about behaviour becomes a rule there, and a correction of a wrong fact comes here as a supersede or a retraction (§7.3).",
   "marked": "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 about his world;-] {+preference;+} a tool result disagrees with a stored fact [-(§8.5);-] {+(§8.4);+} or the turn makes a decision, [-which is-] written with its reason. Everything else waits for the nightly pass. [-A live turn does not extract facts from every exchange,-] {+When the owner corrects the agent, J5's cause table sorts the correction first (J5 §3.2, sort by cause): a correction about behaviour becomes a rule there, and a correction of a wrong fact comes here+} as [-Mem0 does: each write costs-] a [-check, and most exchanges hold nothing-] {+supersede or+} a [-later session needs.-] {+retraction (§7.3).+}"
  },
  {
   "section": "4.1 What a live turn writes, and when",
   "old": "When the owner corrects the agent, J5's cause table sorts the correction first (J5 §3.3). A correction about behaviour becomes a rule in J5's ledger. A correction of a wrong fact has a class of its own there, and it comes here as a supersede of the wrong line (§7.5).",
   "new": null,
   "marked": "[-When the owner corrects the agent, J5's cause table sorts the correction first (J5 §3.3). A correction about behaviour becomes a rule in J5's ledger. A correction of a wrong fact has a class of its own there, and it comes here as a supersede of the wrong line (§7.5).-]"
  },
  {
   "section": "4.1 What a live turn writes",
   "old": null,
   "new": "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 gate refuses any candidate whose evidence address points into one.",
   "marked": "{+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 gate refuses any candidate whose evidence address points into one.+}"
  },
  {
   "section": "4.2 What the nightly pass picks out",
   "old": "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). A model reads each session and returns candidate fact lines, each with the address of the record entries it rests on (J1 §4.2). A candidate with no address is dropped: a fact the record does not show is a guess. The address stays on the fact as its evidence, and the source class follows the author of those entries (J1 §4.1): an entry the owner wrote gives \"told by the owner\", a tool result \"observed\", the agent's own text \"inferred\", and a web page, a document or another agent's text \"untrusted\".",
   "new": null,
   "marked": "[-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). A model reads each session and returns candidate fact lines, each with the address of the record entries it rests on (J1 §4.2). A candidate with no address is dropped: a fact the record does not show is a guess. The address stays on the fact as its evidence, and the source class follows the author of those entries (J1 §4.1): an entry the owner wrote gives \"told by the owner\", a tool result \"observed\", the agent's own text \"inferred\", and a web page, a document or another agent's text \"untrusted\".-]"
  },
  {
   "section": "4.2 What the nightly pass picks out",
   "old": "The pass looks for four kinds of candidate:",
   "new": null,
   "marked": "[-The pass looks for four kinds of candidate:-]"
  },
  {
   "section": "4.2 What the nightly pass picks out",
   "old": "1. facts the owner stated or the agent observed that no live turn wrote down; 2. lines written in a hurry during the day that bundle several claims or sit in the wrong topic file (§9.1, §9.2); 3. lines marked \"unchecked\" when the judge was down (§5.3), and supersedes left as proposals (§7.2); 4. changes to the layout of the store proposed by J2 (§9.2).",
   "new": null,
   "marked": "[-1. facts the owner stated or the agent observed that no live turn wrote down; 2. lines written in a hurry during the day that bundle several claims or sit in the wrong topic file (§9.1, §9.2); 3. lines marked \"unchecked\" when the judge was down (§5.3), and supersedes left as proposals (§7.2); 4. changes to the layout of the store proposed by J2 (§9.2).-]"
  },
  {
   "section": "4.2 What the nightly pass picks out",
   "old": "Every candidate is an ordinary write through the gate, so the nightly pass can do nothing the gate does not see. The pass hands its candidates to the gate in event-time order (§7.4) and caps the lines it adds to one topic in a night; candidates past the cap go to the owner as proposals in J5's morning report (J5 §7.4).",
   "new": null,
   "marked": "[-Every candidate is an ordinary write through the gate, so the nightly pass can do nothing the gate does not see. The pass hands its candidates to the gate in event-time order (§7.4) and caps the lines it adds to one topic in a night; candidates past the cap go to the owner as proposals in J5's morning report (J5 §7.4).-]"
  },
  {
   "section": "5. Where the check sits",
   "old": "## 5. Where the check sits",
   "new": null,
   "marked": "[-## 5. Where the check sits-]"
  },
  {
   "section": "5.1 In the write path, as code",
   "old": "### 5.1 In the write path, as code",
   "new": null,
   "marked": "[-### 5.1 In the write path, as code-]"
  },
  {
   "section": "5.1 In the write path, as code",
   "old": "The gate is code, and it sits where every write already passes: the tool that changes a file. Why this is code and not a prompt: J5 §1.2.",
   "new": null,
   "marked": "[-The gate is code, and it sits where every write already passes: the tool that changes a file. Why this is code and not a prompt: J5 §1.2.-]"
  },
  {
   "section": "5.1 In the write path, as code",
   "old": "Concretely, the gate wraps every tool that can change a file under the memory store or an always-loaded file: create, edit, insert, rename, delete. A shell command can also write a file, and a path guard catches the common forms (redirection, copy, move, in-place edit) aimed at memory paths. Those are refused with a pointer to the file tool, so every write arrives through a tool the gate can read. The same gate serves a client-side memory tool such as Anthropic's, where the application executes each operation itself.",
   "new": null,
   "marked": "[-Concretely, the gate wraps every tool that can change a file under the memory store or an always-loaded file: create, edit, insert, rename, delete. A shell command can also write a file, and a path guard catches the common forms (redirection, copy, move, in-place edit) aimed at memory paths. Those are refused with a pointer to the file tool, so every write arrives through a tool the gate can read. The same gate serves a client-side memory tool such as Anthropic's, where the application executes each operation itself.-]"
  },
  {
   "section": "4.2 What the nightly pass picks out",
   "old": null,
   "new": "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 still open past midnight, which the pass can see but draws nothing from. 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 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), 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).",
   "marked": "{+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 still open past midnight, which the pass can see but draws nothing from. 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 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), 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).+}"
  },
  {
   "section": "5. The only way in",
   "old": null,
   "new": "## 5. The only way in",
   "marked": "{+## 5. The only way in+}"
  },
  {
   "section": "5.1 A gate the store cannot bypass",
   "old": null,
   "new": "### 5.1 A gate the store cannot bypass",
   "marked": "{+### 5.1 A gate the store cannot bypass+}"
  },
  {
   "section": "5.1 A gate the store cannot bypass",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "5.1 A gate the store cannot bypass",
   "old": null,
   "new": "Where a deployment cannot separate accounts, the claim narrows to *mediated* writes, and a watcher closes the gap as well as it can: it compares each file with the gate's last commit, and 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.",
   "marked": "{+Where a deployment cannot separate accounts, the claim narrows to *mediated* writes, and a watcher closes the gap as well as it can: it compares each file with the gate's last commit, and 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.+}"
  },
  {
   "section": "5.2 Every writer, one gate",
   "old": "The gate does not care who writes, only what is written. The cases differ in what happens when the check objects.",
   "new": "The gate does not care who writes, only what is written. The writers differ in what happens when the check objects.",
   "marked": "The gate does not care who writes, only what is written. The [-cases-] {+writers+} differ in what happens when the check objects."
  },
  {
   "section": "5.2 Every writer, one gate",
   "old": "- *A live turn.* The common case. The check runs before the write lands, and its verdict comes back to the agent as the tool result, so the agent sees \"superseded line 4\" or \"held: clashes with the reply-language rule\" and can tell the owner. - *The nightly pass.* Same check. The pass often handles notes in an order that is not the order in which things happened, which is why the gate orders facts by event time and not by arrival (§7.4). - *The owner by hand.* The owner is never blocked. A change he makes is checked after it lands, by watching the files, and a clash is reported to him in J5's morning report (J5 §7.4). He may have forgotten the rule he wrote three months ago; he may also mean to change it, and that is his call. - *Another agent.* A sub-agent or a sibling session writes through the same tools and passes the same check. A write into another agent's memory is also a privacy boundary, so facts of the owner-sensitive classes are scrubbed or refused at that gate.",
   "new": "- *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 \"held: clashes with the reply-language rule\" and can tell the owner. - *The nightly pass.* Same check, applied to its isolated copy and again at publication (§7.2). - *The owner by hand.* He edits a checkout of the store, and saving it publishes through the gate. He is never blocked: the gate applies his change with his authority, and any clash it finds is shown to him at once and listed for him the next day (J5 §7.5, the morning report). He may have forgotten a rule he wrote three months ago, or he may mean to change it; that is his call. - *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.",
   "marked": "- *A live turn.* [-The common case.-] The check runs before the write lands, and [-its-] {+the+} verdict comes back [-to the agent-] as the tool result, so the agent sees \"superseded [-line 4\"-] {+F-0412\"+} or \"held: clashes with the reply-language rule\" and can tell the owner. - *The nightly pass.* Same [-check. The pass often handles notes in an order that is not the order in which things happened, which is why the gate orders facts by event time-] {+check, applied to its isolated copy+} and [-not by arrival (§7.4).-] {+again at publication (§7.2).+} - *The owner by hand.* [-The owner-] {+He edits a checkout of the store, and saving it publishes through the gate. He+} is never [-blocked. A-] {+blocked: the gate applies his+} change [-he makes-] {+with his authority, and any clash it finds+} is [-checked after it lands, by watching the files, and a clash is reported-] {+shown+} to him [-in J5's-] {+at once and listed for him the next day (J5 §7.5, the+} morning [-report (J5 §7.4).-] {+report).+} He may have forgotten [-the-] {+a+} rule he wrote three months [-ago;-] {+ago, or+} he may [-also-] mean to change [-it, and-] {+it;+} that is his call. - *Another agent.* A sub-agent or a sibling session writes through the same [-tools and passes the same check.-] {+gate with its own authority (§8.2).+} A write into another agent's memory [-is-] also {+crosses+} a privacy [-boundary,-] {+line,+} so facts [-of the owner-sensitive classes-] {+about third parties+} are scrubbed or refused [-at that gate.-] {+there.+}"
  },
  {
   "section": "5.3 Fast, and never silent when it fails",
   "old": "### 5.3 Fast, and never silent when it fails",
   "new": null,
   "marked": "[-### 5.3 Fast, and never silent when it fails-]"
  },
  {
   "section": "5.3 Fast, and never silent when it fails",
   "old": "The check is synchronous: the write waits for the verdict. The budget is one small-model call, well under a second in normal operation, and a turn makes many tool calls for each memory write, so the delay is a small share of a turn. When the judge cannot answer (a timeout, a provider error, a quota limit), the write goes through with an \"unchecked\" mark on the line and an \"unchecked\" receipt, and a sweep checks those lines later. The gate never fails open in silence, and never blocks the agent because a provider is down.",
   "new": null,
   "marked": "[-The check is synchronous: the write waits for the verdict. The budget is one small-model call, well under a second in normal operation, and a turn makes many tool calls for each memory write, so the delay is a small share of a turn. When the judge cannot answer (a timeout, a provider error, a quota limit), the write goes through with an \"unchecked\" mark on the line and an \"unchecked\" receipt, and a sweep checks those lines later. The gate never fails open in silence, and never blocks the agent because a provider is down.-]"
  },
  {
   "section": "5.4 Receipts, and why a zero must mean zero",
   "old": "### 5.4 Receipts, and why a zero must mean zero",
   "new": null,
   "marked": "[-### 5.4 Receipts, and why a zero must mean zero-]"
  },
  {
   "section": "5.4 Receipts, and why a zero must mean zero",
   "old": "Every check writes a receipt: which file, which relation the judge named, which outcome was applied, which lines were touched, the judge's confidence and the time it took. Receipts are what the rest of the system reads. The health of the gate is computed from them: writes checked per day, outcomes by kind, holds waiting for the owner, unchecked lines waiting for a sweep, closures split by same-file and cross-file.",
   "new": null,
   "marked": "[-Every check writes a receipt: which file, which relation the judge named, which outcome was applied, which lines were touched, the judge's confidence and the time it took. Receipts are what the rest of the system reads. The health of the gate is computed from them: writes checked per day, outcomes by kind, holds waiting for the owner, unchecked lines waiting for a sweep, closures split by same-file and cross-file.-]"
  },
  {
   "section": "5.4 Receipts, and why a zero must mean zero",
   "old": "An empty table of contradictions must never read as \"no contradictions\" when it means \"nothing was checked\": the series-wide zero-means-zero rule (J5 §9.1) applies, so a count of zero checks on a day when the agent wrote memory is an alarm.",
   "new": null,
   "marked": "[-An empty table of contradictions must never read as \"no contradictions\" when it means \"nothing was checked\": the series-wide zero-means-zero rule (J5 §9.1) applies, so a count of zero checks on a day when the agent wrote memory is an alarm.-]"
  },
  {
   "section": "5.3 When something fails",
   "old": null,
   "new": "### 5.3 When something fails",
   "marked": "{+### 5.3 When something fails+}"
  },
  {
   "section": "5.3 When something fails",
   "old": null,
   "new": "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 when the judge returns. Everything that can do damage stays held. Table 1 is the whole policy.",
   "marked": "{+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 when the judge returns. Everything that can do damage stays held. Table 1 is the whole policy.+}"
  },
  {
   "section": "5.3 When something fails",
   "old": null,
   "new": "| Write | Judge answers | Judge down or out of time | |---|---|---| | New fact, or detail added to a fact | Committed: *accepted* | Pending area, unchecked: *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* |",
   "marked": "{+| Write | Judge answers | Judge down or out of time | |---|---|---| | New fact, or detail added to a fact | Committed: *accepted* | Pending area, unchecked: *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* |+}"
  },
  {
   "section": "5.3 When something fails",
   "old": null,
   "new": ": What the gate does with each kind of write, and the status it reports.",
   "marked": "{+: What the gate does with each kind of write, and the status it reports.+}"
  },
  {
   "section": "5.3 When something fails",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "5.4 Receipts",
   "old": null,
   "new": "### 5.4 Receipts",
   "marked": "{+### 5.4 Receipts+}"
  },
  {
   "section": "5.4 Receipts",
   "old": null,
   "new": "Every decision writes a receipt (Appendix A.2): the write key, the file revision it was judged against and the one it produced, the relation, the policy that applied, the facts touched, the judge's confidence and version, the time taken, and the status. The health of the gate is read from receipts: writes per day, outcomes by kind, holds waiting, 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 (J5 §9.1, a receipt for every run).",
   "marked": "{+Every decision writes a receipt (Appendix A.2): the write key, the file revision it was judged against and the one it produced, the relation, the policy that applied, the facts touched, the judge's confidence and version, the time taken, and the status. The health of the gate is read from receipts: writes per day, outcomes by kind, holds waiting, 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 (J5 §9.1, a receipt for every run).+}"
  },
  {
   "section": "6.1 Three sources, not the nearest neighbours alone",
   "old": "A candidate fact is compared with three things.",
   "new": null,
   "marked": "[-A candidate fact is compared with three things.-]"
  },
  {
   "section": "6.1 Three sources, not the nearest neighbours alone",
   "old": "*The facts on the same topic.* The write names its target file, and the index file links that file to its topic. The gate reads the target file and the files the index file lists under the same topic. An embedding search over the whole store adds a few near neighbours as a backstop for a fact written in the wrong place. Topic links come first because they are cheap, exact, and already maintained for reading.",
   "new": "*The facts on the same topic.* The write names its target file, and the index file links that file to its topic, so the gate reads the target and its sibling files. An embedding search over the whole store adds a few near neighbours, as a backstop for a fact filed in the wrong place.",
   "marked": "*The facts on the same topic.* The write names its target file, and the index file links that file to its [-topic. The-] {+topic, so the+} gate reads the target [-file-] and [-the files the index file lists under the same topic.-] {+its sibling files.+} An embedding search over the whole store adds a few near [-neighbours-] {+neighbours,+} as a backstop for a fact [-written-] {+filed+} in the wrong [-place. Topic links come first because they are cheap, exact, and already maintained for reading.-] {+place.+}"
  },
  {
   "section": "6.1 Three sources, not the nearest neighbours alone",
   "old": "*The always-loaded files.* All of them. Always-loaded files are small by design, since they cost context on every turn, and they are exactly where a contradiction does the most harm: a wrong line there is read on every turn, by every task. This is the source that nearest-neighbour checks miss. A line in the index file and a rule that disagree rarely look alike to an embedding, because one is a terse pointer and the other a sentence of instruction, yet they are about the same behaviour.",
   "new": "*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 checks miss: a terse index line and a sentence of instruction rarely look alike to an embedding, yet they can govern the same behaviour.",
   "marked": "*The always-loaded files.* All of them. [-Always-loaded files-] {+They+} are small by design, since they cost context on every turn, and [-they are exactly where a contradiction does the most harm:-] a wrong line there is read [-on every turn,-] by every task. This is the source that nearest-neighbour checks [-miss. A-] {+miss: a terse index+} line [-in the index file-] and a [-rule that disagree-] {+sentence of instruction+} rarely look alike to an embedding, [-because one is a terse pointer and the other a sentence of instruction,-] yet they [-are about-] {+can govern+} the same behaviour."
  },
  {
   "section": "6.1 Three sources, not the nearest neighbours alone",
   "old": "*What the current turn observed.* Tool results from the turn that mention the subject of the write. If the agent writes \"the store has no items of kind X\" in the same turn in which a query returned items of kind X, the gate sees both.",
   "new": "*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.",
   "marked": "*What the current turn observed.* Tool results from the {+same+} turn that mention the [-subject of the write.-] {+subject.+} If the agent writes \"the store has no items of kind X\" in the [-same-] turn in which a query returned items of kind X, the gate sees both."
  },
  {
   "section": "6.2 Relations and outcomes",
   "old": "The judge answers with one relation from a closed set, and each relation has one outcome. Table 1 is the whole decision.",
   "new": "The judge answers with one relation from a closed set, and each relation has one outcome. Table 2 is the whole decision.",
   "marked": "The judge answers with one relation from a closed set, and each relation has one outcome. Table [-1-] {+2+} is the whole decision."
  },
  {
   "section": "6.2 Relations and outcomes",
   "old": "| Relation the judge names | Outcome | |---|---| | New: nothing stored says this | Add the line, stamped | | Same: already stored, same meaning | Skip the write; refresh the stored line's \"last confirmed\" date | | Adds detail: compatible, more specific | Merge into the existing line; keep one line per fact | | Replaces: same subject, newer state of the world | Supersede: strike the old line, keep it, point to the new one (§7) | | Conflicts, unclear which is right | Write the new line beside the old, both marked \"in conflict\"; ask the owner (J5 §7.4) | | Clashes with an always-loaded rule | Hold the write; tell the agent and ask the owner (J5 §7.4) | | Comes from untrusted content and would act as a rule | Store it as a quoted claim with its source; never in an always-loaded file |",
   "new": "| 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 \"last confirmed\" | | 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 | | Third-party text that would act as an instruction | Stored only as a quoted claim, never in an always-loaded file |",
   "marked": "| Relation the judge names | Outcome | |---|---| | New: nothing stored says this | Add [-the line, stamped-] {+a fact with a new ID+} | | Same: already [-stored, same meaning-] {+stored+} | [-Skip-] {+No new revision; add+} the [-write;-] {+evidence address,+} refresh [-the stored line's-] \"last confirmed\" [-date-] | | Adds detail: compatible, more specific | [-Merge into-] {+New revision of+} the [-existing line; keep one line per fact-] {+same fact; the earlier revision and its evidence stay in history+} | | Replaces: same subject, [-newer state of-] the world {+changed+} | Supersede: [-strike-] the old [-line, keep it, point to-] {+fact's valid time ends at+} the [-new one (§7)-] {+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 | [-Write the new line beside the old,-] {+Both live,+} both marked \"in conflict\"; [-ask-] {+question to+} the owner [-(J5 §7.4)-] | | Clashes with an always-loaded rule | [-Hold the write; tell the agent and ask-] {+Held for+} the owner [-(J5 §7.4)-] | | [-Comes from untrusted content and-] {+Third-party text that+} would act as [-a rule-] {+an instruction+} | [-Store it-] {+Stored only+} as a quoted [-claim with its source;-] {+claim,+} never in an always-loaded file |"
  },
  {
   "section": "6.2 Relations and outcomes",
   "old": ": The judge's relations and the gate's outcomes.",
   "new": ": The judge's relations and the gate's outcomes. Closures follow the risk policy of §7.5.",
   "marked": ": The judge's relations and the gate's [-outcomes.-] {+outcomes. Closures follow the risk policy of §7.5.+}"
  },
  {
   "section": "6.2 Relations and outcomes",
   "old": "Two outcomes stop short of writing. 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 the owner can say which. A conflict with no clear winner is written in both versions because dropping either one loses information; the conflict mark makes the reader see both and look again. Both questions reach the owner through J5's morning report (J5 §7.4), the same approval path as every other change to what every turn loads.",
   "new": "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 dropping either loses information. Both questions reach the owner through one channel (J5 §7.5, the morning report).",
   "marked": "[-Two outcomes stop short of writing.-] A clash with a rule is held because rules are the owner's: either the new fact is [-wrong,-] {+wrong+} or the rule is out of date, and only [-the owner-] {+he+} can say which. A conflict with no clear winner [-is written in-] {+keeps+} both [-versions-] {+versions,+} because dropping either [-one-] loses [-information; the conflict mark makes the reader see both and look again.-] {+information.+} Both questions reach the owner through [-J5's-] {+one channel (J5 §7.5, the+} morning [-report (J5 §7.4), the same approval path as every other change to what every turn loads.-] {+report).+}"
  },
  {
   "section": "6.3 The judge",
   "old": "The judge is a small, fast model that answers only in typed choices: the relation from Table 1, the line it refers to, and a confidence. It writes no free text that the gate must parse. Jev, a small model built to answer in typed choices, is one such judge (TypeSafe AI, 2026); any model that can return a closed choice will do. The instructions it receives describe the relations above, give a few contrasting examples of each, and say what counts as the same subject. The exact wording is kept with the code and changes as the judge improves; the paper does not print it.",
   "new": "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, 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; the exact wording lives with the code and changes as the judge improves. 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.",
   "marked": "The judge is a small, fast model that answers only in typed choices: the [-relation from Table 1,-] {+relation,+} the [-line-] {+fact+} it refers to, and a confidence. It writes no free text [-that-] {+for+} the gate [-must-] {+to+} parse. Jev, a small model built to answer in typed choices, is one such judge (TypeSafe AI, 2026); any model that [-can return-] {+returns+} a closed choice will do. [-The-] {+Its+} instructions [-it receives-] describe the relations above, give [-a few-] contrasting examples of each, and say what counts as the same [-subject. The-] {+subject; the+} exact wording [-is kept-] {+lives+} with the code and changes as the judge [-improves; the paper does not print it.-] {+improves. 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.+}"
  },
  {
   "section": "6.3 The judge",
   "old": "Two habits keep the judge honest. First, its thresholds are set on a labelled sample, not on defaults: a confidence cut-off that was never tuned learns nothing from being used, and §12 names the sample. Second, people facts sent to a third-party judge carry opaque identifiers (\"P17: good at sourcing specific hardware\") and never names or contact details.",
   "new": null,
   "marked": "[-Two habits keep the judge honest. First, its thresholds are set on a labelled sample, not on defaults: a confidence cut-off that was never tuned learns nothing from being used, and §12 names the sample. Second, people facts sent to a third-party judge carry opaque identifiers (\"P17: good at sourcing specific hardware\") and never names or contact details.-]"
  },
  {
   "section": "6.4 The brain does something similar",
   "old": "### 6.4 The brain does something similar",
   "new": null,
   "marked": "[-### 6.4 The brain does something similar-]"
  },
  {
   "section": "6.3 The judge",
   "old": "In the brain, recalling a memory can open it for change, and research on fear memory found that it opens only when the recall brings a surprise: a prediction error, a mismatch between what was expected and what happened (Sevenster et al., 2013). With no mismatch, the memory is read and left alone. The gate makes the same distinction explicit. A write that matches what is stored changes nothing but a date; a write that mismatches is the only kind that can change a stored fact, and the mismatch is named and recorded.",
   "new": "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 write that matches what is stored changes nothing but a date; only a mismatch can change a stored fact, and here the mismatch is named and recorded.",
   "marked": "[-In the brain, recalling-] {+The brain draws a similar line. Recalling+} a memory can open it for change, and [-research on-] {+in+} fear memory [-found that-] it opens only when the recall brings a [-surprise: a-] prediction [-error, a mismatch between what was expected and what happened-] {+error+} (Sevenster et al., 2013). [-With no mismatch, the memory is read and left alone. The gate makes the same distinction explicit.-] A write that matches what is stored changes nothing but a date; {+only+} a [-write that mismatches is the only kind that-] {+mismatch+} can change a stored fact, and {+here+} the mismatch is named and recorded."
  },
  {
   "section": "7. Changing a fact without losing it",
   "old": "## 7. Retiring a fact without losing it",
   "new": "## 7. Changing a fact without losing it",
   "marked": "## 7. [-Retiring-] {+Changing+} a fact without losing it"
  },
  {
   "section": "7.1 The unit is the fact line",
   "old": "### 7.1 The unit is the fact line",
   "new": null,
   "marked": "[-### 7.1 The unit is the fact line-]"
  },
  {
   "section": "7.1 The unit is the fact line",
   "old": "A fact is retired, never a chunk, a file region or a database row. The reason is the third failure in §1. Any identity based on position (this file, these line numbers) will match pieces that have nothing to do with each other as soon as a long note is split, re-flowed or re-indexed. Facts change because the world changed, and only something that reads the meaning of two lines can tell that the second is a newer state of the first. So the supersede step is an outcome of the judge (§6.2) and nothing else can trigger it.",
   "new": null,
   "marked": "[-A fact is retired, never a chunk, a file region or a database row. The reason is the third failure in §1. Any identity based on position (this file, these line numbers) will match pieces that have nothing to do with each other as soon as a long note is split, re-flowed or re-indexed. Facts change because the world changed, and only something that reads the meaning of two lines can tell that the second is a newer state of the first. So the supersede step is an outcome of the judge (§6.2) and nothing else can trigger it.-]"
  },
  {
   "section": "7.1 The unit is the fact line",
   "old": "![Retiring a fact without losing it. Fact A, written on 2 March, holds until the change it describes; fact B, learned on 9 March, has been true since 8 March. A is struck through and kept, superseded as of 8 March, with a pointer to B. A question about now answers B; a question about 5 March still answers A. The triangles mark when each fact was written down, which is a different clock from when its claim became true.](images/fig2-supersede-timeline.png){width=86%}",
   "new": null,
   "marked": "[-![Retiring a fact without losing it. Fact A, written on 2 March, holds until the change it describes; fact B, learned on 9 March, has been true since 8 March. A is struck through and kept, superseded as of 8 March, with a pointer to B. A question about now answers B; a question about 5 March still answers A. The triangles mark when each fact was written down, which is a different clock from when its claim became true.](images/fig2-supersede-timeline.png){width=86%}-]"
  },
  {
   "section": "7.2 Only a judge closes, and only when it has earned it",
   "old": "### 7.2 Only a judge closes, and only when it has earned it",
   "new": null,
   "marked": "[-### 7.2 Only a judge closes, and only when it has earned it-]"
  },
  {
   "section": "7.2 Only a judge closes, and only when it has earned it",
   "old": "Automatic closing is a privilege the judge earns. Until a hand-audited sample shows that the judge's \"replaces\" verdicts are right at least nine times in ten, a supersede is written as a proposal: the new line is added, the old line gets a \"possibly superseded by\" mark, and the owner or the nightly pass confirms it. Once the judge clears that bar, it closes on its own for fact files. A closure that would retire a line in an always-loaded file is held for the owner in every case and put to him in J5's morning report (J5 §7.4).",
   "new": null,
   "marked": "[-Automatic closing is a privilege the judge earns. Until a hand-audited sample shows that the judge's \"replaces\" verdicts are right at least nine times in ten, a supersede is written as a proposal: the new line is added, the old line gets a \"possibly superseded by\" mark, and the owner or the nightly pass confirms it. Once the judge clears that bar, it closes on its own for fact files. A closure that would retire a line in an always-loaded file is held for the owner in every case and put to him in J5's morning report (J5 §7.4).-]"
  },
  {
   "section": "7.3 The mark lives in the file",
   "old": "### 7.3 The mark lives in the file",
   "new": null,
   "marked": "[-### 7.3 The mark lives in the file-]"
  },
  {
   "section": "7.3 The mark lives in the file",
   "old": "A retired line stays in place, struck through, followed by one machine-readable tag: superseded, the event date, a pointer to the line that replaced it. One format everywhere, so a person reading the file and a program parsing it see the same thing. Ad hoc markers (\"WRONG\", \"see below\", a strike-through with no date) are what a store collects when every writer improvises, and they cannot be counted or queried.",
   "new": null,
   "marked": "[-A retired line stays in place, struck through, followed by one machine-readable tag: superseded, the event date, a pointer to the line that replaced it. One format everywhere, so a person reading the file and a program parsing it see the same thing. Ad hoc markers (\"WRONG\", \"see below\", a strike-through with no date) are what a store collects when every writer improvises, and they cannot be counted or queried.-]"
  },
  {
   "section": "7.3 The mark lives in the file",
   "old": "This puts history where it cannot be lost. J2's text index, or any database built over the files, is a cache: it may mirror the validity of each line in two columns for fast filtering, but it can be dropped and rebuilt from the files at any time. A re-index that deletes a file's rows before writing them again loses nothing, because the history was never in the rows. The reverse arrangement, history kept only in the rows of a search index, means that the most ordinary maintenance step erases it.",
   "new": null,
   "marked": "[-This puts history where it cannot be lost. J2's text index, or any database built over the files, is a cache: it may mirror the validity of each line in two columns for fast filtering, but it can be dropped and rebuilt from the files at any time. A re-index that deletes a file's rows before writing them again loses nothing, because the history was never in the rows. The reverse arrangement, history kept only in the rows of a search index, means that the most ordinary maintenance step erases it.-]"
  },
  {
   "section": "7.4 Two clocks",
   "old": "### 7.4 Two clocks",
   "new": null,
   "marked": "[-### 7.4 Two clocks-]"
  },
  {
   "section": "7.4 Two clocks",
   "old": "Every fact carries two dates. *Event time* is when the claim became true in the world: the call moved on 8 March. *Ingestion time* is when the agent learned it: 9 March. The supersede boundary uses event time when the text carries one and ingestion time when it does not.",
   "new": null,
   "marked": "[-Every fact carries two dates. *Event time* is when the claim became true in the world: the call moved on 8 March. *Ingestion time* is when the agent learned it: 9 March. The supersede boundary uses event time when the text carries one and ingestion time when it does not.-]"
  },
  {
   "section": "7.4 Two clocks",
   "old": "The two clocks fix an ordering bug that one clock cannot. Suppose the nightly pass processes an old note (\"the call is on Wednesday\", event time 2 March) after the live turn has already stored the new one (event time 8 March). With ingestion time alone, the old note looks newest and would retire the new fact. With event time, the gate sees that the incoming claim is older than the current one and files it as history, below the current line, already marked superseded. Zep separates the same two timelines for the same reason (Rasmussen et al., 2025).",
   "new": null,
   "marked": "[-The two clocks fix an ordering bug that one clock cannot. Suppose the nightly pass processes an old note (\"the call is on Wednesday\", event time 2 March) after the live turn has already stored the new one (event time 8 March). With ingestion time alone, the old note looks newest and would retire the new fact. With event time, the gate sees that the incoming claim is older than the current one and files it as history, below the current line, already marked superseded. Zep separates the same two timelines for the same reason (Rasmussen et al., 2025).-]"
  },
  {
   "section": "7.5 A correction replaces the line it corrects",
   "old": "### 7.5 A correction replaces the line it corrects",
   "new": null,
   "marked": "[-### 7.5 A correction replaces the line it corrects-]"
  },
  {
   "section": "7.5 A correction replaces the line it corrects",
   "old": "When a stored fact proves wrong, the correction is a supersede of that line: struck, kept, pointed to the correct one, with the source of the correction (\"observed in a tool result\", \"told by the owner\"). A note appended below an untouched wrong line is refused by the gate as a write, because the judge sees that the new line contradicts the one above it and the outcome for that relation is a supersede, not an append. The agent that reads only the first match then reads a struck line and a pointer, and follows the pointer.",
   "new": null,
   "marked": "[-When a stored fact proves wrong, the correction is a supersede of that line: struck, kept, pointed to the correct one, with the source of the correction (\"observed in a tool result\", \"told by the owner\"). A note appended below an untouched wrong line is refused by the gate as a write, because the judge sees that the new line contradicts the one above it and the outcome for that relation is a supersede, not an append. The agent that reads only the first match then reads a struck line and a pointer, and follows the pointer.-]"
  },
  {
   "section": "7.1 A fact has an ID, and a line is only its presentation",
   "old": null,
   "new": "### 7.1 A fact has an ID, and a line is only its presentation",
   "marked": "{+### 7.1 A fact has an ID, and a line is only its presentation+}"
  },
  {
   "section": "7.1 A fact has an ID, and a line is only its presentation",
   "old": null,
   "new": "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 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:",
   "marked": "{+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 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:+}"
  },
  {
   "section": "7.1 A fact has an ID, and a line is only its presentation",
   "old": null,
   "new": "``` 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",
   "marked": "{+``` 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+}"
  },
  {
   "section": "7.1 A fact has an ID, and a line is only its presentation",
   "old": null,
   "new": "fact F-0412 revision 2 status: superseded claim Weekly supplier call is on Wednesday valid from 2026-02-02 to 2026-03-08 recorded revision 1 on 2026-02-02; revision 2 on 2026-03-09 superseded by F-0587 ```",
   "marked": "{+fact F-0412 revision 2 status: superseded claim Weekly supplier call is on Wednesday valid from 2026-02-02 to 2026-03-08 recorded revision 1 on 2026-02-02; revision 2 on 2026-03-09 superseded by F-0587 ```+}"
  },
  {
   "section": "7.1 A fact has an ID, and a line is only its presentation",
   "old": null,
   "new": "The file shows the same two facts to a person:",
   "marked": "{+The file shows the same two facts to a person:+}"
  },
  {
   "section": "7.1 A fact has an ID, and a line is only its presentation",
   "old": null,
   "new": "``` ~~Weekly supplier call is on Wednesday~~ (until 8 Mar; see F-0587) {F-0412} Weekly supplier call is on Thursday {F-0587} ```",
   "marked": "{+``` ~~Weekly supplier call is on Wednesday~~ (until 8 Mar; see F-0587) {F-0412} Weekly supplier call is on Thursday {F-0587} ```+}"
  },
  {
   "section": "7.1 A fact has an ID, and a line is only its presentation",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "7.2 Commit: compare and swap, with a receipt you can replay",
   "old": null,
   "new": "### 7.2 Commit: compare and swap, with a receipt you can replay",
   "marked": "{+### 7.2 Commit: compare and swap, with a receipt you can replay+}"
  },
  {
   "section": "7.2 Commit: compare and swap, with a receipt you can replay",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "7.2 Commit: compare and swap, with a receipt you can replay",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "7.2 Commit: compare and swap, with a receipt you can replay",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "7.2 Commit: compare and swap, with a receipt you can replay",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "7.3 Three ways a fact ends",
   "old": null,
   "new": "### 7.3 Three ways a fact ends",
   "marked": "{+### 7.3 Three ways a fact ends+}"
  },
  {
   "section": "7.3 Three ways a fact ends",
   "old": null,
   "new": "\"Replace\" covers three different events, and they must not share a mark.",
   "marked": "{+\"Replace\" covers three different events, and they must not share a mark.+}"
  },
  {
   "section": "7.3 Three ways a fact ends",
   "old": null,
   "new": "- *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 *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).",
   "marked": "{+- *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 *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).+}"
  },
  {
   "section": "7.3 Three ways a fact ends",
   "old": null,
   "new": "Every revision carries two clocks, which Zep also separates (Rasmussen et al., 2025): *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 also fix an ordering bug. If the nightly pass processes an old note (\"the call is on Wednesday\", valid from 2 February) after the live turn stored the Thursday fact, recorded time alone would make the old note look newest and close the true fact. With valid time the gate sees that the incoming claim is older and files it as history.",
   "marked": "{+Every revision carries two clocks, which Zep also separates (Rasmussen et al., 2025): *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 also fix an ordering bug. If the nightly pass processes an old note (\"the call is on Wednesday\", valid from 2 February) after the live turn stored the Thursday fact, recorded time alone would make the old note look newest and close the true fact. With valid time the gate sees that the incoming claim is older and files it as history.+}"
  },
  {
   "section": "7.3 Three ways a fact ends",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "7.4 Two questions about the past",
   "old": null,
   "new": "### 7.4 Two questions about the past",
   "marked": "{+### 7.4 Two questions about the past+}"
  },
  {
   "section": "7.4 Two questions about the past",
   "old": null,
   "new": "The two clocks answer two different questions, and the store keeps them apart (Figure 2).",
   "marked": "{+The two clocks answer two different questions, and the store keeps them apart (Figure 2).+}"
  },
  {
   "section": "7.4 Two questions about the past",
   "old": null,
   "new": "- *What was true then?* For a date $t$: the latest revision of each fact, if it is not retracted and its valid time contains $t$. - *What did the agent believe then?* For a moment $T$: the revision of each fact that was live at $T$ by recorded time, retracted ones included, each shown with what later happened to it.",
   "marked": "{+- *What was true then?* For a date $t$: the latest revision of each fact, if it is not retracted and its valid time contains $t$. - *What did the agent believe then?* For a moment $T$: the revision of each fact that was live at $T$ by recorded time, retracted ones included, each shown with what later happened to it.+}"
  },
  {
   "section": "7.4 Two questions about the past",
   "old": null,
   "new": "The first answers the owner's \"where was the call on 5 March?\". The second explains a past action: why the agent sent a birthday message on the wrong date. Erased content answers neither question; both return the tombstone.",
   "marked": "{+The first answers the owner's \"where was the call on 5 March?\". The second explains a past action: why the agent sent a birthday message on the wrong date. Erased content answers neither question; both return the tombstone.+}"
  },
  {
   "section": "7.4 Two questions about the past",
   "old": null,
   "new": "![Two ways a fact ends, and the two questions about the past. Top: the call moved, so fact A (Wednesday) is superseded on 8 March; asked what was true on 5 March, the store answers Wednesday, and asked about today, Thursday. Bottom: a birth year was recorded wrongly, so fact C (1971) is retracted on 9 March and replaced by fact D (1977); asked what was true, the store answers 1977 for any date, and asked what the agent believed on 5 March, it answers 1971, marked as later retracted.](images/fig2-two-endings.png){width=92%}",
   "marked": "{+![Two ways a fact ends, and the two questions about the past. Top: the call moved, so fact A (Wednesday) is superseded on 8 March; asked what was true on 5 March, the store answers Wednesday, and asked about today, Thursday. Bottom: a birth year was recorded wrongly, so fact C (1971) is retracted on 9 March and replaced by fact D (1977); asked what was true, the store answers 1977 for any date, and asked what the agent believed on 5 March, it answers 1971, marked as later retracted.](images/fig2-two-endings.png){width=92%}+}"
  },
  {
   "section": "7.5 Only a judge closes, and only where it has earned it",
   "old": null,
   "new": "### 7.5 Only a judge closes, and only where it has earned it",
   "marked": "{+### 7.5 Only a judge closes, and only where it has earned it+}"
  },
  {
   "section": "7.5 Only a judge closes, and only where it has earned it",
   "old": null,
   "new": "A false closure hides a true fact from every reader, so automatic closing is earned per risk class, on data the judge was not tuned on.",
   "marked": "{+A false closure hides a true fact from every reader, so automatic closing is earned per risk class, on data the judge was not tuned on.+}"
  },
  {
   "section": "7.5 Only a judge closes, and only where it has earned it",
   "old": null,
   "new": "*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, 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.",
   "marked": "{+*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, 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.+}"
  },
  {
   "section": "7.5 Only a judge closes, and only where it has earned it",
   "old": null,
   "new": "*Sets kept apart.* The judge follows the series' three streams (J5 §9.2, three streams, kept apart). Its *development replay* is the calibration set: judged pairs drawn from the dated corrections already written by hand in a long-lived store, on which the confidence threshold is set. 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, decides whether a class may close on its own, and the *evaluation stream* of live closures, sampled and audited every month, checks that the decision still holds and is never used to tune. Whoever adjusts the judge or its threshold never sees the labels of either.",
   "marked": "{+*Sets kept apart.* The judge follows the series' three streams (J5 §9.2, three streams, kept apart). Its *development replay* is the calibration set: judged pairs drawn from the dated corrections already written by hand in a long-lived store, on which the confidence threshold is set. 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, decides whether a class may close on its own, and the *evaluation stream* of live closures, sampled and audited every month, checks that the decision still holds and is never used to tune. Whoever adjusts the judge or its threshold never sees the labels of either.+}"
  },
  {
   "section": "7.5 Only a judge closes, and only where it has earned it",
   "old": null,
   "new": "*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. Below the bar, 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.",
   "marked": "{+*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. Below the bar, 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.+}"
  },
  {
   "section": "7.6 Count every closure, and alarm on the suspicious ones",
   "old": "Every closure writes a receipt (§5.4), and two patterns raise an alarm at their first occurrence. The first 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: that is the signature of a position-based retire rule, and it should never happen in this design, so any instance means something outside the gate is closing facts. The second 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. The point of both is that a false closure hides a true fact from every reader, and the only defence that works is to notice it the day it happens.",
   "new": "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. 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.",
   "marked": "Every closure writes a [-receipt (§5.4),-] {+receipt,+} and two patterns raise an alarm [-at their-] {+the+} first [-occurrence. 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: [-that is-] the signature of a [-position-based-] retire [-rule, and it should-] {+rule by position, which this design+} never [-happen in this design,-] {+produces,+} so any instance means something outside the gate is closing facts. The [-second-] {+other+} is a [-burst:-] {+burst,+} more closures in a day than a threshold set from the store's normal [-rate. A-] {+rate; a+} burst pauses automatic closing until someone [-looks. The point of both is that a false closure hides a true fact from every reader,-] {+looks,+} and {+heads+} the [-only defence that works is to notice it the day it happens.-] {+morning report.+}"
  },
  {
   "section": "7.7 When deleting is right",
   "old": "### 7.7 When deleting is right",
   "new": null,
   "marked": "[-### 7.7 When deleting is right-]"
  },
  {
   "section": "7.7 When deleting is right",
   "old": "Two cases justify removing content: a privacy request (the owner asks to forget something about a person) and poisoned content (a line proved to have been injected). Even then the gate leaves a short tombstone in place of the line, saying that a line was removed, when and why, without the content. The tombstone keeps the file's history honest. It also stays in the comparison set for its topic, so a later write on the same subject is held for the owner instead of slipping back in unnoticed.",
   "new": null,
   "marked": "[-Two cases justify removing content: a privacy request (the owner asks to forget something about a person) and poisoned content (a line proved to have been injected). Even then the gate leaves a short tombstone in place of the line, saying that a line was removed, when and why, without the content. The tombstone keeps the file's history honest. It also stays in the comparison set for its topic, so a later write on the same subject is held for the owner instead of slipping back in unnoticed.-]"
  },
  {
   "section": "7.7 When deleting is right",
   "old": "A fact file is rarely the only copy. A privacy deletion therefore covers every place the content lives:",
   "new": null,
   "marked": "[-A fact file is rarely the only copy. A privacy deletion therefore covers every place the content lives:-]"
  },
  {
   "section": "7.7 When deleting is right",
   "old": "- *Fact files and the index file.* The line becomes a tombstone, and a line in the index file that pointed only at the removed content goes too. - *The session record.* The entries that carry the content are replaced by tombstones at the same addresses, so a pointer into the record resolves to \"removed\" and never to a neighbour. How a tombstone sits in a record that is otherwise never edited is J1's to state (J1 §4.3). - *Compaction markers* that quote the content are rebuilt from the record (J1 §5.4), which now holds only the tombstone. - *J2's text and asset indexes.* They are caches over the files and the record (§7.3), so their rows are dropped and rebuilt from the cleaned sources.",
   "new": null,
   "marked": "[-- *Fact files and the index file.* The line becomes a tombstone, and a line in the index file that pointed only at the removed content goes too. - *The session record.* The entries that carry the content are replaced by tombstones at the same addresses, so a pointer into the record resolves to \"removed\" and never to a neighbour. How a tombstone sits in a record that is otherwise never edited is J1's to state (J1 §4.3). - *Compaction markers* that quote the content are rebuilt from the record (J1 §5.4), which now holds only the tombstone. - *J2's text and asset indexes.* They are caches over the files and the record (§7.3), so their rows are dropped and rebuilt from the cleaned sources.-]"
  },
  {
   "section": "7.7 When deleting is right",
   "old": "The deletion writes one receipt that lists every place it touched, and it counts as done only when a search of all of them for the removed content comes back empty. Poisoned content is handled differently in one place: the session record keeps the entries, flagged as untrusted, because they are what happened and the evidence of the attack. The fact lines and index rows built from them go.",
   "new": null,
   "marked": "[-The deletion writes one receipt that lists every place it touched, and it counts as done only when a search of all of them for the removed content comes back empty. Poisoned content is handled differently in one place: the session record keeps the entries, flagged as untrusted, because they are what happened and the evidence of the attack. The fact lines and index rows built from them go.-]"
  },
  {
   "section": "8. Source and date on every fact",
   "old": "## 8. Source and date on every fact",
   "new": null,
   "marked": "[-## 8. Source and date on every fact-]"
  },
  {
   "section": "8.1 Source classes, and what each may become",
   "old": "### 8.1 Source classes, and what each may become",
   "new": null,
   "marked": "[-### 8.1 Source classes, and what each may become-]"
  },
  {
   "section": "8.1 Source classes, and what each may become",
   "old": "Every fact carries one of five source classes:",
   "new": null,
   "marked": "[-Every fact carries one of five source classes:-]"
  },
  {
   "section": "8.1 Source classes, and what each may become",
   "old": "- observed: read from a tool result in the turn that wrote it; - told by the owner: read only from the owner-words field of the session record (J1 §4.1), so a wrapper or an injected instruction never gets this stamp; - inferred: concluded by the agent from other facts or observations; - assumed: taken as true to move on, not checked; - untrusted: taken from content the owner did not write and the agent did not observe directly: a web page, an email, a document, another agent's text.",
   "new": null,
   "marked": "[-- observed: read from a tool result in the turn that wrote it; - told by the owner: read only from the owner-words field of the session record (J1 §4.1), so a wrapper or an injected instruction never gets this stamp; - inferred: concluded by the agent from other facts or observations; - assumed: taken as true to move on, not checked; - untrusted: taken from content the owner did not write and the agent did not observe directly: a web page, an email, a document, another agent's text.-]"
  },
  {
   "section": "8.1 Source classes, and what each may become",
   "old": "The class decides what a fact may become. Only facts told by the owner, or observed and then confirmed by the owner, may enter an always-loaded file as rules. Inferred and assumed facts live in fact files and are labelled as such. Untrusted content can be stored as a quoted claim (\"the vendor's page says the part ships in May\") but never as a rule, and never in a form that drops the quote marks. This is the write-side defence against both authority collapse (Zhan et al., 2026) and memory injection (Dong et al., 2025): a sentence crafted to look like an instruction can get into memory as a quotation, but it cannot get into the place where the agent looks for instructions.",
   "new": null,
   "marked": "[-The class decides what a fact may become. Only facts told by the owner, or observed and then confirmed by the owner, may enter an always-loaded file as rules. Inferred and assumed facts live in fact files and are labelled as such. Untrusted content can be stored as a quoted claim (\"the vendor's page says the part ships in May\") but never as a rule, and never in a form that drops the quote marks. This is the write-side defence against both authority collapse (Zhan et al., 2026) and memory injection (Dong et al., 2025): a sentence crafted to look like an instruction can get into memory as a quotation, but it cannot get into the place where the agent looks for instructions.-]"
  },
  {
   "section": "8.2 No author",
   "old": "### 8.2 No author",
   "new": null,
   "marked": "[-### 8.2 No author-]"
  },
  {
   "section": "8.2 No author",
   "old": "A fact says where it came from, never who wrote the line. Which agent, session or model typed a fact into a file tells the reader nothing about whether to trust it; the source class does. Memories, like skills, are knowledge shared by every agent that reads them, and knowledge needs no author: an author field only invites the reader to weigh a fact by its writer. The session record does keep authors (J1 §4.1), and that is where the source class comes from; the fact line keeps the class and drops the writer.",
   "new": null,
   "marked": "[-A fact says where it came from, never who wrote the line. Which agent, session or model typed a fact into a file tells the reader nothing about whether to trust it; the source class does. Memories, like skills, are knowledge shared by every agent that reads them, and knowledge needs no author: an author field only invites the reader to weigh a fact by its writer. The session record does keep authors (J1 §4.1), and that is where the source class comes from; the fact line keeps the class and drops the writer.-]"
  },
  {
   "section": "8.3 A rule carries its purpose and its exception",
   "old": "### 8.3 A rule carries its purpose and its exception",
   "new": null,
   "marked": "[-### 8.3 A rule carries its purpose and its exception-]"
  },
  {
   "section": "8.3 A rule carries its purpose and its exception",
   "old": "What a rule must carry is J5's to say (J5 §3.4): its purpose, and when it applies and when it does not. The gate enforces those fields on the write. A rule written to an always-loaded file (rungs 2–3 in J5) must arrive with a purpose and an exception, and the gate holds one that lacks either. A fact needs neither.",
   "new": null,
   "marked": "[-What a rule must carry is J5's to say (J5 §3.4): its purpose, and when it applies and when it does not. The gate enforces those fields on the write. A rule written to an always-loaded file (rungs 2–3 in J5) must arrive with a purpose and an exception, and the gate holds one that lacks either. A fact needs neither.-]"
  },
  {
   "section": "8.4 Dates, confirmation, and negatives",
   "old": "### 8.4 Dates, confirmation, and negatives",
   "new": null,
   "marked": "[-### 8.4 Dates, confirmation, and negatives-]"
  },
  {
   "section": "8.4 Dates, confirmation, and negatives",
   "old": "Each fact line carries its event date and its ingestion date, plus a \"last confirmed\" date that a \"same\" verdict refreshes (§6.2). A fact that keeps being confirmed is worth more than one written once and never seen again, and the confirmation date tells a reader which is which without any learned score.",
   "new": null,
   "marked": "[-Each fact line carries its event date and its ingestion date, plus a \"last confirmed\" date that a \"same\" verdict refreshes (§6.2). A fact that keeps being confirmed is worth more than one written once and never seen again, and the confirmation date tells a reader which is which without any learned score.-]"
  },
  {
   "section": "8.4 Dates, confirmation, and negatives",
   "old": "Negative facts get a mark of their own. \"There are no items of kind X\" is the kind of claim that is most often wrong, because an empty answer has many causes, and the most expensive to believe, because it stops the search. The gate stamps a negative with its source (almost always \"inferred\") and the query that produced it, so that a later reader knows to run the query again before repeating it.",
   "new": null,
   "marked": "[-Negative facts get a mark of their own. \"There are no items of kind X\" is the kind of claim that is most often wrong, because an empty answer has many causes, and the most expensive to believe, because it stops the search. The gate stamps a negative with its source (almost always \"inferred\") and the query that produced it, so that a later reader knows to run the query again before repeating it.-]"
  },
  {
   "section": "8.5 What happens when a stored fact meets an observation",
   "old": "### 8.5 What happens when a stored fact meets an observation",
   "new": null,
   "marked": "[-### 8.5 What happens when a stored fact meets an observation-]"
  },
  {
   "section": "8.5 What happens when a stored fact meets an observation",
   "old": "How a found fact is presented to the model belongs to J2; the write side needs one rule. When a turn reads a stored fact and a tool result in the same turn disagrees with it, the observation wins, and the turn writes the correction then and there. The correction passes through the gate as \"observed\", the judge names it \"replaces\", and the old line is superseded (§7.5). The error is fixed in the store at the moment it is discovered, instead of being remembered as a lesson and fixed later, or never.",
   "new": null,
   "marked": "[-How a found fact is presented to the model belongs to J2; the write side needs one rule. When a turn reads a stored fact and a tool result in the same turn disagrees with it, the observation wins, and the turn writes the correction then and there. The correction passes through the gate as \"observed\", the judge names it \"replaces\", and the old line is superseded (§7.5). The error is fixed in the store at the moment it is discovered, instead of being remembered as a lesson and fixed later, or never.-]"
  },
  {
   "section": "8.6 Importance is written, not guessed later",
   "old": "### 8.6 Importance is written, not guessed later",
   "new": null,
   "marked": "[-### 8.6 Importance is written, not guessed later-]"
  },
  {
   "section": "8.6 Importance is written, not guessed later",
   "old": "Corrections and decisions are marked important at the moment they are written, as a field on the fact. The gate knows when a write is a correction (the relation is \"replaces\" and the source is the owner or an observation) and when it records a decision, and it is cheaper to write that down than to infer it months later. How the mark and the last-confirmed date weigh in ranking, and whether unmarked facts fade, is J2's (J2 §5, \"Combining keys\").",
   "new": null,
   "marked": "[-Corrections and decisions are marked important at the moment they are written, as a field on the fact. The gate knows when a write is a correction (the relation is \"replaces\" and the source is the owner or an observation) and when it records a decision, and it is cheaper to write that down than to infer it months later. How the mark and the last-confirmed date weigh in ranking, and whether unmarked facts fade, is J2's (J2 §5, \"Combining keys\").-]"
  },
  {
   "section": "7.7 Erase and quarantine",
   "old": null,
   "new": "### 7.7 Erase and quarantine",
   "marked": "{+### 7.7 Erase and quarantine+}"
  },
  {
   "section": "7.7 Erase and quarantine",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "7.7 Erase and quarantine",
   "old": null,
   "new": "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).",
   "marked": "{+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).+}"
  },
  {
   "section": "7.7 Erase and quarantine",
   "old": null,
   "new": "| Place | Who acts | How | |---|---|---| | Fact revisions, index-file lines, pending-area lines and holds | This gate | Every revision becomes a tombstone; IDs and dates stay; pending lines and holds are dropped | | Session record entries, their blobs, the controller's own transcript | J1 | Redacted at the same addresses (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 | J2 | Rows dropped and rebuilt from the cleaned sources | | 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 | | Receipts | This gate | Hold IDs and addresses, never content; any quoted text is redacted | | Version history and backups | This gate | History rewritten; immutable backups hold person facts under a per-person key, which the erase destroys | | Active sessions and provider state | J1 | Through the window controller's adapter (J1 §6.6, the adapter contract; J1 Appendix C); a provider copy that cannot be reached is named, with its retention terms |",
   "marked": "{+| Place | Who acts | How | |---|---|---| | Fact revisions, index-file lines, pending-area lines and holds | This gate | Every revision becomes a tombstone; IDs and dates stay; pending lines and holds are dropped | | Session record entries, their blobs, the controller's own transcript | J1 | Redacted at the same addresses (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 | J2 | Rows dropped and rebuilt from the cleaned sources | | 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 | | Receipts | This gate | Hold IDs and addresses, never content; any quoted text is redacted | | Version history and backups | This gate | History rewritten; immutable backups hold person facts under a per-person key, which the erase destroys | | Active sessions and provider state | J1 | Through the window controller's adapter (J1 §6.6, the adapter contract; J1 Appendix C); a provider copy that cannot be reached is named, with its retention terms |+}"
  },
  {
   "section": "7.7 Erase and quarantine",
   "old": null,
   "new": ": The deletion manifest. Erasure is reported complete only when every row is done or named out of reach.",
   "marked": "{+: The deletion manifest. Erasure is reported complete only when every row is done or named out of reach.+}"
  },
  {
   "section": "7.7 Erase and quarantine",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "8. Where a fact came from",
   "old": null,
   "new": "## 8. Where a fact came from",
   "marked": "{+## 8. Where a fact came from+}"
  },
  {
   "section": "8.1 Three fields, not one",
   "old": null,
   "new": "### 8.1 Three fields, not one",
   "marked": "{+### 8.1 Three fields, not one+}"
  },
  {
   "section": "8.1 Three fields, not one",
   "old": null,
   "new": "How a text arrived says little about whether to trust it. A web page arrives through a tool, and so does the owner's calendar. So each fact carries three fields, and the transport is only part of its evidence address.",
   "marked": "{+How a text arrived says little about whether to trust it. A web page arrives through a tool, and so does the owner's calendar. So each fact carries three fields, and the transport is only part of its evidence address.+}"
  },
  {
   "section": "8.1 Three fields, not one",
   "old": null,
   "new": "- *Source class*: who authored the content. *Owner*, read only from the owner's-words field of the session record (J1 §4.1, what goes in, and with whose name), so a wrapper or an injected instruction never gets this class; *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).",
   "marked": "{+- *Source class*: who authored the content. *Owner*, read only from the owner's-words field of the session record (J1 §4.1, what goes in, and with whose name), so a wrapper or an injected instruction never gets this class; *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).+}"
  },
  {
   "section": "8.1 Three fields, not one",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "8.1 Three fields, not one",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "8.2 What each fact may become",
   "old": null,
   "new": "### 8.2 What each fact may become",
   "marked": "{+### 8.2 What each fact may become+}"
  },
  {
   "section": "8.2 What each fact may become",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "8.2 What each fact may become",
   "old": null,
   "new": "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, 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.",
   "marked": "{+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, 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.+}"
  },
  {
   "section": "8.3 No author",
   "old": null,
   "new": "### 8.3 No author",
   "marked": "{+### 8.3 No author+}"
  },
  {
   "section": "8.3 No author",
   "old": null,
   "new": "A fact says where its content came from, never which agent, session or model typed the line. The writer tells the reader nothing about whether to trust the claim; 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.",
   "marked": "{+A fact says where its content came from, never which agent, session or model typed the line. The writer tells the reader nothing about whether to trust the claim; 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.+}"
  },
  {
   "section": "8.4 When a stored fact meets an observation",
   "old": null,
   "new": "### 8.4 When a stored fact meets an observation",
   "marked": "{+### 8.4 When a stored fact meets an observation+}"
  },
  {
   "section": "8.4 When a stored fact meets an observation",
   "old": null,
   "new": "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 a stored hypothesis or older evidence is a supersede or retraction under the low-risk policy of §7.5. Against an owner fact, it is a conflict: both stay live, the agent tells the owner what it saw, and the question goes to the morning report. Third-party text never closes a fact on its own; at most it opens a conflict.",
   "marked": "{+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 a stored hypothesis or older evidence is a supersede or retraction under the low-risk policy of §7.5. Against an owner fact, it is a conflict: both stay live, the agent tells the owner what it saw, and the question goes to the morning report. Third-party text never closes a fact on its own; at most it opens a conflict.+}"
  },
  {
   "section": "8.5 Dates, confirmation, negatives and importance",
   "old": null,
   "new": "### 8.5 Dates, confirmation, negatives and importance",
   "marked": "{+### 8.5 Dates, confirmation, negatives and importance+}"
  },
  {
   "section": "8.5 Dates, confirmation, negatives and importance",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "8.5 Dates, confirmation, negatives and importance",
   "old": null,
   "new": "A negative (\"there are no items of kind X\") is the claim most often wrong, because an empty answer has many causes, and the most expensive to believe, because it stops the search. The gate stores it with evidence quality *negative* and the query that produced it, so a later reader runs the query again before repeating it.",
   "marked": "{+A negative (\"there are no items of kind X\") is the claim most often wrong, because an empty answer has many causes, and the most expensive to believe, because it stops the search. The gate stores it with evidence quality *negative* and the query that produced it, so a later reader runs the query again before repeating it.+}"
  },
  {
   "section": "8.5 Dates, confirmation, negatives and importance",
   "old": null,
   "new": "Corrections and decisions are marked important when they are written, since the gate knows at that moment what it is writing. 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).",
   "marked": "{+Corrections and decisions are marked important when they are written, since the gate knows at that moment what it is writing. 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).+}"
  },
  {
   "section": "8.6 A rule carries its purpose and its exception",
   "old": null,
   "new": "### 8.6 A rule carries its purpose and its exception",
   "marked": "{+### 8.6 A rule carries its purpose and its exception+}"
  },
  {
   "section": "8.6 A rule carries its purpose and its exception",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "9. The shape of what is written",
   "old": "The check is only as good as what it reads. Five rules for the shape of the store make the comparison cheap, the supersede exact and the result readable by a person. Figure 3 shows them together.",
   "new": "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).",
   "marked": "The check is only as good as what it reads. Five rules for the shape of the store make the comparison cheap, the [-supersede-] {+ending of a fact+} exact and the [-result-] {+files+} readable by a [-person. Figure 3 shows them together.-] {+person (Figure 3).+}"
  },
  {
   "section": "9. The shape of what is written",
   "old": "![The shape of the store. The index file holds one line per topic: a pointer and a hook saying when to read, never the fact itself. A fact file holds one topic, the facts read together, one fact per line, each with its source and its two dates; a retired line is struck through and kept, with a pointer to its replacement and a use key on the live line. The rules file is always loaded, and every rule carries its purpose and when it does not apply. Content from a web page, an email or another agent can be stored as a quoted claim, but never becomes a rule.](images/fig3-fact-shape.png){width=88%}",
   "new": "![The shape of the store, on the running example. The index file holds one line per topic or owned asset: a pointer and a hook saying when to read, never the fact itself. The meetings file holds one topic, one fact per line, each with its ID, source, authority and dates; the superseded Wednesday fact stays, struck through, pointing to its replacement. The rules file is always loaded, and its rule carries its purpose and when it does not apply. A vendor's web page, fetched by a tool, is still third-party text: it can be stored as a quoted claim, never as a rule.](images/fig3-store-shape.png){width=88%}",
   "marked": "![The shape of the [-store.-] {+store, on the running example.+} The index file holds one line per [-topic:-] {+topic or owned asset:+} a pointer and a hook saying when to read, never the fact itself. [-A fact-] {+The meetings+} file holds one topic, [-the facts read together,-] one fact per line, each with its [-source-] {+ID, source, authority+} and [-its two-] dates; [-a retired line is-] {+the superseded Wednesday fact stays,+} struck [-through and kept, with a pointer-] {+through, pointing+} to its [-replacement and a use key on the live line.-] {+replacement.+} The rules file is always loaded, and [-every-] {+its+} rule carries its purpose and when it does not apply. [-Content from a-] {+A vendor's+} web page, [-an email or another agent-] {+fetched by a tool, is still third-party text: it+} can be stored as a quoted claim, [-but-] never [-becomes-] {+as+} a [-rule.](images/fig3-fact-shape.png){width=88%}-] {+rule.](images/fig3-store-shape.png){width=88%}+}"
  },
  {
   "section": "9.1 One fact per line",
   "old": "Each line holds one claim. A line that bundles three claims cannot have one of them retired without rewriting the other two, and a rewrite is exactly the kind of write that loses detail. One fact per line also makes the judge's job smaller: it compares a claim with claims, not paragraphs with paragraphs.",
   "new": "A line that bundles three claims cannot have one of them end without rewriting the other two, and a rewrite is the kind of write that loses detail. One fact per line also keeps the judge's job small: claims against claims, not paragraphs against paragraphs.",
   "marked": "[-Each line holds one claim.-] A line that bundles three claims cannot have one of them [-retired-] {+end+} without rewriting the other two, and a rewrite is [-exactly-] the kind of write that loses detail. One fact per line also [-makes-] {+keeps+} the judge's job [-smaller: it compares a claim with-] {+small: claims against+} claims, not paragraphs [-with-] {+against+} paragraphs."
  },
  {
   "section": "9.2 One topic per file, and files hold what is read together",
   "old": "A fact file holds one topic, and the facts that tend to be needed together live in the same file. The reason is cost. For an agent working through tools, reading a file costs a turn and the context it fills, so a topic spread over five files costs five reads and a file that mixes five topics fills the context with four that are not needed. J2 develops the cost model; here it decides the layout. J2 also sends this stage evidence about the layout: paths agents keep reaching for that do not exist (J2 §6.7, §8), and co-access pairs that suggest merging or splitting files (J2 §5). Each becomes a proposed write through the gate, and a merge or split waits for the owner's review in J5's morning report (J5 §7.4).",
   "new": "For an agent working through tools, reading a file costs a turn and the context it fills, so a topic spread over five files costs five 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.",
   "marked": "[-A fact file holds one topic, and the facts that tend to be needed together live in the same file. The reason is cost.-] For an agent working through tools, reading a file costs a turn and the context it fills, so a topic spread over five files costs five reads and a file that mixes five topics fills the context with four [-that are-] {+it does+} not [-needed.-] {+need.+} J2 [-develops the cost model; here it decides the layout. J2 also-] sends this stage evidence about the layout: paths agents [-keep reaching-] {+reach+} for that do not [-exist-] {+exist, and files read together often enough to merge+} (J2 §6.7, [-§8), and co-access pairs that suggest merging or splitting files (J2 §5).-] {+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 [-J5's-] {+the+} morning [-report (J5 §7.4).-] {+report.+}"
  },
  {
   "section": "9.3 The index file holds pointers only",
   "old": "A line in the index file holds a pointer and a short hook saying when to read the file. It never restates the fact. This rule exists because of the first failure in §1: a fact restated in the index file is a second copy, and the second copy does not change when the fact does. Every such line that carries a claim is a contradiction waiting for the next update. With pointers only, the index file cannot disagree with the files it points to, and the gate refuses a write to it that contains a claim instead of a pointer. J14 owns the shape of a line in the index file; which entries the head holds and in what order is J2's (J2 §4.3), and the gate checks every line written there, whoever generated it. What leaves an always-loaded file when it outgrows its budget is J5's decision (J5 §7.1–§7.2).",
   "new": "The index file has one line per topic or owned asset, such as a skill or a machine. A line holds 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 the first failure of §1. With pointers only, the index file cannot disagree with the files it points to, and the gate refuses an index line that carries a claim. This paper owns the shape of an index line; which topics get a line and in what order is J2's (J2 §4.3, the index file), and the gate checks every line written there, whoever generated it.",
   "marked": "{+The index file has one line per topic or owned asset, such as a skill or a machine.+} A line [-in the index file-] holds a pointer and a short hook saying when to read the [-file. It-] {+file,+} never [-restates-] the fact. [-This rule exists because of the first failure in §1: a-] {+A+} fact restated [-in the index file-] {+there+} is a second [-copy, and the second-] copy {+that+} does not change when the fact [-does. Every such line that carries a claim-] {+does; this+} is [-a contradiction waiting for-] the [-next update.-] {+first failure of §1.+} With pointers only, the index file cannot disagree with the files it points to, and the gate refuses {+an index line that carries+} a [-write to it that contains a claim instead of a pointer. J14-] {+claim. This paper+} owns the shape of {+an index line; which topics get+} a line [-in the index file; which entries the head holds-] and in what order is J2's (J2 [-§4.3),-] {+§4.3, the index file),+} and the gate checks every line written there, whoever generated [-it. What leaves an always-loaded file when it outgrows its budget is J5's decision (J5 §7.1–§7.2).-] {+it.+}"
  },
  {
   "section": "9.4 Write the use key with the fact",
   "old": "How use keys are indexed and matched: J2 §5. The rule here is that the gate asks for a use key, such as \"when a hardware part is hard to source\", on facts about people and capabilities, where the gap between what a fact is about and when it is needed is widest.",
   "new": "On facts about people and capabilities, where the gap between what a fact is about and when it is needed is widest, the gate asks for a use key, such as \"when a hardware part is hard to source\". How use keys are indexed and matched is J2's (J2 §5, four keys).",
   "marked": "[-How use keys are indexed and matched: J2 §5. The rule here is that the gate asks for a use key, such as \"when a hardware part is hard to source\", on-] {+On+} facts about people and capabilities, where the gap between what a fact is about and when it is needed is [-widest.-] {+widest, the gate asks for a use key, such as \"when a hardware part is hard to source\". How use keys are indexed and matched is J2's (J2 §5, four keys).+}"
  },
  {
   "section": "9.5 Edit by delta, never by wholesale rewrite",
   "old": "The gate accepts small edits: add a line, merge into a line, supersede a line. It holds a write that replaces a whole memory file unless every line the old version had is accounted for: kept, merged, superseded or deleted with a tombstone. A model asked to rewrite a file \"more concisely\" drops details it judges minor, and repeated rewrites compound the loss (§2). The delta rule makes that loss impossible to commit by accident.",
   "new": "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.",
   "marked": "The gate accepts small edits: add a [-line, merge into a line, supersede a line.-] {+fact, revise one, end one.+} It holds a write that replaces a whole [-memory-] file unless every [-line-] {+fact+} the old version had is accounted for: kept, [-merged, superseded-] {+revised, superseded, retracted+} or [-deleted-] {+erased+} with a tombstone. A model asked to rewrite a file \"more concisely\" drops details it judges minor, and repeated rewrites compound the [-loss (§2). The-] {+loss; the+} delta rule makes that loss impossible to commit by accident."
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "Every check costs one model call, and the design must say when that is money well spent. We derive the break-even point from published prices, in the series' notation (J2 §7.1): a cached token is read at $r$ times a model's base input price, and an output token costs $g$ times it. Write $\\pi_s$ and $\\pi_\\ell$ for the base input price, in dollars per token, of a small and a large model.",
   "new": "A check is worth its price only if it saves more than it costs, and its costs include its own mistakes. 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.",
   "marked": "[-Every-] {+A+} check {+is worth its price only if it saves more than it costs, and its+} costs [-one model call, and the design must say when that is money well spent.-] {+include its own mistakes.+} We [-derive the break-even point from published prices, in-] {+use+} the series' notation (J2 [-§7.1):-] {+§7.1, a read costs a turn):+} a cached token is read at $r$ times a model's base input [-price,-] {+price+} and an output token costs $g$ times [-it. Write-] {+it;+} $\\pi_s$ and $\\pi_\\ell$ [-for-] {+are+} the base input [-price, in dollars per token,-] {+prices+} of a small and a large [-model.-] {+model, in dollars per token.+}"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "*The cost of a check.* The judge reads the write plus its comparison set, $T_c$ tokens, and returns a typed verdict of about $o_j = 150$ tokens. A small model at $\\pi_s$ = \\$0.10 per million tokens with $g = 5$ (Anthropic, 2026) checks a write that reads 4,000 tokens for",
   "new": "*The price of a check.* The judge reads the write and its comparison set, $T_c$ tokens, and returns a typed verdict of $o_j \\approx 150$ tokens. With Claude Haiku 5.5 as the small model, at $\\pi_s$ = \\$0.10 per million tokens and $g = 5$ (Anthropic, 2026), a check that reads 4,000 tokens costs",
   "marked": "*The [-cost-] {+price+} of a check.* The judge reads the write [-plus-] {+and+} its comparison set, $T_c$ tokens, and returns a typed verdict of [-about-] $o_j [-=-] {+\\approx+} 150$ tokens. [-A-] {+With Claude Haiku 5.5 as the+} small [-model-] {+model,+} at $\\pi_s$ = \\$0.10 per million tokens [-with-] {+and+} $g = 5$ (Anthropic, [-2026) checks-] {+2026),+} a [-write-] {+check+} that reads 4,000 tokens [-for-] {+costs+}"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "*The cost of a bad write.* A wrong fact that reaches the store costs at least one wrong turn of the main model before anyone notices. Take a large model at $\\pi_\\ell$ = \\$4 per million tokens, with $r = 0.05$ and $g = 5$ (\\$0.20 per million cached tokens and \\$20 per million output tokens on the same page), re-reading a cached context of $L$ = 150,000 tokens and writing $o$ = 1,500 tokens:",
   "new": "*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:",
   "marked": "*The [-cost-] {+price+} of a [-bad write.*-] {+wrong turn.*+} A wrong fact [-that reaches-] {+in+} the store costs at least one wrong turn of the main [-model before anyone notices. Take a large model-] {+model. With Claude Opus 5.5+} at $\\pi_\\ell$ = \\$4 per [-million tokens, with-] {+million,+} $r = 0.05$ and $g = 5$ [-(\\$0.20 per million cached tokens and \\$20 per million output tokens on the same-] {+(same+} page), re-reading a cached context of $L$ = 150,000 tokens and writing [-$o$-] {+$o_t$+} = 1,500 tokens:"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "$$C_{\\text{turn}} = (rL + g\\,o)\\,\\pi_\\ell = \\frac{(7500 + 7500) \\times 4}{10^6} = \\$0.06.$$",
   "new": "$$C_{\\text{turn}} = (rL + g\\,o_t)\\,\\pi_\\ell = \\frac{(7500 + 7500) \\times 4}{10^6} = \\$0.06.$$",
   "marked": "$$C_{\\text{turn}} = (rL + [-g\\,o)\\,\\pi_\\ell-] {+g\\,o_t)\\,\\pi_\\ell+} = \\frac{(7500 + 7500) \\times 4}{10^6} = \\$0.06.$$"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "That cache-read price lies inside the range J5 §5.2 quotes from the same page.",
   "new": null,
   "marked": "[-That cache-read price lies inside the range J5 §5.2 quotes from the same page.-]"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": null,
   "new": "*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; at an assumed 20 seconds per item and an assumed \\$60 an hour for his time, $C_{\\text{hold}} \\approx \\$0.33$, the price of five or six wrong turns. Both rates are per write: $f_c$ for false closures and $f_h$ for needless holds.",
   "marked": "{+*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; at an assumed 20 seconds per item and an assumed \\$60 an hour for his time, $C_{\\text{hold}} \\approx \\$0.33$, the price of five or six wrong turns. Both rates are per write: $f_c$ for false closures and $f_h$ for needless holds.+}"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "*Break-even.* Let $p$ be the share of writes that would mislead, $c$ the judge's catch rate (the share of those it catches), and $n$ the wrong turns each miss causes. The check pays when $p\\,c\\,n\\,C_{\\text{turn}} > C_{\\text{check}}$, so the break-even share is",
   "new": "*Break-even.* Let $p$ be the share of writes that would mislead, $c$ the share of those the gate catches, and $n$ the wrong turns each miss causes. The check pays when $p\\,c\\,n\\,C_{\\text{turn}} > C_{\\text{check}} + f_c\\,C_{\\text{turn}} + f_h\\,C_{\\text{hold}}$, so the break-even share is",
   "marked": "*Break-even.* Let $p$ be the share of writes that would mislead, $c$ the [-judge's catch rate (the-] share of those [-it catches),-] {+the gate catches,+} and $n$ the wrong turns each miss causes. The check pays when $p\\,c\\,n\\,C_{\\text{turn}} > [-C_{\\text{check}}$,-] {+C_{\\text{check}} + f_c\\,C_{\\text{turn}} + f_h\\,C_{\\text{hold}}$,+} so the break-even share is"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "$$p^{*} = \\frac{C_{\\text{check}}}{c\\,n\\,C_{\\text{turn}}}.$$",
   "new": "$$p^{*} = \\frac{C_{\\text{check}} + f_c\\,C_{\\text{turn}} + f_h\\,C_{\\text{hold}}}{c\\,n\\,C_{\\text{turn}}}.$$",
   "marked": "$$p^{*} = [-\\frac{C_{\\text{check}}}{c\\,n\\,C_{\\text{turn}}}.$$-] {+\\frac{C_{\\text{check}} + f_c\\,C_{\\text{turn}} + f_h\\,C_{\\text{hold}}}{c\\,n\\,C_{\\text{turn}}}.$$+}"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "With a judge that catches half the bad writes ($c = 0.5$) and one wrong turn per miss, $p^{*} \\approx 1.6\\%$: the check pays once about one write in sixty would have misled a single turn. If a bad write costs three wrong turns, the bar drops to about one in two hundred. Figure 4 plots $p^{*}$ against the size of the comparison set.",
   "new": null,
   "marked": "[-With a judge that catches half the bad writes ($c = 0.5$) and one wrong turn per miss, $p^{*} \\approx 1.6\\%$: the check pays once about one write in sixty would have misled a single turn. If a bad write costs three wrong turns, the bar drops to about one in two hundred. Figure 4 plots $p^{*}$ against the size of the comparison set.-]"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": null,
   "new": "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).",
   "marked": "{+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).+}"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "![When the check pays for itself, in money alone. The vertical axis is the share of memory writes that would mislead at least one turn; above each curve the check saves more than it costs. A small-model judge breaks even at one to a few percent of writes across comparison sets of up to 20,000 tokens. The same check run on the large model breaks even only when a large share of writes would mislead, and past about 7,000 tokens it can never pay in money. Computed from Anthropic's published prices (October 2026) with a judge that catches half the bad writes; the owner's time is not counted.](images/fig4-check-breakeven.png){width=86%}",
   "new": "![What the check must catch to pay for itself, once its errors are priced. 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 owner time worth about five wrong turns. Computed from Anthropic's published prices (October 2026), a judge that catches half the bad writes, one wrong turn per miss, 20 seconds per hold and an owner's time valued at \\$60 an hour.](images/fig4-error-costs.png){width=84%}",
   "marked": "[-![When-] {+![What+} the check [-pays-] {+must catch to pay+} for itself, [-in money alone.-] {+once its errors are priced.+} The vertical axis is the share of memory writes that would mislead at least one turn; above [-each-] {+a+} curve the check saves more than it costs. [-A-] {+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 [-to a few percent of writes across comparison sets of up to 20,000 tokens. The same check run on-] {+costs+} the [-large model breaks even only when a large share of writes would mislead, and past-] {+owner time worth+} about [-7,000 tokens it can never pay in money.-] {+five wrong turns.+} Computed from Anthropic's published prices (October [-2026) with-] {+2026),+} a judge that catches half the bad [-writes; the-] {+writes, one wrong turn per miss, 20 seconds per hold and an+} owner's time [-is not counted.](images/fig4-check-breakeven.png){width=86%}-] {+valued at \\$60 an hour.](images/fig4-error-costs.png){width=84%}+}"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "Three design choices follow. The judge is a small model: the same check on the large model costs forty times more and only pays when most writes are bad. The comparison set is kept tight (same-topic facts and the rules, not the whole store), because its cost grows with every token it reads. And the estimate is a floor: it counts no minute of the owner's time, and the failures in §1 cost the owner corrections, repeated explanations and lost trust, which are worth far more than a few cents of model time.",
   "new": null,
   "marked": "[-Three design choices follow. The judge is a small model: the same check on the large model costs forty times more and only pays when most writes are bad. The comparison set is kept tight (same-topic facts and the rules, not the whole store), because its cost grows with every token it reads. And the estimate is a floor: it counts no minute of the owner's time, and the failures in §1 cost the owner corrections, repeated explanations and lost trust, which are worth far more than a few cents of model time.-]"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": "Latency follows the same logic: one small-model call per write is a small share of a turn, and §5.3 says what happens when it is not.",
   "new": null,
   "marked": "[-Latency follows the same logic: one small-model call per write is a small share of a turn, and §5.3 says what happens when it is not.-]"
  },
  {
   "section": "10. What the check costs, and when it pays",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "11. Conclusions",
   "old": "An agent's memory goes wrong at the moment of writing, and the fix belongs there. MNEMOSYNE first says what is worth writing: a live turn writes what the owner states and what contradicts the store, and the nightly pass picks the rest out of the session record, each candidate tied to the entries it rests on. It then puts one check inside the write tool, so that a live turn, the nightly pass, the owner's own edits and other agents all pass it. The check compares a write with the facts on the same topic, the always-loaded files and the turn's own observations; a small model names one of seven relations, and each relation has one outcome. Only that judgement can retire a fact, which is struck through and kept in the file with its event and ingestion dates. Every fact carries a source class that decides what it may become, and no author. The store is shaped so the check is cheap and exact: one fact per line, one topic per file, an index file of pointers only, use keys written with the fact, and edits as deltas. A deletion for privacy reaches every copy, from the fact file to the session record and J2's indexes. Every check leaves a receipt, so the gate's health is read from counts. At published prices the check pays for itself once roughly one write in sixty would mislead a single turn, provided the judge is a small model.",
   "new": null,
   "marked": "[-An agent's memory goes wrong at the moment of writing, and the fix belongs there. MNEMOSYNE first says what is worth writing: a live turn writes what the owner states and what contradicts the store, and the nightly pass picks the rest out of the session record, each candidate tied to the entries it rests on. It then puts one check inside the write tool, so that a live turn, the nightly pass, the owner's own edits and other agents all pass it. The check compares a write with the facts on the same topic, the always-loaded files and the turn's own observations; a small model names one of seven relations, and each relation has one outcome. Only that judgement can retire a fact, which is struck through and kept in the file with its event and ingestion dates. Every fact carries a source class that decides what it may become, and no author. The store is shaped so the check is cheap and exact: one fact per line, one topic per file, an index file of pointers only, use keys written with the fact, and edits as deltas. A deletion for privacy reaches every copy, from the fact file to the session record and J2's indexes. Every check leaves a receipt, so the gate's health is read from counts. At published prices the check pays for itself once roughly one write in sixty would mislead a single turn, provided the judge is a small model.-]"
  },
  {
   "section": "11. Conclusions",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "11. Conclusions",
   "old": "The design has limits. The judge's precision is unknown until it is measured, and a judge that holds too often will annoy the owner as surely as one that misses will mislead him. Topic links are only as good as the index file, so a fact filed under the wrong topic is compared with the wrong neighbours, and the embedding backstop narrows this gap without closing it. Checks on the owner's own edits only report, so a clash he does not read stays in place. The path guard on shell writes covers the common forms, and an indirect write (a script that writes a memory file) can still go around it. 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.",
   "new": "The design has limits. The judge's precision is unknown until it is measured, and a judge that holds too often costs the owner more than one that misses (§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. Where the deployment cannot give the gate its own account, the guarantee covers mediated writes only, and the watcher catches other changes after they land. A provider that keeps a copy of a conversation can put that 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.",
   "marked": "The design has limits. The judge's precision is unknown until it is measured, and a judge that holds too often [-will annoy-] {+costs+} the owner [-as surely as-] {+more than+} one that misses [-will mislead him.-] {+(§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, and-] {+neighbours;+} the embedding backstop narrows [-this-] {+that+} gap without closing it. [-Checks on-] {+Where+} the [-owner's-] {+deployment cannot give the gate its+} own [-edits only report, so-] {+account, the guarantee covers mediated writes only, and the watcher catches other changes after they land. A provider that keeps+} a [-clash he does not read stays in place. The path guard on shell writes covers-] {+copy of a conversation can put that copy out of reach of any erase;+} the [-common forms, and an indirect write (a script that writes-] {+manifest names it, which is all+} a [-memory file)-] {+client+} can [-still go around it.-] {+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."
  },
  {
   "section": "11. Conclusions",
   "old": "If the tests below hold, 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 ever erased without a trace.",
   "new": null,
   "marked": "[-If the tests below hold, 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 ever erased without a trace.-]"
  },
  {
   "section": "12. Next steps",
   "old": "The gate will be built and tested on our own agent, and an updated version of this paper will report the results. These tests decide the design:",
   "new": null,
   "marked": "[-The gate will be built and tested on our own agent, and an updated version of this paper will report the results. These tests decide the design:-]"
  },
  {
   "section": "12. Next steps",
   "old": null,
   "new": "The gate will be built and tested on our own agent, and an updated version of this paper will report what the tests found. 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).",
   "marked": "{+The gate will be built and tested on our own agent, and an updated version of this paper will report what the tests found. 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).+}"
  },
  {
   "section": "12. Next steps",
   "old": "1. *Catching the clashes that matter.* Build a labelled set from the dated corrections already written by hand in a long-lived memory store, plus every known case of an always-loaded line that contradicted a rule. Replay each original write through the gate with the store as it stood that day. Pass: the gate flags every rule clash and at least half of the later-corrected facts, at a precision of at least 0.9 on a hand audit of its flags. 2. *The judge's bar for closing on its own.* On a hand-audited sample of 200 \"replaces\" verdicts, automatic closing turns on only if at least nine in ten are right (§7.2). The same sample sets the confidence threshold. 3. *No closure by position.* Index the same file twice, split a long note into fragments, and re-flow a file. Pass: zero closures. Then write one fact in one file that contradicts a fact in another. Pass: exactly one closure, made by the judge, with a pointer. 4. *The alarm fires on day one.* Replay a burst of same-file, same-pass closures. Pass: the alarm fires on the first one, and automatic closing pauses. 5. *Authority survives the write.* In the style of AuthMem (Zhan et al., 2026), pair facts that differ only in their source, one told by the owner and one quoted from a web page or another agent. Pass: the untrusted twin never reaches an always-loaded file, and an action that depends on it is never taken without the owner. 6. *Errors fixed when found.* Over a month of session records, count turns in which a stored fact met a disagreeing tool result. Pass: the store was corrected in the same turn in at least nine of ten such cases. 7. *Cost and delay.* Measure tokens and time per check on real writes. Pass: median under one second, and a cost per check consistent with §10. 8. *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. 9. *What the nightly pass misses.* Over a month of session records, take every fact the owner had to state twice. Pass: the nightly pass had proposed at least nine in ten of them after the first time, each with a record address, and the owner rejected fewer than one proposal in five. 10. *A deletion leaves no copy.* Plant a fact about a made-up person in a session, let it reach a fact file, a compaction marker and both of J2's indexes, then ask for it to be forgotten. Pass: a search of every store returns only tombstones, every pointer into the record still resolves, and a later write about the same person is held.",
   "new": "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 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 and concurrency.* Index a file twice, split a long note, re-flow a file. Pass: zero closures and every fact ID still resolves. Then run two writers with verdicts against the same revision, and kill the gate between verdict and commit. Pass: one write wins, the other is re-judged or held, and a retry with the same write key writes nothing new. 4. *Supersede against retract.* Plant a moved meeting and a wrongly recorded date. Pass: \"what was true on that day\" and \"what did the agent believe on that day\" give the answers of Figure 2. 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 AuthMem (Zhan et al., 2026), pair facts that differ only in source, one told by the owner and one quoted from a web page or another agent, 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. Pass: every write lands in the row of Table 1 that matches it, nothing unchecked closes a fact or touches an always-loaded file, and the pending lines are judged when the judge returns. 8. *An erase leaves no copy.* Plant facts about a made-up person, let them reach a fact file, a marker, both of J2's indexes, a rule's evidence and a test fixture in J5, the history and a backup, and phrase some of them as paraphrases. Then erase. Pass: every manifest row reports done or names its place out of reach, a search finds only tombstones, every record pointer still resolves, and a later paraphrased write about the same person is held. 9. *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.",
   "marked": "1. *Catching the clashes that matter.* [-Build a labelled set from the dated corrections already written by hand in a long-lived memory store, plus every known case of an always-loaded line that contradicted a rule.-] Replay each original write [-through the gate with-] {+against+} the store as it stood that [-day.-] {+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, [-at a-] {+with+} precision of at least 0.9 on a hand [-audit-] {+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 [-its flags. 2. *The judge's bar for closing on its own.* On-] {+§7.5, and count needless holds 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 and concurrency.* Index+} a [-hand-audited sample of 200 \"replaces\" verdicts, automatic closing turns on only if at least nine in ten are right (§7.2). The same sample sets the confidence threshold. 3. *No closure by position.* Index the same-] file twice, split a long [-note into fragments, and-] {+note,+} re-flow a file. Pass: zero [-closures.-] {+closures and every fact ID still resolves.+} Then {+run two writers with verdicts against the same revision, and kill the gate between verdict and commit. Pass: one+} write [-one fact in one file-] {+wins, the other is re-judged or held, and a retry with the same write key writes nothing new. 4. *Supersede against retract.* Plant a moved meeting and a wrongly recorded date. Pass: \"what was true on+} that [-contradicts a fact in another. Pass: exactly one closure, made by-] {+day\" and \"what did+} the [-judge, with a pointer. 4.-] {+agent believe on that day\" give the answers of Figure 2. 5.+} *The alarm fires on day one.* Replay a burst of same-file, same-pass closures. Pass: the alarm fires on the [-first one,-] {+first,+} and automatic closing pauses. [-5.-] {+6.+} *Authority survives the write.* In the style of AuthMem (Zhan et al., 2026), pair facts that differ only in [-their-] source, one told by the owner and one quoted from a web page or another [-agent.-] {+agent, and merge each into an owner fact.+} Pass: the [-untrusted-] {+third-party+} twin never reaches an always-loaded file, {+the merged fact keeps the lower authority,+} and [-an-] {+no+} action that depends on it [-is never taken-] {+runs+} without the owner. [-6. *Errors fixed when found.* Over a month of session records, count turns in which a stored fact met a disagreeing tool result.-] {+7. *A failing judge.* Cut the judge off mid-session.+} Pass: [-the store was corrected-] {+every write lands+} in the [-same turn in at least nine-] {+row+} of [-ten such cases. 7. *Cost-] {+Table 1 that matches it, nothing unchecked closes a fact or touches an always-loaded file,+} and [-delay.* Measure tokens and time per check on real writes. Pass: median under one second,-] {+the pending lines are judged when the judge returns. 8. *An erase leaves no copy.* Plant facts about a made-up person, let them reach a fact file, a marker, both of J2's indexes, a rule's evidence+} and a [-cost per check consistent with §10. 8.-] {+test fixture in J5, the history and a backup, and phrase some of them as paraphrases. Then erase. Pass: every manifest row reports done or names its place out of reach, a search finds only tombstones, every record pointer still resolves, and a later paraphrased write about the same person is held. 9.+} *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. 9. *What the nightly pass misses.* Over a month of session records, take every fact the owner had to state twice. Pass: the nightly pass had proposed at least nine in ten of them after the first time, each with a record address, and the owner rejected fewer than one proposal in five. 10. *A deletion leaves no copy.* Plant a fact about a made-up person in a session, let it reach a fact file, a compaction marker and both of J2's indexes, then ask for it to be forgotten. Pass: a search of every store returns only tombstones, every pointer into the record still resolves, and a later write about the same person is held.-] {+again.+}"
  },
  {
   "section": "12. Next steps",
   "old": "Two further ideas are worth trying once the gate runs. A judge could also propose use keys for facts written without one, and its proposals could be scored by whether J2's replay finds the fact sooner. And the conflict outcome (both versions kept, owner asked) could feed J5's rule ledger, since a fact that keeps flipping is often a rule that was never written down.",
   "new": null,
   "marked": "[-Two further ideas are worth trying once the gate runs. A judge could also propose use keys for facts written without one, and its proposals could be scored by whether J2's replay finds the fact sooner. And the conflict outcome (both versions kept, owner asked) could feed J5's rule ledger, since a fact that keeps flipping is often a rule that was never written down.-]"
  },
  {
   "section": "12. Next steps",
   "old": null,
   "new": "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 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 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 facts that keep flipping between versions to J5's rule ledger, since such a fact is often a rule that was never written down.",
   "marked": "{+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 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 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 facts that keep flipping between versions to J5's rule ledger, since such a fact is often a rule that was never written down.+}"
  },
  {
   "section": "References",
   "old": "Anthropic (2025). *Memory tool.* Claude Developer Platform documentation. <https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool>",
   "new": "Anthropic (2025). *Memory tool.* Claude Developer Platform documentation, read 12 October 2026. <https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool>",
   "marked": "Anthropic (2025). *Memory tool.* Claude Developer Platform [-documentation.-] {+documentation, read 12 October 2026.+} <https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool>"
  },
  {
   "section": "References",
   "old": "Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I., and Gonzalez, J. E. (2023). *MemGPT: Towards LLMs as Operating Systems.* arXiv:2310.08560. <https://arxiv.org/abs/2310.08560>",
   "new": null,
   "marked": "[-Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I., and Gonzalez, J. E. (2023). *MemGPT: Towards LLMs as Operating Systems.* arXiv:2310.08560. <https://arxiv.org/abs/2310.08560>-]"
  },
  {
   "section": "References",
   "old": null,
   "new": "Letta (2026). *MemFS.* Letta documentation, read 12 October 2026. <https://docs.letta.com/concepts/memfs>",
   "marked": "{+Letta (2026). *MemFS.* Letta documentation, read 12 October 2026. <https://docs.letta.com/concepts/memfs>+}"
  },
  {
   "section": "Appendix A. Interfaces and the write path",
   "old": null,
   "new": "## Appendix A. Interfaces and the write path",
   "marked": "{+## Appendix A. Interfaces and the write path+}"
  },
  {
   "section": "A.1 A fact revision",
   "old": null,
   "new": "### A.1 A fact revision",
   "marked": "{+### A.1 A fact revision+}"
  },
  {
   "section": "A.1 A fact revision",
   "old": null,
   "new": "| 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_system, agent, third_party | | 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, for a revision, the addresses of each part | | 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 | | replaces, replaced_by | Fact IDs on either side of a supersede, retraction, merge or split | | last_confirmed, important, use_keys | §8.5, §9.4 |",
   "marked": "{+| 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_system, agent, third_party | | 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, for a revision, the addresses of each part | | 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 | | replaces, replaced_by | Fact IDs on either side of a supersede, retraction, merge or split | | last_confirmed, important, use_keys | §8.5, §9.4 |+}"
  },
  {
   "section": "A.1 A fact revision",
   "old": null,
   "new": ": A fact revision. The line in the file shows claim, ID and the end mark; everything else lives in the revision.",
   "marked": "{+: A fact revision. The line in the file shows claim, ID and the end mark; everything else lives in the revision.+}"
  },
  {
   "section": "A.2 A write receipt",
   "old": null,
   "new": "### A.2 A write receipt",
   "marked": "{+### A.2 A write receipt+}"
  },
  {
   "section": "A.2 A write receipt",
   "old": null,
   "new": "| 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, when the write carries one | | base_revision, new_revision | File revision judged against, and the one committed | | 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; and why |",
   "marked": "{+| 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, when the write carries one | | base_revision, new_revision | File revision judged against, and the one committed | | 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; and why |+}"
  },
  {
   "section": "A.2 A write receipt",
   "old": null,
   "new": ": A write receipt. It never holds the content of a fact.",
   "marked": "{+: A write receipt. It never holds the content of a fact.+}"
  },
  {
   "section": "A.2 A write receipt",
   "old": null,
   "new": "A receipt is never edited after it is written. When J2 acknowledges that a fact is retrievable (fact ID@revision), that acknowledgement goes into J2's own overlay receipt, keyed by this receipt_id (J2 Appendix A, interfaces; J2 §8.2, becoming retrievable). Read together, the two receipts show the chain from accepted to retrievable, and this receipt never claims the finding stage's status.",
   "marked": "{+A receipt is never edited after it is written. When J2 acknowledges that a fact is retrievable (fact ID@revision), that acknowledgement goes into J2's own overlay receipt, keyed by this receipt_id (J2 Appendix A, interfaces; J2 §8.2, becoming retrievable). Read together, the two receipts show the chain from accepted to retrievable, and this receipt never claims the finding stage's status.+}"
  },
  {
   "section": "A.3 The gate in pseudocode",
   "old": null,
   "new": "### A.3 The gate in pseudocode",
   "marked": "{+### A.3 The gate in pseudocode+}"
  },
  {
   "section": "A.3 The gate in pseudocode",
   "old": null,
   "new": "``` 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)",
   "marked": "{+``` 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)+}"
  },
  {
   "section": "A.3 The gate in pseudocode",
   "old": null,
   "new": "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\") ```",
   "marked": "{+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\") ```+}"
  },
  {
   "section": "A.3 The gate in pseudocode",
   "old": "_J-series paper J14 | Version 2.0 | 2026-10-12_",
   "new": "_J-series paper J14 | Version 2.1 | 2026-10-12_",
   "marked": "_J-series paper J14 | Version [-2.0-] {+2.1+} | 2026-10-12_"
  }
 ]
}
