Review queue: capture unseen questions from Discord /ask and the Agent API
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- sql, typescript
Direzione di ricerca
Start with captureUnansweredQuestion in lib/kb/review-capture.ts, then the two uncovered paths: app/api/slash/ask/route.ts and generateAnswerCore in lib/agent/core.ts. The CHECK constraint on kb_review_items.source needs a migration, and the ReviewSource type and the label map in app/(dashboard)/kb/review-tab.tsx must match. Done when an uncovered /ask or generate_answer call creates or bumps a review item shown with its source, and non-Pro workspaces capture nothing. Land after #431, which hooks the same paths.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Copied from DeadantCo/answerLoops#69 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/366 — originally opened by
@NathanTarberton 2026-10-12
Summary
The review queue from #362 captures unseen questions from two places: ticket channels (via runAIAgent) and the website widget. Two other answer paths can also reply without any KB coverage but never feed the queue, so those gaps stay invisible.
Land together with, or after, #431: both hook the Discord /ask path and the Agent API generation path.
Paths not covered today
- Discord
/ask(app/api/slash/ask/route.ts): searches the KB (top 3) and answers, with no assessment step and no capture. - Agent API and MCP
generate_answer(generateAnswerCoreinlib/agent/core.ts): grounds on the top KB matches and grades its own answer, but does not callrunAIAgentand does not capture.
Why it matters
Agent and slash-command traffic is real customer demand. If those questions have no matching article they should surface in the same most-asked-first list as everything else, otherwise the queue under-counts exactly the gaps that automated agents hit most.
Considerations
- Source values.
kb_review_items.sourceis currently constrained to'ticket'or'widget'by a CHECK constraint. New sources (for example'slash'and'agent_api') need a migration to widen it, plus matching changes to theReviewSourcetype, the UI label map inapp/(dashboard)/kb/review-tab.tsx, and the docs. - Capture rules. Reuse
captureUnansweredQuestion(lib/kb/review-capture.ts): best-effort, Pro-gated, deduped, capped. Capture only when retrieval found nothing. - Privacy. Store the question and the answer only, never the caller's identity or API key. The Agent API is called by automated clients, so decide whether low-signal or machine-generated queries should be throttled or sampled before they reach a human reviewer.
- Volume. These paths can be called at much higher rates than a human channel. Confirm the 500-pending cap and the similarity dedupe are enough, or add a per-source cap.
- Latency. Capture must not delay the response; run it after the answer is sent as the other paths do.
Acceptance criteria
- An uncovered
/askquestion and an uncoveredgenerate_answercall each create or bump a review item - Items show their source in the Review tab
- No caller identity or credential is stored
- Non-Pro workspaces capture nothing
- Docs and tests updated
Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la 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 DeadantCo/answerLoopsdev
-
Widget: match the chat bubble color to the rest of the widgetForse già presa @sethr07 l’ha presa oggi. Apertaenhancement frontend help wanted
Difficoltà 2/5 Mezza giornata Idoneità per principianti 75/100
DeadantCo/answerLoopsdev#68 · 3 commenti ·
-
Widget: make the chat window fit on small phonesForse già presa @sethr07 l’ha presa oggi. Apertaenhancement frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DeadantCo/answerLoopsdev#67 · 9 commenti ·
-
Add 'select all' option to Slack channel picker in SettingsForse già presa @sethr07 l’ha presa oggi. Apertafrontend good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DeadantCo/answerLoopsdev#22 · 5 commenti ·
-
enhancement frontend help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
DeadantCo/answerLoopsdev#140 ·
Tutte le issue di DeadantCo/answerLoopsdev
Issue simili
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
lingdojo/kana-dojo#34545 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Blocklist addition requestApertablocklist addition
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
MetaMask/eth-phishing-detect#315455 ·
I maintainer di solito rispondono entro 1 giorno
-
area: telegram bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
griffinwork40/agent-afk#5275 ·
I maintainer di solito rispondono entro 1 giorno
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reachedApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getopenscreen/openscreen#1667 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
erkamyaman/rust-anything#371 ·
I maintainer di solito rispondono entro 1 giorno