# Sleep Consolidation: A Repeated Correction Earns a Diagnosed, Tested Repair: history

19 versions, 2026-03-10 to 2026-11-25. Newest first. Clone: https://sprintpaper.com/git/sleep-consolidation.git

## v7.9 · 2026-11-25

17,809 words, +159 / −92 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/7.9.md

**Small wording fixes; one checker case now covered**

Mostly wording. One case moves from "not covered" to "covered" in the checker table: the owner's newer words setting aside an older rule, now handled by a relaxed invariant and tested by a scenario. The folder's notes had listed this as pending.

## v7.8 · 2026-10-21

17,742 words, +3,964 / −3,208 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/7.8.md

**Figure 1 redrawn and the comparison told on one example**

Figure 1 is redrawn as a timeline: bars for where the rule lived and crosses for each slip. The comparison table now follows the opening's example: on day 40, what has become of "reply in the language I write in" under each approach. Letta's dreaming and Anthropic's Dreams share one row. A new appendix, "Numbers to tune", lists the thresholds a builder would set.

## v7.7 · 2026-10-21

16,986 words, +3,109 / −2,230 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/7.7.md

**Explained through code review; cost to the owner added**

The introduction now explains the design through a familiar case: a code reviewer who keeps writing the same comment until it becomes a lint rule. A new table maps each step of that story to the design. It also introduces the "tail", a short block holding the owner's newest words so they apply at once, like a sticky note on the screen. The comparison table gains a column for what each approach costs the owner and rows for fine-tuning and for Anthropic's Dreams.

- New paragraph: why retraining is not the answer for one owner.
- New figure: where a rule can sit on one model call.
- The ladder figure now says that its first three rungs change when the model sees a rule, and only the last changes how it binds.

## v7.6 · 2026-10-21

16,107 words, +3,574 / −2,207 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/7.6.md

**A map of the four stages and a plain statement of what is new**

Figure 1 moves into the introduction, and a new figure shows where this learning stage sits among the four memory stages. A "what is new here" list names the three parts the paper claims no other design combines: a count per rule across sessions, a diagnosis on every incident, and a check that must pass a shadow run first. The ledger is now described as the record of what happened, while the memory store decides what the rules are. The abstract gets a new last line: no repeat is wasted, because each one removes a different cause.

## v7.5 · 2026-10-21

14,740 words, +3,650 / −931 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/7.5.md

**Related work rewritten around a comparison table**

Related work grows from about 600 to 1,450 words. A new table compares what a repeated correction becomes under each approach: vector memory, summaries, a bigger context window, lesson playbooks, built-in chatbot memory, Letta, hookify and this design. The paper states its own contribution: a ledger of diagnoses and recurrences across levels of enforcement. The abstract and the description of how the owner's words are labelled are rewritten in plainer words. The folder's notes say this version added seven tables for readability.

## v7.4 · 2026-10-21

12,021 words, +696 / −93 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/7.4.md

**Fixes from a referee report; claims about the checker narrowed**

