openclaw - 💡(How to fix) Fix memory: add lifecycle-aware LLM curation for MEMORY.md

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Requirements

  • Keep daily notes as the raw append-only history.
  • Keep MEMORY.md compact and curated, not a dump of recalled daily chunks.
  • Preserve provenance metadata such as score, recalls, avg, and source for promoted entries.
  • Support a configurable input budget for daily evidence considered by the curator.
  • Produce a reviewable patch/diff rather than silently rewriting root memory.
  • Respect locked sections/anchors and require explicit approval before modifying them.
  • Prefer deterministic safeguards around the LLM output: schema/output contract, max tokens, validation, and rollback-safe writes.

Relationship To #87654

PR #87654 is a narrow mitigation: it bounds promoted snippets and adds configurable dreaming.phases.deep.maxPromotedSnippetTokens while preserving provenance.

RAW_BUFFERClick to expand / collapse

Problem

Root MEMORY.md is intended to be curated long-term memory, but current automated promotion only selects and formats short-term recall candidates. Even with compact snippets, it does not manage memory lifecycle:

  • some entries are durable anchors and should be protected from automatic deletion or rewriting;
  • some entries are evolving facts and should be refreshed when daily evidence changes;
  • some entries become stale and should be downgraded, archived, or removed from root memory;
  • provenance should remain visible so humans and future agents can inspect why an entry exists.

This makes MEMORY.md vulnerable to slow drift: raw or outdated facts can accumulate, while newer daily evidence does not naturally replace older conclusions.

Proposed Direction

Add an explicit long-term memory curator stage, likely LLM-assisted, separate from deterministic short-term promotion.

The curator should classify root memory entries by lifecycle policy, for example:

  • locked: stable identity, safety, privacy, or owner preference anchors; never auto-delete or rewrite without explicit approval.
  • stable: durable conclusions that can be retained unless contradicted by strong newer evidence.
  • evolving: operational/project facts that should be periodically checked against recent daily notes and refreshed when the current state changes.
  • stale: entries no longer supported by recent evidence or superseded by newer notes; candidates for archival/removal.

Requirements

  • Keep daily notes as the raw append-only history.
  • Keep MEMORY.md compact and curated, not a dump of recalled daily chunks.
  • Preserve provenance metadata such as score, recalls, avg, and source for promoted entries.
  • Support a configurable input budget for daily evidence considered by the curator.
  • Produce a reviewable patch/diff rather than silently rewriting root memory.
  • Respect locked sections/anchors and require explicit approval before modifying them.
  • Prefer deterministic safeguards around the LLM output: schema/output contract, max tokens, validation, and rollback-safe writes.

Relationship To #87654

PR #87654 is a narrow mitigation: it bounds promoted snippets and adds configurable dreaming.phases.deep.maxPromotedSnippetTokens while preserving provenance.

This issue tracks the deeper fix: semantic/lifecycle curation of long-term memory.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING