feat(ECR-023): AICoreConfig KnowledgeSource 只读并 Closed

运营可观测知识源目录(knowledge_sources + admin /ai),不含 Chunk/Embedding。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-08 01:49:58 +08:00
co-authored by Cursor
parent dd4d644eaa
commit bf1ae8bc53
25 changed files with 555 additions and 3 deletions
@@ -0,0 +1,24 @@
# Backend Design: ECR-023 KnowledgeSource
| ID | BD-2026-023 |
| Status | Approved |
| Coding | Loop authorized |
| Level | L2 |
| Migration | YES 000024 |
## Backend Change Boundary
```text
Domain: KnowledgeSource (read catalog only)
App: AdminHandler → admin.Service → AdminRepo
API: GET /admin/ai/knowledge-sources[+/:id]
Permission: admin.ai_config.read (reuse; no new perm)
Migration: 000024 knowledge_sources + seed ask_grounding
UI: admin-h5 /ai KnowledgeSource panel
```
## Out of boundary
KnowledgeChunk · Embedding · upload/publish · ToolDefinition · UGC · Payment · runtime RAG wiring
Rollback: down migration + remove routes/UI panel