Skip to content

feat(events): follow mode via ring sequence cursor, plus demo-watch console - #106

Merged
arcaven merged 1 commit into
mainfrom
feat/events-follow-demo-watch
Aug 5, 2026
Merged

feat(events): follow mode via ring sequence cursor, plus demo-watch console#106
arcaven merged 1 commit into
mainfrom
feat/events-follow-demo-watch

Conversation

@arcaven

@arcaven arcaven commented Aug 5, 2026

Copy link
Copy Markdown
Member

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.

…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.
@arcaven
arcaven merged commit b9c7e91 into main Aug 5, 2026
@arcaven
arcaven deleted the feat/events-follow-demo-watch branch August 5, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant