feat(ECR-021): AICoreConfig SystemPrompt 只读并 Closed

新增 system_prompts 目录、admin.ai_config.read 与 admin-h5「AI」页;本切片不改运行时 Prompt、禁写发布/UGC/真支付。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-08 00:27:17 +08:00
co-authored by Cursor
parent 22f9e358ae
commit 140b08ca01
33 changed files with 649 additions and 5 deletions
+32
View File
@@ -0,0 +1,32 @@
# TEST_REPORT — ECR-021 AICoreConfig
Date: 2026-08-08 · Loop continuous · commit: (pending)
## Commands
```bash
cd apps/api && go test ./internal/integration/ -run TestAICoreSystemPrompts -count=1
npm run build:admin
python3 scripts/ess-validate.py --phase review --ecr ECR-021
python3 scripts/ess-gate-check.py --ecr ECR-021
```
## Results
| Check | Result |
|-------|--------|
| TestAICoreSystemPrompts | PASS |
| build:admin | PASS |
| ess-validate review | PASS |
## AC
| ID | Evidence |
|----|----------|
| AC-F-01 | list 含 ask_default |
| AC-F-02 | get body 非空 |
| AC-F-03 | 未知 id → 404 |
| AC-S-01 | 无 token → 401 |
| AC-S-02 | 仅 users.read → 403 |
| AC-P-01 | list &lt; 500ms |
| AC-O-01 | N/A 只读 |