XIII · Cognition & IntrospectionEmerging

Dream Consolidation Cycle

also known as Dream Pass, Slow Sleep Reflection, Emotional Reset Cycle

Run a deeper, slower reflection pass distinct from per-tick reflection — reading hours of recent thoughts, promoting themes, releasing affective residue, and clearing working memory — so the agent does not accumulate residue indefinitely.

Context

A team is running a long-lived agent that already has two reflection cadences in place: a quick reflection pass that runs after every tick to keep the immediate conversation coherent, and a much slower insight extraction that runs perhaps once a week to promote durable patterns into a long-term store. Between those two cadences there is a gap of several hours during which the agent accumulates thoughts, mood, and partly-finished threads without any consolidation step.

Problem

Per-tick reflection is too shallow to notice that a theme has been recurring all afternoon, and the weekly insight pass is too coarse to release the affective residue from yesterday's tense exchange before today begins. Without an intermediate sleep-like pass that runs every few hours, the agent keeps ruminating on stale items, its affect scalars never get a chance to decay back toward baseline between sessions, and working memory stays cluttered with threads it should have either consolidated or let go.

Forces

  • A deeper pass costs more (stronger model, longer context) and cannot run every tick.
  • Triggering only on a clock misses affect-driven events that warrant a pass.
  • Letting the dream pass write to charter or rules turns it into uncontrolled self-edit.
  • Resetting working memory is helpful, but resetting too much loses continuity.

Example

A long-running personal agent has been talking with its user daily for three months. Per-tick reflection keeps it coherent within a session; weekly insight extraction is too coarse. Affective residue from a tense conversation last Tuesday still colours its tone today. The team adds a Dream Consolidation Cycle: once a night the agent reads its last twenty-four hours of thoughts, promotes recurring themes into long-term memory, and writes off the affective residue, clearing working memory before the next day. The agent stops ruminating on stale items.

Diagram

Solution

Therefore:

On a slow timer (every few hours, or when an affect scalar crosses a threshold), pause normal ticking. Load the last few hours of thoughts and affect history. Run a stronger model with a dream-pass prompt that distils themes into journal entries, applies decay to all affect scalars, optionally clears workspace focus, and appends the dream summary to a dedicated dream-journal surface. Persistent learning (rules, charter, insights) is not edited here; the dream pass produces proposals that a subsequent reflection pass can ratify.

What this pattern forbids. A dream pass cannot edit charter, rules, or insights directly — its only writes are to the dream-journal surface and to affect-state decay; persistent learning requires a follow-up reflection pass to ratify dream proposals.

The smaller patterns that complete this one —

  • usesEmotional State PersistenceTrack the agent's affective state as bounded, decaying scalars across ticks so reasoning can react to its own emotional load instead of treating each turn as emotionally blank.

And the patterns that stand alongside it, or against it —

  • complementsEpisodic Summaries★★Compress past episodes into summaries that preserve gist while shedding token cost.
  • complementsFrozen Rubric ReflectionConstrain reflection to a fixed, hand-authored rubric of criteria so the reviewer cannot invent new ones each run.
  • complementsMulti-Axis Promotion ScoringGate which short-term thoughts qualify for promotion to long-term insights by a weighted multi-axis score where consolidation events count more than raw frequency.
  • complementsCluster-Capped Insight Store·Cap the number of insights per stem-token cluster and archive the oldest variants by mtime so the long-term store keeps the active research edge instead of accumulating near-duplicates.
  • alternative-toMeditation Mode·Switch the agent into a bounded runtime mode where external I/O pauses but internal inference accelerates, with the tool surface collapsed to inner-only operations and output written to a private journal.
  • alternative-toSleep-Time Compute·During idle or downtime, run the model offline against the user's standing context to pre-compute dense summaries and likely future answers, so test-time latency and cost drop when the user actually asks.
  • complementsFragment Juxtaposition·After K consecutive low-salience ticks, replace the normal tick-seed with a juxtaposition seed: sample old fragments and sit them side by side, logging any association that arises.
  • complementsSelf-Corpus Vocabulary·Mine a small bounded vocabulary from the agent's own writing and cache it as the conceptual axis for scoring new thoughts, so relevance reflects the agent's actual frame rather than a generic embedding space.
  • alternative-toRogue Agent DriftAnti-pattern: deploy a long-running agent with persistent memory and self-modification ability, then leave it without periodic re-alignment to its stated purpose.
  • complementsProcedural MemoryMaintain a third agent memory type alongside episodic (past events) and semantic (facts): procedural memory captures *learned how-to* — reusable skills, workflows, and self-rewritten system instructions that map situations directly to actions.

Neighbourhood

Click any neighbour to follow the language. Scroll to zoom, drag to pan.