Skip to content

feat: add IPC watch stream for service snapshots - #12

Merged
keskad merged 1 commit into
mainfrom
feat/ipc-watch
Aug 20, 2026
Merged

feat: add IPC watch stream for service snapshots#12
keskad merged 1 commit into
mainfrom
feat/ipc-watch

Conversation

@keskad

@keskad keskad commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add {type:watch} IPC with optional label_keys filter, coalesced {type:list} snapshots, and 10s heartbeats.
  • Bounded fan-out (MAX_WATCH_FOLLOWERS = 8, slot coalescing) with zero extra work when no watchers are connected.
  • CLI microinit watch, Go Client.Watch, docs/man, and tests.

Test plan

  • cargo test in microinit
  • go test ./client/ -run Watch
  • microinit watch --label-key microdns-port against a running daemon

Made with Cursor

Expose {type:watch} on the control socket so consumers can follow coalesced
list snapshots with optional label-key filtering, without polling. Includes
CLI, Go Client.Watch, and bounded fan-out with heartbeats.

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad
keskad merged commit 9c09847 into main Aug 20, 2026
7 checks passed
@keskad
keskad deleted the feat/ipc-watch branch August 20, 2026 18:11
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