Source support: bounded post-reply assessment runner
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 15/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- next.js, typescript
研究方向
This is blocked on #433 and depends on #431, #443 and the library, storage and judge issues, so do not start yet. Once unblocked, read node_modules/next/dist/docs for the after-response mechanism used by route handlers, then find the answer-generation call sites that #431 touches. Done means the reply is returned before assessment starts, and each bound and switch records skipped or failed as specified.
由索引模型根據 Issue 內容生成。
描述
Copied from DeadantCo/answerLoops#94 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/445 — originally opened by
@NathanTarberton 2026-10-23
Part of #437. Depends on the library, storage and judge issues, and on the answer-reference call sites (#431). Blocked on the cost and sampling decisions recorded in #433.
Problem
Assessment must never slow or change a reply, and must not grow an unbounded backlog or keep conversation text.
Scope
Reuses the answer id generated in #431; adds no new call-site plumbing beyond the post-reply hook.
- In-process, after the reply. When an answer is generated, build the snapshot while the inputs are still in memory, send the reply, then run the assessment with the platform's after-response hook. There is no durable queue and no stored inputs. If the process stops first, the answer stays "not assessed", and that is shown honestly. State per surface which mechanism is used. Surfaces that are not request handlers (the Discord bot process) use a guarded in-process fire-and-forget. Read the Next.js docs in node_modules/next/dist/docs before choosing the after-response mechanism for route handlers.
- Bounds. Per-workspace daily budget, a sampling rate, a per-call timeout, a cap on articles and claims per snapshot, and a cap on concurrent assessments per process. Anything over a bound is recorded as
skippedwith a reason, not dropped silently. - Switches. Off by default. Enabled per workspace and per surface (widget, ticket, Discord, Agent API). Excerpt storage is a separate per-workspace opt-in, off by default, independent of turning assessment on. The settings screen for the per-surface switches belongs to this issue (reading the columns #443 adds). Disabled and budget-limited answers count as not assessed.
- Idempotency. Keyed on answer id, article id and method version, so repeated callbacks do nothing.
- Failure isolation. Any error is caught, logged without answer text, recorded as
failed, and never reaches the customer or changes the reply, the confidence score or auto-deflection. - No retry of expired inputs. There is no re-run from storage. A manual re-assessment is only possible when the inputs still exist, which after the reply they do not; say so in the docs.
Acceptance criteria
- A reply's content and timing are identical with assessment on, off, failing or timing out (tests assert the reply is returned before the assessment starts).
- Over-budget, disabled and unsampled answers are recorded with the right reason and counted as not assessed.
- Repeating a completion callback creates no second assessment.
- Logs and stored rows contain no question or answer text beyond the approved bounded excerpts.
- Works on every enabled surface behind its own switch.
-
pnpm testandpnpm buildpass; docs updated (knowledge-base.mdx, pipeline and data-model pages).
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.
- 主要語言
- TypeScript
- 星號
- 0
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
DeadantCo/answerLoopsdev 的其他 Issue
-
Widget: match the chat bubble color to the rest of the widget可能已有人在做 @sethr07 今天認領。 未關閉enhancement frontend help wanted
難度 2/5 半天 新手友好度 75/100
DeadantCo/answerLoopsdev#68 · 3 則留言 ·
-
Widget: make the chat window fit on small phones可能已有人在做 @sethr07 今天認領。 未關閉enhancement frontend good first issue help wanted
難度 2/5 1-3 小時 新手友好度 70/100
DeadantCo/answerLoopsdev#67 · 9 則留言 ·
-
Add 'select all' option to Slack channel picker in Settings可能已有人在做 @sethr07 今天認領。 未關閉frontend good first issue
難度 2/5 1-3 小時 新手友好度 68/100
DeadantCo/answerLoopsdev#22 · 5 則留言 ·
-
enhancement frontend help wanted
難度 4/5 3-5 天 新手友好度 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
難度 4/5 3-5 天 新手友好度 45/100
DeadantCo/answerLoopsdev#140 ·
查看 DeadantCo/answerLoopsdev 的全部 Issue
相似的 Issue
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capture可能已有人在做 @jianyx1 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
volcengine/OpenViking#8354 ·
維護者通常 1 天內回覆
-
frontend: Job: Details do not show completed or failed indexes or the per-index backoff limits可能已有人在做 @arshil42 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
kubernetes-sigs/headlamp#8630 ·
維護者通常 1 天內回覆
-
bug from-app needs-triage
難度 2/5 1-3 小時 新手友好度 62/100
nightly-labs/openbot#15640 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 80/100
-
comp/desktop desktop/settings P2 tool/skills type/perf
難度 2/5 1-3 小時 新手友好度 75/100
NousResearch/hermes-agent#159515 ·
維護者通常 1 天內回覆