openclaw - 💡(How to fix) Fix memory-core dreaming cleanup requires operator.admin and logs failure despite successful promotion [1 participants]

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…
GitHub stats
openclaw/openclaw#70395Fetched 2026-04-23 07:25:22
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

memory-core managed dreaming appears to complete the actual work, but narrative session cleanup fails because it requires operator.admin.

Error Message

From gateway logs after update to 2026.4.21:

Root Cause

Summary

memory-core managed dreaming appears to complete the actual work, but narrative session cleanup fails because it requires operator.admin.

RAW_BUFFERClick to expand / collapse

Summary

memory-core managed dreaming appears to complete the actual work, but narrative session cleanup fails because it requires operator.admin.

Observed behavior

From gateway logs after update to 2026.4.21:

  • memory-core: dream diary entry written for light phase
  • memory-core: dream diary entry written for rem phase
  • memory-core: normalized recall artifacts before dreaming (rewrote recall store)
  • memory-core: dreaming promotion complete (workspaces=2, candidates=0, applied=0, failed=0)
  • memory-core: narrative session cleanup failed for light phase: missing scope: operator.admin
  • memory-core: narrative session cleanup failed for rem phase: missing scope: operator.admin

Also, the managed cron itself is present and healthy:

  • job exists: Memory Dreaming Promotion
  • enabled: true
  • lastRunStatus: ok
  • consecutiveErrors: 0

Why this seems like a product issue

This does not look like a user misconfiguration:

  • the scheduled dreaming job runs successfully
  • the diary/promote path succeeds
  • only cleanup fails
  • the required scope (operator.admin) is not something a normal user/session can realistically satisfy in common installs

So this looks like one of:

  1. cleanup should not require operator.admin, or
  2. cleanup should degrade gracefully / skip silently when that scope is unavailable instead of logging repeated failure messages

Expected behavior

If the main dreaming/promotion path succeeds, cleanup should either:

  • run without elevated admin-only scope, or
  • no-op cleanly when privileges are insufficient

Environment

  • OpenClaw stable 2026.4.21
  • Gateway running locally on Windows
  • Managed cron job for memory-core short-term promotion enabled and healthy

If helpful, I can provide a fuller log excerpt, but the lines above capture the failure mode clearly.

extent analysis

TL;DR

The narrative session cleanup failure can be addressed by either modifying the cleanup process to not require the operator.admin scope or by implementing a fallback to skip cleanup silently when the required scope is unavailable.

Guidance

  • Review the memory-core configuration to determine if the operator.admin scope is a strict requirement for narrative session cleanup, and consider relaxing this constraint if possible.
  • Investigate the possibility of implementing a graceful degradation or silent skip for cleanup when the operator.admin scope is not available, to prevent repeated failure messages.
  • Verify that the managed cron job for memory-core short-term promotion is correctly configured and that the job's permissions are sufficient for the tasks it needs to perform, excluding the cleanup step.
  • Consider filing a product issue or feature request to address the underlying problem, as the current behavior may be a design flaw or an oversight in the product's design.

Example

No specific code snippet can be provided without more context about the memory-core and gateway implementation details. However, the solution might involve modifying the cleanup function to check for the availability of the operator.admin scope and handle the case where it's missing, for example:

if has_operator_admin_scope():
    # Perform cleanup with operator.admin scope
else:
    # Either skip cleanup silently or perform a limited cleanup without the operator.admin scope
    pass

Notes

The exact solution will depend on the specific requirements and constraints of the memory-core and gateway systems, including any security or compliance considerations that may dictate the handling of the operator.admin scope.

Recommendation

Apply a workaround by modifying the cleanup process to either not require the operator.admin scope or to degrade gracefully when the scope is unavailable, as this appears to be a product issue rather than a user misconfiguration.

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…

FAQ

Expected behavior

If the main dreaming/promotion path succeeds, cleanup should either:

  • run without elevated admin-only scope, or
  • no-op cleanly when privileges are insufficient

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix memory-core dreaming cleanup requires operator.admin and logs failure despite successful promotion [1 participants]