openclaw - 💡(How to fix) Fix memory-core: narrative session cleanup fails with "missing scope: operator.admin" during dreaming phases [2 comments, 3 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#71956Fetched 2026-04-27 05:36:55
View on GitHub
Comments
2
Participants
3
Timeline
4
Reactions
0
Timeline (top)
commented ×2closed ×1cross-referenced ×1

The memory-core plugin's dreaming promotion cycle fails to clean up narrative sessions for all three phases (light, rem, deep). The cleanup step errors with missing scope: operator.admin, suggesting the internal API call lacks the required permission scope.

Error Message

All three dreaming phases fail cleanup with the same error:

Root Cause

The memory-core plugin's dreaming promotion cycle fails to clean up narrative sessions for all three phases (light, rem, deep). The cleanup step errors with missing scope: operator.admin, suggesting the internal API call lacks the required permission scope.

Code Example

[plugins] memory-core: narrative session cleanup failed for light phase: missing scope: operator.admin
[plugins] memory-core: narrative session cleanup failed for rem phase: missing scope: operator.admin
[plugins] memory-core: narrative session cleanup failed for deep phase: missing scope: operator.admin
[plugins] memory-core: dreaming promotion complete (workspaces=1, candidates=4, applied=0, failed=0).
RAW_BUFFERClick to expand / collapse

Description

The memory-core plugin's dreaming promotion cycle fails to clean up narrative sessions for all three phases (light, rem, deep). The cleanup step errors with missing scope: operator.admin, suggesting the internal API call lacks the required permission scope.

Environment

  • OpenClaw: 2026.4.21 (f788c88)
  • Node: v22.22.2
  • OS: Ubuntu 24.04 (aarch64, AWS Graviton 3)
  • Plugin: memory-core (bundled), active-memory (bundled)

Reproduction

  1. Enable memory-core and active-memory plugins with default config
  2. Wait for the nightly dreaming promotion cycle (runs at ~03:01 UTC daily)
  3. Check gateway logs

Observed Behavior

All three dreaming phases fail cleanup with the same error:

[plugins] memory-core: narrative session cleanup failed for light phase: missing scope: operator.admin
[plugins] memory-core: narrative session cleanup failed for rem phase: missing scope: operator.admin
[plugins] memory-core: narrative session cleanup failed for deep phase: missing scope: operator.admin
[plugins] memory-core: dreaming promotion complete (workspaces=1, candidates=4, applied=0, failed=0).

This occurs every night. The dreaming promotion itself still runs (reporting candidates and applied counts), but the session cleanup step is skipped entirely.

Expected Behavior

The memory-core plugin should have the necessary operator.admin scope for its internal cleanup operations during dreaming phases, or the cleanup should use an appropriately scoped internal token.

Impact

  • Narrative sessions from dreaming phases may accumulate without cleanup
  • Dreaming promotion reports applied=0 on most runs (only 1 successful apply observed in 3 days)
  • Combined with the embedded run timeout issue (#71934), Active Memory dreaming is effectively non-functional

extent analysis

TL;DR

The memory-core plugin's dreaming promotion cycle fails to clean up narrative sessions due to a missing operator.admin scope, suggesting a permission issue with the internal API call.

Guidance

  • Verify the plugin configuration to ensure the operator.admin scope is properly set for the memory-core plugin's internal API calls.
  • Check the gateway logs for any other permission-related errors that may indicate a broader issue with scope configuration.
  • Consider using an appropriately scoped internal token for the cleanup operations during dreaming phases as a potential workaround.
  • Review the plugin documentation to ensure that the default configuration is correct and that no additional setup is required for the operator.admin scope.

Example

No code snippet is provided as the issue seems to be related to configuration or permission settings rather than code.

Notes

The issue may be specific to the memory-core plugin or the OpenClaw environment, and further investigation into the plugin's configuration and the OpenClaw setup may be necessary to resolve the issue.

Recommendation

Apply a workaround by using an appropriately scoped internal token for the cleanup operations during dreaming phases, as this may provide a temporary solution until the underlying permission issue is resolved.

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

openclaw - 💡(How to fix) Fix memory-core: narrative session cleanup fails with "missing scope: operator.admin" during dreaming phases [2 comments, 3 participants]