Files
digital-psychology/.ai/product/feature-spec/ops-knowledge-source.md
T
jackyu66gitandCursor bf1ae8bc53 feat(ECR-023): AICoreConfig KnowledgeSource 只读并 Closed
运营可观测知识源目录(knowledge_sources + admin /ai),不含 Chunk/Embedding。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 01:49:58 +08:00

42 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Feature Spec: AICoreConfig · KnowledgeSourceOps · ECR-023
> Status: `Active`Loop continuous · **ECR-023 Closed**
> Parent: WAVE0-FROZEN · Predecessor: ECR-022 Closed
> Capability: `AICoreConfig` · BC: `Ask_Ops`
> 授权:`docs/WAVE0/LOOP_AUTHORIZATION.md`
## Non-goals
KnowledgeChunk / Embedding · 源文件上传 · 在线编辑发布 · ToolDefinition · 运行时 RAG 接线 · UGC · 真支付
## L2 Domain
| 概念 | 语义 |
|------|------|
| `KnowledgeSource` | code 唯一;source_kind ∈ {faq,policy,guide}active/system;本切片只读目录,不含 Chunk |
## L3 API
| Method | Path | 权限 | 语义 |
|--------|------|------|------|
| GET | `/admin/ai/knowledge-sources` | `admin.ai_config.read` | 列表 |
| GET | `/admin/ai/knowledge-sources/:id` | 同上 | 详情 |
## Migration
`000024``knowledge_sources` + 种子 `ask_grounding`(权限已由 000022 授予)
## L4 AC
| ID | Then |
|----|------|
| AC-F-01 | list 含 ask_grounding |
| AC-F-02 | get 返回 source_kind 合法 |
| AC-F-03 | 未知 id → 404 |
| AC-S-01 | 无 Admin → 401 |
| AC-S-02 | 无 ai_config.read → 403 |
| AC-P-01 | list &lt; 500ms |
| AC-O-01 | N/A 只读 |
contract_diff: `docs/CONTRACT_DIFF/ECR-023.yaml`