generate_answer (MCP) should decline confidently answering bug-shaped questions
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 0
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DeadantCo/answerLoopsdev
-
Widget: match the chat bubble color to the rest of the widgetEvtl. vergeben @sethr07 hat das heute übernommen. Offenenhancement frontend help wanted
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 75/100
DeadantCo/answerLoopsdev#68 · 3 Kommentare ·
-
Widget: make the chat window fit on small phonesEvtl. vergeben @sethr07 hat das heute übernommen. Offenenhancement frontend good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
DeadantCo/answerLoopsdev#67 · 9 Kommentare ·
-
Add 'select all' option to Slack channel picker in SettingsEvtl. vergeben @sethr07 hat das heute übernommen. Offenfrontend good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
DeadantCo/answerLoopsdev#22 · 5 Kommentare ·
-
enhancement frontend help wanted
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
DeadantCo/answerLoopsdev#140 ·
Alle Issues in DeadantCo/answerLoopsdev
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
microsoft/playwright#44340 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
sindresorhus/eslint-plugin-unicorn#4045 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
CreadorLanda/yo#316 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
awslabs/social-messaging-agent-runtime-toolkit#232 ·
Maintainer antworten meist innerhalb von 3 Tagen