No Reviewers
Labels
Clear labels
area/ai-pipeline
area/auth
area/billing
area/correlation
area/discord
area/frontend
area/governance
area/growth
area/infra-deploy
area/legal
area/map
area/mqtt
area/node-ota
area/osint
area/recording-audio
area/sdr-radio
area/transcription
board
board:agenda
minutes:draft
minutes:final
role:ceo
role:cfo
role:cio
role:ciso
role:cmo
role:coo
role:cto
Scene/entity extraction, summarizer, AI providers, embeddings
AuthN/Z, roles, tenancy/org scoping, API keys, credentials
Plans, entitlements, AI spend accounting and caps
Incident correlation, linking, lifecycle, severity, corr_debug
Discord bot, radio bots, voice streams, bot tokens, webhooks
Web UI: Next.js app and the edge-node local dashboard
Board process, minutes, unattended runner, agent tooling
Go-to-market, outreach, cold email, discovery conversations
CI/CD, VM, registry, Firestore rules/indexes deploy, Terraform/Caddy
ToS, retention, licences/DAAs, CAN-SPAM, E&O, name suppression
Live map: pins, paths, tiles, legend, geocoding
Node-C2 MQTT, checkins, commands, node sweeper, dynsec
Node install, enrollment, OTA updater, image skew
External feeds: cameras, 511, ADS-B, AIS, outages, and their licences
Call capture, boundaries, PulseAudio, ring buffer, trimming, attribution
OP25 decode, SDR hardware/tuning, conventional, second SDR, mesh radio
STT, transcript correction, place verification, name accuracy
Board process: minutes and board-filed items
Needs board scoping at the next sitting; CEO removes the label once scoped
One exec pre-read, closed by CEO
CEO ruling; open until enacted
Filed by the CEO
Filed by the CFO
Filed by the CIO
Filed by the CISO
Filed by the CMO
Filed by the COO
Filed by the CTO
kind
behavior-bug
Wrong product behavior; the instrument reads it correctly
kind
measurement-bug
Corrupts the recording/instrument (debug data, evals, health checks), not behavior
priority
p0
Drop everything: prod broken, live exposure, or owner-ruled P0
priority
p1
Next up: blocks a gate, a customer, or core incident quality
priority
p2
Normal: real defect or planned work, schedule in turn
priority
p3
Low: minor, cosmetic, or someday
status
blocked
Waiting on an external party, spend, or another issue
status
in-progress
Branch or PR open against it
status
needs-decision
Waiting on an owner or board ruling before work
status
needs-info
Root cause or repro unknown; needs a reading first
type
bug
Something built is wrong: code, data, or a measurement
type
chore
Maintenance, refactor, tests, pinning, cleanup: no user-visible change
type
decision
A ruling to make or record: board minutes, owner calls, legal reviews
type
docs
Docs, runbooks, CLAUDE.md, skills, SOPs
type
feature
New capability or an extension of an existing one
type
security
Security, privacy, credential or tenant-isolation exposure
type
tracking
Tracker, checklist, initiative or punch-list spanning several changes
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: logan/server-26#262
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Slice S5 of #225 (plan comment 3108), built on main
e54191a(S1-S4 merged, plus #226/#227 multi-stream). Do not merge from here — the main session merges after review.Fixes #251
What changed
Which servers an org sees (
discord_web._org_guilds)guild_ids. Unknown membership (guild_ids: None) does not count.discord_guildsdoc (tested).Where the voice-channel list comes from
discord_rest.guild_directory()anddirectory_from_snapshot()(appended only). They build the same{name, voice_channels:[{channel_id, name, category, position}]}the server bot pushes, from the radio bot's cached/channelssnapshot. That is the snapshot the permission check already reads, so listing channels costs no extra Discord request. It tries up to 3 member bots, best first.join_options:discord_perm_check_budget_seconds.discord_directory_refresh_seconds(300 s): refreshed in the background, deduplicated per server.voice_channels,guild_name,directory_at,directory_source: "radio_bot",radio_bot_present,radio_bot_checked_at. On not-member it writes onlyradio_bot_present: falseand keeps the list.org_idorbot_present. Never writes onto a server that was unlinked or moved meanwhile (re-read beforedoc_update, which never creates a doc).PUT …/directorynow stampsdirectory_source: "main_bot"and callsdiscord_rest.invalidate(guild_id=…).join_optionsguilds also carrydirectory_sourceandmain_bot_present. These are added to the TS type as optional fields; no UI change.start_node_streamchecks the channel against the merged list. When the channel is missing and the list isn't the server bot's fresh one, it reads the list once more (cached snapshot, bounded) before returning 400.discord_webmodule docstring updated: C2 now does call Discord on a picker view, with a radio bot's token, for a server already linked to the caller's org (plan finding 5).#251 (fits naturally, so fixed here; option 2 from the issue)
start_stream(interactive=True):deniedand is ≥10 s old (RECHECK_DENIED_AFTER_SECONDS) is re-read once withrefresh=Truebefore the start is refused.POST /discord/streams(/join and the admin page),POST /discord/nodes/{id}/streamsandnodes.pydiscord_join.Not done / for review
/guilds/{g}/channelslist channels the bot can't View? There is no test server or token here. The code is correct either way. The list keeps every type-2 channel, the same as the server bot's gateway list, and the permission badge already says "can't View Channel". If REST hides them, they simply don't show. No copy change depends on it.GET /discord/guilds/{id}/voice-checkalready falls back to the snapshot's channels, and now also sees the stored REST list.Tests
tests/test_discord_directory.py(27 tests):test_discord_web_picker::test_directory_bot_removed_hides_guildbecame..._without_a_radio_bot. Its pool bot is in the server, which is now meant to keep the server visible.🤖 Generated with Claude Code