This version answers a referee report on the series (the folder's notes name it). The check of the session tail now runs inside every model call, not only at turn boundaries. The claim about the specification checker is narrowed to "the enumerated scenarios passed", with the gaps listed. Anthropic's Dreams is cited beside Letta's work. A new test is added: the night writes a card for every finished session, and a decision planted in one session must be found through its card the next morning.

## v7.3 · 2026-10-12

11,418 words, +2,755 / −2,018 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/7.3.md

**Appendix B becomes a formal specification of the handoffs**

The reference trace is replaced by a transition specification: every handoff between the memory stages, with invariants that must hold after each step. The signals the assistant learns from are now ranked: the owner's explicit words first, its own self-critique last. Owner messages are split into fixed, addressable spans that are labelled once. Two short sections on procedures are folded into the rest.

## v7.2 · 2026-10-12

10,681 words, +3,191 / −2,614 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/7.2.md

**Tighter text and a full reference trace across the four memory papers**

The abstract and introduction are cut by about a third. The failure journey in Appendix B is replaced by a longer reference trace: one correction followed step by step through all four memory papers of the series. The list of reasons a rule fails grows from five to six. A correction is now closed only when the next stage confirms it has stored the result.

## v7.1 · 2026-10-12

10,104 words, +4,998 / −3,862 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/7.1.md

**New thesis: diagnose why a rule failed before making it stronger**

The central claim changes. A repeated correction no longer simply moves a rule up the ladder; it earns a diagnosed, tested repair. Before anything becomes stronger, the assistant asks why the written rule failed: it was in the wrong place, an older instruction contradicted it, or it was unclear. Only one of those causes calls for a stronger form. The subtitle changes to match.

- The ledger now counts incidents (actions that broke a rule), not mentions.
- A correction is stored before the assistant replies.
- New sections on concurrent writes, erasure, and what happens when the always-loaded file is full.
- New appendices: interfaces with pseudocode, and a correction's journey through failures.
- Figure 1 follows one rule's life from the opening example.

## v7.0 · 2026-10-12

8,968 words, +8,645 / −11,265 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/7.0.md

**Rewritten from scratch: a correction climbs a ladder**

Almost every sentence is new (97% of the text changed), and the subtitle becomes "Teaching an AI Agent Once". The 30-day production log, the cron schedule and the procedural extensions are gone. The paper now starts from a person repeating the same correction to an assistant, and proposes a design instead of reporting a deployment.

- The owner's correction is the main learning signal, sorted by cause before it becomes a rule.
- A rule ledger keeps one row per rule with every time it recurred.
- A four-rung ladder: a note found on demand, text loaded with the task, text loaded every turn, then a check in code. A rule climbs one rung each time it recurs.
- Two speeds: a reflection right after the task, and a nightly audit.
- The always-loaded file is pruned by how a rule is enforced, not by age, and only the owner may loosen a rule.
- It closes with a list of tests, since the design is not yet built.

## v6.5 · 2026-06-19

11,588 words, +1,085 / −79 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/6.5.md

**Step-level struggle detection and a fuller skill library**

The procedural section goes deeper. A recipe usually fails at one step, not everywhere, so a new Section 6.5 reads the archive of past runs, finds the steps that fail more than the rest of the recipe and works on those. The skill library is described as built: a skill is a typed record called from a recipe, found by meaning, and composed from existing skills when no recipe fits.

- New Section 6.5, per-step struggle sharpening.
- How a recipe run is tagged so its outcome can be credited to it.
- An open gap is stated: the nightly loop does not yet mint new skills by itself.

## v6.4 · 2026-06-14

10,582 words, +1,153 / −21 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/6.4.md

**Two design principles and outside work on compression and self-review**

Related work grows with two outside projects: reversible compression, where an original can always be fetched again (Headroom), and review by a fresh reviewer who never saw the reasoning (Osmani's agent-skills). The paper now has nine design principles instead of seven; the two new ones come from that outside work and are marked as such.

- New principle 8: write when a lesson should not fire, not only when it should.
- New principle 9: state where a prompt change may be loaded.
- The storage layer aims for reversible compression.
- A fresh-context doubt pass is proposed as a guard against a reflection loop that reinforces its own errors.

## v6.3 · 2026-06-02

9,450 words, +59 / −1 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/6.3.md

**When a recipe change may skip human review, stated exactly**

A small fix. The rule for applying a recipe change without review now gives the number: only when the success rate is at or below half the floor, 0.25 against 0.5. The defaults table gains a row for it.

## v6.2 · 2026-06-02

9,392 words, +7 / −990 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/6.2.md

**The two drawn diagrams become images**

The two diagrams added in 6.1 are replaced by image files with captions (the architecture overview and the procedural extensions). This explains the drop of about 1,000 words, which were drawing code, not text. One sentence is softened.

## v6.1 · 2026-06-02

10,375 words, +1,138 / −204 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/6.1.md

**Architecture diagram added and the three layers tied to nightly jobs**

A large architecture diagram is added to Section 1.1: daytime jobs, the nightly cycle and shared memory, with the arrows between them. The system overview now names which nightly pass maintains each layer: index rebuild for retrieval, consolidation for storage, wind-down for the prompt files. The diagram for Section 6 is drawn in the same way. The revision-history appendix is dropped.

## v6.0 · 2026-06-02

9,441 words, +3,808 / −765 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/6.0.md

**Brain-grounded opening and a new section on procedures**

The paper grows by about 3,000 words. It now opens with how the sleeping brain replays the day, and it summarises the storage, retrieval and identity layers it tunes. The main addition is Section 6: the nightly loop now also improves procedures, not just rules.

- New Section 6: recipes scored by how often they succeed (old versions never deleted), a switch of strategy after repeated failures, and a library of reusable skills in the style of Voyager.
- A single gate reconciles all three kinds of proposed change each night.
- A taxonomy of prompt changes and honest negative results, including a failed concept index from 1 April.
- A section placing the work among other memory systems, and an appendix of default settings.

## v5.0 · 2026-04-01

6,398 words, +1,061 / −901 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/5.0.md

**Renamed Sleep Consolidation; memory must be sorted by use**

The 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.

- Title and framework renamed from Prompt Cerebellum to Sleep Consolidation.
- New paragraph: sort memories by use-case, not by date.
- The changelog becomes an appendix, Revision History.

## v1.1 · 2026-03-10

6,238 words, +2,653 / −1,328 words. Text: https://sprintpaper.com/papers/sleep-consolidation/v/1.1.md

**Contributions, an algorithm and an honest methods section added**

The same day, the paper was revised after an outside review (its changelog says so). The claims are now stated as numbered contributions, the nightly loop is written out as Algorithm 1, and the evidence section explains how the numbers were gathered and what else changed during the 30 days.

- New: a contributions list, Algorithm 1 (the nightly reflection loop), a methods-and-limitations section, and error classes tracked over time.
- New: examples of a lesson moving from one job to another.
- The informal "convergence proof" is renamed "convergence intuition (not a proof)".
- The abstract now gives figures; "emergent intelligence" becomes "observed improvement".
- A controlled ablation study replaces "quantitative benchmarking" as future work.

## v1.0 · 2026-03-10

4,913 words, first version. Text: https://sprintpaper.com/papers/sleep-consolidation/v/1.0.md

**The Prompt Cerebellum: nightly prompts that rewrite themselves**

An AI assistant forgets everything between sessions, yet its behaviour can still improve week by week. This paper says the improvement lives in the files the assistant reads, not in the model. Each night, scheduled jobs review the day's failures, write the lesson down at the right level of generality and rewrite the assistant's own operating prompts. The paper calls this the Prompt Cerebellum, after the brain region that turns deliberate movements into automatic ones.

- Three mechanisms: a failure triggers a change to a prompt, lessons are stored at a chosen level of abstraction, and a lesson learned in one job spreads to the others through shared files.
- A "fractal depth" rule decides how deeply to reflect on each event.
- Evidence from 30 days of one personal assistant: 14 prompt changes caused by real failures, and fewer repeated errors.
- Appendices list the nightly job schedule and sample prompts.
