diegosouzapw/OmniRoute · error
[STARTUP] memory decay sweep failed to start (non-fatal):
Error message
[STARTUP] memory decay sweep failed to start (non-fatal):
What it means
startup memory decay sweep warning: the optional periodic sweep of decayed episodic memories (doubly opt-in: MEMORY_TYPED_DECAY_ENABLED + sweep interval) failed to start. Never deletes by default; no data-loss risk from this failure.
Solutions
- Check the typedDecay init error
- Verify the decay env settings are as intended
- Restart to retry — decay simply stays paused
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/instrumentation-node.ts:654 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/f63bc0cc5c3a86c4.
Report an issue: GitHub.
Appendix: source
Thrown at src/instrumentation-node.ts:654
}),
// Context-window self-correction (5004): periodically reconcile provider-declared
// windows (from /models discovery) into auto:discovery overrides. Never fatal.
import("@/lib/contextWindowResolver")
.then((m) => m.startContextWindowReconcile())
.catch((err: unknown) => {
const msg = err instanceof Error ? err.message : String(err);
console.warn("[STARTUP] context-window reconcile failed to start (non-fatal):", msg);
}),
// TV6 typed memory decay: optional periodic sweep of decayed episodic memories.
// Doubly opt-in (no-op unless MEMORY_TYPED_DECAY_ENABLED=true AND
// MEMORY_TYPED_DECAY_SWEEP_INTERVAL>0). Never deletes by default. Never fatal.
import("@/lib/memory/typedDecay")
.then((m) => m.startMemoryDecaySweep())
.catch((err: unknown) => {
const msg = err instanceof Error ? err.message : String(err);
console.warn("[STARTUP] memory decay sweep failed to start (non-fatal):", msg);
}),
// MemoryBackend provider pattern (PR #8752): initialize configured memory
// backends from settings (sqlite, obsidian, notion, custom HTTP, etc.).
// Reads the DB settings synchronously (non-blocking, never fatal). Must
// run after the DB is ready AND after getSettings/applyRuntimeSettings so
// memory backend config is hydrated.
import("@/lib/memory/index")
.then((m) => m.initMemoryBackends())
.catch((err: unknown) => {
const msg = err instanceof Error ? err.message : String(err);
console.warn("[STARTUP] memory backend initialization failed (non-fatal):", msg);
}),
// Backup schedule (#8513): execute `backup-schedule.json` cron server-side.
// Reads the schedule written by `omniroute backup auto enable` and fires
// `runBackupCommand` when the cron expression matches. Self-gated: no-op
// when no schedule file exists or the schedule is disabled. Never fatal.View on GitHub (pinned to a179ffed5b)