huskies: merge 1124 story Persist TransitionFired into a per-sled CRDT event log

This commit is contained in:
dave
2026-05-17 19:32:39 +00:00
parent d8204ab7ed
commit 89058ebd49
7 changed files with 416 additions and 9 deletions
+4
View File
@@ -28,6 +28,10 @@ pub(crate) fn spawn_event_bridges(
// Audit log subscriber: write one structured line per pipeline transition.
crate::pipeline_state::spawn_audit_log_subscriber();
// Event log subscriber: persist every transition to the CRDT event log so
// the history survives rebuild_and_restart and replicates across nodes.
crate::event_log::spawn_event_log_subscriber();
// CRDT → watcher bridge: translate CRDT stage-transition events into
// WatcherEvent::WorkItem so downstream consumers (WebSocket, auto-assign)
// see a uniform stream regardless of whether the event originated from the