feat(events): follow mode via ring sequence cursor, plus demo-watch console - #106
Merged
Conversation
…onsole The ring assigns each event a monotonic Seq at Emit; Filter and the events RPC gain a since_seq cursor; marvel events --follow polls once a second and prints each new event exactly once, surviving ring wraparound. just demo-watch builds the four-pane tmux operator console (driver, live session table, event tail, daemon log poll) so demo acts can be watched as they happen instead of reconstructed afterwards. docs/demo.md gains a Watching-live section.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Demo acts read better watched than replayed, and the ring was poll-only: the operator had to rerun marvel events and eyeball what was new. The ring now assigns each event a monotonic Seq at Emit, the events RPC takes a since_seq cursor, and marvel events --follow (-f) polls once a second printing each new event exactly once, in order, surviving ring wraparound. The Seq cursor is also the primitive any future ring subscriber seam needs (relates question-marvel-otel-architecture sub-question on ring fan-out).
just demo-watch builds a four-pane tmux operator console (driver shell, live session table via get sessions -w, events --follow tail, daemon log poll); docs/demo.md gains a Watching-live section. Verified live on kinu: a follow process captured a crash-kill, drain, and respawn as they happened, each event printed once. Two new ring unit tests (monotonic Seq across wraparound, SinceSeq strictly-greater cursor); full suite and golangci-lint clean. Additive only: seq is a new optional JSON field, existing invocations unchanged.