feat(console): authoritative membership in the topology lens#208
Open
Lanzelot1 wants to merge 1 commit into
Open
feat(console): authoritative membership in the topology lens#208Lanzelot1 wants to merge 1 commit into
Lanzelot1 wants to merge 1 commit into
Conversation
8909549 to
c6c57ed
Compare
63803e6 to
d8175e6
Compare
c6c57ed to
e452a23
Compare
d8175e6 to
2e2b20d
Compare
e452a23 to
a9a5f91
Compare
2e2b20d to
260e49f
Compare
a9a5f91 to
36b9355
Compare
260e49f to
2e2a867
Compare
The topology lens was traffic-derived only — it couldn't show a subscribed- but-silent agent or distinguish live vs durable-offline membership. It now overlays the broker-authoritative membership feed (readMembership/ watchMembership — the same source as the web graph): MeshView reads and watches it best-effort, and foldTopo merges silent subscribers as nodes with live/durable spokes, badges wide readers (>/*), and resolves ids to the roster so a member with traffic isn't double-counted. A header pill reads membership: live/stale/traffic-only. The map draws the full skeleton, the matrix a light marker, the sequence stays a traffic timeline. With no delivery daemon (or an open mesh) it degrades to exactly the prior view.
36b9355 to
5dcde20
Compare
2e2a867 to
9fa3f87
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
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.
What
Closes the one real gap where the web dashboard beat the console. The topology lens (
t) was traffic-derived only — a fold of the last ~120s of messages — so it couldn't show a subscribed-but-silent agent, couldn't distinguish live vs durable-offline membership, and had no freshness signal. It now overlays the broker-authoritative membership feed (readMembership/watchMembership— the exact source the web/graphuses: delivery-daemon CONNZ ∪ durable registry).prefillDms-style degrade; never surfaced as a connection error). Exposed asMeshSnapshot.membership.foldTopomerges it onto the traffic graph: silent subscribers become member nodes, subscriptions become resting spokes (live / durable), wide readers (>/*) get a≫badge (no spoke-per-hub), bounded wildcards (team.>) expand against the channel registry via coresubjectMatches, and ids resolve through the roster so a member that also has traffic isn't double-counted. Membership links are kept separate from traffic edges (they have no rate).∘/◌marker for member-without-traffic cells; the sequence (①) stays a traffic timeline. A header pill readsmembership: live / stale / traffic-only.No core change (the feed + methods already exist); no SPEC change.
Stacked on #206 (
feat/console-participant) — retarget to main as the chain merges.Verified
pnpm typecheckclean;smoke:view(MeshView) still green (no regression).smoke:topo-membership(15 checks): silent subscriber → member node + live link; durable-offline → durable link;>→ wide, no spoke;team.>→ expands to both concretes; member-with-traffic → single node (no double-count) with its edge preserved; freshness live/stale; degrade (no feed → empty memberships,available:false, node set identical to a plain fold).asOfheartbeat), a provisioned subscribed-but-silent agent appears in it, andfoldToposurfaces it as a member node with a live spoke to#general— matching the web graph. Plus the real TUI on the open demo mesh showsmembership: traffic-onlyand degrades cleanly.