Files
ruflo/v3/@claude-flow/cli/src/services
rUvandClaude Opus 4.5 5ef673153e fix(daemon): Implement P0/P1 priority fixes from technical review
P0 Critical Fixes:
- Map worker interval 5min → 15min (reduce polling frequency)
- Concurrent worker limit (maxConcurrent: 2) prevents resource exhaustion

P1 High Priority Fixes:
- Auto-start default changed to false (requires explicit consent)
- Worker timeout protection (5 min max) prevents runaway workers
- Stagger offsets prevent worker overlap and resource spikes
- Graceful shutdown handlers (SIGTERM/SIGINT/SIGHUP)

P2 Improvements:
- Resource-aware scheduling (CPU load > 2.0, memory < 20% checks)
- Stale PID cleanup on daemon start
- Improved logging with log levels

Worker Intervals (with stagger offsets):
- map: 15min (offset: 0)
- audit: 10min (offset: 2min)
- optimize: 15min (offset: 4min)
- consolidate: 30min (offset: 6min)
- testgaps: 20min (offset: 8min)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 03:36:54 +00:00
..