Context:
Running the buildScripts/ai/runSandman.mjs headless process triggers the DreamService.processUndigestedSessions() pipeline. This pipeline is responsible for two distinct workflows:
- Digesting new Agent session memories natively into the Edge Graph.
- 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.
Context: Running the
buildScripts/ai/runSandman.mjsheadless process triggers theDreamService.processUndigestedSessions()pipeline. This pipeline is responsible for two distinct workflows:The Bug: If
DreamServicefound no new session memories, it aborted execution via an earlyreturn;. 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.processUndigestedSessionsto 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.