The timer is .unref()'d so it does NOT keep the Node event loop
alive on its own. Long-running agents keep the process alive
through their own mechanisms (HTTP server, message bus, etc.);
short-lived contexts (benches, scripts) can exit cleanly once
their meaningful work completes. Callers that need a guaranteed
consolidation cycle before shutdown should call runConsolidation()
directly or trigger it via CognitiveMemoryManager.runConsolidation.
Returns void
stop
stop(): void
Stop the periodic consolidation timer.
Returns void
waitForIdle
waitForIdle(): Promise<void>
Wait for every consolidation cycle admitted before or during the drain.
Call stop first when shutting down to prevent new timer cycles.
Start the periodic consolidation timer.
The timer is
.unref()'d so it does NOT keep the Node event loop alive on its own. Long-running agents keep the process alive through their own mechanisms (HTTP server, message bus, etc.); short-lived contexts (benches, scripts) can exit cleanly once their meaningful work completes. Callers that need a guaranteed consolidation cycle before shutdown should callrunConsolidation()directly or trigger it via CognitiveMemoryManager.runConsolidation.