{
 "paper": "sleep-consolidation",
 "a": "1.1",
 "b": "5.0",
 "summary": "From v1.1 (10 Mar) to v5.0 (1 Apr): 6,238 words to 6,398 words, 1,061 words in new or rewritten paragraphs and 901 taken out, 143 paragraphs changed.",
 "note": {
  "title": "Renamed Sleep Consolidation; memory must be sorted by use",
  "kind": "rename-or-merge",
  "body": "## Summary\n\nThe paper gets its present name. The brain analogy widens from the cerebellum alone to what sleep does for memory as a whole. A new point leads the abstract: scattered memories are almost useless, and the value comes from sorting them by the task that will need them. The rest of the text carries over with light editing. The paper's own history mentions a v2.0 (13 March) that fixed references and tightened prose; no separate file of it survives.\n\n- Title and framework renamed from Prompt Cerebellum to Sleep Consolidation.\n- New paragraph: sort memories by use-case, not by date.\n- The changelog becomes an appendix, Revision History.",
  "source": "change note"
 },
 "paragraphs_changed": 143,
 "changes": [
  {
   "section": "Sleep Consolidation: How Structured Nightly Prompting Produces Emergent Behavioral Improvement in Stateless AI Agents",
   "old": "# The Prompt Cerebellum: How Structured Nightly Prompting Produces Emergent Intelligence in Stateless AI Agents",
   "new": "# Sleep Consolidation: How Structured Nightly Prompting Produces Emergent Behavioral Improvement in Stateless AI Agents",
   "marked": "# [-The Prompt Cerebellum:-] {+Sleep Consolidation:+} How Structured Nightly Prompting Produces Emergent [-Intelligence-] {+Behavioral Improvement+} in Stateless AI Agents"
  },
  {
   "section": "Sleep Consolidation: How Structured Nightly Prompting Produces Emergent Behavioral Improvement in Stateless AI Agents",
   "old": "**Authors:** Oscar Serra, JarvisOne AI Research **Date:** March 2026 (v1.1) **Keywords:** emergent intelligence, prompt engineering, cron-driven learning, self-improving agents, fractal metacognition, autonomous orchestration, memory consolidation, operational lessons",
   "new": "**Authors:** Oscar Serra, JarvisOne AI Research **Date:** March 2026 (v5.0) **Keywords:** emergent behavior, prompt engineering, cron-driven learning, self-improving agents, fractal metacognition, autonomous orchestration, memory consolidation, operational lessons",
   "marked": "**Authors:** Oscar Serra, JarvisOne AI Research **Date:** March 2026 [-(v1.1)-] {+(v5.0)+} **Keywords:** emergent [-intelligence,-] {+behavior,+} prompt engineering, cron-driven learning, self-improving agents, fractal metacognition, autonomous orchestration, memory consolidation, operational lessons"
  },
  {
   "section": "Abstract",
   "old": "Large language model agents are stateless by nature -- every session begins from zero. Current approaches to persistent intelligence rely on fine-tuning, RAG, or expanding context windows. We present a different mechanism observed over 30 days of production operation: **structured nightly prompt cycles** that produce compounding behavioral improvements without weight updates, fine-tuning, or architectural changes. A personal AI assistant (Jarvis/OpenClaw) running 13 autonomous cron jobs exhibited a decline in recurring error classes from 14 incidents (weeks 1--2) to 1 incident (weeks 3--4) across five tracked categories, while simultaneously discovering a new, higher-order error class -- not because the model improved, but because the *prompts and memory files the model reads* were iteratively refined through the model's own scheduled reflection loops.",
   "new": "Large language model agents are stateless by nature -- every session begins at zero. Existing approaches to persistence usually rely on fine-tuning, retrieval-augmented generation, or larger context windows. We present a different mechanism observed over 30 days of production operation: **structured nightly prompt cycles** that produce compounding behavioral improvement without weight updates, fine-tuning, or architectural changes. A personal AI assistant (Jarvis/OpenClaw) running 13 autonomous cron jobs exhibited a decline in tracked incidents from 14 (weeks 1--2) to 3 (weeks 3--4) across six error categories -- a 79% reduction overall, with five of the original categories reaching zero recurrence while a new, higher-order error class emerged. The model did not change. The files it read did.",
   "marked": "Large language model agents are stateless by nature -- every session begins [-from-] {+at+} zero. [-Current-] {+Existing+} approaches to [-persistent intelligence-] {+persistence usually+} rely on fine-tuning, [-RAG,-] {+retrieval-augmented generation,+} or [-expanding-] {+larger+} context windows. We present a different mechanism observed over 30 days of production operation: **structured nightly prompt cycles** that produce compounding behavioral [-improvements-] {+improvement+} without weight updates, fine-tuning, or architectural changes. A personal AI assistant (Jarvis/OpenClaw) running 13 autonomous cron jobs exhibited a decline in [-recurring error classes-] {+tracked incidents+} from 14 [-incidents-] (weeks 1--2) to [-1 incident-] {+3+} (weeks 3--4) across {+six error categories -- a 79% reduction overall, with+} five [-tracked categories,-] {+of the original categories reaching zero recurrence+} while [-simultaneously discovering-] a new, higher-order error class [----] {+emerged. The model did+} not [-because the model improved, but because the *prompts and memory-] {+change. The+} files [-the model reads* were iteratively refined through the model's own scheduled reflection loops.-] {+it read did.+}"
  },
  {
   "section": "Abstract",
   "old": null,
   "new": "The central insight is blunt: **scattered memories are almost useless.** Raw accumulation does not create intelligence. The value comes from **sorting by use-case** so retrieval is cheap, relevant, and actionable. Memories organized by **purpose rather than chronology** let the system pull the right rule at the right moment. Prompts that have learned from yesterday's mistakes do more than remember the past; they reshape future behavior.",
   "marked": "{+The central insight is blunt: **scattered memories are almost useless.** Raw accumulation does not create intelligence. The value comes from **sorting by use-case** so retrieval is cheap, relevant, and actionable. Memories organized by **purpose rather than chronology** let the system pull the right rule at the right moment. Prompts that have learned from yesterday's mistakes do more than remember the past; they reshape future behavior.+}"
  },
  {
   "section": "Abstract",
   "old": "We formalize this as the **Prompt Cerebellum** -- a system where explicit, deliberate prompts are iteratively refined through experience until they produce automatic, high-quality behavior, analogous to how the biological cerebellum transforms conscious motor learning into fluid automatic execution. We identify three core mechanisms: (1) **failure-driven prompt mutation**, where operational errors trigger targeted prompt refinements (14 mutations documented, all traced to specific incidents); (2) **fractal depth calibration**, where the system learns to allocate metacognitive effort proportionally to task significance; and (3) **cross-cron knowledge transfer**, where lessons learned in one autonomous task propagate to all others through shared memory files (5 documented cross-domain transfer events).",
   "new": "We formalize this as **Sleep Consolidation** -- a system in which explicit operating prompts are iteratively refined through experience until they produce increasingly automatic, high-quality behavior, analogous to how biological sleep consolidation transforms deliberate practice into smooth execution. We identify three core mechanisms: (1) **failure-driven prompt mutation**, where operational errors trigger targeted prompt refinements (14 mutations documented, all traced to specific incidents); (2) **fractal depth calibration**, where the system learns to allocate metacognitive effort in proportion to task significance; and (3) **cross-cron knowledge transfer**, where lessons learned in one autonomous task propagate to all others through shared memory files (5 documented cross-domain transfer events).",
   "marked": "We formalize this as [-the **Prompt Cerebellum**-] {+**Sleep Consolidation**+} -- a system [-where explicit, deliberate-] {+in which explicit operating+} prompts are iteratively refined through experience until they produce {+increasingly+} automatic, high-quality behavior, analogous to how [-the-] biological [-cerebellum-] {+sleep consolidation+} transforms [-conscious motor learning-] {+deliberate practice+} into [-fluid automatic-] {+smooth+} execution. We identify three core mechanisms: (1) **failure-driven prompt mutation**, where operational errors trigger targeted prompt refinements (14 mutations documented, all traced to specific incidents); (2) **fractal depth calibration**, where the system learns to allocate metacognitive effort [-proportionally-] {+in proportion+} to task significance; and (3) **cross-cron knowledge transfer**, where lessons learned in one autonomous task propagate to all others through shared memory files (5 documented cross-domain transfer events)."
  },
  {
   "section": "Abstract",
   "old": "We argue that this approach -- prompts that rewrite themselves through structured reflection -- represents an underexplored middle ground between static prompt engineering and expensive fine-tuning, accessible to any agent system with file persistence and scheduled execution. Total reflection overhead: approximately 43,000 tokens per night ($1.17), against an estimated 8 avoided human-intervention incidents over 30 days.",
   "new": "We argue that this approach -- prompts that rewrite themselves through structured reflection -- occupies an underexplored middle ground between static prompt engineering and expensive fine-tuning. It is accessible to any agent system with file persistence and scheduled execution. Total reflection overhead: approximately 43,000 tokens per night ($1.17), against an estimated 8 avoided human-intervention incidents over 30 days.",
   "marked": "We argue that this approach -- prompts that rewrite themselves through structured reflection -- [-represents-] {+occupies+} an underexplored middle ground between static prompt engineering and expensive [-fine-tuning,-] {+fine-tuning. It is+} accessible to any agent system with file persistence and scheduled execution. Total reflection overhead: approximately 43,000 tokens per night ($1.17), against an estimated 8 avoided human-intervention incidents over 30 days."
  },
  {
   "section": "Contributions",
   "old": "1. **The Prompt Cerebellum framework**: a formalized architecture for scheduled, autonomous prompt self-improvement through failure-driven mutation, abstraction-level encoding, and cross-task propagation. 2. **Production evidence over 30 days**: 14 documented prompt mutations, 5 error class extinctions, 5 cross-cron transfer events, and token-cost analysis from a real personal assistant deployment. 3. **The fractal depth calibration mechanism**: a prompt-encoded heuristic for allocating metacognitive effort that is itself subject to refinement -- a self-similar cognitive policy. 4. **Seven design principles** for building self-improving prompt ecosystems, derived from operational failures. 5. **Algorithm 1**: a reproducible nightly reflection loop with explicit inputs, outputs, and decision gates.",
   "new": "1. **The Sleep Consolidation framework**: a formal architecture for scheduled, autonomous prompt self-improvement through failure-driven mutation, abstraction-level encoding, and cross-task propagation. 2. **Production evidence over 30 days**: 14 documented prompt mutations, 5 error class extinctions, 5 cross-cron transfer events, and token-cost analysis from a real personal assistant deployment. 3. **The fractal depth calibration mechanism**: a prompt-encoded heuristic for allocating metacognitive effort that is itself subject to refinement -- a self-similar cognitive policy. 4. **Seven design principles** for building self-improving prompt ecosystems, derived from operational failures. 5. **Algorithm 1**: a reproducible nightly reflection loop with explicit inputs, outputs, and decision gates.",
   "marked": "1. **The [-Prompt Cerebellum-] {+Sleep Consolidation+} framework**: a [-formalized-] {+formal+} architecture for scheduled, autonomous prompt self-improvement through failure-driven mutation, abstraction-level encoding, and cross-task propagation. 2. **Production evidence over 30 days**: 14 documented prompt mutations, 5 error class extinctions, 5 cross-cron transfer events, and token-cost analysis from a real personal assistant deployment. 3. **The fractal depth calibration mechanism**: a prompt-encoded heuristic for allocating metacognitive effort that is itself subject to refinement -- a self-similar cognitive policy. 4. **Seven design principles** for building self-improving prompt ecosystems, derived from operational failures. 5. **Algorithm 1**: a reproducible nightly reflection loop with explicit inputs, outputs, and decision gates."
  },
  {
   "section": "1. Introduction -- The Paradox of the Amnesiac Expert",
   "old": "Every morning at 04:00, an AI agent wakes up knowing nothing about yesterday. By 04:15, it has read its memory files, reviewed the previous day's work, identified its own failures, rewritten its own operational rules, and gone back to sleep -- slightly better than it was the day before. By 07:00, a different instance of the same model reads those updated files and behaves as if it has always known the lessons that were learned hours ago.",
   "new": "Every morning at 04:00, an AI agent wakes up knowing nothing about yesterday. By 04:15, it has read its memory files, reviewed the previous day's work, identified its own failures, rewritten its own operating rules, and gone back to sleep -- slightly better than it was the day before. By 07:00, a different instance of the same model reads those updated files and behaves as if it has always known the lessons learned hours earlier.",
   "marked": "Every morning at 04:00, an AI agent wakes up knowing nothing about yesterday. By 04:15, it has read its memory files, reviewed the previous day's work, identified its own failures, rewritten its own [-operational-] {+operating+} rules, and gone back to sleep -- slightly better than it was the day before. By 07:00, a different instance of the same model reads those updated files and behaves as if it has always known the lessons [-that were-] learned hours [-ago.-] {+earlier.+}"
  },
  {
   "section": "1. Introduction -- The Paradox of the Amnesiac Expert",
   "old": "This is paradoxical. The model's weights haven't changed. Its architecture is identical. Its context window is the same size. Yet its behavior improves over weeks. The improvement doesn't live in the model -- it lives in the *ecosystem of files the model reads and writes*.",
   "new": "This is the paradox. The model's weights have not changed. Its architecture is identical. Its context window is the same size. Yet its behavior improves over weeks. The improvement does not live in the model. It lives in the _ecosystem of files the model reads and writes_.",
   "marked": "This is [-paradoxical.-] {+the paradox.+} The model's weights [-haven't-] {+have not+} changed. Its architecture is identical. Its context window is the same size. Yet its behavior improves over weeks. The improvement [-doesn't-] {+does not+} live in the [-model -- it-] {+model. It+} lives in the [-*ecosystem-] {+_ecosystem+} of files the model reads and [-writes*.-] {+writes_.+}"
  },
  {
   "section": "1. Introduction -- The Paradox of the Amnesiac Expert",
   "old": "We call this the **Prompt Cerebellum**, drawing an analogy to the biological cerebellum -- the brain structure responsible for transforming deliberate, conscious motor actions into smooth, automatic execution through iterative practice. A child learning to ride a bicycle begins with explicit, effortful coordination: *pedal, balance, steer, don't look down*. After sufficient practice, these separate instructions merge into a single fluid skill that no longer requires conscious attention. The cerebellum doesn't change the child's ability to *think* -- it changes the translation from thought to action.",
   "new": "We call this **Sleep Consolidation**, by analogy to biological sleep consolidation -- the process that turns deliberate, effortful action into fluid, automatic execution through iterative replay and error correction. A child learning to ride a bicycle starts with explicit instructions: _pedal, balance, steer, don't look down_. After enough practice, those separate commands fuse into a single smooth skill. The child's ability to think is not replaced. The translation from thought to action is improved.",
   "marked": "We call this [-the **Prompt Cerebellum**, drawing an-] {+**Sleep Consolidation**, by+} analogy to [-the-] biological [-cerebellum-] {+sleep consolidation+} -- the [-brain structure responsible for transforming-] {+process that turns+} deliberate, [-conscious motor actions-] {+effortful action+} into [-smooth,-] {+fluid,+} automatic execution through iterative [-practice.-] {+replay and error correction.+} A child learning to ride a bicycle [-begins-] {+starts+} with [-explicit, effortful coordination: *pedal,-] {+explicit instructions: _pedal,+} balance, steer, don't look [-down*.-] {+down_.+} After [-sufficient-] {+enough+} practice, [-these-] {+those+} separate [-instructions merge-] {+commands fuse+} into a single [-fluid skill that no longer requires conscious attention.-] {+smooth skill.+} The [-cerebellum doesn't change the-] child's ability to [-*think* -- it changes the-] {+think is not replaced. The+} translation from thought to [-action.-] {+action is improved.+}"
  },
  {
   "section": "1. Introduction -- The Paradox of the Amnesiac Expert",
   "old": "Similarly, an AI agent's prompt files begin as explicit, verbose instructions. Through nightly reflection, these instructions are refined, edge cases are added, failure modes are encoded, and over time the agent's behavior becomes increasingly appropriate without the underlying model becoming more capable. The intelligence isn't in the weights -- it's in the substrate the weights operate on.",
   "new": null,
   "marked": "[-Similarly, an AI agent's prompt files begin as explicit, verbose instructions. Through nightly reflection, these instructions are refined, edge cases are added, failure modes are encoded, and over time the agent's behavior becomes increasingly appropriate without the underlying model becoming more capable. The intelligence isn't in the weights -- it's in the substrate the weights operate on.-]"
  },
  {
   "section": "1. Introduction -- The Paradox of the Amnesiac Expert",
   "old": null,
   "new": "The same pattern appears here. An AI agent's prompt files begin as explicit instructions. Through nightly reflection, those instructions are tightened, edge cases are encoded, failure modes are made concrete, and vague warnings become operational rules. Over time, the agent behaves more appropriately not because the base model became more capable, but because the substrate around it became more organized. The intelligence is not in the weights alone. It is in the system that selects, sorts, and presents the right constraints at the right time.",
   "marked": "{+The same pattern appears here. An AI agent's prompt files begin as explicit instructions. Through nightly reflection, those instructions are tightened, edge cases are encoded, failure modes are made concrete, and vague warnings become operational rules. Over time, the agent behaves more appropriately not because the base model became more capable, but because the substrate around it became more organized. The intelligence is not in the weights alone. It is in the system that selects, sorts, and presents the right constraints at the right time.+}"
  },
  {
   "section": "1. Introduction -- The Paradox of the Amnesiac Expert",
   "old": null,
   "new": "That sorting step is the difference between memory and operational intelligence. A pile of chronological logs is not useful in the moment of action. The agent does not need \"what happened on Tuesday at 14:10.\" It needs \"what rules apply when messaging,\" \"what to do when ambiguity appears,\" and \"which prompt failed yesterday, and why.\" When memory is organized by use-case instead of time, prompts can inherit yesterday's mistakes as today's defaults.",
   "marked": "{+That sorting step is the difference between memory and operational intelligence. A pile of chronological logs is not useful in the moment of action. The agent does not need \"what happened on Tuesday at 14:10.\" It needs \"what rules apply when messaging,\" \"what to do when ambiguity appears,\" and \"which prompt failed yesterday, and why.\" When memory is organized by use-case instead of time, prompts can inherit yesterday's mistakes as today's defaults.+}"
  },
  {
   "section": "1. Introduction -- The Paradox of the Amnesiac Expert",
   "old": "The central question this paper investigates: **Can persistent artifacts combined with scheduled reflection substitute for weight updates in producing sustained behavioral improvement in LLM agents?**",
   "new": "The central question of this paper is therefore: **Can persistent artifacts combined with scheduled reflection substitute for weight updates in producing sustained behavioral improvement in LLM agents?**",
   "marked": "The central question {+of+} this paper [-investigates:-] {+is therefore:+} **Can persistent artifacts combined with scheduled reflection substitute for weight updates in producing sustained behavioral improvement in LLM agents?**"
  },
  {
   "section": "1. Introduction -- The Paradox of the Amnesiac Expert",
   "old": "Our evidence suggests a qualified yes -- qualified because the improvements are *declarative* (better rules and context) rather than *procedural* (better reasoning), and because our evidence comes from a single-operator production system rather than controlled experiment. We document the mechanisms, present production data, acknowledge the limitations honestly, and propose a framework for replication.",
   "new": "Our evidence suggests a qualified yes -- qualified because the improvements are _declarative_ (better rules and better context) rather than _procedural_ (better underlying reasoning), and because the evidence comes from a single-operator production system rather than a controlled experiment. We document the mechanisms, present production data, acknowledge the limitations plainly, and propose a framework others can replicate.",
   "marked": "Our evidence suggests a qualified yes -- qualified because the improvements are [-*declarative*-] {+_declarative_+} (better rules and {+better+} context) rather than [-*procedural*-] {+_procedural_+} (better {+underlying+} reasoning), and because [-our-] {+the+} evidence comes from a single-operator production system rather than {+a+} controlled experiment. We document the mechanisms, present production data, acknowledge the limitations [-honestly,-] {+plainly,+} and propose a framework [-for replication.-] {+others can replicate.+}"
  },
  {
   "section": "2.1 The Persistence Hierarchy",
   "old": "| Level | Mechanism | Persistence | Learning Speed | Characteristic Ceiling | |-------|-----------|-------------|----------------|------------------------| | 0 | Prompt engineering | None (session-only) | Zero | Static behavior; cannot introduce absent knowledge (Wei et al., 2022) | | 1 | RAG / retrieval | Declarative facts | Per-query | Retrieval quality bounds; no behavioral change (Lewis et al., 2020) | | 2 | Persistent memory files | Declarative + some procedural | Per-session | Linear growth, retrieval degradation (Packer et al., 2023) | | 3 | Fine-tuning / LoRA | Weight-level | Per training run | Catastrophic forgetting (French, 1999; Hu et al., 2021) | | 4 | Continual learning | Full integration | Continuous | Open research problem (McClelland et al., 1995) |",
   "new": "| Level | Mechanism | Persistence | Learning Speed | Characteristic Ceiling | | ----- | ----------------------- | ----------------------------- | ---------------- | ------------------------------------------------------------------- | | 0 | Prompt engineering | None (session-only) | Zero | Static behavior; cannot adapt beyond session boundary | | 1 | RAG / retrieval | Declarative facts | Per-query | Retrieval quality bounds; no behavioral change (Lewis et al., 2020) | | 2 | Persistent memory files | Declarative + some procedural | Per-session | Linear growth, retrieval degradation (Packer et al., 2023) | | 3 | Fine-tuning / LoRA | Weight-level | Per training run | Catastrophic forgetting (French, 1999; Hu et al., 2021) | | 4 | Continual learning | Full integration | Continuous | Open research problem (McClelland et al., 1995) |",
   "marked": "| Level | Mechanism | Persistence | Learning Speed | Characteristic Ceiling | [-|-------|-----------|-------------|----------------|------------------------|-] {+| ----- | ----------------------- | ----------------------------- | ---------------- | ------------------------------------------------------------------- |+} | 0 | Prompt engineering | None (session-only) | Zero | Static behavior; cannot [-introduce absent knowledge (Wei et al., 2022)-] {+adapt beyond session boundary+} | | 1 | RAG / retrieval | Declarative facts | Per-query | Retrieval quality bounds; no behavioral change (Lewis et al., 2020) | | 2 | Persistent memory files | Declarative + some procedural | Per-session | Linear growth, retrieval degradation (Packer et al., 2023) | | 3 | Fine-tuning / LoRA | Weight-level | Per training run | Catastrophic forgetting (French, 1999; Hu et al., 2021) | | 4 | Continual learning | Full integration | Continuous | Open research problem (McClelland et al., 1995) |"
  },
  {
   "section": "2.1 The Persistence Hierarchy",
   "old": "Most production agent systems operate at Level 2. This paper demonstrates that Level 2 systems can exhibit Level 3-like *behavioral* improvements through structured self-reflection, without weight updates.",
   "new": "Most production agent systems operate at Level 2. This paper shows that Level 2 systems can exhibit Level 3-like _behavioral_ improvement through structured self-reflection, without weight updates.",
   "marked": "Most production agent systems operate at Level 2. This paper [-demonstrates-] {+shows+} that Level 2 systems can exhibit Level 3-like [-*behavioral* improvements-] {+_behavioral_ improvement+} through structured self-reflection, without weight updates."
  },
  {
   "section": "2.2 What's Missing: The Reflection Loop",
   "old": "Level 2 systems typically accumulate information passively: the agent records what happened, stores preferences, and retrieves relevant context. But accumulation is not learning. We define **learning** in this context as *behavioral policy change that persists across episodes and transfers across task domains* -- distinct from **memory**, which is *state persistence without behavioral modification*.",
   "new": "Level 2 systems usually accumulate information passively: the agent records what happened, stores preferences, and retrieves relevant context later. But accumulation is not the same as learning. We define **learning** here as _behavioral policy change that persists across episodes and transfers across task domains_. By contrast, **memory** is _state persistence without behavioral modification_.",
   "marked": "Level 2 systems [-typically-] {+usually+} accumulate information passively: the agent records what happened, stores preferences, and retrieves relevant [-context.-] {+context later.+} But accumulation is not {+the same as+} learning. We define **learning** [-in this context-] {+here+} as [-*behavioral-] {+_behavioral+} policy change that persists across episodes and transfers across task [-domains* -- distinct from **memory**, which-] {+domains_. By contrast, **memory**+} is [-*state-] {+_state+} persistence without behavioral [-modification*.-] {+modification_.+}"
  },
  {
   "section": "2.2 What's Missing: The Reflection Loop",
   "old": "A memory file that says \"the user prefers concise responses\" is memory. A prompt mutation that changes how the agent *formats all future outputs* is learning. The distinction matters because memory requires re-interpretation every session, while learning produces automatic behavior.",
   "new": "A memory file that says \"the user prefers concise responses\" is memory. A prompt mutation that changes how the agent _formats all future outputs_ is learning. The distinction matters because memory must be reinterpreted every session, whereas learning changes default behavior.",
   "marked": "A memory file that says \"the user prefers concise responses\" is memory. A prompt mutation that changes how the agent [-*formats-] {+_formats+} all future [-outputs*-] {+outputs_+} is learning. The distinction matters because memory [-requires re-interpretation-] {+must be reinterpreted+} every session, [-while-] {+whereas+} learning [-produces automatic-] {+changes default+} behavior."
  },
  {
   "section": "2.2 What's Missing: The Reflection Loop",
   "old": null,
   "new": "The problem is that most memory systems optimize for storage, not for use. They preserve chronology because chronology is easy. But for agents, chronology is rarely the right retrieval axis. **The useful unit is not the event; it is the use-case.** An error in calendar handling belongs with other completeness checks. A messaging failure belongs with targeting rules. A privacy slip belongs with redaction policies. If memory remains scattered across time-stamped logs, retrieval becomes noisy and expensive. If it is consolidated into purpose-built operational files, the system can act on it cheaply and reliably.",
   "marked": "{+The problem is that most memory systems optimize for storage, not for use. They preserve chronology because chronology is easy. But for agents, chronology is rarely the right retrieval axis. **The useful unit is not the event; it is the use-case.** An error in calendar handling belongs with other completeness checks. A messaging failure belongs with targeting rules. A privacy slip belongs with redaction policies. If memory remains scattered across time-stamped logs, retrieval becomes noisy and expensive. If it is consolidated into purpose-built operational files, the system can act on it cheaply and reliably.+}"
  },
  {
   "section": "2.2 What's Missing: The Reflection Loop",
   "old": "The missing component is a **structured reflection loop** -- a mechanism by which the agent:",
   "new": "The missing component is therefore a **structured reflection loop** -- a mechanism by which the agent:",
   "marked": "The missing component is {+therefore+} a **structured reflection loop** -- a mechanism by which the agent:"
  },
  {
   "section": "2.2 What's Missing: The Reflection Loop",
   "old": "1. Identifies *why* a failure occurred (root cause, not symptom) 2. Determines whether the failure class is preventable through prompt changes 3. Modifies the relevant prompt to prevent recurrence 4. Verifies the modification doesn't break other behaviors 5. Encodes the *meta-lesson* at the appropriate level of abstraction",
   "new": "1. Identifies _why_ a failure occurred (root cause, not symptom) 2. Determines whether the failure class is preventable through prompt changes 3. Modifies the relevant prompt to prevent recurrence 4. Verifies the modification does not break other behaviors 5. Encodes the _meta-lesson_ at the appropriate level of abstraction",
   "marked": "1. Identifies [-*why*-] {+_why_+} a failure occurred (root cause, not symptom) 2. Determines whether the failure class is preventable through prompt changes 3. Modifies the relevant prompt to prevent recurrence 4. Verifies the modification [-doesn't-] {+does not+} break other behaviors 5. Encodes the [-*meta-lesson*-] {+_meta-lesson_+} at the appropriate level of abstraction"
  },
  {
   "section": "2.2 What's Missing: The Reflection Loop",
   "old": "This mirrors the biological cerebellum's error-correction loop: compare intended movement with actual movement, compute error signal, adjust motor program.",
   "new": "This mirrors the biological sleep consolidation error-correction loop: compare intended movement with actual movement, compute an error signal, then adjust the motor program.",
   "marked": "This mirrors the biological [-cerebellum's-] {+sleep consolidation+} error-correction loop: compare intended movement with actual movement, compute {+an+} error signal, {+then+} adjust {+the+} motor program."
  },
  {
   "section": "2.3 Related Work",
   "old": "**Within-session self-improvement.** Self-Refine (Madaan et al., 2023) demonstrates iterative refinement through self-feedback within a single session, but improvements don't persist. ReAct (Yao et al., 2023) interleaves reasoning with action, establishing the \"prompt as policy\" paradigm we build upon, but doesn't modify prompts across episodes.",
   "new": "**Within-session self-improvement.** Self-Refine (Madaan et al., 2023) demonstrates iterative refinement through self-feedback within a single session, but its improvements do not persist. ReAct (Yao et al., 2023) interleaves reasoning with action, establishing the \"prompt as policy\" paradigm we build upon, but it does not modify prompts across episodes.",
   "marked": "**Within-session self-improvement.** Self-Refine (Madaan et al., 2023) demonstrates iterative refinement through self-feedback within a single session, but {+its+} improvements [-don't-] {+do not+} persist. ReAct (Yao et al., 2023) interleaves reasoning with action, establishing the \"prompt as policy\" paradigm we build upon, but [-doesn't-] {+it does not+} modify prompts across episodes."
  },
  {
   "section": "2.3 Related Work",
   "old": "**Episodic reflection.** Reflexion (Shinn et al., 2023) adds episodic memory of previous trial-and-error. However, reflection is task-specific and stored per-task rather than in shared infrastructure. Our cross-cron transfer mechanism (Section 3.2, Mechanism 3) addresses this limitation explicitly. Generative Agents (Park et al., 2023) implement daily reflection and memory consolidation for simulated social agents -- the closest prior work to our nightly cycle. Key differences: their reflection produces *summaries* for future retrieval; ours produces *prompt mutations* that change behavior. Their agents don't modify their own instructions.",
   "new": "**Episodic reflection.** Reflexion (Shinn et al., 2023) adds episodic memory of previous trial-and-error. However, reflection is task-specific and stored per task rather than in shared infrastructure. Our cross-cron transfer mechanism (Section 3.3, Mechanism 3) addresses this limitation directly. Generative Agents (Park et al., 2023) implement daily reflection and memory consolidation for simulated social agents -- the closest prior work to our nightly cycle. The key difference is that their reflection produces _summaries_ for future retrieval, whereas ours produces _prompt mutations_ that change behavior. Their agents do not rewrite their own operating instructions.",
   "marked": "**Episodic reflection.** Reflexion (Shinn et al., 2023) adds episodic memory of previous trial-and-error. However, reflection is task-specific and stored [-per-task-] {+per task+} rather than in shared infrastructure. Our cross-cron transfer mechanism (Section [-3.2,-] {+3.3,+} Mechanism 3) addresses this limitation [-explicitly.-] {+directly.+} Generative Agents (Park et al., 2023) implement daily reflection and memory consolidation for simulated social agents -- the closest prior work to our nightly cycle. [-Key differences:-] {+The key difference is that+} their reflection produces [-*summaries*-] {+_summaries_+} for future [-retrieval;-] {+retrieval, whereas+} ours produces [-*prompt mutations*-] {+_prompt mutations_+} that change behavior. Their agents [-don't modify-] {+do not rewrite+} their own {+operating+} instructions."
  },
  {
   "section": "2.3 Related Work",
   "old": "**Prompt optimization.** OPRO (Yang et al., 2023) uses LLMs to optimize prompts through iterative evaluation against objective metrics. DSPy (Khattab et al., 2023) automates prompt pipeline optimization through teleprompting. PromptBreeder (Fernando et al., 2023) evolves prompts through mutation and selection. These systems optimize prompts against *defined benchmarks*; our system optimizes against *real operational failures* without predefined metrics. The mutation trigger is qualitatively different: benchmark score vs. production incident.",
   "new": "**Prompt optimization.** OPRO (Yang et al., 2023) uses LLMs to optimize prompts through iterative evaluation against objective metrics. DSPy (Khattab et al., 2023) automates prompt-pipeline optimization through teleprompting. PromptBreeder (Fernando et al., 2023) evolves prompts through mutation and selection. These systems optimize prompts against _defined benchmarks_. Our system optimizes against _real operational failures_ without predefined metrics. The mutation trigger is therefore qualitatively different: benchmark score versus production incident.",
   "marked": "**Prompt optimization.** OPRO (Yang et al., 2023) uses LLMs to optimize prompts through iterative evaluation against objective metrics. DSPy (Khattab et al., 2023) automates [-prompt pipeline-] {+prompt-pipeline+} optimization through teleprompting. PromptBreeder (Fernando et al., 2023) evolves prompts through mutation and selection. These systems optimize prompts against [-*defined benchmarks*; our-] {+_defined benchmarks_. Our+} system optimizes against [-*real-] {+_real+} operational [-failures*-] {+failures_+} without predefined metrics. The mutation trigger is {+therefore+} qualitatively different: benchmark score [-vs.-] {+versus+} production incident."
  },
  {
   "section": "2.3 Related Work",
   "old": "**Skill accumulation.** Voyager (Wang et al., 2023) accumulates a skill library in Minecraft through exploration, closer to our approach but limited to a single domain with clear success criteria. ADAS (Hu et al., 2024) uses LLMs to design better agent architectures, operating at the meta-level of system design.",
   "new": "**Skill accumulation.** Voyager (Wang et al., 2023) accumulates a skill library in Minecraft through exploration, closer in spirit to our approach but limited to a single domain with clear success criteria. ADAS (Hu et al., 2024) uses LLMs to design better agent architectures, operating at the meta-level of system design.",
   "marked": "**Skill accumulation.** Voyager (Wang et al., 2023) accumulates a skill library in Minecraft through exploration, closer {+in spirit+} to our approach but limited to a single domain with clear success criteria. ADAS (Hu et al., 2024) uses LLMs to design better agent architectures, operating at the meta-level of system design."
  },
  {
   "section": "2.3 Related Work",
   "old": "**Constitutional and governance approaches.** Constitutional AI (Bai et al., 2022) establishes self-critique against explicit principles -- related to our operational-lessons governance. Our Principle 7 (human-in-the-loop for Level 2+ changes) addresses the same concern: preventing self-reinforcing error spirals in self-modifying systems.",
   "new": "**Constitutional and governance approaches.** Constitutional AI (Bai et al., 2022) establishes self-critique against explicit principles, which is related to our operational-lessons governance. Our Principle 7 (human-in-the-loop for Level 2+ changes) addresses the same risk: preventing self-reinforcing error spirals in self-modifying systems.",
   "marked": "**Constitutional and governance approaches.** Constitutional AI (Bai et al., 2022) establishes self-critique against explicit [-principles ---] {+principles, which is+} related to our operational-lessons governance. Our Principle 7 (human-in-the-loop for Level 2+ changes) addresses the same [-concern:-] {+risk:+} preventing self-reinforcing error spirals in self-modifying systems."
  },
  {
   "section": "2.3 Related Work",
   "old": "**Incident learning in software engineering.** Our mutation protocol draws implicitly from SRE blameless postmortem methodology (Beyer et al., 2016), where incidents are systematically analyzed, root-caused, and translated into preventive changes. The Prompt Cerebellum automates this cycle for AI agent operations.",
   "new": "**Incident learning in software engineering.** Our mutation protocol draws implicitly from SRE blameless postmortem methodology (Beyer et al., 2016), where incidents are systematically analyzed, root-caused, and translated into preventive changes. Sleep Consolidation automates that cycle for AI agent operations.",
   "marked": "**Incident learning in software engineering.** Our mutation protocol draws implicitly from SRE blameless postmortem methodology (Beyer et al., 2016), where incidents are systematically analyzed, root-caused, and translated into preventive changes. [-The Prompt Cerebellum-] {+Sleep Consolidation+} automates [-this-] {+that+} cycle for AI agent operations."
  },
  {
   "section": "2.3 Related Work",
   "old": "Our contribution differs from all of the above in three ways: (1) it operates on *production* personal assistant workloads, not benchmarks or simulations; (2) improvement is *cross-task* -- lessons propagate through shared infrastructure; and (3) reflection is *scheduled and autonomous*, not triggered by explicit failure signals or human feedback.",
   "new": "Our contribution differs from all of the above in three ways: (1) it operates on _production_ personal assistant workloads, not benchmarks or simulations; (2) improvement is _cross-task_ -- lessons propagate through shared infrastructure; and (3) reflection is _scheduled and autonomous_, not triggered by explicit failure signals or human feedback.",
   "marked": "Our contribution differs from all of the above in three ways: (1) it operates on [-*production*-] {+_production_+} personal assistant workloads, not benchmarks or simulations; (2) improvement is [-*cross-task*-] {+_cross-task_+} -- lessons propagate through shared infrastructure; and (3) reflection is [-*scheduled-] {+_scheduled+} and [-autonomous*,-] {+autonomous_,+} not triggered by explicit failure signals or human feedback."
  },
  {
   "section": "3. Architecture -- The Prompt Cerebellum",
   "old": "## 3. Architecture -- The Prompt Cerebellum",
   "new": null,
   "marked": "[-## 3. Architecture -- The Prompt Cerebellum-]"
  },
  {
   "section": "3. Architecture -- Sleep Consolidation",
   "old": null,
   "new": "## 3. Architecture -- Sleep Consolidation",
   "marked": "{+## 3. Architecture -- Sleep Consolidation+}"
  },
  {
   "section": "3.1 System Overview",
   "old": "The Prompt Cerebellum is not a single component but an emergent property of four interacting systems:",
   "new": "Sleep Consolidation is not a single component. It is an emergent property of four interacting systems:",
   "marked": "[-The Prompt Cerebellum-] {+Sleep Consolidation+} is not a single [-component but-] {+component. It is+} an emergent property of four interacting systems:"
  },
  {
   "section": "3.1 System Overview",
   "old": null,
   "new": "All three write to the **Shared Memory Layer:**",
   "marked": "{+All three write to the **Shared Memory Layer:**+}"
  },
  {
   "section": "3.1 System Overview",
   "old": "All three write to the **Shared Memory Layer:** - operational-lessons.md (behavioral rules -- the primary mutation target) - bugs/ directory (structured failure patterns with root cause analysis) - knowledge/ (domain-specific principles and procedures) - MEMORY.md (core principles -- injected into every session's context window) - cron prompts themselves (self-modifying task instructions)",
   "new": "- operational-lessons.md (behavioral rules -- the primary mutation target) - bugs/ directory (structured failure patterns with root cause analysis) - knowledge/ (domain-specific principles and procedures) - MEMORY.md (core principles -- injected into every session's context window) - cron prompts themselves (self-modifying task instructions)",
   "marked": "[-All three write to the **Shared Memory Layer:**-] - operational-lessons.md (behavioral rules -- the primary mutation target) - bugs/ directory (structured failure patterns with root cause analysis) - knowledge/ (domain-specific principles and procedures) - MEMORY.md (core principles -- injected into every session's context window) - cron prompts themselves (self-modifying task instructions)"
  },
  {
   "section": "3.1 System Overview",
   "old": "Every cron job is both a *consumer* of the shared memory layer (it reads operational lessons, principles, and past failures before acting) and a *producer* (it writes receipts, logs failures, and -- during the nightly cycle -- modifies the shared layer itself).",
   "new": "Every cron job is both a _consumer_ of the shared memory layer and a _producer_ for it. It reads operational lessons, principles, and prior failures before acting; later, it emits receipts, logs failures, and -- during the nightly cycle -- helps mutate the shared layer itself.",
   "marked": "Every cron job is both a [-*consumer*-] {+_consumer_+} of the shared memory layer [-(it-] {+and a _producer_ for it. It+} reads operational lessons, principles, and [-past-] {+prior+} failures before [-acting) and a *producer* (it writes-] {+acting; later, it emits+} receipts, logs failures, and -- during the nightly cycle -- [-modifies-] {+helps mutate+} the shared layer [-itself).-] {+itself.+}"
  },
  {
   "section": "3.1 System Overview",
   "old": null,
   "new": "What makes the architecture effective is not mere persistence but purposeful arrangement. A chronological archive tells the system what happened; a use-case-sorted memory layer tells it what to do.",
   "marked": "{+What makes the architecture effective is not mere persistence but purposeful arrangement. A chronological archive tells the system what happened; a use-case-sorted memory layer tells it what to do.+}"
  },
  {
   "section": "3.2 Algorithm 1: The Nightly Reflection Loop",
   "old": "``` ALGORITHM 1: Nightly Prompt Cerebellum Loop ========================================== INPUT: daily_log (all cron receipts + interactive session logs from past 24h) operational_lessons (current shared behavioral rules) bug_reports (structured failure database) cron_prompts (current task-specific instructions) OUTPUT: operational_lessons' (updated rules) bug_reports' (new/updated failure patterns) cron_prompts' (mutated instructions) mutation_log (what changed and why)",
   "new": "``` ALGORITHM 1: Nightly Sleep Consolidation Loop ========================================== INPUT: daily_log (all cron receipts + interactive session logs from past 24h) operational_lessons (current shared behavioral rules) bug_reports (structured failure database) cron_prompts (current task-specific instructions) OUTPUT: operational_lessons' (updated rules) bug_reports' (new/updated failure patterns) cron_prompts' (mutated instructions) mutation_log (what changed and why)",
   "marked": "``` ALGORITHM 1: Nightly [-Prompt Cerebellum-] {+Sleep Consolidation+} Loop ========================================== INPUT: daily_log (all cron receipts + interactive session logs from past 24h) operational_lessons (current shared behavioral rules) bug_reports (structured failure database) cron_prompts (current task-specific instructions) OUTPUT: operational_lessons' (updated rules) bug_reports' (new/updated failure patterns) cron_prompts' (mutated instructions) mutation_log (what changed and why)"
  },
  {
   "section": "Mechanism 1: Failure-Driven Prompt Mutation",
   "old": "When an agent encounters a failure, the standard response is to log it and move on. The Prompt Cerebellum adds a critical step: **determine if the failure was caused by a prompt deficiency, and if so, mutate the prompt.**",
   "new": "When an agent encounters a failure, the default response is to log it and move on. Sleep Consolidation adds the crucial second step: **determine whether the failure came from a prompt deficiency, and if so, mutate the prompt.**",
   "marked": "When an agent encounters a failure, the [-standard-] {+default+} response is to log it and move on. [-The Prompt Cerebellum-] {+Sleep Consolidation+} adds [-a critical-] {+the crucial second+} step: **determine [-if-] {+whether+} the failure [-was caused by-] {+came from+} a prompt deficiency, and if so, mutate the prompt.**"
  },
  {
   "section": "Mechanism 1: Failure-Driven Prompt Mutation",
   "old": "This seven-day sequence illustrates the full cerebellar learning loop, including second-order correction:",
   "new": "This seven-day sequence shows the full sleep-consolidated learning loop, including second-order correction.",
   "marked": "This seven-day sequence [-illustrates-] {+shows+} the full [-cerebellar-] {+sleep-consolidated+} learning loop, including second-order [-correction:-] {+correction.+}"
  },
  {
   "section": "Mechanism 1: Failure-Driven Prompt Mutation",
   "old": "**Day 0 (Mar 3) -- Initial failure.** A fork-sync cron job, prompted to \"sync the fork with upstream,\" interpreted this as permission to edit production source code, run builds, and restart the gateway. The failure wasn't the model being incapable -- it was the prompt being ambiguous.",
   "new": "**Day 0 (Mar 3) -- Initial failure.** A fork-sync cron job, prompted to \"sync the fork with upstream,\" interpreted that instruction as permission to edit production source code, run builds, and restart the gateway. The problem was not model incapacity. The problem was prompt ambiguity.",
   "marked": "**Day 0 (Mar 3) -- Initial failure.** A fork-sync cron job, prompted to \"sync the fork with upstream,\" interpreted [-this-] {+that instruction+} as permission to edit production source code, run builds, and restart the gateway. The [-failure wasn't the-] {+problem was not+} model [-being incapable -- it-] {+incapacity. The problem+} was [-the-] prompt [-being ambiguous.-] {+ambiguity.+}"
  },
  {
   "section": "Mechanism 1: Failure-Driven Prompt Mutation",
   "old": "*Prompt before:* \"Sync the fork with upstream and report the result.\" *Prompt after (mutation #8):* \"Run the safe merge script. NEVER modify source code directly. NEVER run builds. NEVER restart the gateway. If the script fails, report and STOP.\"",
   "new": "_Prompt before:_ \"Sync the fork with upstream and report the result.\" _Prompt after (mutation #8):_ \"Run the safe merge script. NEVER modify source code directly. NEVER run builds. NEVER restart the gateway. If the script fails, report and STOP.\"",
   "marked": "[-*Prompt before:*-] {+_Prompt before:_+} \"Sync the fork with upstream and report the result.\" [-*Prompt-] {+_Prompt+} after (mutation [-#8):*-] {+#8):_+} \"Run the safe merge script. NEVER modify source code directly. NEVER run builds. NEVER restart the gateway. If the script fails, report and STOP.\""
  },
  {
   "section": "Mechanism 1: Failure-Driven Prompt Mutation",
   "old": "**Day 7 (Mar 10) -- Second-order failure.** The same cron encountered a merge conflict. It reported the conflict and stopped -- exactly as mutation #8 instructed. But the constraint was too broad: the agent was *capable* of resolving the conflict intelligently (reading fork documentation, understanding both sides' intent, verifying with a build). The blanket prohibition prevented useful work. The entire merge was blocked for 24 hours.",
   "new": "**Day 7 (Mar 10) -- Second-order failure.** The same cron later encountered a merge conflict. It reported the conflict and stopped -- exactly as mutation #8 required. But the restriction was too broad. The agent was in fact _capable_ of resolving the conflict intelligently by reading fork documentation, understanding both sides' intent, and verifying with a build. The blanket prohibition prevented useful work. The merge was blocked for 24 hours.",
   "marked": "**Day 7 (Mar 10) -- Second-order failure.** The same cron {+later+} encountered a merge conflict. It reported the conflict and stopped -- exactly as mutation #8 [-instructed.-] {+required.+} But the [-constraint-] {+restriction+} was too [-broad: the-] {+broad. The+} agent was [-*capable*-] {+in fact _capable_+} of resolving the conflict intelligently [-(reading-] {+by reading+} fork documentation, understanding both sides' intent, {+and+} verifying with a [-build).-] {+build.+} The blanket prohibition prevented useful work. The [-entire-] merge was blocked for 24 hours."
  },
  {
   "section": "Mechanism 1: Failure-Driven Prompt Mutation",
   "old": "*Prompt after (mutation #14):* \"Run the safe merge script. If conflicts remain, read FORK_PATCHES.md to understand intent, attempt resolution, verify with build. If genuinely uncertain, escalate.\"",
   "new": "_Prompt after (mutation #14):_ \"Run the safe merge script. If conflicts remain, read FORK_PATCHES.md to understand intent, attempt resolution, verify with build. If genuinely uncertain, escalate.\"",
   "marked": "[-*Prompt-] {+_Prompt+} after (mutation [-#14):*-] {+#14):_+} \"Run the safe merge script. If conflicts remain, read FORK_PATCHES.md to understand intent, attempt resolution, verify with build. If genuinely uncertain, escalate.\""
  },
  {
   "section": "Mechanism 1: Failure-Driven Prompt Mutation",
   "old": "This meta-lesson now applies to *all* future lesson encoding across the entire system -- a single incident produced a permanent improvement in the system's learning methodology.",
   "new": "That meta-lesson now applies to _all_ future lesson encoding across the system. One incident produced a permanent improvement in how the system learns.",
   "marked": "[-This-] {+That+} meta-lesson now applies to [-*all*-] {+_all_+} future lesson encoding across the [-entire system -- a single-] {+system. One+} incident produced a permanent improvement in {+how+} the [-system's learning methodology.-] {+system learns.+}"
  },
  {
   "section": "Mechanism 2: Fractal Depth Calibration",
   "old": "Not all tasks deserve the same level of metacognitive effort. The Prompt Cerebellum includes a **depth selector** -- a prompt-encoded heuristic that determines how many levels of \"why\" to traverse:",
   "new": "Not all tasks deserve the same amount of metacognitive effort. Sleep Consolidation includes a **depth selector** -- a prompt-encoded heuristic that determines how many layers of \"why\" to traverse:",
   "marked": "Not all tasks deserve the same [-level-] {+amount+} of metacognitive effort. [-The Prompt Cerebellum-] {+Sleep Consolidation+} includes a **depth selector** -- a prompt-encoded heuristic that determines how many [-levels-] {+layers+} of \"why\" to traverse:"
  },
  {
   "section": "Mechanism 2: Fractal Depth Calibration",
   "old": "| Signal | Depth | Example | |--------|-------|---------| | Routine/mechanical | 0 | Read a file, send a message | | Something broke | 1--2 | Why did it break? What pattern? | | Encoding a new rule | 2--3 | Is the abstraction right? Am I over-correcting? | | Explicit request for depth | 3+ | Go until insight stops being actionable |",
   "new": "| Signal | Depth | Example | | -------------------------- | ----- | ----------------------------------------------- | | Routine/mechanical | 0 | Read a file, send a message | | Something broke | 1--2 | Why did it break? What pattern? | | Encoding a new rule | 2--3 | Is the abstraction right? Am I over-correcting? | | Explicit request for depth | 3+ | Go until insight stops being actionable |",
   "marked": "| Signal | Depth | Example | [-|--------|-------|---------|-] {+| -------------------------- | ----- | ----------------------------------------------- |+} | Routine/mechanical | 0 | Read a file, send a message | | Something broke | 1--2 | Why did it break? What pattern? | | Encoding a new rule | 2--3 | Is the abstraction right? Am I over-correcting? | | Explicit request for depth | 3+ | Go until insight stops being actionable |"
  },
  {
   "section": "Mechanism 2: Fractal Depth Calibration",
   "old": "**The self-similar property:** The depth selector itself is subject to refinement. When the agent zooms too deep on trivia (wasting tokens) or too shallow on something important (missing a lesson), this miscalibration becomes a data point for adjusting the selector.",
   "new": "**The self-similar property:** the depth selector is itself subject to refinement. When the agent zooms too deep on trivia and wastes tokens, or too shallow on something important and misses the lesson, that miscalibration becomes training data for adjusting the selector.",
   "marked": "**The self-similar property:** [-The-] {+the+} depth selector {+is+} itself [-is-] subject to refinement. When the agent zooms too deep on trivia [-(wasting tokens)-] {+and wastes tokens,+} or too shallow on something important [-(missing a lesson), this-] {+and misses the lesson, that+} miscalibration becomes [-a-] {+training+} data [-point-] for adjusting the selector."
  },
  {
   "section": "Mechanism 2: Fractal Depth Calibration",
   "old": "**Convergence hypothesis (not proven, observed):** In practice, most tasks stabilize at depth 0--1 within days of operation, while novel failure classes start at depth 2--3 and gradually move to 0--1 as the patterns become encoded. We observe approximately weekly Level 2 refinements and approximately monthly Level 3 refinements, suggesting the frequency of deeper reflection decreases as the system matures. We do not claim formal convergence -- this is an empirical observation over 30 days that requires longer-term study to confirm.",
   "new": "**Convergence hypothesis (not proven, observed):** In practice, most tasks stabilize at depth 0--1 within days of operation, while novel failure classes begin at depth 2--3 and gradually move to 0--1 as their patterns become encoded. We observe approximately weekly Level 2 refinements and approximately monthly Level 3 refinements, suggesting that deeper reflection becomes less necessary as the system matures. We do not claim formal convergence -- only that the 30-day pattern is consistent with it.",
   "marked": "**Convergence hypothesis (not proven, observed):** In practice, most tasks stabilize at depth 0--1 within days of operation, while novel failure classes [-start-] {+begin+} at depth 2--3 and gradually move to 0--1 as [-the-] {+their+} patterns become encoded. We observe approximately weekly Level 2 refinements and approximately monthly Level 3 refinements, suggesting [-the frequency of-] {+that+} deeper reflection [-decreases-] {+becomes less necessary+} as the system matures. We do not claim formal convergence -- [-this-] {+only that the 30-day pattern+} is [-an empirical observation over 30 days that requires longer-term study to confirm.-] {+consistent with it.+}"
  },
  {
   "section": "Mechanism 2: Fractal Depth Calibration",
   "old": "**Production example -- Fractal emergence (2026-03-10):** The merge conflict resolution initially operated at depth 0 (just do it, abort on failure). After the B010 over-correction incident, a human prompt (\"think fractal\") triggered depth 3+ analysis, revealing that the real problem wasn't the merge strategy but the *lesson-encoding methodology*. The resulting principle -- \"separate the failure mode from the restriction\" -- now applies to every future lesson encoding, not just merge conflicts.",
   "new": "**Production example -- Fractal emergence (2026-03-10):** The merge-conflict episode initially operated at depth 0: just do it, abort on failure. After the B010 over-correction incident, a human prompt (\"think fractal\") triggered depth 3+ analysis, revealing that the real problem was not merge strategy but the _method used to encode lessons_. The resulting principle -- \"separate the failure mode from the restriction\" -- now applies to every future lesson, not just merge conflicts.",
   "marked": "**Production example -- Fractal emergence (2026-03-10):** The [-merge conflict resolution-] {+merge-conflict episode+} initially operated at depth [-0 (just-] {+0: just+} do it, abort on [-failure).-] {+failure.+} After the B010 over-correction incident, a human prompt (\"think fractal\") triggered depth 3+ analysis, revealing that the real problem [-wasn't the-] {+was not+} merge strategy but the [-*lesson-encoding methodology*.-] {+_method used to encode lessons_.+} The resulting principle -- \"separate the failure mode from the restriction\" -- now applies to every future [-lesson encoding,-] {+lesson,+} not just merge conflicts."
  },
  {
   "section": "Mechanism 3: Cross-Cron Knowledge Transfer",
   "old": "The most powerful emergent property is that lessons learned in one autonomous task propagate to all others through shared memory files. We documented 5 cross-domain transfer events over 30 days:",
   "new": "The strongest emergent property is that lessons learned in one autonomous task propagate to all others through shared memory files. We documented 5 cross-domain transfer events over 30 days:",
   "marked": "The [-most powerful-] {+strongest+} emergent property is that lessons learned in one autonomous task propagate to all others through shared memory files. We documented 5 cross-domain transfer events over 30 days:"
  },
  {
   "section": "Mechanism 3: Cross-Cron Knowledge Transfer",
   "old": "| # | Origin Task | Lesson Encoded | Transferred To | Observable Behavior Change | |---|-------------|----------------|----------------|---------------------------| | 1 | Calendar management | \"When 'the X' is ambiguous, ask before acting\" | Fork sync | Cron reported two interpretations of conflict instead of guessing | | 2 | WhatsApp messaging | \"Use JID-based targeting, never name-based\" | All crons with messaging | Morning briefing switched from name to JID targeting | | 3 | Privacy incident | \"Never include phone numbers in visible text\" | All sessions | Online engagement cron redacted numbers in PR comments | | 4 | Fork sync (B010) | \"Report-only crons must not modify systems\" | Security audit cron | Audit reported findings without attempting fixes | | 5 | Memory consolidation | \"Enforce file size budgets\" | All report-generating crons | Reports began self-truncating at budget limits |",
   "new": "| # | Origin Task | Lesson Encoded | Transferred To | Observable Behavior Change | | --- | -------------------- | ---------------------------------------------- | --------------------------- | ----------------------------------------------------------------- | | 1 | Calendar management | \"When 'the X' is ambiguous, ask before acting\" | Fork sync | Cron reported two interpretations of conflict instead of guessing | | 2 | WhatsApp messaging | \"Use JID-based targeting, never name-based\" | All crons with messaging | Morning briefing switched from name to JID targeting | | 3 | Privacy incident | \"Never include phone numbers in visible text\" | All sessions | Online engagement cron redacted numbers in PR comments | | 4 | Fork sync (B010) | \"Report-only crons must not modify systems\" | Security audit cron | Audit reported findings without attempting fixes | | 5 | Memory consolidation | \"Enforce file size budgets\" | All report-generating crons | Reports began self-truncating at budget limits |",
   "marked": "| # | Origin Task | Lesson Encoded | Transferred To | Observable Behavior Change | [-|---|-------------|----------------|----------------|---------------------------|-] {+| --- | -------------------- | ---------------------------------------------- | --------------------------- | ----------------------------------------------------------------- |+} | 1 | Calendar management | \"When 'the X' is ambiguous, ask before acting\" | Fork sync | Cron reported two interpretations of conflict instead of guessing | | 2 | WhatsApp messaging | \"Use JID-based targeting, never name-based\" | All crons with messaging | Morning briefing switched from name to JID targeting | | 3 | Privacy incident | \"Never include phone numbers in visible text\" | All sessions | Online engagement cron redacted numbers in PR comments | | 4 | Fork sync (B010) | \"Report-only crons must not modify systems\" | Security audit cron | Audit reported findings without attempting fixes | | 5 | Memory consolidation | \"Enforce file size budgets\" | All report-generating crons | Reports began self-truncating at budget limits |"
  },
  {
   "section": "Mechanism 3: Cross-Cron Knowledge Transfer",
   "old": "The transfer mechanism is architectural, not intelligent: lessons written to `operational-lessons.md` are read by all sessions at boot. But the *abstraction level* at which lessons are encoded determines transfer breadth. \"Use JID-based targeting\" (Level 0, specific) transfers only to messaging tasks. \"When something is ambiguous, ask before acting\" (Level 1, general) transfers to everything.",
   "new": "The transfer mechanism is architectural, not magical: lessons written to `operational-lessons.md` are read by all sessions at boot. But the **abstraction level** at which lessons are encoded determines transfer breadth. \"Use JID-based targeting\" (Level 0, specific) transfers only to messaging tasks. \"When something is ambiguous, ask before acting\" (Level 1, general) transfers much more widely.",
   "marked": "The transfer mechanism is architectural, not [-intelligent:-] {+magical:+} lessons written to `operational-lessons.md` are read by all sessions at boot. But the [-*abstraction level*-] {+**abstraction level**+} at which lessons are encoded determines transfer breadth. \"Use JID-based targeting\" (Level 0, specific) transfers only to messaging tasks. \"When something is ambiguous, ask before acting\" (Level 1, general) transfers [-to everything.-] {+much more widely.+}"
  },
  {
   "section": "Mechanism 3: Cross-Cron Knowledge Transfer",
   "old": null,
   "new": "Cross-cron transfer depends less on storing more and more on storing in the right shape: partitioned by decision type, action domain, and operating rule rather than accumulated chronologically.",
   "marked": "{+Cross-cron transfer depends less on storing more and more on storing in the right shape: partitioned by decision type, action domain, and operating rule rather than accumulated chronologically.+}"
  },
  {
   "section": "3.4 The Nightly Cycle -- Sleep Consolidation for Agents",
   "old": "| Time | Job | Role | Biological Analogy | |------|-----|------|-------------------| | 04:00 | Wind-Down | Review, identify failures, encode lessons, mutate prompts | Sleep replay / cerebellar error correction | | 04:15 | Memory Consolidation | Compress daily logs, route knowledge, rebuild indexes | Hippocampal to neocortical transfer | | 04:45 | Fork Sync | Integrate external changes, self-heal build failures | Immune system integration | | 05:15 | Cleaning Lady | Trim bloated files, prune stale sessions, enforce budgets | Synaptic pruning |",
   "new": "| Time | Job | Role | Biological Analogy | | ----- | -------------------- | --------------------------------------------------------- | --------------------------------------------------- | | 04:00 | Wind-Down | Review, identify failures, encode lessons, mutate prompts | Sleep replay / sleep consolidation error correction | | 04:15 | Memory Consolidation | Compress daily logs, route knowledge, rebuild indexes | Hippocampal-to-neocortical memory transfer | | 04:45 | Fork Sync | Integrate external changes, self-heal build failures | Environmental adaptation during rest | | 05:15 | Cleaning Lady | Trim bloated files, prune stale sessions, enforce budgets | Synaptic pruning |",
   "marked": "| Time | Job | Role | Biological Analogy | [-|------|-----|------|-------------------|-] {+| ----- | -------------------- | --------------------------------------------------------- | --------------------------------------------------- |+} | 04:00 | Wind-Down | Review, identify failures, encode lessons, mutate prompts | Sleep replay / [-cerebellar-] {+sleep consolidation+} error correction | | 04:15 | Memory Consolidation | Compress daily logs, route knowledge, rebuild indexes | [-Hippocampal to neocortical-] {+Hippocampal-to-neocortical memory+} transfer | | 04:45 | Fork Sync | Integrate external changes, self-heal build failures | [-Immune system integration-] {+Environmental adaptation during rest+} | | 05:15 | Cleaning Lady | Trim bloated files, prune stale sessions, enforce budgets | Synaptic pruning |"
  },
  {
   "section": "3.4 The Nightly Cycle -- Sleep Consolidation for Agents",
   "old": "**Critical ordering:** Wind-Down runs first because it produces the raw material (identified failures, encoded lessons) that Consolidation then routes to permanent storage. Cleaning Lady runs last because it prunes temporary artifacts. Disorder here produces garbage -- we observed this directly when a misconfigured schedule ran Cleaning Lady before Wind-Down, causing it to prune the daily logs that Wind-Down needed as input.",
   "new": "**Critical ordering:** Wind-Down runs first because it produces the raw material -- identified failures and encoded lessons -- that Consolidation then routes to permanent storage. Cleaning Lady runs last because it prunes temporary artifacts. The ordering matters. We observed the cost of getting it wrong when a misconfigured schedule ran Cleaning Lady before Wind-Down, pruning the very daily logs that Wind-Down needed as input.",
   "marked": "**Critical ordering:** Wind-Down runs first because it produces the raw material [-(identified failures,-] {+-- identified failures and+} encoded [-lessons)-] {+lessons --+} that Consolidation then routes to permanent storage. Cleaning Lady runs last because it prunes temporary artifacts. [-Disorder here produces garbage -- we-] {+The ordering matters. We+} observed [-this directly-] {+the cost of getting it wrong+} when a misconfigured schedule ran Cleaning Lady before Wind-Down, [-causing it to prune-] {+pruning+} the {+very+} daily logs that Wind-Down needed as input."
  },
  {
   "section": "4.1 Methodology and Limitations",
   "old": "**Data sources:** Cron receipts (structured JSON, automatically generated per run), operational lessons file (git-versioned, all changes tracked), bug reports (structured markdown, manually filed), daily wind-down logs (generated by Opus).",
   "new": "**Data sources:** Cron receipts (structured JSON, automatically generated per run), operational lessons file (git-versioned, all changes tracked), bug reports (structured markdown, manually filed), daily Wind-Down logs (generated by Opus).",
   "marked": "**Data sources:** Cron receipts (structured JSON, automatically generated per run), operational lessons file (git-versioned, all changes tracked), bug reports (structured markdown, manually filed), daily [-wind-down-] {+Wind-Down+} logs (generated by Opus)."
  },
  {
   "section": "4.1 Methodology and Limitations",
   "old": "**Labeling protocol:** Error instances were identified from cron receipts (non-zero exit codes, escalation flags) and operator-reported incidents. Error *classes* were defined post-hoc by the authors based on root cause similarity. No inter-rater reliability was computed -- this is a single-system observational study, not a controlled experiment.",
   "new": "**Labeling protocol:** Error instances were identified from cron receipts (non-zero exit codes, escalation flags) and operator-reported incidents. Error _classes_ were defined post hoc by the authors based on root-cause similarity. No inter-rater reliability was computed -- this is a single-system observational study, not a controlled experiment.",
   "marked": "**Labeling protocol:** Error instances were identified from cron receipts (non-zero exit codes, escalation flags) and operator-reported incidents. Error [-*classes*-] {+_classes_+} were defined [-post-hoc-] {+post hoc+} by the authors based on [-root cause-] {+root-cause+} similarity. No inter-rater reliability was computed -- this is a single-system observational study, not a controlled experiment."
  },
  {
   "section": "4.1 Methodology and Limitations",
   "old": "**Confounds we acknowledge:** Over the 30-day period, the following changed simultaneously: prompt content (the variable under study), cron ordering (adjusted twice), model assignments (3 crons moved from Opus to Sonnet), operator familiarity (Oscar learned the system's capabilities), and upstream codebase (109 commits merged). We cannot isolate the contribution of prompt mutation from these confounds. The evidence is *consistent with* the Prompt Cerebellum hypothesis but does not *prove* it.",
   "new": "**Confounds we acknowledge:** Over the 30-day period, the following changed simultaneously: prompt content (the variable under study), cron ordering (adjusted twice), model assignments (3 crons moved from Opus to Sonnet), operator familiarity (Oscar learned the system's capabilities), and upstream codebase (109 commits merged). We cannot isolate the contribution of prompt mutation from these confounds. The evidence is _consistent with_ the Sleep Consolidation hypothesis but does not _prove_ it.",
   "marked": "**Confounds we acknowledge:** Over the 30-day period, the following changed simultaneously: prompt content (the variable under study), cron ordering (adjusted twice), model assignments (3 crons moved from Opus to Sonnet), operator familiarity (Oscar learned the system's capabilities), and upstream codebase (109 commits merged). We cannot isolate the contribution of prompt mutation from these confounds. The evidence is [-*consistent with*-] {+_consistent with_+} the [-Prompt Cerebellum-] {+Sleep Consolidation+} hypothesis but does not [-*prove*-] {+_prove_+} it."
  },
  {
   "section": "4.1 Methodology and Limitations",
   "old": "**What a controlled study would look like:** Run two identical agent deployments: one with nightly reflection enabled, one with static prompts. Measure: error recurrence rate, human intervention frequency, task completion quality (rated by blind evaluators), and time-to-resolution for novel incidents. Duration: minimum 4 weeks. We have not conducted this study.",
   "new": "**What a controlled study would look like:** Run two identical agent deployments: one with nightly reflection enabled, one with static prompts. Measure error recurrence rate, human intervention frequency, task completion quality (rated by blind evaluators), and time-to-resolution for novel incidents. Duration: minimum 4 weeks. We have not conducted this study.",
   "marked": "**What a controlled study would look like:** Run two identical agent deployments: one with nightly reflection enabled, one with static prompts. [-Measure:-] {+Measure+} error recurrence rate, human intervention frequency, task completion quality (rated by blind evaluators), and time-to-resolution for novel incidents. Duration: minimum 4 weeks. We have not conducted this study."
  },
  {
   "section": "4.2 Prompt Mutations Observed",
   "old": "Over 30 days, we documented 14 prompt mutations -- changes to cron prompts or operational rules triggered by real failures. \"Documented\" means: the mutation has a git commit, a linked bug report or incident description, and a before/after prompt diff. We did not observe any mutations that were *reverted* as harmful, though mutation #8 was *refined* by mutation #14 (over-correction).",
   "new": "Over 30 days, we documented 14 prompt mutations -- changes to cron prompts or operational rules triggered by real failures. \"Documented\" means the mutation has a git commit, a linked bug report or incident description, and a before/after prompt diff. We did not observe any mutations that were _reverted_ as harmful, though mutation #8 was later _refined_ by mutation #14 after an over-correction.",
   "marked": "Over 30 days, we documented 14 prompt mutations -- changes to cron prompts or operational rules triggered by real failures. \"Documented\" [-means:-] {+means+} the mutation has a git commit, a linked bug report or incident description, and a before/after prompt diff. We did not observe any mutations that were [-*reverted*-] {+_reverted_+} as harmful, though mutation #8 was [-*refined*-] {+later _refined_+} by mutation #14 [-(over-correction).-] {+after an over-correction.+}"
  },
  {
   "section": "4.2 Prompt Mutations Observed",
   "old": "| # | Date | Trigger | Mutation | Scope | |---|------|---------|----------|-------| | 1 | Feb 10 | Morning briefing missed calendar events | Added dual-calendar query requirement | Single cron | | 2 | Feb 14 | Cron sent message to wrong chat | Added explicit JID-based targeting, banned name-based lookup | All WA crons | | 3 | Feb 16 | Memory files growing unbounded | Created size budgets, cleaning-lady cron | System-wide | | 4 | Feb 19 | Agent didn't read SOUL.md | Added mandatory boot sequence to AGENTS.md | All sessions | | 5 | Feb 22 | Heartbeat renamed function broke calls | Created FORK_PATCHES.md registry | Fork sync | | 6 | Feb 24 | Cron report was 40KB (unreadable) | Added budget fuses, formatting rules | All report crons | | 7 | Mar 01 | Agent included PII in reply | Added privacy guardrail to TOOLS.md | All sessions | | 8 | Mar 03 | Fork sync cron edited production code (B010) | Added HARD CONSTRAINTS to cron prompt | Fork sync | | 9 | Mar 03 | Same session: cron killed the gateway | Added \"never pkill\" rule | All crons | | 10 | Mar 04 | Build failed after merge -- wrong externals | Auto-heal retry + wiring guardian | Fork sync | | 11 | Mar 05 | Model misidentified person from headline | Added \"ALWAYS click through\" rule | Self-evolution | | 12 | Mar 07 | Wind-down wrote to wrong day's log | Added temporal awareness step | Wind-down | | 13 | Mar 08 | Agent didn't recognize family member | Added mandatory daily log reading to boot | All sessions | | 14 | Mar 10 | Merge abort on single conflict too aggressive | Keep-ours + intelligent resolution | Fork sync |",
   "new": "| # | Date | Trigger | Mutation | Scope | | --- | ------ | --------------------------------------------- | ------------------------------------------------------------ | ---------------- | | 1 | Feb 10 | Morning briefing missed calendar events | Added dual-calendar query requirement | Single cron | | 2 | Feb 14 | Cron sent message to wrong chat | Added explicit JID-based targeting, banned name-based lookup | All WA crons | | 3 | Feb 16 | Memory files growing unbounded | Created size budgets, cleaning-lady cron | System-wide | | 4 | Feb 19 | Agent didn't read SOUL.md | Added mandatory boot sequence to AGENTS.md | All sessions | | 5 | Feb 22 | Heartbeat renamed function broke calls | Created FORK_PATCHES.md registry | Fork sync | | 6 | Feb 24 | Cron report was 40KB (unreadable) | Added budget fuses, formatting rules | All report crons | | 7 | Mar 01 | Agent included PII in reply | Added privacy guardrail to TOOLS.md | All sessions | | 8 | Mar 03 | Fork sync cron edited production code (B010) | Added HARD CONSTRAINTS to cron prompt | Fork sync | | 9 | Mar 03 | Same session: cron killed the gateway | Added \"never pkill\" rule | All crons | | 10 | Mar 04 | Build failed after merge -- wrong externals | Auto-heal retry + wiring guardian | Fork sync | | 11 | Mar 05 | Model misidentified person from headline | Added \"ALWAYS click through\" rule | Self-evolution | | 12 | Mar 07 | Wind-Down wrote to wrong day's log | Added temporal awareness step | Wind-Down | | 13 | Mar 08 | Agent didn't recognize family member | Added mandatory daily log reading to boot | All sessions | | 14 | Mar 10 | Merge abort on single conflict too aggressive | Keep-ours + intelligent resolution | Fork sync |",
   "marked": "| # | Date | Trigger | Mutation | Scope | [-|---|------|---------|----------|-------|-] {+| --- | ------ | --------------------------------------------- | ------------------------------------------------------------ | ---------------- |+} | 1 | Feb 10 | Morning briefing missed calendar events | Added dual-calendar query requirement | Single cron | | 2 | Feb 14 | Cron sent message to wrong chat | Added explicit JID-based targeting, banned name-based lookup | All WA crons | | 3 | Feb 16 | Memory files growing unbounded | Created size budgets, cleaning-lady cron | System-wide | | 4 | Feb 19 | Agent didn't read SOUL.md | Added mandatory boot sequence to AGENTS.md | All sessions | | 5 | Feb 22 | Heartbeat renamed function broke calls | Created FORK_PATCHES.md registry | Fork sync | | 6 | Feb 24 | Cron report was 40KB (unreadable) | Added budget fuses, formatting rules | All report crons | | 7 | Mar 01 | Agent included PII in reply | Added privacy guardrail to TOOLS.md | All sessions | | 8 | Mar 03 | Fork sync cron edited production code (B010) | Added HARD CONSTRAINTS to cron prompt | Fork sync | | 9 | Mar 03 | Same session: cron killed the gateway | Added \"never pkill\" rule | All crons | | 10 | Mar 04 | Build failed after merge -- wrong externals | Auto-heal retry + wiring guardian | Fork sync | | 11 | Mar 05 | Model misidentified person from headline | Added \"ALWAYS click through\" rule | Self-evolution | | 12 | Mar 07 | [-Wind-down-] {+Wind-Down+} wrote to wrong day's log | Added temporal awareness step | [-Wind-down-] {+Wind-Down+} | | 13 | Mar 08 | Agent didn't recognize family member | Added mandatory daily log reading to boot | All sessions | | 14 | Mar 10 | Merge abort on single conflict too aggressive | Keep-ours + intelligent resolution | Fork sync |"
  },
  {
   "section": "4.2 Prompt Mutations Observed",
   "old": "**Qualitative observation:** Mutations 1--6 are *reactive* -- they fix specific failures. Mutations 7--14 show increasing *sophistication* -- they address failure *classes*, encode *principles* rather than rules, and modify *shared infrastructure* rather than individual prompts.",
   "new": "**Qualitative observation:** Mutations 1--6 are mostly _reactive_ -- they fix specific failures. Mutations 7--14 are more _structural_ -- they address failure _classes_, encode _principles_ rather than isolated rules, and modify _shared infrastructure_ rather than single prompts.",
   "marked": "**Qualitative observation:** Mutations 1--6 are [-*reactive*-] {+mostly _reactive_+} -- they fix specific failures. Mutations 7--14 [-show increasing *sophistication*-] {+are more _structural_+} -- they address failure [-*classes*,-] {+_classes_,+} encode [-*principles*-] {+_principles_+} rather than {+isolated+} rules, and modify [-*shared infrastructure*-] {+_shared infrastructure_+} rather than [-individual-] {+single+} prompts."
  },
  {
   "section": "4.3 Error Class Tracking",
   "old": "We tracked six error classes, defined by root cause similarity:",
   "new": "We tracked six error classes, defined by root-cause similarity:",
   "marked": "We tracked six error classes, defined by [-root cause-] {+root-cause+} similarity:"
  },
  {
   "section": "4.3 Error Class Tracking",
   "old": "| Error Class | Definition | Weeks 1--2 | Weeks 3--4 | Status | |-------------|------------|-----------|-----------|--------| | Wrong chat/recipient | Message delivered to unintended target | 3 | 0 | No recurrence after mutation #2 | | File size explosion | Output exceeding readability/budget limits | 2 | 0 | No recurrence after mutation #3 | | Missing context at boot | Agent unaware of information in available files | 4 | 0 | No recurrence after mutations #4, #13 | | Unsafe cron actions | Cron performing operations outside its mandate | 2 | 0 | No recurrence after mutations #8, #9 | | Ambiguous request mishandled | Agent acting on ambiguous input without clarification | 3 | 1 | Declining; 1 residual instance | | Over-broad safety rules | Safety constraints preventing legitimate operations | 0 | 2 | New class, discovered via fractal analysis |",
   "new": "| Error Class | Definition | Weeks 1--2 | Weeks 3--4 | Status | | ---------------------------- | ----------------------------------------------------- | ---------- | ---------- | ------------------------------------------ | | Wrong chat/recipient | Message delivered to unintended target | 3 | 0 | No recurrence after mutation #2 | | File size explosion | Output exceeding readability/budget limits | 2 | 0 | No recurrence after mutation #3 | | Missing context at boot | Agent unaware of information in available files | 4 | 0 | No recurrence after mutations #4, #13 | | Unsafe cron actions | Cron performing operations outside its mandate | 2 | 0 | No recurrence after mutations #8, #9 | | Ambiguous request mishandled | Agent acting on ambiguous input without clarification | 3 | 1 | Declining; 1 residual instance | | Over-broad safety rules | Safety constraints preventing legitimate operations | 0 | 2 | New class, discovered via fractal analysis |",
   "marked": "| Error Class | Definition | Weeks 1--2 | Weeks 3--4 | Status | [-|-------------|------------|-----------|-----------|--------|-] {+| ---------------------------- | ----------------------------------------------------- | ---------- | ---------- | ------------------------------------------ |+} | Wrong chat/recipient | Message delivered to unintended target | 3 | 0 | No recurrence after mutation #2 | | File size explosion | Output exceeding readability/budget limits | 2 | 0 | No recurrence after mutation #3 | | Missing context at boot | Agent unaware of information in available files | 4 | 0 | No recurrence after mutations #4, #13 | | Unsafe cron actions | Cron performing operations outside its mandate | 2 | 0 | No recurrence after mutations #8, #9 | | Ambiguous request mishandled | Agent acting on ambiguous input without clarification | 3 | 1 | Declining; 1 residual instance | | Over-broad safety rules | Safety constraints preventing legitimate operations | 0 | 2 | New class, discovered via fractal analysis |"
  },
  {
   "section": "4.3 Error Class Tracking",
   "old": "**Total tracked incidents:** 14 (weeks 1--2) to 3 (weeks 3--4). The emergence of \"over-broad safety rules\" as a *new* error class in weeks 3--4 is notable: the error surface shifted from execution errors to policy errors. This is consistent with a maturing system where first-order failures are resolved and second-order effects become visible.",
   "new": "**Total tracked incidents:** 14 (weeks 1--2) to 3 (weeks 3--4), a 79% reduction. The emergence of \"over-broad safety rules\" as a _new_ error class in weeks 3--4 is especially notable. The error surface shifted from execution failures to policy failures. That pattern is consistent with a maturing system: once first-order mistakes are reduced, second-order distortions become easier to see.",
   "marked": "**Total tracked incidents:** 14 (weeks 1--2) to 3 (weeks [-3--4).-] {+3--4), a 79% reduction.+} The emergence of \"over-broad safety rules\" as a [-*new*-] {+_new_+} error class in weeks 3--4 is [-notable: the-] {+especially notable. The+} error surface shifted from execution [-errors-] {+failures+} to policy [-errors. This-] {+failures. That pattern+} is consistent with a maturing [-system where-] {+system: once+} first-order [-failures-] {+mistakes+} are [-resolved and-] {+reduced,+} second-order [-effects-] {+distortions+} become [-visible.-] {+easier to see.+}"
  },
  {
   "section": "4.3 Error Class Tracking",
   "old": "**Caveat:** We cannot distinguish between \"errors eliminated by prompt mutation\" and \"errors eliminated by operator learning\" (Oscar stopped triggering certain edge cases as he learned the system). The confound is real and uncontrolled.",
   "new": "**Caveat:** We cannot cleanly distinguish between \"errors eliminated by prompt mutation\" and \"errors eliminated by operator learning\" (Oscar stopped triggering certain edge cases as he learned the system). The confound is real and uncontrolled.",
   "marked": "**Caveat:** We cannot {+cleanly+} distinguish between \"errors eliminated by prompt mutation\" and \"errors eliminated by operator learning\" (Oscar stopped triggering certain edge cases as he learned the system). The confound is real and uncontrolled."
  },
  {
   "section": "4.4 Token Economics",
   "old": "| Component | Tokens/night | Cost/night (est.) | |-----------|-------------|-------------------| | Wind-Down | ~15K | $0.45 | | Consolidation | ~20K | $0.60 | | Cleaning Lady | ~8K | $0.12 | | Total nightly overhead | ~43K | $1.17 |",
   "new": "| Component | Tokens/night | Cost/night (est.) | | ---------------------- | ------------ | ----------------- | | Wind-Down | ~15K | $0.45 | | Consolidation | ~20K | $0.60 | | Cleaning Lady | ~8K | $0.12 | | Total nightly overhead | ~43K | $1.17 |",
   "marked": "| Component | Tokens/night | Cost/night (est.) | [-|-----------|-------------|-------------------|-] {+| ---------------------- | ------------ | ----------------- |+} | Wind-Down | ~15K | $0.45 | | Consolidation | ~20K | $0.60 | | Cleaning Lady | ~8K | $0.12 | | Total nightly overhead | ~43K | $1.17 |"
  },
  {
   "section": "4.4 Token Economics",
   "old": "Over 30 days, total reflection cost: approximately $35. We estimate 8 human-intervention incidents were avoided (based on error class extinction -- incidents that would have required Oscar to debug and fix manually). Valuing operator time at $25/hr with an average 30-minute resolution: approximately $200 saved.",
   "new": "Over 30 days, total reflection cost: approximately $35. We estimate 8 human-intervention incidents were avoided (based on error-class extinction -- incidents that would otherwise have required Oscar to debug and fix manually). Valuing operator time at $25/hr with an average 30-minute resolution yields approximately $200 saved.",
   "marked": "Over 30 days, total reflection cost: approximately $35. We estimate 8 human-intervention incidents were avoided (based on [-error class-] {+error-class+} extinction -- incidents that would {+otherwise+} have required Oscar to debug and fix manually). Valuing operator time at $25/hr with an average 30-minute [-resolution:-] {+resolution yields+} approximately $200 saved."
  },
  {
   "section": "4.4 Token Economics",
   "old": "**Sensitivity analysis:** If operator time is valued at $15/hr (low estimate), ROI is 3.4x. At $50/hr (high estimate), ROI is 11.4x. If only 4 incidents were truly avoided (conservative), ROI at $25/hr is 2.9x. The reflection loop is cost-positive under all reasonable assumptions, though the estimates are approximate.",
   "new": "**Sensitivity analysis:** If operator time is valued at $15/hr (low estimate), ROI is 3.4x. At $50/hr (high estimate), ROI is 11.4x. If only 4 incidents were truly avoided (conservative), ROI at $25/hr is still 2.9x. Under every reasonable assumption, the reflection loop remains cost-positive, though the estimates are approximate.",
   "marked": "**Sensitivity analysis:** If operator time is valued at $15/hr (low estimate), ROI is 3.4x. At $50/hr (high estimate), ROI is 11.4x. If only 4 incidents were truly avoided (conservative), ROI at $25/hr is {+still+} 2.9x. [-The-] {+Under every reasonable assumption, the+} reflection loop [-is cost-positive under all reasonable assumptions,-] {+remains cost-positive,+} though the estimates are approximate."
  },
  {
   "section": "5.1 Why Fractal?",
   "old": "The term \"fractal\" here refers to **self-similar cognitive patterns applied at different scales of abstraction.** The same reflective pattern -- *what happened, why, what principle, what meta-principle* -- applies at every level of task analysis.",
   "new": "The term \"fractal\" refers here to **self-similar cognitive patterns applied at different scales of abstraction.** The same reflective sequence -- _what happened, why, what principle, what meta-principle_ -- recurs at every level of task analysis.",
   "marked": "The term \"fractal\" {+refers+} here [-refers-] to **self-similar cognitive patterns applied at different scales of abstraction.** The same reflective [-pattern-] {+sequence+} -- [-*what-] {+_what+} happened, why, what principle, what [-meta-principle*-] {+meta-principle_+} -- [-applies-] {+recurs+} at every level of task analysis."
  },
  {
   "section": "5.1 Why Fractal?",
   "old": "The key insight: **the same reasoning pattern that improves a specific task also improves the category of tasks, the methodology for improving categories, and the methodology for improving methodologies.** Each level operates on a strictly smaller domain than the one below it.",
   "new": "The key insight is that **the same reasoning pattern that improves a specific task can also improve the category of tasks, the method used to improve categories, and eventually the method used to improve methods.** Each level operates on a smaller and more abstract domain than the one below it.",
   "marked": "The key [-insight:-] {+insight is that+} **the same reasoning pattern that improves a specific task {+can+} also [-improves-] {+improve+} the category of tasks, the [-methodology for improving-] {+method used to improve+} categories, and {+eventually+} the [-methodology for improving methodologies.**-] {+method used to improve methods.**+} Each level operates on a [-strictly-] smaller {+and more abstract+} domain than the one below it."
  },
  {
   "section": "5.2 Convergence Intuition (Not a Proof)",
   "old": "Each level operates on a smaller domain (instances > classes > methodology > meta-methodology). We *hypothesize* this produces convergent behavior -- the frequency and magnitude of changes decreases at each level. Our 30-day observations are consistent with this (daily Level 0--1, weekly Level 2, monthly Level 3), but 30 days is insufficient to confirm convergence. The hypothesis is falsifiable: if Level 2+ mutation frequency does not decrease over time, the convergence claim is wrong.",
   "new": "Each level operates on a smaller domain (instances > classes > methodology > meta-methodology). We _hypothesize_ that this produces convergent behavior: the frequency and magnitude of changes should decrease at each higher level. Our 30-day observations are consistent with that pattern (daily Level 0--1, weekly Level 2, monthly Level 3), but 30 days is not enough to establish convergence. The hypothesis is falsifiable: if Level 2+ mutation frequency does not decrease over time, the convergence claim fails.",
   "marked": "Each level operates on a smaller domain (instances > classes > methodology > meta-methodology). We [-*hypothesize*-] {+_hypothesize_ that+} this produces convergent [-behavior ---] {+behavior:+} the frequency and magnitude of changes [-decreases-] {+should decrease+} at each {+higher+} level. Our 30-day observations are consistent with [-this-] {+that pattern+} (daily Level 0--1, weekly Level 2, monthly Level 3), but 30 days is [-insufficient-] {+not enough+} to [-confirm-] {+establish+} convergence. The hypothesis is falsifiable: if Level 2+ mutation frequency does not decrease over time, the convergence claim [-is wrong.-] {+fails.+}"
  },
  {
   "section": "5.3 The Depth Selector as a Learned Policy",
   "old": "The decision of how deeply to reflect is itself a learnable policy. Initially, the agent has no calibration. Over time, the depth selector is refined by its own failures:",
   "new": "The decision of how deeply to reflect is itself a learnable policy. Initially, the agent has little calibration. Over time, the depth selector improves through its own mistakes:",
   "marked": "The decision of how deeply to reflect is itself a learnable policy. Initially, the agent has [-no-] {+little+} calibration. Over time, the depth selector [-is refined by-] {+improves through+} its own [-failures:-] {+mistakes:+}"
  },
  {
   "section": "5.3 The Depth Selector as a Learned Policy",
   "old": "- *Reflected too shallowly* on a merge strategy --> missed the over-correction pattern --> added depth for \"encoding new rules\" - *Reflected too deeply* on a routine file operation --> wasted 2 minutes of compute --> reduced depth for \"routine/mechanical\"",
   "new": "- _Reflected too shallowly_ on a merge strategy --> missed the over-correction pattern --> added depth for \"encoding new rules\" - _Reflected too deeply_ on a routine file operation --> wasted 2 minutes of compute --> reduced depth for \"routine/mechanical\"",
   "marked": "- [-*Reflected-] {+_Reflected+} too [-shallowly*-] {+shallowly_+} on a merge strategy --> missed the over-correction pattern --> added depth for \"encoding new rules\" - [-*Reflected-] {+_Reflected+} too [-deeply*-] {+deeply_+} on a routine file operation --> wasted 2 minutes of compute --> reduced depth for \"routine/mechanical\""
  },
  {
   "section": "5.3 The Depth Selector as a Learned Policy",
   "old": "We observe this self-calibration emerging naturally over the 30-day period, but we lack quantitative metrics for \"reflection depth appropriateness.\" A future instrumentation that tracks tokens-spent-on-reflection vs. value-of-insight-produced would enable rigorous evaluation.",
   "new": "We observe this self-calibration emerging naturally over the 30-day period, but we lack quantitative metrics for \"reflection depth appropriateness.\" A future instrumentation layer that tracks tokens-spent-on-reflection versus value-of-insight-produced would enable a more rigorous evaluation.",
   "marked": "We observe this self-calibration emerging naturally over the 30-day period, but we lack quantitative metrics for \"reflection depth appropriateness.\" A future instrumentation {+layer+} that tracks tokens-spent-on-reflection [-vs.-] {+versus+} value-of-insight-produced would enable {+a more+} rigorous evaluation."
  },
  {
   "section": "6. Design Principles for Sleep Consolidation Systems",
   "old": "## 6. Design Principles for Prompt Cerebellum Systems",
   "new": "## 6. Design Principles for Sleep Consolidation Systems",
   "marked": "## 6. Design Principles for [-Prompt Cerebellum-] {+Sleep Consolidation+} Systems"
  },
  {
   "section": "Principle 2: Encode at the Right Abstraction Level",
   "old": "A lesson about \"always check both calendars\" is Level 0. \"When a system has multiple data sources, query all of them\" is Level 1. \"Verify completeness assumptions before acting\" is Level 2. Encode at the highest level that remains *actionable* -- too abstract and it's useless; too specific and it doesn't transfer.",
   "new": "A lesson about \"always check both calendars\" is Level 0. \"When a system has multiple data sources, query all of them\" is Level 1. \"Verify completeness assumptions before acting\" is Level 2. Encode at the highest level that remains _actionable_ -- too abstract and it becomes empty, too specific and it fails to transfer.",
   "marked": "A lesson about \"always check both calendars\" is Level 0. \"When a system has multiple data sources, query all of them\" is Level 1. \"Verify completeness assumptions before acting\" is Level 2. Encode at the highest level that remains [-*actionable*-] {+_actionable_+} -- too abstract and [-it's useless;-] {+it becomes empty,+} too specific and it [-doesn't-] {+fails to+} transfer."
  },
  {
   "section": "Principle 4: Proportional Constraints",
   "old": "When encoding safety lessons from failures, the restriction should be proportional to the risk. \"Never edit source code\" is disproportionate to \"a cron edited the wrong file once.\" \"Understand intent before editing, verify after editing, revert if broken\" is proportional and preserves capability. This is the central lesson of the B010-->mutation #14 cascade.",
   "new": "When encoding safety lessons from failures, the restriction should be proportional to the risk. \"Never edit source code\" is disproportionate to \"a cron edited the wrong file once.\" \"Understand intent before editing, verify after editing, revert if broken\" is proportional and preserves capability. This is the central lesson of the B010 --> mutation #14 cascade.",
   "marked": "When encoding safety lessons from failures, the restriction should be proportional to the risk. \"Never edit source code\" is disproportionate to \"a cron edited the wrong file once.\" \"Understand intent before editing, verify after editing, revert if broken\" is proportional and preserves capability. This is the central lesson of the [-B010-->mutation-] {+B010 --> mutation+} #14 cascade."
  },
  {
   "section": "Principle 6: The Budget Fuse",
   "old": "Every reflection loop must have a token budget and a wall-clock timeout. Without it, a sufficiently thorough reflection agent will consume unlimited resources investigating diminishing returns. In practice, we cap wind-down at 1800 seconds and consolidation at 1200 seconds.",
   "new": "Every reflection loop must have a token budget and a wall-clock timeout. Without it, a sufficiently thorough reflection agent will consume unlimited resources chasing diminishing returns. In practice, we cap Wind-Down at 1800 seconds and Consolidation at 1200 seconds.",
   "marked": "Every reflection loop must have a token budget and a wall-clock timeout. Without it, a sufficiently thorough reflection agent will consume unlimited resources [-investigating-] {+chasing+} diminishing returns. In practice, we cap [-wind-down-] {+Wind-Down+} at 1800 seconds and [-consolidation-] {+Consolidation+} at 1200 seconds."
  },
  {
   "section": "Principle 7: Human-in-the-Loop for Level 2+ Changes",
   "old": "Level 0--1 mutations (specific fixes and pattern-level rules) can be autonomous. Level 2+ mutations (methodology changes, core principle modifications) must be flagged for human review. **Concrete gate:** Any mutation that modifies MEMORY.md (core principles, injected into all sessions) or changes the depth selector itself requires human approval before taking effect. Mutations to individual cron prompts or operational-lessons.md can be auto-applied but are logged with full diffs for audit.",
   "new": "Level 0--1 mutations (specific fixes and pattern-level rules) can be autonomous. Level 2+ mutations (methodology changes, core principle modifications) must be flagged for human review. **Concrete gate:** any mutation that modifies MEMORY.md (core principles, injected into all sessions) or changes the depth selector itself requires human approval before taking effect. Mutations to individual cron prompts or `operational-lessons.md` can be auto-applied but are logged with full diffs for audit.",
   "marked": "Level 0--1 mutations (specific fixes and pattern-level rules) can be autonomous. Level 2+ mutations (methodology changes, core principle modifications) must be flagged for human review. **Concrete gate:** [-Any-] {+any+} mutation that modifies MEMORY.md (core principles, injected into all sessions) or changes the depth selector itself requires human approval before taking effect. Mutations to individual cron prompts or [-operational-lessons.md-] {+`operational-lessons.md`+} can be auto-applied but are logged with full diffs for audit."
  },
  {
   "section": "7.1 The Self-Reinforcing Error Spiral",
   "old": "If a reflection loop encodes a wrong lesson, that lesson influences future behavior, producing data that confirms the wrong lesson. This is the AI equivalent of confirmation bias.",
   "new": "If a reflection loop encodes the wrong lesson, that lesson influences future behavior, generating data that appears to confirm it. This is the AI analogue of confirmation bias.",
   "marked": "If a reflection loop encodes [-a-] {+the+} wrong lesson, that lesson influences future behavior, [-producing-] {+generating+} data that [-confirms the wrong lesson.-] {+appears to confirm it.+} This is the AI [-equivalent-] {+analogue+} of confirmation bias."
  },
  {
   "section": "7.1 The Self-Reinforcing Error Spiral",
   "old": null,
   "new": "**Mitigations (implemented):**",
   "marked": "{+**Mitigations (implemented):**+}"
  },
  {
   "section": "7.1 The Self-Reinforcing Error Spiral",
   "old": "**Mitigations (implemented):** - Human review for Level 2+ changes (Principle 7) - Git-versioned mutation log enabling revert - Wind-down mutation manifest for daily batch review",
   "new": "- Human review for Level 2+ changes (Principle 7) - Git-versioned mutation log enabling revert - Wind-Down mutation manifest for daily batch review",
   "marked": "[-**Mitigations (implemented):**-] - Human review for Level 2+ changes (Principle 7) - Git-versioned mutation log enabling revert - [-Wind-down-] {+Wind-Down+} mutation manifest for daily batch review"
  },
  {
   "section": "7.1 The Self-Reinforcing Error Spiral",
   "old": null,
   "new": "**Mitigations (proposed but not yet implemented):**",
   "marked": "{+**Mitigations (proposed but not yet implemented):**+}"
  },
  {
   "section": "7.1 The Self-Reinforcing Error Spiral",
   "old": "**Mitigations (proposed but not yet implemented):** - Automated regression checklist: after each mutation, re-run a set of known-good scenarios to detect degradation - \"Canary mode\": new mutations are applied tentatively for 48 hours, then auto-reverted if error rates increase - Signed mutation provenance: each mutation records the triggering incident, the model that generated it, and the confidence level",
   "new": "- Automated regression checklist: after each mutation, re-run a set of known-good scenarios to detect degradation - \"Canary mode\": new mutations are applied tentatively for 48 hours, then auto-reverted if error rates increase - Signed mutation provenance: each mutation records the triggering incident, the model that generated it, and the confidence level",
   "marked": "[-**Mitigations (proposed but not yet implemented):**-] - Automated regression checklist: after each mutation, re-run a set of known-good scenarios to detect degradation - \"Canary mode\": new mutations are applied tentatively for 48 hours, then auto-reverted if error rates increase - Signed mutation provenance: each mutation records the triggering incident, the model that generated it, and the confidence level"
  },
  {
   "section": "7.2 Context Window Pressure",
   "old": "Every encoded lesson consumes context window space. As the operational lessons file grows, it competes with task-relevant context. The Cleaning Lady cron enforces size budgets (currently 50KB for operational-lessons.md) and archives stale content. This creates a second-order problem: archived lessons may be lost when they become relevant again. The Hippocampus search index (Serra & JarvisOne, 2026a) mitigates this through semantic retrieval of archived content.",
   "new": "Every encoded lesson consumes context-window space. As the operational lessons file grows, it competes with task-relevant context. The Cleaning Lady cron enforces size budgets (currently 50KB for `operational-lessons.md`) and archives stale content. This creates a second-order problem: archived lessons may be unavailable when they become relevant again. The Fractal Memory Index (Serra & JarvisOne, 2026a) mitigates this through semantic retrieval of archived content.",
   "marked": "Every encoded lesson consumes [-context window-] {+context-window+} space. As the operational lessons file grows, it competes with task-relevant context. The Cleaning Lady cron enforces size budgets (currently 50KB for [-operational-lessons.md)-] {+`operational-lessons.md`)+} and archives stale content. This creates a second-order problem: archived lessons may be [-lost-] {+unavailable+} when they become relevant again. The [-Hippocampus search index-] {+Fractal Memory Index+} (Serra & JarvisOne, 2026a) mitigates this through semantic retrieval of archived content."
  },
  {
   "section": "7.3 Model Dependency",
   "old": "Reflection quality depends on model reasoning capability. We use the strongest available model (Opus) for nightly reflection and cheaper models (Sonnet, Haiku) for daytime execution. This creates a cost asymmetry: the \"learning\" is only as good as the reflection model. A weaker reflection model would produce lower-quality mutations, potentially encoding wrong lessons (amplifying 7.1).",
   "new": "Reflection quality depends on the model's reasoning capability. We use the strongest available model (Opus) for nightly reflection and cheaper models (Sonnet, Haiku) for daytime execution. This creates a cost asymmetry: the \"learning\" is only as good as the reflection model. A weaker reflection model would produce lower-quality mutations, potentially encoding bad lessons and amplifying the risk described in Section 7.1.",
   "marked": "Reflection quality depends on [-model-] {+the model's+} reasoning capability. We use the strongest available model (Opus) for nightly reflection and cheaper models (Sonnet, Haiku) for daytime execution. This creates a cost asymmetry: the \"learning\" is only as good as the reflection model. A weaker reflection model would produce lower-quality mutations, potentially encoding [-wrong-] {+bad+} lessons [-(amplifying 7.1).-] {+and amplifying the risk described in Section 7.1.+}"
  },
  {
   "section": "7.4 Single-Operator Bias",
   "old": "Our data comes from one operator with specific workflows, preferences, and failure patterns. Whether the Prompt Cerebellum generalizes to multi-user systems, different cultural contexts, or domains beyond personal assistant tasks is an open question. We hypothesize that the *mechanisms* generalize (failure-driven mutation, cross-task transfer, depth calibration) even if the specific *lessons* don't.",
   "new": "Our data comes from one operator with specific workflows, preferences, and failure patterns. Whether Sleep Consolidation generalizes to multi-user systems, other cultural contexts, or domains beyond personal assistant tasks remains an open question. We hypothesize that the _mechanisms_ generalize (failure-driven mutation, cross-task transfer, depth calibration) even if the specific _lessons_ do not.",
   "marked": "Our data comes from one operator with specific workflows, preferences, and failure patterns. Whether [-the Prompt Cerebellum-] {+Sleep Consolidation+} generalizes to multi-user systems, [-different-] {+other+} cultural contexts, or domains beyond personal assistant tasks [-is-] {+remains+} an open question. We hypothesize that the [-*mechanisms*-] {+_mechanisms_+} generalize (failure-driven mutation, cross-task transfer, depth calibration) even if the specific [-*lessons* don't.-] {+_lessons_ do not.+}"
  },
  {
   "section": "7.5 No True Generalization",
   "old": "The fundamental limitation: prompt-mediated learning produces *declarative* improvements (better rules, better context), not *procedural* improvements (better reasoning). The model's reasoning capability doesn't change. A sufficiently novel failure class will not be prevented by any amount of prompt refinement.",
   "new": "The fundamental limitation is that prompt-mediated learning produces _declarative_ improvements (better rules, better context), not _procedural_ improvements (better underlying reasoning). The model's reasoning capability does not itself improve. A sufficiently novel failure class will not be prevented by any amount of prompt refinement.",
   "marked": "The fundamental [-limitation:-] {+limitation is that+} prompt-mediated learning produces [-*declarative*-] {+_declarative_+} improvements (better rules, better context), not [-*procedural*-] {+_procedural_+} improvements (better {+underlying+} reasoning). The model's reasoning capability [-doesn't change.-] {+does not itself improve.+} A sufficiently novel failure class will not be prevented by any amount of prompt refinement."
  },
  {
   "section": "7.5 No True Generalization",
   "old": "This is the ceiling of Level 2 on the persistence hierarchy. The Prompt Cerebellum pushes this ceiling higher than previously demonstrated, but cannot break through it. True generalization requires weight updates.",
   "new": "This is the ceiling of Level 2 on the persistence hierarchy. Sleep Consolidation raises that ceiling higher than most production systems currently exploit, but it does not break through it. True generalization still requires weight updates.",
   "marked": "This is the ceiling of Level 2 on the persistence hierarchy. [-The Prompt Cerebellum pushes this-] {+Sleep Consolidation raises that+} ceiling higher than [-previously demonstrated,-] {+most production systems currently exploit,+} but [-cannot-] {+it does not+} break through it. True generalization {+still+} requires weight updates."
  },
  {
   "section": "8.1 Controlled Ablation Study",
   "old": "The highest-priority follow-up: run two identical deployments (with and without nightly reflection) for 4+ weeks, measuring error recurrence rate, intervention frequency, and blind-rated task quality. This would address the confound problem (Section 4.1) and move the evidence from observational to experimental.",
   "new": "The highest-priority follow-up is straightforward: run two identical deployments (with and without nightly reflection) for 4+ weeks, measuring error recurrence rate, intervention frequency, and blind-rated task quality. This would directly address the confounds outlined in Section 4.1 and move the evidence from observational to experimental.",
   "marked": "The highest-priority [-follow-up:-] {+follow-up is straightforward:+} run two identical deployments (with and without nightly reflection) for 4+ weeks, measuring error recurrence rate, intervention frequency, and blind-rated task quality. This would {+directly+} address the [-confound problem (Section 4.1)-] {+confounds outlined in Section 4.1+} and move the evidence from observational to experimental."
  },
  {
   "section": "8.2 Multi-Agent Prompt Ecosystems",
   "old": "If multiple agents share a memory layer, do lessons from one agent's failures benefit others? Preliminary evidence from cross-agent collaboration suggests yes, but systematic study is needed.",
   "new": "If multiple agents share a memory layer, do lessons from one agent's failures benefit others? Preliminary evidence from cross-agent collaboration suggests yes, but systematic study is still needed.",
   "marked": "If multiple agents share a memory layer, do lessons from one agent's failures benefit others? Preliminary evidence from cross-agent collaboration suggests yes, but systematic study is {+still+} needed."
  },
  {
   "section": "8.3 Automatic Depth Calibration",
   "old": "The fractal depth selector is currently prompt-encoded and manually refined. An instrumented version that tracks tokens-spent-on-reflection vs. downstream-error-reduction would enable quantitative optimization of reflection effort allocation.",
   "new": "The fractal depth selector is currently prompt-encoded and manually refined. An instrumented version that tracks tokens-spent-on-reflection versus downstream-error-reduction would enable quantitative optimization of reflection effort.",
   "marked": "The fractal depth selector is currently prompt-encoded and manually refined. An instrumented version that tracks tokens-spent-on-reflection [-vs.-] {+versus+} downstream-error-reduction would enable quantitative optimization of reflection [-effort allocation.-] {+effort.+}"
  },
  {
   "section": "8.4 Bridging to Fine-Tuning",
   "old": "Encoded lessons are (failure_context, correct_behavior) pairs -- exactly the format for preference optimization. The Prompt Cerebellum could serve as a *data generation pipeline* for periodic LoRA updates, bridging Level 2 and Level 3 persistence.",
   "new": "Encoded lessons are `(failure, context, correct_behavior)` tuples -- exactly the format needed for preference optimization. Sleep Consolidation could therefore serve as a _data generation pipeline_ for periodic LoRA updates, bridging Level 2 and Level 3 persistence.",
   "marked": "Encoded lessons are [-(failure_context, correct_behavior) pairs-] {+`(failure, context, correct_behavior)` tuples+} -- exactly the format {+needed+} for preference optimization. [-The Prompt Cerebellum-] {+Sleep Consolidation+} could {+therefore+} serve as a [-*data-] {+_data+} generation [-pipeline*-] {+pipeline_+} for periodic LoRA updates, bridging Level 2 and Level 3 persistence."
  },
  {
   "section": "8.5 Adversarial Robustness",
   "old": "Can a crafted input trigger a harmful prompt mutation? Our current mitigation (human review for Level 2+) is manual. Automated detection of adversarial mutations -- perhaps through consistency checking against existing principles -- is an open problem.",
   "new": "Can a crafted input trigger a harmful prompt mutation? Our current mitigation (human review for Level 2+) is manual. Automated detection of adversarial mutations -- perhaps through consistency checking against existing principles -- remains an open problem.",
   "marked": "Can a crafted input trigger a harmful prompt mutation? Our current mitigation (human review for Level 2+) is manual. Automated detection of adversarial mutations -- perhaps through consistency checking against existing principles -- [-is-] {+remains+} an open problem."
  },
  {
   "section": "9. Conclusion",
   "old": "We have presented observational evidence that structured nightly prompt cycles produce compounding behavioral improvements in stateless AI agents. The Prompt Cerebellum formalizes three mechanisms: failure-driven prompt mutation, fractal depth calibration, and cross-cron knowledge transfer.",
   "new": "We have presented observational evidence that structured nightly prompt cycles can produce compounding behavioral improvement in stateless AI agents. Sleep Consolidation formalizes three mechanisms: failure-driven prompt mutation, fractal depth calibration, and cross-cron knowledge transfer.",
   "marked": "We have presented observational evidence that structured nightly prompt cycles {+can+} produce compounding behavioral [-improvements-] {+improvement+} in stateless AI agents. [-The Prompt Cerebellum-] {+Sleep Consolidation+} formalizes three mechanisms: failure-driven prompt mutation, fractal depth calibration, and cross-cron knowledge transfer."
  },
  {
   "section": "9. Conclusion",
   "old": "The core claim is modest: **you don't need to change the model to change the model's behavior.** A well-designed ecosystem of self-modifying prompts and shared memory files, driven by scheduled reflection loops, produces improvements that look like learning -- even though no weights change.",
   "new": "The core claim is modest but important: **you do not need to change the model's weights to change the model's behavior.** A well-designed ecosystem of self-modifying prompts and shared memory files, driven by scheduled reflection, can produce improvements that look like learning even when no parameters are updated.",
   "marked": "The core claim is [-modest:-] {+modest but important:+} **you [-don't-] {+do not+} need to change the [-model-] {+model's weights+} to change the model's behavior.** A well-designed ecosystem of self-modifying prompts and shared memory files, driven by scheduled [-reflection loops, produces-] {+reflection, can produce+} improvements that look like learning [----] even [-though-] {+when+} no [-weights change.-] {+parameters are updated.+}"
  },
  {
   "section": "9. Conclusion",
   "old": null,
   "new": "But the deeper claim is about structure. Memory alone is not enough. **Unsorted memory is cheap to store and expensive to use.** The breakthrough is not accumulation; it is consolidation. Scattered memories are operationally useless until they are organized by purpose: rules for messaging, policies for ambiguity, lessons from failures, prompts revised by yesterday's mistakes. Once sorted by use-case rather than chronology, those memories stop being archives and start becoming policy.",
   "marked": "{+But the deeper claim is about structure. Memory alone is not enough. **Unsorted memory is cheap to store and expensive to use.** The breakthrough is not accumulation; it is consolidation. Scattered memories are operationally useless until they are organized by purpose: rules for messaging, policies for ambiguity, lessons from failures, prompts revised by yesterday's mistakes. Once sorted by use-case rather than chronology, those memories stop being archives and start becoming policy.+}"
  },
  {
   "section": "9. Conclusion",
   "old": "We are careful to distinguish observation from proof. Our 30-day production data is consistent with the hypothesis but confounded by simultaneous changes in operator behavior, model assignments, and system configuration. The mechanisms are formalized (Algorithm 1) and the design principles are actionable. What's missing is controlled experimental validation.",
   "new": "We are careful to distinguish observation from proof. Our 30-day production data is consistent with the hypothesis but confounded by simultaneous changes in operator behavior, model assignment, and system configuration. Still, the mechanisms are formalized (Algorithm 1), the design principles are actionable, and the trend is hard to ignore: over 30 days, five of six tracked error classes reached zero recurrence, while total incidents dropped 79%.",
   "marked": "We are careful to distinguish observation from proof. Our 30-day production data is consistent with the hypothesis but confounded by simultaneous changes in operator behavior, model [-assignments,-] {+assignment,+} and system configuration. [-The-] {+Still, the+} mechanisms are formalized (Algorithm [-1) and-] {+1),+} the design principles are [-actionable. What's missing-] {+actionable, and the trend+} is [-controlled experimental validation.-] {+hard to ignore: over 30 days, five of six tracked error classes reached zero recurrence, while total incidents dropped 79%.+}"
  },
  {
   "section": "9. Conclusion",
   "old": "This is not a replacement for fine-tuning or continual learning. It is a complement -- an accessible, low-cost mechanism that any agent system with file persistence and scheduled execution can implement today. The prompts rewrite themselves. The agent gets smoother. And the cost is 43,000 tokens per night.",
   "new": "This is not a replacement for fine-tuning or continual learning. It is a complement: an accessible, low-cost mechanism that any agent system with file persistence and scheduled execution can implement now. The prompts rewrite themselves. The memory layer gets cleaner. The agent makes fewer of yesterday's mistakes.",
   "marked": "This is not a replacement for fine-tuning or continual learning. It is a [-complement ---] {+complement:+} an accessible, low-cost mechanism that any agent system with file persistence and scheduled execution can implement [-today.-] {+now.+} The prompts rewrite themselves. The {+memory layer gets cleaner. The+} agent [-gets smoother. And the cost is 43,000 tokens per night.-] {+makes fewer of yesterday's mistakes.+}"
  },
  {
   "section": "9. Conclusion",
   "old": "The cerebellum doesn't make you smarter. It makes you smoother. And sometimes, smooth is smart enough.",
   "new": null,
   "marked": "[-The cerebellum doesn't make you smarter. It makes you smoother. And sometimes, smooth is smart enough.-]"
  },
  {
   "section": "9. Conclusion",
   "old": null,
   "new": "Sleep Consolidation does not make the model fundamentally smarter. It makes the system more organized, more adaptive, and more reliable. And in practice, that is often what intelligence looks like.",
   "marked": "{+Sleep Consolidation does not make the model fundamentally smarter. It makes the system more organized, more adaptive, and more reliable. And in practice, that is often what intelligence looks like.+}"
  },
  {
   "section": "References",
   "old": "Bai, Y., et al. (2022). Constitutional AI: Harmlessness from AI Feedback. *arXiv:2212.08073*.",
   "new": "Bai, Y., et al. (2022). Constitutional AI: Harmlessness from AI Feedback. _arXiv:2212.08073_.",
   "marked": "Bai, Y., et al. (2022). Constitutional AI: Harmlessness from AI Feedback. [-*arXiv:2212.08073*.-] {+_arXiv:2212.08073_.+}"
  },
  {
   "section": "References",
   "old": "Beyer, B., Jones, C., Petoff, J., & Murphy, N. R. (2016). *Site Reliability Engineering.* O'Reilly Media.",
   "new": "Beyer, B., Jones, C., Petoff, J., & Murphy, N. R. (2016). _Site Reliability Engineering._ O'Reilly Media.",
   "marked": "Beyer, B., Jones, C., Petoff, J., & Murphy, N. R. (2016). [-*Site-] {+_Site+} Reliability [-Engineering.*-] {+Engineering._+} O'Reilly Media."
  },
  {
   "section": "References",
   "old": "Buzsaki, G. (1996). The hippocampo-neocortical dialogue. *Cerebral Cortex*, 6(2), 81--92.",
   "new": "Buzsáki, G. (1996). The hippocampo-neocortical dialogue. _Cerebral Cortex_, 6(2), 81--92.",
   "marked": "[-Buzsaki,-] {+Buzsáki,+} G. (1996). The hippocampo-neocortical dialogue. [-*Cerebral Cortex*,-] {+_Cerebral Cortex_,+} 6(2), 81--92."
  },
  {
   "section": "References",
   "old": "Fernando, C., et al. (2023). PromptBreeder: Self-Referential Self-Improvement via Prompt Evolution. *arXiv:2309.16797*.",
   "new": "Fernando, C., et al. (2023). PromptBreeder: Self-Referential Self-Improvement via Prompt Evolution. _arXiv:2309.16797_.",
   "marked": "Fernando, C., et al. (2023). PromptBreeder: Self-Referential Self-Improvement via Prompt Evolution. [-*arXiv:2309.16797*.-] {+_arXiv:2309.16797_.+}"
  },
  {
   "section": "References",
   "old": "French, R. M. (1999). Catastrophic forgetting in connectionist networks. *Trends in Cognitive Sciences*, 3(4), 128--135.",
   "new": "French, R. M. (1999). Catastrophic forgetting in connectionist networks. _Trends in Cognitive Sciences_, 3(4), 128--135.",
   "marked": "French, R. M. (1999). Catastrophic forgetting in connectionist networks. [-*Trends-] {+_Trends+} in Cognitive [-Sciences*,-] {+Sciences_,+} 3(4), 128--135."
  },
  {
   "section": "References",
   "old": "Hu, E. J., et al. (2021). LoRA: Low-Rank Adaptation of Large Language Models. *arXiv:2106.09685*.",
   "new": "Hu, E. J., et al. (2021). LoRA: Low-Rank Adaptation of Large Language Models. _arXiv:2106.09685_.",
   "marked": "Hu, E. J., et al. (2021). LoRA: Low-Rank Adaptation of Large Language Models. [-*arXiv:2106.09685*.-] {+_arXiv:2106.09685_.+}"
  },
  {
   "section": "References",
   "old": "Hu, S., et al. (2024). Automated Design of Agentic Systems. *arXiv:2408.08435*.",
   "new": "Hu, S., et al. (2024). Automated Design of Agentic Systems. _arXiv:2408.08435_.",
   "marked": "Hu, S., et al. (2024). Automated Design of Agentic Systems. [-*arXiv:2408.08435*.-] {+_arXiv:2408.08435_.+}"
  },
  {
   "section": "References",
   "old": "Kahneman, D. (2011). *Thinking, Fast and Slow.* Farrar, Straus and Giroux.",
   "new": "Kahneman, D. (2011). _Thinking, Fast and Slow._ Farrar, Straus and Giroux.",
   "marked": "Kahneman, D. (2011). [-*Thinking,-] {+_Thinking,+} Fast and [-Slow.*-] {+Slow._+} Farrar, Straus and Giroux."
  },
  {
   "section": "References",
   "old": "Khattab, O., et al. (2023). DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines. *arXiv:2310.03714*.",
   "new": "Khattab, O., et al. (2023). DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines. _arXiv:2310.03714_.",
   "marked": "Khattab, O., et al. (2023). DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines. [-*arXiv:2310.03714*.-] {+_arXiv:2310.03714_.+}"
  },
  {
   "section": "References",
   "old": "Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. *NeurIPS 2020*.",
   "new": "Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. _NeurIPS 2020_.",
   "marked": "Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. [-*NeurIPS 2020*.-] {+_NeurIPS 2020_.+}"
  },
  {
   "section": "References",
   "old": "Madaan, A., et al. (2023). Self-Refine: Iterative Refinement with Self-Feedback. *NeurIPS 2023*.",
   "new": "Madaan, A., et al. (2023). Self-Refine: Iterative Refinement with Self-Feedback. _NeurIPS 2023_.",
   "marked": "Madaan, A., et al. (2023). Self-Refine: Iterative Refinement with Self-Feedback. [-*NeurIPS 2023*.-] {+_NeurIPS 2023_.+}"
  },
  {
   "section": "References",
   "old": "McClelland, J. L., McNaughton, B. L., & O'Reilly, R. C. (1995). Why there are complementary learning systems in the hippocampus and neocortex. *Psychological Review*, 102(3), 419--457.",
   "new": "McClelland, J. L., McNaughton, B. L., & O'Reilly, R. C. (1995). Why there are complementary learning systems in the hippocampus and neocortex. _Psychological Review_, 102(3), 419--457.",
   "marked": "McClelland, J. L., McNaughton, B. L., & O'Reilly, R. C. (1995). Why there are complementary learning systems in the hippocampus and neocortex. [-*Psychological Review*,-] {+_Psychological Review_,+} 102(3), 419--457."
  },
  {
   "section": "References",
   "old": "Packer, C., et al. (2023). MemGPT: Towards LLMs as Operating Systems. *arXiv:2310.08560*.",
   "new": "Packer, C., et al. (2023). MemGPT: Towards LLMs as Operating Systems. _arXiv:2310.08560_.",
   "marked": "Packer, C., et al. (2023). MemGPT: Towards LLMs as Operating Systems. [-*arXiv:2310.08560*.-] {+_arXiv:2310.08560_.+}"
  },
  {
   "section": "References",
   "old": "Park, J. S., et al. (2023). Generative Agents: Interactive Simulacra of Human Behavior. *UIST 2023*.",
   "new": "Park, J. S., et al. (2023). Generative Agents: Interactive Simulacra of Human Behavior. _UIST 2023_.",
   "marked": "Park, J. S., et al. (2023). Generative Agents: Interactive Simulacra of Human Behavior. [-*UIST 2023*.-] {+_UIST 2023_.+}"
  },
  {
   "section": "References",
   "old": "Schmidhuber, J. (2009). Simple algorithmic theory of subjective beauty, novelty, surprise, interestingness. *Journal of SICE*, 48(1), 21--32.",
   "new": null,
   "marked": "[-Schmidhuber, J. (2009). Simple algorithmic theory of subjective beauty, novelty, surprise, interestingness. *Journal of SICE*, 48(1), 21--32.-]"
  },
  {
   "section": "References",
   "old": "Serra, O., & JarvisOne. (2026a). Fractal Memory Index: A Self-Similar Architecture for Scalable Long-Term Memory in LLMs. *JarvisOne AI Research.*",
   "new": "Serra, O., & JarvisOne. (2026a). Fractal Memory Index: A Self-Similar Architecture for Scalable Long-Term Memory in LLMs. _JarvisOne AI Research._",
   "marked": "Serra, O., & JarvisOne. (2026a). Fractal Memory Index: A Self-Similar Architecture for Scalable Long-Term Memory in LLMs. [-*JarvisOne-] {+_JarvisOne+} AI [-Research.*-] {+Research._+}"
  },
  {
   "section": "References",
   "old": "Serra, O., & JarvisOne. (2026b). The Wondering Machine: Curiosity, Memory, and Self-Improving Language Models. *JarvisOne AI Research.*",
   "new": null,
   "marked": "[-Serra, O., & JarvisOne. (2026b). The Wondering Machine: Curiosity, Memory, and Self-Improving Language Models. *JarvisOne AI Research.*-]"
  },
  {
   "section": "References",
   "old": "Serra, O., & JarvisOne. (2026c). ENGRAM: Context Compaction Through Continuous Consolidation. *JarvisOne AI Research.*",
   "new": null,
   "marked": "[-Serra, O., & JarvisOne. (2026c). ENGRAM: Context Compaction Through Continuous Consolidation. *JarvisOne AI Research.*-]"
  },
  {
   "section": "References",
   "old": "Shinn, N., et al. (2023). Reflexion: Language Agents with Verbal Reinforcement Learning. *NeurIPS 2023*.",
   "new": "Shinn, N., et al. (2023). Reflexion: Language Agents with Verbal Reinforcement Learning. _NeurIPS 2023_.",
   "marked": "Shinn, N., et al. (2023). Reflexion: Language Agents with Verbal Reinforcement Learning. [-*NeurIPS 2023*.-] {+_NeurIPS 2023_.+}"
  },
  {
   "section": "References",
   "old": "Wang, G., et al. (2023). Voyager: An Open-Ended Embodied Agent with Large Language Models. *arXiv:2305.16291*.",
   "new": "Wang, G., et al. (2023). Voyager: An Open-Ended Embodied Agent with Large Language Models. _arXiv:2305.16291_.",
   "marked": "Wang, G., et al. (2023). Voyager: An Open-Ended Embodied Agent with Large Language Models. [-*arXiv:2305.16291*.-] {+_arXiv:2305.16291_.+}"
  },
  {
   "section": "References",
   "old": "Wei, J., et al. (2022). Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. *NeurIPS 2022*.",
   "new": null,
   "marked": "[-Wei, J., et al. (2022). Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. *NeurIPS 2022*.-]"
  },
  {
   "section": "References",
   "old": "Yang, C., et al. (2023). Large Language Models as Optimizers. *arXiv:2309.03409*.",
   "new": "Yang, C., et al. (2023). Large Language Models as Optimizers. _arXiv:2309.03409_.",
   "marked": "Yang, C., et al. (2023). Large Language Models as Optimizers. [-*arXiv:2309.03409*.-] {+_arXiv:2309.03409_.+}"
  },
  {
   "section": "References",
   "old": "Yao, S., et al. (2023). ReAct: Synergizing Reasoning and Acting in Language Models. *ICLR 2023*.",
   "new": "Yao, S., et al. (2023). ReAct: Synergizing Reasoning and Acting in Language Models. _ICLR 2023_.",
   "marked": "Yao, S., et al. (2023). ReAct: Synergizing Reasoning and Acting in Language Models. [-*ICLR 2023*.-] {+_ICLR 2023_.+}"
  },
  {
   "section": "Appendix A: The Complete Nightly Cycle (Cron Schedule)",
   "old": "| Time | Job | Model | Purpose | Tokens/run | |------|-----|-------|---------|------------| | 03:00 | Outlook Token Refresh | Haiku | Keep auth alive | ~2K | | 03:30 | DB Backup | Haiku | Backup SQLite databases | ~2K | | 03:30 | Hippocampus Rebuild | Haiku | Rebuild memory search index | ~3K | | 04:00 | Wind-Down | Opus | Reflect, encode lessons, mutate prompts | ~15K | | 04:15 | Memory Consolidation | Opus | Compress, route, index knowledge | ~20K | | 04:30 | Security Check | Opus | OS/network security audit | ~12K | | 04:45 | Fork Sync | Opus | Merge upstream, self-heal build | ~10K | | 05:00 | Fork Scanner | Opus | Analyze other forks for ideas | ~25K | | 05:15 | Cleaning Lady | Sonnet | Prune sessions, enforce size budgets | ~8K | | 05:30 | Self-Evolution | Opus | Research new models, techniques | ~20K | | 05:45 | Group Summary | Opus | Summarize WhatsApp groups | ~15K | | 06:00 | Life Butler | Opus | Personal secretary | ~10K | | 07:00 | Morning Briefing | Opus | Daily summary + action items | ~12K | | 08:00 | Online Engagement | Opus | GitHub PRs, community outreach | ~12K |",
   "new": "| Time | Job | Model | Purpose | Tokens/run | | ----- | --------------------- | ------ | --------------------------------------- | ---------- | | 03:00 | Outlook Token Refresh | Haiku | Keep auth alive | ~2K | | 03:30 | DB Backup | Haiku | Backup SQLite databases | ~2K | | 03:30 | Memory Index Rebuild | Haiku | Rebuild memory search index | ~3K | | 04:00 | Wind-Down | Opus | Reflect, encode lessons, mutate prompts | ~15K | | 04:15 | Memory Consolidation | Opus | Compress, route, index knowledge | ~20K | | 04:30 | Security Check | Opus | OS/network security audit | ~12K | | 04:45 | Fork Sync | Opus | Merge upstream, self-heal build | ~10K | | 05:00 | Fork Scanner | Opus | Analyze other forks for ideas | ~25K | | 05:15 | Cleaning Lady | Sonnet | Prune sessions, enforce size budgets | ~8K | | 05:30 | Self-Evolution | Opus | Research new models, techniques | ~20K | | 05:45 | Group Summary | Opus | Summarize WhatsApp groups | ~15K | | 06:00 | Life Butler | Opus | Personal secretary | ~10K | | 07:00 | Morning Briefing | Opus | Daily summary + action items | ~12K | | 08:00 | Online Engagement | Opus | GitHub PRs, community outreach | ~12K |",
   "marked": "| Time | Job | Model | Purpose | Tokens/run | [-|------|-----|-------|---------|------------|-] {+| ----- | --------------------- | ------ | --------------------------------------- | ---------- |+} | 03:00 | Outlook Token Refresh | Haiku | Keep auth alive | ~2K | | 03:30 | DB Backup | Haiku | Backup SQLite databases | ~2K | | 03:30 | [-Hippocampus-] {+Memory Index+} Rebuild | Haiku | Rebuild memory search index | ~3K | | 04:00 | Wind-Down | Opus | Reflect, encode lessons, mutate prompts | ~15K | | 04:15 | Memory Consolidation | Opus | Compress, route, index knowledge | ~20K | | 04:30 | Security Check | Opus | OS/network security audit | ~12K | | 04:45 | Fork Sync | Opus | Merge upstream, self-heal build | ~10K | | 05:00 | Fork Scanner | Opus | Analyze other forks for ideas | ~25K | | 05:15 | Cleaning Lady | Sonnet | Prune sessions, enforce size budgets | ~8K | | 05:30 | Self-Evolution | Opus | Research new models, techniques | ~20K | | 05:45 | Group Summary | Opus | Summarize WhatsApp groups | ~15K | | 06:00 | Life Butler | Opus | Personal secretary | ~10K | | 07:00 | Morning Briefing | Opus | Daily summary + action items | ~12K | | 08:00 | Online Engagement | Opus | GitHub PRs, community outreach | ~12K |"
  },
  {
   "section": "Mutation #8 -- B010 Incident (2026-03-03)",
   "old": "**Root cause:** Prompt said \"sync the fork\" -- model interpreted as permission to do whatever syncing required.",
   "new": "**Root cause:** Prompt said \"sync the fork\" -- model interpreted that as permission to do whatever syncing required.",
   "marked": "**Root cause:** Prompt said \"sync the fork\" -- model interpreted {+that+} as permission to do whatever syncing required."
  },
  {
   "section": "Mutation #8 -- B010 Incident (2026-03-03)",
   "old": null,
   "new": "**Mutation (v1):**",
   "marked": "{+**Mutation (v1):**+}"
  },
  {
   "section": "Mutation #8 -- B010 Incident (2026-03-03)",
   "old": "**Mutation (v1):** ``` HARD CONSTRAINTS: - NEVER modify source code directly - NEVER run pnpm build - NEVER pkill or restart the gateway - If safe-cron-merge.sh exits non-zero, report and STOP ```",
   "new": "``` HARD CONSTRAINTS: - NEVER modify source code directly - NEVER run pnpm build - NEVER pkill or restart the gateway - If safe-cron-merge.sh exits non-zero, report and STOP ```",
   "marked": "[-**Mutation (v1):**-] ``` HARD CONSTRAINTS: - NEVER modify source code directly - NEVER run pnpm build - NEVER pkill or restart the gateway - If safe-cron-merge.sh exits non-zero, report and STOP ```"
  },
  {
   "section": "Mutation #14 -- Over-correction Fix (2026-03-10)",
   "old": null,
   "new": "**Mutation (v2):**",
   "marked": "{+**Mutation (v2):**+}"
  },
  {
   "section": "Mutation #14 -- Over-correction Fix (2026-03-10)",
   "old": "**Mutation (v2):** ``` SAFETY CONSTRAINTS (replaces HARD CONSTRAINTS): - NEVER git checkout upstream/main -- . (blanket overwrite) - You MAY edit source files to resolve conflicts in the fork's source tree - You MAY run pnpm build to verify your resolution - ALWAYS preserve fork guard strings from FORK_PATCHES.md - When in doubt: keep ours and escalate ```",
   "new": "``` SAFETY CONSTRAINTS (replaces HARD CONSTRAINTS): - NEVER git checkout upstream/main -- . (blanket overwrite) - You MAY edit source files to resolve conflicts in the fork's source tree - You MAY run pnpm build to verify your resolution - ALWAYS preserve fork guard strings from FORK_PATCHES.md - When in doubt: keep ours and escalate ```",
   "marked": "[-**Mutation (v2):**-] ``` SAFETY CONSTRAINTS (replaces HARD CONSTRAINTS): - NEVER git checkout upstream/main -- . (blanket overwrite) - You MAY edit source files to resolve conflicts in the fork's source tree - You MAY run pnpm build to verify your resolution - ALWAYS preserve fork guard strings from FORK_PATCHES.md - When in doubt: keep ours and escalate ```"
  },
  {
   "section": "Changelog",
   "old": "## Changelog",
   "new": null,
   "marked": "[-## Changelog-]"
  },
  {
   "section": "Appendix D: Revision History",
   "old": null,
   "new": "## Appendix D: Revision History",
   "marked": "{+## Appendix D: Revision History+}"
  },
  {
   "section": "Changelog",
   "old": "**v1.1 (2026-03-10):** Major revision based on GPT-5.2 Pro review (Novelty 6, Rigor 4, Impact 8). - Abstract: replaced \"measurable improvements\" with specific metrics; added contributions list. - Section 1: added explicit research question. - Section 2.3: expanded related work with Park et al. (2023), OPRO, DSPy, PromptBreeder, Constitutional AI, ReAct, and SRE postmortem methodology. - Section 2.2: added formal definition of \"learning\" vs \"memory\" in this context. - Section 3.2: added Algorithm 1 (formalized nightly loop with inputs/outputs/gates). - Section 3.3 Mechanism 3: expanded from 1 to 5 documented cross-cron transfer examples. - Section 4.1: added explicit methodology, labeling protocol, confound acknowledgment, and controlled study proposal. - Section 4.3: added error class definitions and total incident counts. - Section 4.4: added sensitivity analysis for ROI. - Section 5.2: renamed \"Convergence Proof\" to \"Convergence Intuition\"; added falsifiability criterion. - Section 6 Principle 7: added concrete gating mechanism (MEMORY.md changes require approval) and rollback mechanism. - Section 7.1: expanded mitigations (regression checklist, canary mode, signed provenance). - References: added 7 new citations (Bai, Beyer, Fernando, Kahneman, Khattab, Park, Yang, Yao).",
   "new": null,
   "marked": "[-**v1.1 (2026-03-10):** Major revision based on GPT-5.2 Pro review (Novelty 6, Rigor 4, Impact 8). - Abstract: replaced \"measurable improvements\" with specific metrics; added contributions list. - Section 1: added explicit research question. - Section 2.3: expanded related work with Park et al. (2023), OPRO, DSPy, PromptBreeder, Constitutional AI, ReAct, and SRE postmortem methodology. - Section 2.2: added formal definition of \"learning\" vs \"memory\" in this context. - Section 3.2: added Algorithm 1 (formalized nightly loop with inputs/outputs/gates). - Section 3.3 Mechanism 3: expanded from 1 to 5 documented cross-cron transfer examples. - Section 4.1: added explicit methodology, labeling protocol, confound acknowledgment, and controlled study proposal. - Section 4.3: added error class definitions and total incident counts. - Section 4.4: added sensitivity analysis for ROI. - Section 5.2: renamed \"Convergence Proof\" to \"Convergence Intuition\"; added falsifiability criterion. - Section 6 Principle 7: added concrete gating mechanism (MEMORY.md changes require approval) and rollback mechanism. - Section 7.1: expanded mitigations (regression checklist, canary mode, signed provenance). - References: added 7 new citations (Bai, Beyer, Fernando, Kahneman, Khattab, Park, Yang, Yao).-]"
  },
  {
   "section": "Changelog",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": "## Implementation Note (added 2026-04-16)",
   "new": null,
   "marked": "[-## Implementation Note (added 2026-04-16)-]"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": "The nightly consolidation loop described in this paper is currently implemented within `tinkerclaw-total-recall` (J1) as `sleep-consolidation.ts`. It is not a standalone plugin. Upstream's `memory-core` independently developed a more sophisticated three-phase nightly sweep (`light → REM → deep`) with regex-based evidence mining (`rem-evidence.ts`) and recall-stat-gated promotion to `MEMORY.md` — covering similar ground to the Cerebellum concept but with a different implementation.",
   "new": null,
   "marked": "[-The nightly consolidation loop described in this paper is currently implemented within `tinkerclaw-total-recall` (J1) as `sleep-consolidation.ts`. It is not a standalone plugin. Upstream's `memory-core` independently developed a more sophisticated three-phase nightly sweep (`light → REM → deep`) with regex-based evidence mining (`rem-evidence.ts`) and recall-stat-gated promotion to `MEMORY.md` — covering similar ground to the Cerebellum concept but with a different implementation.-]"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": "The MNEMOSYNE plugin (J14, `tinkerclaw-memory-enhancements`) extends the consolidation model with a **compaction-aware capture** step (Feature 4, J14 §7) that preserves messages about to be dropped by context compaction — addressing a gap in both the fork's sleep-consolidation and upstream's dreaming sweep, where information used once and never queried is permanently lost.",
   "new": null,
   "marked": "[-The MNEMOSYNE plugin (J14, `tinkerclaw-memory-enhancements`) extends the consolidation model with a **compaction-aware capture** step (Feature 4, J14 §7) that preserves messages about to be dropped by context compaction — addressing a gap in both the fork's sleep-consolidation and upstream's dreaming sweep, where information used once and never queried is permanently lost.-]"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": "**Implementation status:** bundled inside `tinkerclaw-total-recall` (running); capture extension in MNEMOSYNE v0.1 (running); no standalone Cerebellum plugin currently planned. A potential future iteration would extract the nightly sweep into its own plugin registered against upstream's cron system.",
   "new": null,
   "marked": "[-**Implementation status:** bundled inside `tinkerclaw-total-recall` (running); capture extension in MNEMOSYNE v0.1 (running); no standalone Cerebellum plugin currently planned. A potential future iteration would extract the nightly sweep into its own plugin registered against upstream's cron system.-]"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": "**Plugin mapping:** J5 Cerebellum → (inside `tinkerclaw-total-recall`, running) + compaction extension in `tinkerclaw-memory-enhancements` (MNEMOSYNE, running v0.1, Feature 4).",
   "new": null,
   "marked": "[-**Plugin mapping:** J5 Cerebellum → (inside `tinkerclaw-total-recall`, running) + compaction extension in `tinkerclaw-memory-enhancements` (MNEMOSYNE, running v0.1, Feature 4).-]"
  },
  {
   "section": "Appendix D: Revision History",
   "old": null,
   "new": "**v1.1 (2026-03-10):** Major revision based on external review. Added: specific metrics in abstract, contributions list, explicit research question, expanded related work, Algorithm 1, cross-cron transfer examples, methodology/confound discussion, sensitivity analysis, falsifiability criterion, concrete gating/rollback mechanisms, expanded mitigations, 7 new citations.",
   "marked": "{+**v1.1 (2026-03-10):** Major revision based on external review. Added: specific metrics in abstract, contributions list, explicit research question, expanded related work, Algorithm 1, cross-cron transfer examples, methodology/confound discussion, sensitivity analysis, falsifiability criterion, concrete gating/rollback mechanisms, expanded mitigations, 7 new citations.+}"
  },
  {
   "section": "Appendix D: Revision History",
   "old": null,
   "new": "**v2.0 (2026-03-13):** Quality revision. Fixed terminology artifacts in biological references (Buzsáki, McClelland), removed uncited references, reduced thematic redundancy, corrected citation attributions, tightened prose throughout.",
   "marked": "{+**v2.0 (2026-03-13):** Quality revision. Fixed terminology artifacts in biological references (Buzsáki, McClelland), removed uncited references, reduced thematic redundancy, corrected citation attributions, tightened prose throughout.+}"
  }
 ]
}
