-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: memory status reports "ingestion state absent" after dreaming JSON→SQLite migration #92017
Copy link
Copy link
Closed
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Summary
After upgrading to 2026.6.5,
openclaw memory status --deepreports:even though dreaming session/daily ingestion state is present and functioning — it was migrated from legacy JSON sidecars into SQLite plugin state.
Steps to reproduce
memory-coredreaming enabled.~/.openclaw/workspace/memory/.dreams/session-ingestion.json→session-ingestion.json.migrated~/.openclaw/workspace/memory/.dreams/daily-ingestion.json→daily-ingestion.json.migrateddreaming-session-ingestion-files: 2883dreaming-session-ingestion-seen: 997dreaming-daily-ingestion: 10Expected behavior
Status should report ingestion state as present when either:
session-ingestion.jsonexists, ordreaming-session-ingestion-files,dreaming-session-ingestion-seen, and/ordreaming-daily-ingestion).Suggested output:
Actual behavior
Status reports
ingestion state absentwhenever the legacy JSON file is missing — even with thousands of SQLite ingestion rows and an active dreaming pipeline.Root cause (source-level)
auditDreamingArtifacts()inextensions/memory-core/src/dreaming-repair.tsonly checks filesystem presence of:memory/.dreams/session-ingestion.jsonIt does not consult migrated SQLite plugin state introduced by the
memory-core-dreams-json-to-sqlitemigration (extensions/memory-core/doctor-contract-api.ts).CLI formatting in
dist/cli.runtime-RyDOuSJ3.jsmapsaudit.sessionIngestionExistsdirectly to the user-facing string.Evidence that dreaming is actually healthy
On the affected install (false-negative status):
openclaw memory rem-harness --jsonreturns 512 recall source entries and 464 deep candidates.memory-core: dreaming promotion complete (workspaces=1, candidates=8, applied=8, failed=0)memory-core: dream diary entry written for light phasememory/.dreams/events.jsonlupdates on schedule.Suggested fix
Update dreaming artifact audit to treat SQLite plugin-state ingestion namespaces as authoritative after migration, e.g.:
session-ingestion.jsonexists →ingestion state present (file)dreaming-session-ingestion-filesordreaming-session-ingestion-seenhas rows for the workspace →ingestion state present (sqlite)ingestion state absentOptionally mirror this in doctor output so post-migration installs don't look broken.
Impact and severity
.migratedJSON files.OpenClaw version
2026.6.5 (5181e4f)
Operating system
macOS 26.5.1 (arm64)
Install method
npm (Homebrew node)
Additional information
Related migration id:
memory-core-dreams-json-to-sqliteLegacy archived files are expected and should not be restored manually once SQLite rows exist.