- Add bd daemon command for background git sync (bd-273) - Implement PID file management with atomic creation (O_EXCL) - Add session detachment (Setsid) to survive terminal closure - Implement graceful shutdown with SIGTERM/SIGINT/SIGHUP handling - Add context cancellation and per-sync timeouts (2min) - Use secure file permissions (0600 for PID/log, 0700 for .beads) - Add startup confirmation before reporting success - Implement interval validation and comprehensive error handling - Add full test coverage for daemon lifecycle - Update README.md with daemon documentation All oracle review recommendations implemented. Resolves: bd-273 Amp-Thread-ID: https://ampcode.com/threads/T-117c4016-b25d-462a-aa75-6060df4b2892 Co-authored-by: Amp <amp@ampcode.com>
6.1 KiB
6.1 KiB