{"record":{"id":"f63bc0cc5c3a86c4","repo":"diegosouzapw/OmniRoute","slug":"startup-memory-decay-sweep-failed-to-start-non","errorCode":null,"errorMessage":"[STARTUP] memory decay sweep failed to start (non-fatal):","messagePattern":"\\[STARTUP\\] memory decay sweep failed to start \\(non-fatal\\):","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/instrumentation-node.ts","lineNumber":654,"sourceCode":"        }),\n\n      // Context-window self-correction (5004): periodically reconcile provider-declared\n      // windows (from /models discovery) into auto:discovery overrides. Never fatal.\n      import(\"@/lib/contextWindowResolver\")\n        .then((m) => m.startContextWindowReconcile())\n        .catch((err: unknown) => {\n          const msg = err instanceof Error ? err.message : String(err);\n          console.warn(\"[STARTUP] context-window reconcile failed to start (non-fatal):\", msg);\n        }),\n\n      // TV6 typed memory decay: optional periodic sweep of decayed episodic memories.\n      // Doubly opt-in (no-op unless MEMORY_TYPED_DECAY_ENABLED=true AND\n      // MEMORY_TYPED_DECAY_SWEEP_INTERVAL>0). Never deletes by default. Never fatal.\n      import(\"@/lib/memory/typedDecay\")\n        .then((m) => m.startMemoryDecaySweep())\n        .catch((err: unknown) => {\n          const msg = err instanceof Error ? err.message : String(err);\n          console.warn(\"[STARTUP] memory decay sweep failed to start (non-fatal):\", msg);\n        }),\n\n      // MemoryBackend provider pattern (PR #8752): initialize configured memory\n      // backends from settings (sqlite, obsidian, notion, custom HTTP, etc.).\n      // Reads the DB settings synchronously (non-blocking, never fatal). Must\n      // run after the DB is ready AND after getSettings/applyRuntimeSettings so\n      // memory backend config is hydrated.\n      import(\"@/lib/memory/index\")\n        .then((m) => m.initMemoryBackends())\n        .catch((err: unknown) => {\n          const msg = err instanceof Error ? err.message : String(err);\n          console.warn(\"[STARTUP] memory backend initialization failed (non-fatal):\", msg);\n        }),\n\n      // Backup schedule (#8513): execute `backup-schedule.json` cron server-side.\n      // Reads the schedule written by `omniroute backup auto enable` and fires\n      // `runBackupCommand` when the cron expression matches. Self-gated: no-op\n      // when no schedule file exists or the schedule is disabled. Never fatal.","sourceCodeStart":636,"sourceCodeEnd":672,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/instrumentation-node.ts#L636-L672","documentation":"Error \"[STARTUP] memory decay sweep failed to start (non-fatal):\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/instrumentation-node.ts:654 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}