[epic] Build a member-facing helper bot

Aperta
#81 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
8/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
javascript
Ambito
ai, backend

Direzione di ricerca

This is a tracking epic, not a starting task; the work lives in its child issues (#68, #70, #71, #239, #240). Read the design spec at docs/superpowers/specs/2026-07-05-helper-bot-epic.md and the helper feature in discord-bot/src/helperService.js to understand the boundaries. Pick a single child issue with a clear scope, and treat this epic as done only when its listed children are closed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/bot area/docs-system area/service epic type/feature
Current delivery status

Helper threads, reply follow-ups, private DMs, per-user limits, LLM tool support and long-message handling are merged. The authorized executor (#71 / PR #290) and channel configuration (#239 / PR #298, with append in #303) are also merged. Cited staging channel answers and actual Discord delivery have passed, including the passage-length and editor-link fixes (#309/#312). #278 closed on October 28 after Ethan confirmed he had tested it and requested closure. #72 remains deferred. The other open native child, #382, tracks production policy-refusal handling and recovery of later harmless requests in the same thread. The separate indexing-to-retrieval gate #277 is complete.

Area

bot, service, docs-system

Outcome

Members need answers grounded in UTMIST documents in server threads and personal DMs. Channel answers use the configured teams' group access; DMs use the authenticated person's full document access. This epic owns the bot experience and guardrails; #77 supplies access configuration and #125 supplies retrieval.

Definition of done
  • #66 provides @mention-triggered threads, personalized LLM responses, and follow-up context.
  • #68 enforces per-user request/spending limits before additional paid calls.
  • #70 exposes tool-use responses from the LLM service.
  • #71 implements the bot client and executor for authorized, explicitly safe tools, tested with mocked retrieval and enforced round/cost limits.
  • #239 lets admins configure channel access.
  • #240 adds personal DM conversations.
  • #71 implements and tests trusted destination context, authorization, history/cache invalidation and publication checks with mocked retrieval.
  • #278 connects retrieval and configured channels to DM/thread answers. Closed on Ethan's testing confirmation on October 28; its acceptance note and original citation/follow-up/revocation/scope-change criteria remain in the issue.
  • #72 provides confirmed, triage-gated bug intake if that deferred work is resumed; it remains deferred and is not part of the current delivery focus.
  • #382 distinguishes policy refusals from outages and restores later valid requests in the affected thread.
Ownership

discord-bot owns helper threads, DMs, channel configuration commands, member context, consumer limits, tool execution, and bug intake. services/llm owns the reusable tool-use API (#70). Retrieval is owned by #125 and consumed here.

Parallel work

#70, #176, #210 and #238 are complete, and retrieval's shared contract/fixture is available. #71 and #239 are implemented and merged. #278's integrated DM/channel and access-change work is closed on operator acceptance after the shipped release. Basic DM transport (#240) is complete. #72 remains deferred.

Task breakdown
Task Area Effort
#68 — Limit helper-bot requests and spending per user bot S
#70 — Add tool-use support to the LLM chat endpoint service L
#71 — Build the authorized bot tool executor bot M
#278 — Integrate document answers in DMs and configured channels bot, docs-system, integration TBD
#72 — File member bug reports into a triage inbox bot, integration M
#239 — Configure channel access through the bot bot M
#240 — Chat with Misty in DMs bot M
Earlier decisions and completed history

Completed children: #66, #68, #70, #71, #235, #239, #240, #252, #276, #278 and #310. Additional shipped bot capabilities include authenticated command tools (#311) and public replies/batch confirmations (#314). Their existing issue states and discussions retain the completion, cancellation, or supersession details.

Scope and implementation notes

Design: docs/superpowers/specs/2026-07-05-helper-bot-epic.md.

Implementation boundary: This is an in-process feature of discord-bot/src/helperService.js, not a separate service. Reuse the Discord client, principal.js, directory/doc clients, and LLM service #33 over authenticated internal HTTP. The bot owns thread/context orchestration, shares the bot deployment, and needs the privileged Message Content intent.

Delivery tracking: Children: #66, #68, #70, #71, #72, #235, #239, #240, #278. #235 retains reply-triggered follow-ups inside helper threads. The mocked executor task #71 and the indexing-to-retrieval gate #277 are complete; #278's separate document-answer integration/acceptance is now closed on Ethan's testing confirmation. The current priority is RAG and related access work; retaining #72 here does not resume bug work.

Out of scope: Building the retrieval substrate (#125); this epic consumes it.

Working conventions

Filed tasks are direct sub-issues of this epic. GitHub Relationships record the existing hard prerequisites; the task table summarizes the work and existing project Size estimates. Keep each task independently reviewable and normally within one CODEOWNERS zone; explain deliberate cross-zone changes. Misty issues may carry several area labels; zones apply to PRs. Follow AGENTS.md and the affected service's CONTRIBUTING.md for implementation, tests, and documentation.

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di UTMIST/Misty

Tutte le issue di UTMIST/Misty

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.