codeforjapan / codeforjapan/workflow-interviewer
B4. concepts ai_caution 警告
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 30m
- Merged PRs (30d)
- 2
Description
親: #1
依存: #2 (A2), #5 (B2)
## 目的
KB の `concepts/` には `ai_caution: true` が付いた制度間競合概念(世帯/所得/扶養/住所など)があり、AIが自動推論してはならない領域として明示されている。抽出データにこれらの語が出現したら、UIで「この概念は制度ごとに定義が異なる」という注意を出す。
## 実装範囲
- `lib/kb/concepts.ts`: concepts/*.md の concept_name と ai_caution を読み込む索引を構築
- `lib/server/interview/extract.ts` 後処理: 抽出 steps/exceptions/connections のラベル中に concept_name のヒットを検出
- セッションに `cautionFlags[]` を追加(concept_id / matched_text / step_id 参照)
- UI(SessionView もしくは右ペイン)に注意バッジを表示
## 完了条件
- 例: 抽出文字列に「世帯」が出現すると、`CONCEPT-HOUSEHOLD` の ai_caution が UI に表示される
- バッジクリック等で concept ファイルの「現場で起きやすい問題」セクションをモーダル表示
## 関連
- `docs/kb/concepts/` 配下と `docs/kb/concepts/README.md`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.