Repository navigation
server:diagnostics for owners, behind view_diagnostics (GRYT-2005) - #358
Merged
Merged
Conversation
Live voice rooms (who, mute state, latency, camera and screens), the SFU connection state and the SFU's own gryt_sfu_* metrics, for an owner or a bot an owner has given view_diagnostics. It's what the Gryt MCP reads when someone asks their AI why voice is bad. - view_diagnostics is owner-only to begin with, like manage_bots, and the backfill gives it to roles holding manage_server. - SFU numbers come from SFU_METRICS_URL. Unset or unreachable means sfuMetrics is null; nothing else changes. The self-hosted bundle sets it to the SFU's metrics listener on 127.0.0.1. - Nicknames only. No ids, no IPs. GRYT-2005 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Part of the Gryt MCP (GRYT-2005). This adds what the MCP's
server_statusreads: aserver:diagnosticsevent behind a newview_diagnosticspermission.It returns:
gryt_sfu_*numbers, read fromSFU_METRICS_URL. Null when it's unset or the SFU doesn't answer within 2 secondsview_diagnosticsis owner-only to begin with, likemanage_bots: admins don't get it, and the backfill (schema 11) gives it to roles holdingmanage_server. A bot gets it only when it asks and an owner leaves it ticked.The self-hosted bundle sets
SFU_METRICS_URLto the SFU's metrics listener on 127.0.0.1, andexample.envdocuments it, commented out.Look at
collectDiagnosticsexposes. Nicknames only, with no user ids and no IPs. Latency is what each client already sends to the others in its room.SFU_METRICS_URLis fetched server-side. It comes from the operator's env, not from a request, so it isn't an SSRF surface.Tested
view_diagnostics, accepts with it), backfill and migration tests, and a parser test for the metrics textserver_statusreturned livegryt_sfu_*numbers. Nobody was in voice, so the room list was empty.Client label: client#1141. Docs: docs#181. Should go out on beta first.
🤖 Generated with Claude Code