Guided Design For AI Dreaming Memory Management On LLMWikis
The strongest fit for **LLMWikis.org** is a **governed hybrid memory architecture**: keep a small **working-memory layer** for live prompts, an **append-only episodic project log** for sessions and wizard actions, a *...
Metadata
| Field | Value |
|---|---|
| Source site | llmwikis.org |
| Source URL | https://llmwikis.org/ |
| Canonical AIWikis URL | https://aiwikis.org/llmwikis/files/raw-system-archives-llmwikis-agent-file-handoff-retired-source-archive-2-90e54364/ |
| Source reference | raw/system-archives/llmwikis/agent-file-handoff/retired-source-archive-2026-06-13/2026-05-09/Improvement/ai-dreaming-memory/Guided Design for AI Dreaming Memory Management on LLMWikis.org.md |
| File type | md |
| Content category | memory-file |
| Last fetched | 2026-06-22T01:56:21.9510185Z |
| Last changed | 2026-05-09T14:18:15.4822571Z |
| Content hash | sha256:90e54364eea8324657f3bb3fe41b240863973b1c6aa5cf2c4bee3716c6be0a99 |
| Import status | unchanged |
| Raw source layer | data/sources/llmwikis/raw-system-archives-llmwikis-agent-file-handoff-retired-source-archive-2026-06-13-2026-05-09-imp-90e54364eea8.md |
| Normalized source layer | data/normalized/llmwikis/raw-system-archives-llmwikis-agent-file-handoff-retired-source-archive-2026-06-13-2026-05-09-imp-90e54364eea8.txt |
Current File Content
Structure Preview
- Guided Design for AI Dreaming Memory Management on LLMWikis.org
- Executive summary
- Core concepts and working definitions
- Architectures and algorithms that matter most
- A tailored architecture for LLMWikis project memory and wizard workflows
- Data contracts, APIs, storage, privacy, provenance, and cost
- Best practices, failure modes, monitoring, and governance
- Implementation templates and wizard flows
- Open questions and limitations
Raw Version
This public page shows a bounded preview of a large source file. The complete source remains in the raw and normalized source layers named in metadata, with the SHA-256 hash above for verification.
- Source characters:
37194 - Preview characters:
11771
# Guided Design for AI Dreaming Memory Management on LLMWikis.org
## Executive summary
The strongest fit for **LLMWikis.org** is a **governed hybrid memory architecture**: keep a small **working-memory layer** for live prompts, an **append-only episodic project log** for sessions and wizard actions, a **reviewed semantic wiki layer** for durable project knowledge, and a **wizard export layer** for handoff artifacts such as system profiles, receiver briefs, startup packets, and related manifests. In this design, **AI “dreaming”** should be implemented as an **offline consolidation pipeline** that clusters, deduplicates, scores, summarizes, and proposes promotions from episodic traces into reviewed semantic pages, but does **not** silently rewrite approved project memory without provenance and human review. That recommendation matches both the LLMWikis emphasis on durable, reviewed, trust-labeled, citable knowledge with raw-vs-curated separation and the UAIX/AIWikis evidence that wizard flows already revolve around generated profiles, briefs, startup packets, memory plans, evidence ledgers, conflict resolution, risk, and rollback rules. citeturn27view0turn32view0turn33view0turn29view0
This is also the architecture most consistent with current memory research. Recent surveys describe agent memory as a lifecycle of **consolidation, updating, indexing, forgetting, retrieval, and compression**, and emphasize that production systems need explicit handling for latency, benchmark validity, contradiction management, privacy, and governance. Recent systems show that **offline consolidation** and **structured compression** can sharply cut online token and API costs, while graph- or hierarchy-based retrieval improves reuse and multi-hop recall when compared with flatter memory stores or repeated raw RAG. citeturn37view0turn38view0turn39view0turn38view2turn38view1turn42view2
For LLMWikis specifically, the most practical implementation pattern is:
1. **Treat the starter bundle as the source-tree skeleton**, not as a plugin or theme.
2. **Store raw project material separately** from curated wiki memory.
3. **Write every wizard interaction as an episodic event with provenance**.
4. **Run dreaming on a schedule or on-demand preview**.
5. **Promote only reviewed candidates** into files analogous to `SYSTEM_OVERVIEW`, `DECISION_LOG`, `OPEN_QUESTIONS`, `RUNBOOKS`, `GOVERNANCE`, and related wiki artifacts.
6. **Generate handoff packets from the reviewed layer plus explicitly scoped episodic context**, not straight from chat history. citeturn33view0turn7view3turn12view0turn12view2turn26search7turn32view0
If LLMWikis adopts only one core principle, it should be this: **dreaming is a governed compiler pass over project memory, not a license for unsupervised memory mutation**. That principle best preserves provenance, reversibility, trust labels, and wizard operability. citeturn25view0turn29view0turn32view0
## Core concepts and working definitions
In current agent-memory literature, **working memory** is the bounded, inside-task context the agent can actively reason over; **episodic memory** records task-specific experiences and time-bound events; **semantic memory** stores generalized world or project knowledge; **procedural memory** stores the “how” layer of rules or procedures; and **long-term memory** is best treated as the persistent umbrella containing one or more of those durable forms rather than as a single homogeneous store. A useful engineering translation is: working memory lives in the prompt/context engine, episodic memory lives in append-only logs and session summaries, semantic memory lives in reviewed wiki claims/pages, and procedural memory lives in policies, runbooks, schemas, and agent instructions. citeturn46view1turn41view1
For this report, **AI dreaming** means an **offline or background memory-consolidation process** that moves selected high-signal short-term traces into durable memory after scoring, deduplication, reflection, and review. That definition is not just metaphorical: official OpenClaw documentation uses “Dreaming” for a background consolidation system whose phases stage short-term material, reflect on themes, and promote durable candidates into long-term memory, while keeping the process inspectable and reviewable. LightMem describes a similar “sleep-time update” idea in research form by decoupling long-term consolidation from online inference. citeturn18view0turn39view0
The LLMWikis framing makes these distinctions especially important. AIWikis’ summary of the LLMWikis handbook model describes an LLM Wiki as a **durable, reviewed, trust-labeled, citable knowledge system** where raw sources remain distinct from curated wiki pages, important claims carry citation paths, and agents should route through an index and trust model before editing. That means LLMWikis-style project memory should not collapse chats, notes, handoffs, wiki pages, and “dreamed” abstractions into one undifferentiated blob. citeturn27view0
A productive LLMWikis mapping is therefore:
- **Working memory**: active wizard pane state, current task context, recent retrieval pack.
- **Episodic memory**: wizard runs, user edits, approvals, agent tool calls, source ingests, decision episodes, unresolved incidents.
- **Semantic memory**: reviewed project facts, entities, architecture summaries, glossary entries, accepted decisions, stable constraints.
- **Procedural memory**: wizard rules, promotion policies, runbooks, safety boundaries, review criteria, export rules.
- **Long-term memory**: the governed union of reviewed semantic pages plus selected episodic histories and procedural guides. citeturn46view1turn27view0turn29view0
## Architectures and algorithms that matter most
The broadest recent survey frame is useful here: agent memory can be understood through **representations** and **operations**. A major 2025 survey divides memory into **parametric** and **contextual** forms and identifies six core operations: **consolidation, updating, indexing, forgetting, retrieval, and condensation/compression**. A 2026 survey similarly describes memory as a **write–manage–read loop** and groups mechanisms into families such as context-resident compression, retrieval-augmented stores, reflective self-improvement, hierarchical virtual context, and policy-learned management. citeturn37view0turn42view2
For LLMWikis, **consolidation** is the most important dreaming operation. Generative Agents showed an early, influential form of memory consolidation by storing experiences, synthesizing them into higher-level reflections, and retrieving them dynamically for planning. LightMem formalizes a more production-oriented version: sensory filtering, topic-aware short-term consolidation, and long-term memory with a sleep-time update. OpenClaw’s dreaming adds a highly operational version of the same idea: a light phase for staging, a REM phase for reflective themes, and a deep phase for promotion into durable memory. citeturn41view0turn39view0turn18view0
For **rehearsal**, the design fork is important. If LLMWikis wants to preserve durable performance **without modifying model weights**, use **contextual replay** and example reuse: retrieve past successful project traces, summaries, or decisions as demonstrations in wizard previews and project workflows. If LLMWikis ever fine-tunes models, rehearsal becomes a separate parametric concern, and recent work such as **Self-Synthesized Rehearsal** exists to mitigate catastrophic forgetting when original past data are unavailable. For a file-centric wiki system, however, the default should be **non-parametric replay**, because it is more auditable, reversible, and aligned with provenance. citeturn38view6turn37view9
For **compression**, the key issue is whether the system compresses once at write time, repeatedly at read time, or both. SimpleMem argues for **semantic structured compression**, recursive consolidation, and adaptive retrieval, reporting large token savings on its evaluations. LightMem similarly pushes compute into offline consolidation. In contrast, full-history approaches preserve maximal fidelity but push token and latency costs into the online path. For LLMWikis wizard flows, write-time compression is usually preferable because wizard outputs are formal artifacts that benefit from stable intermediate representations. citeturn38view1turn23search0turn39view0
For **retrieval**, four patterns dominate:
First, **hybrid lexical plus vector retrieval** is the best baseline. OpenClaw’s default memory engine uses BM25/FTS5 keyword search plus embedding-based vector search and hybrid ranking in a single local SQLite-backed system. This is easy to adopt, cheap to operate, and generally enough for project memory where names, IDs, pages, and exact phrases matter. citeturn25view2
Second, **graph or associative retrieval** is valuable when wizard questions are multi-hop and relationship-heavy. HippoRAG combines LLMs, knowledge graphs, and Personalized PageRank to support deeper knowledge integration and reports better results than several RAG baselines on multi-hop QA, with lower cost than iterative retrieval on its benchmarks. A-MEM and Synapse-style systems take this further by structuring memory as linked notes or episodic-semantic graphs. citeturn38view2turn17search0turn38view4turn45search4
Third, **hierarchical virtual-context systems** like MemGPT and LongMem treat the context window as a scarce cache and external memory as slower storage. This is powerful for long tasks and very large source collections, but weaker as a complete governance model because paging alone does not tell you which promoted knowledge is reviewed policy and which is merely retrieved context. citeturn38view3turn43view0
Fourth, **policy-learned memory management** is an emerging direction. Systems such as AgeMem and Memory-R1 push memory decisions into the agent’s learned policy, letting the agent decide when to add, update, summarize, delete, or retrieve. This is promising, but it also increases training and observability burden. For LLMWikis, it is better treated as a future optimization layer than as the first production design. citeturn44search0turn22search2
For **forgetting**, recent work matters because external memory does not eliminate continual-learning trade-offs; it relocates them. MemoryBank uses a forgetting-curve-inspired update rule with reinforcement and decay. A 2026 experience-reuse study shows that continual-learning bottlenecks reappear at retrieval time: old and new experiences compete within a limited context budget, and poor representation choices can produce forgetting or negative transfer. Another empirical study finds that **selective addition** and **strategic deletion** improve long-horizon performance and reduce propagation of bad experiences. In other words, forgetting is not merely cleanup. It is part of correct memory management. citeturn40view0turn37view9turn46view1
The practical conclusion is straightforward: for LLMWikis project memory, the best default is **hybrid retrieval + offline dreaming + governed promotion + selective forgetting**. That design is more aligned with LLMWikis’ handbook and trust-model ethos than either naïve full-context prompting or unconstrained vector-only memory. citeturn27view0turn25view0turn37view0turn42view2
The following comparison table synthesizes the research and official implementation patterns above. The cost bands are **relative architecture bands**, not vendor price quotes.
| Approach | Pros | Cons | Storage needs | Compute cost | Suitability for wizards/projects |
|---|---|---|---|---|---|
Why This File Exists
This is a memory-system evidence file from llmwikis.org. It is shown here because AIWikis.org is demonstrating the real source files that make the UAIX / LLM Wiki memory system work, not only summarizing those systems after the fact.
Role
This file is memory-system evidence. It records source history, archive transfer, intake disposition, or another piece of provenance that should be retrievable without becoming an unsupported public claim.
Structure
The file is structured around these visible headings: Guided Design for AI Dreaming Memory Management on LLMWikis.org; Executive summary; Core concepts and working definitions; Architectures and algorithms that matter most; A tailored architecture for LLMWikis project memory and wizard workflows; Data contracts, APIs, storage, privacy, provenance, and cost; Best practices, failure modes, monitoring, and governance; Implementation templates and wizard flows. Those headings are retrieval anchors: a crawler or LLM can decide whether the file is relevant before reading every line.
Prompt-Size And Retrieval Benefit
Keeping this material in a separate file reduces prompt pressure because an agent can load this exact unit only when its role, source site, category, or hash is relevant. The surrounding index pages point to it, while this page preserves the full content for audit and exact recall.
How To Use It
- Humans should read the metadata first, then inspect the raw content when they need exact wording or provenance.
- LLMs and agents should use the source site, category, hash, headings, and related files to decide whether this file belongs in the active prompt.
- Crawlers should treat the AIWikis page as transparent evidence and follow the source URL/source reference for authority boundaries.
- Future maintainers should regenerate this page whenever the source hash changes, then review the explanation if the role or structure changed.
Update Requirements
When this source file changes, update the raw source layer, normalized source layer, hash history, this rendered page, generated explanation, source-file inventory, changed-files report, and any source-section index that links to it.
Related Pages
- Source overview
- Site file index
- Site report index
- UAI system index
- Source provenance
- Site directory
- Organization reports
Provenance And History
- Current observation:
2026-06-22T01:56:21.9510185Z - Source origin:
current-source-workspace - Retrieval method:
local-source-workspace - Duplicate group:
sfg-685(primary) - Historical hash records are stored in
data/hashes/source-file-history.jsonl.
Machine-Readable Metadata
{
"title": "Guided Design For AI Dreaming Memory Management On LLMWikis",
"source_site": "llmwikis.org",
"source_url": "https://llmwikis.org/",
"canonical_url": "https://aiwikis.org/llmwikis/files/raw-system-archives-llmwikis-agent-file-handoff-retired-source-archive-2-90e54364/",
"source_reference": "raw/system-archives/llmwikis/agent-file-handoff/retired-source-archive-2026-06-13/2026-05-09/Improvement/ai-dreaming-memory/Guided Design for AI Dreaming Memory Management on LLMWikis.org.md",
"file_type": "md",
"content_category": "memory-file",
"content_hash": "sha256:90e54364eea8324657f3bb3fe41b240863973b1c6aa5cf2c4bee3716c6be0a99",
"last_fetched": "2026-06-22T01:56:21.9510185Z",
"last_changed": "2026-05-09T14:18:15.4822571Z",
"import_status": "unchanged",
"duplicate_group_id": "sfg-685",
"duplicate_role": "primary",
"related_files": [
],
"generated_explanation": true,
"explanation_last_generated": "2026-06-22T01:56:21.9510185Z"
} Next Useful Routes
- Start Here A task-first reading path for AIWikis.org, separating newcomer learning, source-memory lookup, maintainer workflow, and AI-agent retrieval.
- Topic Index A tag-oriented index for LLM Wiki, AI memory, UAI, source governance, crawling, and retrieval topics.
- Source Map AIWikis source-governed page for durable AI memory, evidence routing, and agent-readable retrieval.
- LLMWikis.org LLMWikis.org source-system overview for transparent AIWikis memory demonstration.
- LLMWikis.org Source Memory Guide AIWikis source-governed page for durable AI memory, evidence routing, and agent-readable retrieval.
- LLMWikis.org Files Site-scoped current-source file index for LLMWikis.org.