aboutsummaryrefslogtreecommitdiffstats
path: root/CONTEXT.md
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-07-30 15:09:51 +0200
committersalmonik <salmonik@tuta.io>2026-07-30 15:09:51 +0200
commit7a565f377203ba8e01574952014a23dfa8d94fa3 (patch)
tree9bf25a5f618fd79b9c9911ea670f9d4b3d2bba99 /CONTEXT.md
parentfix assistant and senator (diff)
downloadsenator-sperma-7a565f377203ba8e01574952014a23dfa8d94fa3.tar.gz
senator-sperma-7a565f377203ba8e01574952014a23dfa8d94fa3.zip
fix: auto completion timing out before ready + fix preexisting warns
Diffstat (limited to '')
-rw-r--r--CONTEXT.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/CONTEXT.md b/CONTEXT.md
new file mode 100644
index 0000000..f39bb31
--- /dev/null
+++ b/CONTEXT.md
@@ -0,0 +1,20 @@
1# CONTEXT
2
3Glossary of terms used in this codebase. This file is a glossary only — it
4holds no implementation decisions or specs (those live in `docs/adr/`).
5
6## Voice
7
8- **Voice activity** — per-user join / leave / AFK *timing metadata*, persisted
9 in the `voice_activity` table and updated by `events::handle_voice_state_update`.
10 Despite the name, it contains **no audio** — only timestamps and durations.
11- **Recording** — capturing the *audio* of a voice channel into a rolling
12 in-memory buffer while the bot is connected. Distinct from *voice activity*
13 (metadata). A bot "records" continuously while in a VC (unless opted out) and
14 "flushes" on `/record`.
15- **Window** — the retention horizon of the recording buffer: how many seconds
16 of the recent past are kept. Older audio is discarded as new audio arrives.
17 Configured via `RECORDING_WINDOW_SECONDS` (default 900 = 15 minutes).
18- **Flush** — the `/record` action: snapshot the current recording buffer to an
19 mp3 and upload it to Copyparty. Non-destructive — the buffer keeps recording
20 after a flush, so successive calls may overlap.