-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
[Behavior]: memory-core dreaming deep phase promotes raw verbatim daily-log snippets to MEMORY.md without distillation #67363
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:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for 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:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.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: 🦞 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.staleMarked as stale due to inactivityMarked as stale due to inactivity
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for 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:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.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: 🦞 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.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug type
Behavior bug (incorrect output quality)
Summary
The dreaming deep phase promotion writes raw verbatim text snippets from daily memory files directly into
MEMORY.mdwith no summarization, distillation, or insight extraction step. This means unprocessed daily log fragments (timestamps, routine activity notes, casual conversation fragments) are promoted as-is to long-term memory, polluting the curated memory store with noise.Root cause
In
short-term-promotion-0cyGzCF3.js, thebuildPromotionSectionfunction:The
candidate.snippetis the raw text captured from the source daily memory file — copied verbatim. The scoring algorithm (weighted relevance 30%, frequency 24%, diversity 15%, recency 15%, consolidation 10%, conceptual 6%) determines whether something gets promoted, but there is no step that determines how it gets written. The raw snippet is written as-is.Result
MEMORY.mdends up with raw daily log fragments like:This defeats the purpose of
MEMORY.mdas a curated long-term memory store. The entry above carries no actionable insight — it is a raw activity log fragment that scored well on frequency and recency but contains no distilled information worth retaining long-term.Documentation gap
The docs describe the deep phase as "decides what becomes long-term memory" and note it "Appends promoted entries to MEMORY.md" — but do not clarify whether the entries are intended to be raw verbatim copies or distilled insights.
Question for maintainers
What is the intended behavior? Is the raw snippet write:
If raw promotion is intentional, consider adding a config option or flag for "distilled promotion" that summarizes the snippet into a concise insight before writing. This would make
MEMORY.mda genuine curated store rather than an append-only log of scored fragments.OpenClaw version
2026.4.14
Operating system
macOS Darwin 21.6.0 (x64)
Install method
global npm install
Impact
Medium —
MEMORY.mdaccumulates raw daily log fragments instead of curated insights, degrading long-term memory quality over time. Users who trust the automated promotion system may not notice the noise until their memory store becomes cluttered with unprocessed entries.