openclaw - 💡(How to fix) Fix memory-core: narrative session cleanup fails with missing operator.admin scope [1 comments, 2 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#72175Fetched 2026-04-27 05:33:52
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Timeline (top)
closed ×1commented ×1

Error Message

  1. Gateway crashes with scope validation error Actual: Gateway crashes with error about missing scope operator.admin in narrative session registration Error: MemoryCore narrative session cleanup failed: Scope operator.admin is not in device approvedScopes

Root Cause

When the memory-core plugin creates narrative sessions during recall/save operations, it registers an operator scope operator.admin that does not exist in the device approved scopes. This causes the gateway to crash on restart because the scope validation fails.

RAW_BUFFERClick to expand / collapse

Bug Description

When the memory-core plugin creates narrative sessions during recall/save operations, it registers an operator scope operator.admin that does not exist in the device approved scopes. This causes the gateway to crash on restart because the scope validation fails.

Steps to Reproduce

  1. Have a device with memory-core memories
  2. Restart the gateway or trigger a narrative session cleanup
  3. Gateway crashes with scope validation error

Expected vs Actual Behavior

Expected: Gateway should start normally, narrative sessions should be cleaned up gracefully Actual: Gateway crashes with error about missing scope operator.admin in narrative session registration

Log Sample

Error: MemoryCore narrative session cleanup failed: Scope operator.admin is not in device approvedScopes

Impact Analysis

  • 235 narrative session errors in today logs
  • Approximately 12MB dreams data stored with potentially broken scope references
  • Gateway requires manual intervention to restart
  • memory-core scope config is not a valid configuration key causes CRASH

Additional Context

  • memory-core version: 2026.3.13
  • Gateway service: openclaw-gateway.service
  • Platform: Linux x86_64

extent analysis

TL;DR

The gateway crash can be fixed by ensuring the operator.admin scope is included in the device's approved scopes during narrative session registration.

Guidance

  • Verify the device's approved scopes configuration to ensure it includes operator.admin.
  • Check the memory-core plugin configuration to see if there's an option to specify approved scopes for narrative sessions.
  • Consider updating the memory-core plugin to a version that handles scope validation correctly, if available.
  • Temporarily, you can try manually adding operator.admin to the device's approved scopes to prevent the gateway from crashing.

Example

No code snippet is provided as the issue does not imply a specific code change.

Notes

The solution assumes that adding operator.admin to the approved scopes is a valid and intended configuration. However, without further information on the memory-core plugin's configuration options, this is a workaround rather than a definitive fix.

Recommendation

Apply workaround: Manually add operator.admin to the device's approved scopes to prevent the gateway from crashing, as the root cause seems to be related to scope validation failure due to a missing scope.

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