Skip to content

Dreaming promotion still writes raw/junk data into MEMORY.md (regression from #67580) #89444

Closed as not planned

Description

@Josephur

Summary

Issue #67580 was closed May 14 but the bug is still present on OpenClaw 2026.5.28 (e932160) as of June 2, 2026.

Problem

The dreaming promotion pipeline continues to write raw Candidate data, bash commands, half-sentences, and internal score metadata directly into MEMORY.md with no distillation.

This morning we cleaned 25 lines of junk from MEMORY.md (93→68 lines). Examples of what got promoted:

  • Raw shell commands: sudo apt remove shaderc && git clone...
  • Build commands: cmake --build build -j$(nproc) --target glslc...
  • Half-sentences: - ## Josephur's Decision (with no body)
  • Internal metadata: [score=0.850 recalls=0 avg=0.620] in the promoted text

These entries scored 0.82–0.96 — well above the 0.8 threshold — confirming the garbage feedback loop described in #67580.

Environment

  • OpenClaw: 2026.5.28 (e932160)
  • memory.backend: qmd (mcporter daemon, bge-m3-q6 embeddings)
  • memory.qmd.searchMode: query
  • dreaming.enabled: true, frequency: 0 6 * * *, timezone: America/Indianapolis
  • active-memory: enabled (deepseek/deepseek-v4-flash)
  • Bedrock (PostgreSQL) for conversation logging

Expected

Promoted entries in MEMORY.md should be distilled knowledge, not raw pipeline artifacts with score metadata attached.

Steps to Reproduce

  1. Enable dreaming with daily frequency
  2. Use the agent normally for a few days
  3. Check MEMORY.md — entries accumulate with <!-- openclaw-memory-promotion --> HTML comments, [score=...] metadata, and raw shell commands from daily notes

Activity

  1. clawsweeper commented on Jun 2, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    Keep open: merged artifact filters address part of the report, but current main deliberately preserves candidate text and still adds score metadata in append fallback; resolving the remaining content-quality complaint requires an explicit admission-policy decision.

    Reproducibility: Source establishes verbatim candidate-derived writes and annotated fallback, but does not establish that the reported junk examples still pass every current gate; no live reproduction or tests were run.

    Maintainer decision needed

    • Question: Should promotion reject narrowly defined artifact-only fragments while preserving source text, or guarantee semantic distillation before every MEMORY.md write?
    • Recommendation: Define narrow content-admission repairs: Establish current failing cases for empty headings or pipeline-only residue, preserve legitimate technical notes, and retain the existing source-backed writer.
    • Why: Current source and tests intentionally preserve candidate text and append fallback; the report does not establish which additional content classes must be rejected without losing useful memories.

    Next step
    Choose the content-admission and fallback contract, then establish a failing current regression for artifact-only fragments before changing promotion behavior.

    Review details

    Best possible solution:

    Define durable-content admission in the existing promotion owner while preserving useful technical knowledge, source evidence, and a deliberate model-failure outcome.

    Do we have a high-confidence way to reproduce the issue?

    Source establishes verbatim candidate-derived writes and annotated fallback, but does not establish that the reported junk examples still pass every current gate; no live reproduction or tests were run.

    Is this the best way to solve the issue?

    A narrow admission repair needs explicit failing examples first; mandatory distillation is a separate behavior change that existing consolidation does not provide.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The reported command and empty-heading examples have not been reproduced through all current admission gates on a recent release.
    • Blanket command rejection could discard useful technical memories, while mandatory semantic rewriting would change the current source-preserving contract.

    Codex review notes: model internal, reasoning medium; reviewed against 3d053745a640.

    Label changes

    Label changes:

    • add issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.
    • add clawsweeper:needs-live-repro: Current issue advisory state selects this label.
    • remove issue-rating: 🌊 off-meta tidepool: Current issue advisory state no longer selects this label.

    Label justifications:

    • P2: Persistent memory quality has meaningful but bounded impact, with no demonstrated urgent regression on current main.
    • impact:session-state: Promoted content enters durable memory and can influence future context and recall.
    Evidence reviewed

    What I checked:

    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed October 15, 2026, 10:28 PM ET / October 16, 2026, 02:28 UTC.

  2. added
    P2Normal backlog priority with limited blast radius.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    on Jun 2, 2026
  3. added
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    and removed
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 20, 2026
  4. 12 remaining items

  5. added
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    and removed on Oct 16, 2026
  6. openclaw-barnacle commented on Oct 23, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale after 7 days without qualifying human activity.
    Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
    A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

  7. steipete commented on Oct 24, 2026

    @steipete
    Contributor

    Thanks for filing this. We're closing older issues that no longer look actionable on current main.

    Artifact filters for dreaming promotion have been merged since 2026.5.28, and we could not confirm that the reported junk still passes current gates. If MEMORY.md still gets raw commands or score metadata on a current release, please open a fresh issue with examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper 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:needs-product-decisionClawSweeper 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.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions