Skip to content

feat(memory): implement Dreaming consolidation flow - #3484

Closed
JasonW404 wants to merge 5 commits into
dev/feature/memory_0709from
feat/dreaming
Closed

feat(memory): implement Dreaming consolidation flow#3484
JasonW404 wants to merge 5 commits into
dev/feature/memory_0709from
feat/dreaming

Conversation

@JasonW404

Copy link
Copy Markdown
Member

Summary

  • add storage-independent SDK Dreaming models, REM analysis, OpenClaw-aligned scoring, gates, and stable selection
  • add backend Light/REM/Deep orchestration, idempotent user-memory promotion, PostgreSQL advisory scope locking, and durable audit records
  • expose manual run/audit APIs through config_service
  • add idempotent migration/fresh-install SQL and restore Memory ORM mappings lost during target-branch conflict resolution
  • repair target-branch import blockers required to load the config service

Verification

  • 21 passed across Dreaming SDK, backend service, ASGI API, and schema-contract tests
  • SDK Dreaming coverage: 98%
  • backend Dreaming service coverage: 92%
  • config service imports and registers /memory/dreaming/run and /memory/dreaming/audit

Known verification gap

AC-007 real PostgreSQL concurrent advisory-lock verification is not available in the current environment: no PostgreSQL connection variables are configured and the Docker daemon is inaccessible. Unit/service coverage verifies stable scope keys and lock-busy behavior, but this PR does not claim that as a substitute for the real two-connection PostgreSQL check.

Scope

This PR implements manual Dreaming only. Cron scheduling, watchdog/heartbeat, automatic archive execution, Dream Diary/LLM narrative generation, and a dedicated frontend Dreaming page remain out of scope.

@JasonW404
JasonW404 requested a review from WMC001 as a code owner July 23, 2026 07:20
Copilot AI review requested due to automatic review settings July 23, 2026 07:20
@JasonW404
JasonW404 requested a review from Dallas98 as a code owner July 23, 2026 07:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@JasonW404 JasonW404 closed this Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants