generate_answer (MCP) should decline confidently answering bug-shaped questions
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DeadantCo/answerLoopsdev
-
Widget: match the chat bubble color to the rest of the widgetCó thể đã có người làm @sethr07 đã nhận hôm nay. Đang mởenhancement frontend help wanted
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 75/100
DeadantCo/answerLoopsdev#68 · 3 bình luận ·
-
Widget: make the chat window fit on small phonesCó thể đã có người làm @sethr07 đã nhận hôm nay. Đang mởenhancement frontend good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
DeadantCo/answerLoopsdev#67 · 9 bình luận ·
-
Add 'select all' option to Slack channel picker in SettingsCó thể đã có người làm @sethr07 đã nhận hôm nay. Đang mởfrontend good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
DeadantCo/answerLoopsdev#22 · 5 bình luận ·
-
enhancement frontend help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
DeadantCo/answerLoopsdev#140 ·
Tất cả issue của DeadantCo/answerLoopsdev
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verificationCó thể đã có người làm @roboclaw-bot đã nhận hôm nay. Đang mởclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
openclaw/openclaw#204323 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
virtue-initiative/virtue-initiative#953 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-area-label
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
fumicode/bublys-org#261 ·
Maintainer thường phản hồi trong vòng 12 ngày