feat: Dreaming engine for periodic memory consolidation#592
Open
helal-muneer wants to merge 1 commit intoCortexReach:masterfrom
Open
feat: Dreaming engine for periodic memory consolidation#592helal-muneer wants to merge 1 commit intoCortexReach:masterfrom
helal-muneer wants to merge 1 commit intoCortexReach:masterfrom
Conversation
Implements CortexReach#577 - Dreaming functionality for memory-lancedb-pro Three-phase dreaming cycle: - Light Sleep: Decay scoring + tier re-evaluation for recent memories - Deep Sleep: Promote high-performing Working memories to Core tier - REM: Pattern detection across categories + reflection memory creation Changes: - Add dreaming config schema to openclaw.plugin.json with UI hints - Create src/dreaming-engine.ts with createDreamingEngine factory - Wire dreaming into service lifecycle (start/stop) in index.ts - Add DreamingConfig to PluginConfig interface + parsePluginConfig - Fix resolveEnvVars to return empty string instead of throwing when env var is missing (prevents plugin startup failure) Dreaming runs on a 6-hour interval after 5-minute initial delay, configurable via plugins.entries.memory-lancedb-pro.config.dreaming
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #577
Implements Dreaming functionality — periodic memory consolidation and tier promotion that bridges LanceDB Pro's existing , , and into OpenClaw's dreaming lifecycle.
Three-Phase Dreaming Cycle
💤 Light Sleep — Decay + Tier Re-evaluation
decayEngine.scoreAll()tierManager.evaluateAll()store.patchMetadata()🧠 Deep Sleep — Working → Core Promotion
patchMetadata()💫 REM — Pattern Detection & Reflection
category: "reflection") with discovered patternsChanges
src/dreaming-engine.tsopenclaw.plugin.jsondreamingconfig schema + UI hintsindex.tsBug Fix Included
resolveEnvVars()now returns empty string instead of throwing when env var is missing (prevents plugin startup failure whenJINA_API_KEYetc. are unset)Configuration
{ "dreaming": { "enabled": true, "timezone": "UTC", "storageMode": "inline", "verboseLogging": false, "phases": { "light": { "lookbackDays": 7, "limit": 50 }, "deep": { "limit": 20, "minScore": 0.5, "minRecallCount": 2 }, "rem": { "lookbackDays": 30, "limit": 10, "minPatternStrength": 0.6 } } } }Testing