Files
digital-psychology/docs/BACKEND_DESIGN/BD-2026-021-ai-core-config.md
T
jackyu66gitandCursor 140b08ca01 feat(ECR-021): AICoreConfig SystemPrompt 只读并 Closed
新增 system_prompts 目录、admin.ai_config.read 与 admin-h5「AI」页;本切片不改运行时 Prompt、禁写发布/UGC/真支付。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 00:27:17 +08:00

582 B

Backend Design: ECR-021 AICoreConfig

| ID | BD-2026-021 | | Status | Approved | | Coding | Loop authorized | | Level | L2 | | Migration | YES 000022 |

Backend Change Boundary

Domain: SystemPrompt (read catalog)
App: AdminHandler → admin.Service → AdminRepo
API: GET /admin/ai/system-prompts[+/:id]
Permission: admin.ai_config.read
Migration: 000022 table + seed ask_default + perm
UI: admin-h5 /ai

Out of boundary

Prompt write/publish · Knowledge* · ToolDefinition · runtime engine swap · UGC · Payment

Rollback: down migration + remove routes/UI