Closes bd-i00, bd-5xt, bd-gdn - Convert magic numbers to named constants for better maintainability - Log errors from timer-triggered flushes instead of silently discarding - Add 6 functional tests to verify FlushManager correctness: * MarkDirty triggers flush after debounce * FlushNow bypasses debouncing * Disabled manager doesn't flush * Shutdown performs final flush without waiting * fullExport flag handling * Shutdown idempotency All tests pass with -race flag enabled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
11 KiB
11 KiB