Repository navigation
feat(mesh): observability — peer conns/score/bandwidth, activity feed, SSE events (Track 63) - #9
Merged
Conversation
stpinkie
changed the base branch from
main
to
de
8000
vin/track-62-acp-client
September 15, 2026 03:15
5 tasks done
stpinkie
force-pushed
the
devin/track-62-acp-client
branch
from
September 15, 2026 08:18
e77fd10 to
1a6b36e
Compare
…, SSE events (Track 63) PeerStatus gains conns[] (remote_multiaddr, direction, transport detected from /p2p-circuit and quic/tcp in the remote addr, stream count, opened_at), latency_ms from peerstore LatencyEWMA, score from PeerScoreStore, and last_seen. libp2p.BandwidthReporter(metrics.NewBandwidthCounter()) is wired into the host; aggregate and per-peer in/out totals+rates surface on NetworkStatus/PeerStatus via Node.BandwidthTotals/BandwidthForPeer. Activity feed: a bounded in-memory ring (200 entries) captures mesh.* and swarm.* runtime events, subscribed once via sync.Once since both the daemon and the gateway wire the event bus. In-memory only — mesh-audit.jsonl stays the durable trail. Daemon APIs: GET /network/activity?tail=N and a unified GET /network/events SSE stream, both behind the existing bearer auth. Launcher proxies them as /api/network/activity (daemon required) and /api/network/events. CLI: mesh status/--peers print per-peer conn transport/direction/streams, latency, and score; new rhizome mesh activity [--tail N] and rhizome mesh peer <id> detail view (conns, score, capabilities, manifest fingerprints, recent tasks). Dashboard: peers panel gains transport/relay badges, score tooltips, and a click-through detail Sheet; new Activity panel streams /api/network/events via EventSource with a 10 s polling fallback; node panel shows aggregate bandwidth. No graph viz — topology stays queued. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
stpinkie
force-pushed
the
devin/track-63-mesh-observability
branch
from
September 15, 2026 08:19
407145c to
b3aba5c
Compare
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
665D
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.
Summary
PeerStatusgainsconns[](remote_multiaddr, direction, transport detected via/p2p-circuitand quic/tcp, stream count, opened_at),latency_ms(peerstoreLatencyEWMA),score(PeerScoreStore),last_seenlibp2p.BandwidthReporter(metrics.NewBandwidthCounter())wired into host options; aggregate + per-peer in/out totals and rates surface onNetworkStatus/PeerStatusmesh.*/swarm.*events —sync.Once-guarded since daemon and gateway both wire the bus;mesh-audit.jsonlremains the durable trailGET /network/activity?tail=N+ unifiedGET /network/eventsSSE; launcher proxies/api/network/activity+/api/network/eventsrhizome mesh activity [--tail N],rhizome mesh peer <id>detail view,mesh statusprints conn/score per peerStacked on #8 (Track 62) — retargets to
mainon merge.Test plan
go test -tags goolm,stdjson ./pkg/rhizome/mesh ./pkg/gateway— ring order/capacity, kind filter, bus collection, SSE lifecycle, auth, tail, two-node observability (conns/transport/bandwidth/score)go build -tags goolm,stdjson ./...+-p 1tests on touched packagesgolangci-lint run --build-tags goolm,stdjson— 0 issuesnpm run build+ eslint + prettier — cleanmesh status,mesh activity,mesh peer <id>against a connected peerGenerated with Devin