Commit Graph
2 Commits
Author SHA1 Message Date
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
rUvandClaude Opus 4.5 0852a46c20 feat(cli): Add Node.js worker daemon system for V3
- Add WorkerDaemon service with EventEmitter-based scheduling
- Add daemon CLI command (start/stop/status/trigger/enable)
- Integrate daemon auto-start with SessionStart hooks
- Add daemon config to v3 init settings.json generator
- Update root package.json to link claude-flow@v3alpha to V3 CLI
- Update all commands to use claude-flow@v3alpha package name

Workers (5 enabled by default):
- map (5min): Codebase structure mapping
- audit (10min): Security vulnerability scanning
- optimize (15min): Performance optimization
- consolidate (30min): Memory consolidation
- testgaps (20min): Test coverage analysis

Documentation:
- Update ADR-014 with Node.js Daemon extension
- Update README with V3 daemon documentation
- Bump version to 3.0.3

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

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