generate_answer (MCP) should decline confidently answering bug-shaped questions
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
Direção de pesquisa
Start by reading generateAnswerCore in lib/agent/core.ts to see the current generateText, assessAnswer and shouldAutoDeflect flow, then find triageMessage and the category branch that the ticket-category routing issue adds to the ticket pipeline. This issue is deliberately deferred until that ticket-side change lands, so confirm it exists before starting, and get sign-off on the extra classifier call per metered generate_answer invocation. Done means generate_answer returns an explicit bug-report/feature-request decline instead of a confident KB answer, covered by a test around the new branch.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Copied from DeadantCo/answerLoops#8 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/12 — originally opened by
@NathanTarberton 2026-07-28
Context
Follow-up scope question from the ticket-category routing issue (answer pipeline should route on ticket category rather than treating every ticket as answerable). That issue covers the ticket-based ingest pipeline (Discord/Slack/GitHub/Telegram/Email/create_ticket) — this issue covers the other MCP tool, generate_answer, which is a separate code path entirely.
The gap
generateAnswerCore (lib/agent/core.ts) takes a raw question string with no ticket and no triage/category step at all. It goes straight to generateText + KB context, then assessAnswer/shouldAutoDeflect. There's no signal today telling it "this looks like a bug report, don't confidently answer it."
Proposed fix
Add a triageMessage(question, orgId) call inside generateAnswerCore before generating, and apply the same category branch that issue adds to the ticket pipeline: for bug/feature_request-shaped questions, don't generate a confident KB answer — return an explicit "this sounds like a bug report / feature request, not something I can answer from documentation" response instead.
Cost tradeoff
This adds one classifier call (fast/cheap model, same one used for ticket triage) to every generate_answer invocation. Worth confirming that's an acceptable cost increase before implementing, since generate_answer is billed/metered per call.
Scope
Deferred out of the ticket-category routing issue on purpose — that issue is scoped to the ticket pipeline only. Do this as its own PR once the ticket-pipeline version has landed and the category-branch logic is proven out.
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 0
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DeadantCo/answerLoopsdev
-
Widget: match the chat bubble color to the rest of the widgetTalvez já em andamento @sethr07 assumiu hoje. Abertaenhancement frontend help wanted
Dificuldade 2/5 Meio dia Facilidade para iniciantes 75/100
DeadantCo/answerLoopsdev#68 · 3 comentários ·
-
Widget: make the chat window fit on small phonesTalvez já em andamento @sethr07 assumiu hoje. Abertaenhancement frontend good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
DeadantCo/answerLoopsdev#67 · 9 comentários ·
-
Add 'select all' option to Slack channel picker in SettingsTalvez já em andamento @sethr07 assumiu hoje. Abertafrontend good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
DeadantCo/answerLoopsdev#22 · 5 comentários ·
-
enhancement frontend help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
DeadantCo/answerLoopsdev#140 ·
Todas as issues de DeadantCo/answerLoopsdev
Issues semelhantes
-
chore
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
drydocs/meridian#1503 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
refactor review: high
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
1lck/Lithe-IDEA#2376 ·
Mantenedores costumam responder em até 1 dia
-
bug extension mcp
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
primer/primitives#1426 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
danielmiessler/LifeOS#2941 ·
Mantenedores costumam responder em até 4 dias