-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Dreaming cron not auto-recreated after plugin re-enable + zero promotion despite active-memory working #84286
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Summary
Two related issues with the dreaming/memory-core system:
Dreaming cron not auto-recreated: After disabling the dreaming plugin, deleting its cron job, restarting the gateway, and re-enabling dreaming — the system does NOT automatically recreate the scheduled cron. The config shows
dreaming.enabled: truewithfrequency: "0 3 * * *", but no cron job exists to trigger it.Zero promotion despite active-memory working: Even with active-memory completing successfully (timeout resolved with
timeoutMs: 30000), dreaming's deep phase has never promoted a single entry across 12+ days of continuous operation. All 942 short-term recall entries remain stuck atrecallCount: 0,maxScore: 0.58.Environment
2026.5.19-beta.1Issue 1: Cron not auto-recreated
Steps to reproduce
plugins.entries.memory-core.config.dreaming.enabled = falsein configplugins.entries.memory-core.config.dreaming.enabled = trueExpected
The memory-core plugin should auto-create a cron job matching the configured frequency (
0 3 * * *) when dreaming is re-enabled.Actual
No cron job is created. Config shows:
{ "dreaming": { "enabled": true, "frequency": "0 3 * * *" } }But
cron listshows zero dreaming-related jobs. The dreaming system silently does nothing.Issue 2: Zero promotion (downstream of #79026)
Current state
recallCount > 0maxScore >= 0.8maxScoreDeep sleep output (every night since 5/11)
Why promotion never happens
The deep phase promotion gates require ALL of:
signalCount >= minRecallCount (3)— actual:1(onlydailyCount)maxScore >= minScore (0.8)— actual:0.58uniqueQueries >= minUniqueQueries (3)— actual:1Since
memory_searchnever successfully recalls these entries in conversations,recallCountstays at 0, and the entries can never satisfy the gates. This is a dead loop:Relation to #79026
Previous issue #82755 was closed as duplicate of #79026 (lane deadlock). While the lane deadlock fix may resolve the active-memory timeout, the downstream effect on dreaming promotion is not addressed by that fix alone. Even with active-memory now completing, the recall entries are not being surfaced in conversations, so
recallCountremains 0.Questions
Is the cron auto-creation behavior a known limitation? Should users manually create the cron after re-enabling dreaming, or should the plugin handle this?
After active-memory is fixed (active-memory recall subagent can deadlock on the main lane inside before_prompt_build #79026), will recallCount actually increment? Or is there an additional issue where the recall results aren't being surfaced in conversations?
Should the dreaming deep phase have a fallback path? For example, if entries have been stored for >7 days with
recallCount=0, should there be an alternative promotion mechanism (e.g., based ondailyCountalone)?Is there a recommended way to "reset" a broken dreaming state? The current 942 entries all at 0.58 seem stuck — clearing and re-indexing might be more practical than waiting for recall to increment.
Impact