[design] Retrieve Discord conversations for search and Q&A
I maintainer di solito rispondono entro 1 giorno
@pusheen5000000 ci sta già lavorando.
Dal 27/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
TL;DR: Make past Discord discussions searchable so members can recover decisions and context without asking people to repeat themselves. Work out how Misty can answer from those conversations while respecting who is allowed to read them.
This issue is for design and review. Compare approaches and record the decision before creating implementation tasks.
Blocked by
None identified for starting the design. Related helper work below is context,
not an asserted prerequisite.
Problem
We received a request for Misty to track Discord messages so members can search
past conversations and ask questions about them. Decisions and explanations
spread across channels and threads are difficult to recover when someone missed
the discussion or joins a team later.
The design needs to establish how Misty finds useful conversation evidence,
keeps it current, and answers only for an audience allowed to see that evidence.
Desired outcome
A member can ask a question about an earlier discussion and receive an answer
with links to the supporting Discord messages. Illustrative questions to
validate with the requester:
- "What did we decide about the onboarding flow, and why?"
- "Where was the deployment approach discussed?"
- "Did the team change that decision later?"
An answer should distinguish a suggestion from an agreed decision and surface
conflicting or insufficient evidence. Agree on representative questions and
targets for answer quality, freshness, latency, and cost during design.
Area
bot, docs-system, integration, service
Current system and related work
- The helper already fetches recent thread messages for follow-up context in
mentions.js. This is a
starting point for conversation handling, not a historical search design. - Document retrieval has an authenticated person/channel contract.
Its Google grant model cannot be assumed to represent Discord permissions. - #81 tracks the helper experience;
#278 covers integration of document
answers in DMs and configured channels. This brief adds Discord conversations
as a source of evidence.
Challenges and open questions
- Access: How do we check the requester's current access and the audience
receiving the answer? Cover role changes, channel overrides, private threads,
member departure, and access changing while an answer is being generated.
Misty's ability to read a message is not permission to disclose it elsewhere. - Collection and recovery: Fetch on demand, ingest events, or combine them?
How far back should search reach? If we store data, how do reconnects, missed
events, retries, backfills, and rate limits affect completeness and freshness? - Conversation meaning: Index individual messages, reply chains, threads,
or bounded windows? How do we recover enough context without mixing topics
or losing the author, chronology, and original message links? - Changes and removal: What happens after an edit, deletion, channel removal,
or loss of source access? Define the lifecycle of any raw text, chunks,
embeddings, summaries, and cached answers, including changes missed offline. - Answer quality: How do we avoid treating speculation, jokes, old decisions,
or Misty's own earlier answers as authoritative? How are conflicting sources
and unanswered questions presented? Retrieved messages must remain untrusted
evidence rather than instructions authorizing tools or changing scope. - Operations: Which service owns the data and authorization checks? Estimate
message volume, storage and model cost, lag monitoring, and recovery effort.
State assumptions instead of choosing an unmeasured budget.
Constraints
Confirmed project constraints:
- Preserve authenticated service boundaries and per-service data ownership;
services communicate over HTTP rather than sharing tables or importing one
another. See platform architecture. - Bind identity and destination outside model arguments. Any reuse of
documentation-system search must preserve its required person/channel context
and authorization before ranking limits. Define a Discord-specific access
model rather than equating directory teams with channel visibility. - Keep secrets and source content out of logs. Development tests use synthetic
messages and fake providers; they must not call real Discord or LLM services. - Keep the operating model supportable by rotating student maintainers.
Platform constraints to account for:
- Discord's documented message APIs
include guild message search. It requires message-history permission and is
restricted by the application's Message Content intent. An unready search
index can return a retry response. Validate availability for Misty's app before
treating this as an implementation choice. - Losing channel access does not emit a thread-delete event. The
thread access documentation
explains why a cached thread list alone cannot establish current visibility.
Channel enrollment, member notice, retention duration, backfill depth, acceptable
staleness, and spending limits remain decisions to agree, not settled defaults.
Scope and non-goals
Decide the first supported conversation sources, permission model, retrieval
approach, data lifecycle, service ownership, evaluation plan, and rollout/disable
path. Produce interfaces and implementation tasks only after comparing options.
Proposed first slice: explicitly selected server text channels and an explicitly
documented choice of supported thread types. Review this scope with the requester.
Private DM ingestion, attachment processing, activity scoring, moderation, and
model training are proposed non-goals. Asking a question in a DM is a separate
choice from ingesting private DM conversations.
Options and trade-offs
Starting candidates for investigation, not an exhaustive list or a decision:
| Approach | Potential benefit | Main questions to resolve |
|---|---|---|
| On-demand Discord search and bounded context fetch | Less duplicated data and fewer ingestion components | App eligibility, search quality, latency, and filtering the bot's results for the actual audience |
| Persist selected conversations and reuse the document retrieval infrastructure | Reuses retrieval and citation concepts; supports local ranking | Discord authorization, conversation identity, update/removal semantics, and fit with document contracts |
| Separate conversation store and retrieval API | Explicit message/thread model and lifecycle | Additional service ownership, operating cost, and integration with the existing helper |
Compare these against today's recent-thread context baseline using the same
synthetic questions, access cases, freshness expectations, and volume estimates.
Embeddings and generated summaries are choices to justify, not prerequisites.
Done looks like
- Requester and affected maintainers agree on use cases, initial channel/thread scope, notice, retention, and measurable targets.
- Alternatives are compared with evidence, rough cost estimates, and a recommended approach.
- The proposal shows the message-to-answer flow, service ownership, contracts, and authorization checks before retrieval and publication.
- A lifecycle and recovery plan covers edits, deletes, permission loss, missed events, retries, retention, and derived/cached data.
- An evaluation plan covers useful cited answers, conflicting/insufficient evidence, private-thread isolation, access revocation, prompt injection, and incomplete history.
- Review outcome is recorded with reviewer names; if proceeding, scoped implementation issues identify true dependencies and rollout/disable steps.
Decision and follow-ups
Design is in progress, assigned to pusheen5000000. PR #347 contains the proposal and currently has changes requested. Address its review feedback and record the requester/maintainer decisions against the criteria above before closing this issue.
The proposal does not enable message collection or complete the remaining acceptance by itself. Implementation choice, budget, retention and a replacement target date remain unsettled. The expired November 6 board target was cleared during the November 10 reconciliation; no new deadline was assigned.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 2
- Merge medio
- 3g 3h
- PR unite (30g)
- 31
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di UTMIST/Misty
-
area/tooling automation/health
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Epic: Protect live meeting Q&A and deliver recording outputs to the intended audienceForse già presa @kr1shap l’ha presa 1 giorno fa. Apertaarea/bot area/docs-system area/integration area/service epic on hold
UTMIST/Misty#489 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
area/bot on hold type/bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
area/bot on hold type/bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 1 giorno
-
Use a verified ingress boundary for gateway client IPsForse già presa @qiuethan l’ha presa 2 giorni fa. Apertaarea/deployment area/observability area/service type/bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di UTMIST/Misty
Issue simili
-
area/network kind/documentation triage/needs-human
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
canonical/k8s-snap#3533 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: ops bug effort: small
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
juandresrodca/AdminForge#71 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
fossasia/eventyay-exhibition#465 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 3 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Deltakit/deltakit-circuit#28 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno