Skip to content

memory-core: dream promotion cron fails with missing scope: operator.admin #78894

Description

@husttsq

Bug Report

Summary

The memory-core short-term-promotion cron job fails during narrative session cleanup because the isolated agentTurn run lacks the operator.admin scope.

Observed Behavior

Every day at ~03:00, the dream promotion cron runs and logs:

[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=10, applied=3, failed=0).

The promotion itself succeeds, but the narrative cleanup step fails every time.

Expected Behavior

The cron job should either:

  1. Automatically carry the required operator.admin scope for cleanup operations, or
  2. Document that the scope needs to be explicitly configured, or
  3. Gracefully skip cleanup when the scope is unavailable (with a clear one-time warning, not repeated errors)

Environment

  • OpenClaw: 2026.5.6
  • memory-core: bundled
  • Cron sessionTarget: isolated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions