feat: HIL レビュー画面を追加する - #1116
Draft
owk-owk130 wants to merge 10 commits into
Draft
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018BjNFvQjDzMwF8HaZHnJjP
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018BjNFvQjDzMwF8HaZHnJjP
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018BjNFvQjDzMwF8HaZHnJjP
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018BjNFvQjDzMwF8HaZHnJjP
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018BjNFvQjDzMwF8HaZHnJjP
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018BjNFvQjDzMwF8HaZHnJjP
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018BjNFvQjDzMwF8HaZHnJjP
Contributor
Coverage Report for server
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contributor
Coverage Report for shared
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014kkNoEdkn1kVK4La79XFpc
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014kkNoEdkn1kVK4La79XFpc
Contributor
Coverage Report for web
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contributor
Coverage Report for widget
File CoverageNo changed files found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
ナレッジ HIL 基盤(計画:
.brain/plans/knowledge-hil-foundation.md)の PR 3。Issue #1079 / #1080 のコード部分。「答えられなかった・評価が悪かった回答」を管理画面で根拠ごと確認し、3 択で判断できるようにする。
変更内容
server
review_decisionsテーブル + migration 0030(一覧クエリ用にllm_usage(thread_id, turn_index, agent)とmessage_feedback(message_id)の index も追加)GET /admin/review: 要確認一覧。retrieval trace を answer_run 単位に集約し、3 シグナル(bad 評価 / ナレッジ検索 0 件 / Web フォールバック)で抽出。LLM 分類はしないGET /admin/review/{answerRunId}: 質問・回答(memory から復元、voice は決定的 messageId を再構築)・検索の根拠(query / hits / score)・ユーザー評価・判断履歴POST /admin/review/{answerRunId}/decision: 問題なし / 誤り / 情報源不足 を記録。bad 評価があれば解決済みにするrequireRole("admin")(feedback 管理と同じ)web
その他
.gitignoreのreview/をルート直下限定に修正(web の feature dircomponents/review/が ignore されていた)既知の制約
🤖 Generated with Claude Code
https://claude.ai/code/session_018BjNFvQjDzMwF8HaZHnJjP