LearnNewsExamplesServices
Frontmatter
id9933
titleFix: DreamService Sandman Cycle Aborts Prematurely
stateClosed
labels
bugai
assigneestobiu
createdAtApr 12, 2026, 7:09 PM
updatedAtApr 12, 2026, 7:11 PM
githubUrlhttps://github.com/neomjs/neo/issues/9933
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 12, 2026, 7:11 PM

Fix: DreamService Sandman Cycle Aborts Prematurely

tobiu
tobiu commented on Apr 12, 2026, 7:09 PM

Context: Running the buildScripts/ai/runSandman.mjs headless process triggers the DreamService.processUndigestedSessions() pipeline. This pipeline is responsible for two distinct workflows:

  1. Digesting new Agent session memories natively into the Edge Graph.
  2. Ambiently performing memory-core maintenance (Graph Apoptosis, Semantic Vector synchronization, and Golden Path roadmap synthesis).

The Bug: If DreamService found no new session memories, it aborted execution via an early return;. This immediately halted the entire Sandman REM cycle, bypassing both the Garbage Collection topology phase and the strategic Golden Path synthesis loops.

The Fix: Modified DreamService.processUndigestedSessions to bifurcate the behavior. If no sessions are found, it gracefully skips the memory ingestion iterations but now correctly proceeds forward to execute the ambient Garbage Collection and Hybrid GraphRAG Strategic Extraction routines.

tobiu added the bug label on Apr 12, 2026, 7:09 PM
tobiu added the ai label on Apr 12, 2026, 7:09 PM
tobiu referenced in commit 5e8137e - "fix: Remove early abort in Sandman pipeline to permit ambient GC and GoldenPath (#9933)" on Apr 12, 2026, 7:09 PM
tobiu cross-referenced by PR #9934 on Apr 12, 2026, 7:09 PM
tobiu referenced in commit 0bba2e0 - "fix: Remove early abort in Sandman pipeline to permit ambient GC and GoldenPath (#9933) (#9934)" on Apr 12, 2026, 7:11 PM
tobiu closed this issue on Apr 12, 2026, 7:11 PM
tobiu assigned to @tobiu on Apr 12, 2026, 7:11 PM