feat(daemon): JsonEventStore + debounced EventPersister

Adds disk persistence for the event log: atomic temp+fsync+rename write,
corrupt-file backup, and a debounced coalescing persister task mirroring
state_store/persist patterns. 4 tests: round-trip, missing, corrupt, burst.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 07:23:25 +07:00
parent 56ba1723b9
commit ac2d5ca1db
2 changed files with 201 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
mod event_log;
mod event_store;
mod hooks;
mod launchd;
mod lifecycle;