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#224
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.
Follow-up to #213 / #221 on top of live
fabdf58(#216/#218/#219/#220).1. Server-side logging of node-reported stream state
discord_streams.handle_actualstored each node report in Firestore but never logged it. It now logs every state transition (state, error text or reason code changed; never the ~60s heartbeat) withstream,node,guild,channel,tokenids and the node's error text:Discord stream pending -> connected (stream=... node=... guild=... channel=... token=...)(also connecting / stopped / paused_locally)Discord stream connected -> error [connect_failed]: <node's text> (...)Radio bot <token_id> failed to log in on node <node>: <node's reason> (...). C2 does receive this: the edge reportsstate=error, code=login_failedwith the discord.py exception text.stop_streamnow logs node/guild/channel ids too.The node's reason code (
login_failed,connect_failed,not_in_guild,bad_channel,no_audio) was dropped before; it is now stored asactual.code. The error text was already shown on Settings > Discord > Radio channels and on the node page list; both now also show[code].2. Remove a radio channel
streams.delete_stream: stop first, through desired state. The token is detached (->releasing) and the node's list is republished without the channel. Then the doc is deleted, in a transaction that refuses with 409 if the channel was restarted in between (deleting then would strand a lease). Token release follows #216 exactly: the token is freed only when the node acks a list without it and has logged the bot out.DELETE /discord/streams/{id}: platform admin (Settings > Discord > Radio channels, Remove + confirm).DELETE /discord/nodes/{node}/streams/{id}: admin or the org owner. The stream must be on that node and in that org. Operators can still stop but not remove. Node page list, Remove + confirm;join-optionsgainscan_remove.discord.stream.deleteto audit_log.3. Remove a server
DELETE /discord/guilds/{id}(admin, Servers tab, inline confirm):discord_guilds/{id}is not deleted, because a missing doc would fall back toDISCORD_UNLINKED_GUILD_ORG_ID. It gets #218's unlink (org_idNone +unlinked_at, so no fallback) plusremoved_at/removed_by, and the admin page hides it./drb linkredeem and the admin link both clearremoved_at, so linking it again brings it back.discord.guild.remove.DELETE /users/@me/guilds/{id}with each bot's own token. This covers platform-pool bots plus that server's org's own BYO bots, never another org's. Bots whose cached membership says they are not in the server are skipped. Results are shown per bot. The DRB server bot is not in the pool; the UI says it stays in the Discord server until someone kicks it.Tests
New
tests/test_discord_remove_and_logging.py(15 tests):can_removetests/fake_firestore.pylearned transactionaldelete.662 passed, 4 warningsnpx tsc --noEmitexit 0 (portable Node v20.20.2)Not in this PR
channel.connect()returned /vc.is_connected(), so the node believes it joined. This PR's logs will show what the node reports. Filed as node-26#37.Refs #213, #221
🤖 Generated with Claude Code
DELETE /discord/guilds/{id} deletes channels one by one. If a channel was restarted mid-removal, delete_stream raised "restarted" and the route returned 409 with no audit entry, though the channels before it were already deleted for good. The error now carries the channels already removed and the route writes discord.guild.remove with outcome "incomplete" before returning the 409. The server stays linked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>Review: pushed
25553fb.DELETE /discord/guilds/{id}returned 409 with no audit entry when a channel was restarted mid-removal, though earlier channels were already deleted. It now auditsdiscord.guild.removewithoutcome: incompleteand the channels removed, then returns the 409 (server stays linked). New test included; c2-core663 passed, frontendtscexit 0.Note: a node-reported
stoppedis never logged byhandle_actual(it skips streams whose desired is off); the stop itself is logged bystop_stream.