feat(server): 情報源の承認レイヤーを追加する - #1114
Draft
owk-owk130 wants to merge 7 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
Contributor
Coverage Report for server
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contributor
Coverage Report for web
File CoverageNo changed files found. |
Contributor
Coverage Report for shared
File CoverageNo changed files found. |
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 2。Issue #1077 / #1078 のコード部分。D1 の
knowledge_sourcesを Source Control Plane とし、承認された情報源だけが Vectorize に index されることを構造的に保証する。変更内容
knowledge_sourcesテーブル(source_path / canonical_url / source_hash / r2_etag / approval_status / 承認監査カラム / feat(knowledge): curated 区分を新設し検証用ナレッジを追加 #1083 の curated 契約カラム)indexKnowledgeSourceに全 index 経路を集約(R2 event / 全同期 / 管理画面の保存・アップロード・変換)GET /admin/knowledge/sources(一覧)/POST /sources/backfill(既存ナレッジの一括 approved 登録)/PATCH /sources/status(approve = 再 index / reject・disable = ベクトル削除まで)デプロイ手順(重要)
db:migrate→ deployPOST /admin/knowledge/sources/backfillを 1 回実行(既存 329 ファイルを approved 登録)local も同様:
db:migrate:local→ dev サーバー起動 → backfill。backfill 未実行のままPOST /syncを叩くと全ファイルが pending 登録されて index されないので注意。暫定事項
🤖 Generated with Claude Code
https://claude.ai/code/session_018BjNFvQjDzMwF8HaZHnJjP