Snapshot vs Live Events
FlowLayer observability combines point-in-time state with streaming updates.
Connection sequence
On /ws connection:
- server sends
hello - server sends
snapshot - server streams live events (
service_status,log)
Why both exist
snapshotgives deterministic initial state- live events keep the view current
- replay with
get_logsfills gaps after reconnect or event loss
Reliability model
- live
logevents are best-effort get_logswithafter_seqis the continuity mechanismeffective_limitin responses is the authoritative bound
Practical recovery flow
- store highest seen
seq - reconnect
- request
get_logswithafter_seq - merge by sequence number
Use this model for both TUI behavior and custom clients.
References: