feat(ECR-035): ExploreConfig StarConfig 只读并 Closed

StarConfig catalog (000036) · Loop continuous.
This commit is contained in:
jackyu66git
2026-08-08 03:16:12 +08:00
parent 09b9c4daab
commit ebc93b6c7e
26 changed files with 464 additions and 2 deletions
@@ -0,0 +1,23 @@
# Backend Design: ECR-035 StarConfig
| ID | BD-2026-035 |
| Status | Approved |
| Coding | Loop authorized |
| Level | L2 |
| Migration | YES 000036 |
## Backend Change Boundary
```text
Domain: StarConfig (read)
App: AdminHandler → admin.Service → AdminRepo
API: GET /admin/explore/star-configs; GET /admin/explore/star-configs/{id}
Permission: admin.explore.read
Migration: 000036
```
## Out of boundary
配置写发布 · 引擎改分层 · UGC · 真支付
Rollback: down migration + remove routes/UI
+1
View File
@@ -2,6 +2,7 @@
## 2026-08-08
- **ECR-035 Closed**ExploreConfig StarConfigmigration 000036 · admin client · /explore/star-configs · 只读)
- **ECR-034 Closed**AdminGovernance PrivacyRequestmigration 000035 · admin client · /privacy/requests · 只读)
- **ECR-033 Closed**AskOperations HandoffCasemigration 000034 · admin client · /ask/handoffs · 只读)
- **ECR-032 Closed**CrisisCare InterventionOutcomemigration 000033 · admin client · /crisis/interventions · 只读)
+8
View File
@@ -0,0 +1,8 @@
# CODE_REVIEW — ECR-035
**Verdict:** Approve → Closed
Date: 2026-08-08 · Loop continuous
- StarConfig 只读;无 UGC/真支付
- Integration AC mapped · OpenAPI updated
+22
View File
@@ -0,0 +1,22 @@
ecr: ECR-035
capability: ExploreConfig
bounded_context: Explore_Reports
parent: WAVE0-FROZEN
predecessor: ECR-034
change:
type: additive
breaking_change: false
migration_required: true
compatibility_notes: >
Adds StarConfig read catalog. Forbidden: UGC / real payment.
apis:
- method: GET
path: /api/v1/admin/explore/star-configs
change: added
- method: GET
path: /api/v1/admin/explore/star-configs/{id}
change: added
perms:
- code: admin.explore.read
change: added
+15
View File
@@ -0,0 +1,15 @@
# ECR-035
**Title:** ExploreConfig · StarConfig(只读薄切片)
**Status:** **Closed**
**Closed:** 2026-08-08Loop continuous
**Parent:** WAVE0-FROZEN · **Predecessor:** ECR-034 Closed
**Change Level:** L2
## Change
StarConfig 只读 · migration 000036 · admin client · /explore/star-configs
## Linked
Spec `ops-star-config.md` · BD-2026-035 · CONTRACT_DIFF/ECR-035.yaml · TEST_REPORT/ECR-035.md
@@ -0,0 +1,6 @@
# ENGINEERING_SPEC — ECR-035
1. migration 000036
2. AdminRepo/Service/Handler
3. OpenAPI + admin-h5
4. Integration · Closed
@@ -0,0 +1,3 @@
# HANDOFF — ECR-035 Architect → Engineer
Loop continuous · Approved + Coding. Migration 000036. Forbidden: UGC/真支付.
@@ -0,0 +1,3 @@
# HANDOFF — ECR-035 Engineer → Reviewer
TestExploreStarConfigs PASS · Ready for Closed.
+3
View File
@@ -0,0 +1,3 @@
# PRODUCT_SPEC — ECR-035
对齐 ops-star-config.md · Approved · Loop · L2 · StarConfig 只读
+6
View File
@@ -0,0 +1,6 @@
# STATE — ECR-035
| Status | **Closed** |
| Phase | closed |
| Spec | ops-star-config.md |
| Updated | 2026-08-08 |
+12
View File
@@ -0,0 +1,12 @@
id: TASK-035-ECR035
ecr: ECR-035
title: ExploreConfig · StarConfig(只读薄切片)
role: engineer
status: closed
change_level: L2
parent: WAVE0-FROZEN
predecessor: ECR-034
acceptance:
- Spec AC mapped
- StarConfig read only
- No UGC / payment
+33
View File
@@ -0,0 +1,33 @@
# TEST_REPORT — ECR-035 StarConfig
Date: 2026-08-08 · Loop continuous · commit: `PENDING`
## Commands
```bash
cd apps/api && go test ./internal/integration/ -run TestExploreStarConfigs -count=1
npm run build:admin
python3 scripts/ess-validate.py --phase review --ecr ECR-035
python3 scripts/ess-gate-check.py --ecr ECR-035
```
## Results
| Check | Result |
|-------|--------|
| TestExploreStarConfigs | PASS |
| build:admin | PASS |
| ess-validate review | PASS |
| ess-gate-check | PASS |
## AC
| ID | Evidence |
|----|----------|
| AC-F-01 | list seed/empty ok |
| AC-F-02 | get 200 |
| AC-F-03 | 未知 id → 404 |
| AC-S-01 | 401 |
| AC-S-02 | 403 |
| AC-P-01 | list < 500ms |
| AC-O-01 | N/A 只读 |
+1
View File
@@ -39,3 +39,4 @@
| ECR-032 | CrisisCare · InterventionOutcome | **Closed** | Spec ops-intervention-outcome.md · BD-2026-032 · migration 000033 · TEST_REPORT · CODE_REVIEW · Loop continuous |
| ECR-033 | AskOperations · HandoffCase | **Closed** | Spec ops-handoff-case.md · BD-2026-033 · migration 000034 · TEST_REPORT · CODE_REVIEW · Loop continuous |
| ECR-034 | AdminGovernance · PrivacyRequest | **Closed** | Spec ops-privacy-request.md · BD-2026-034 · migration 000035 · TEST_REPORT · CODE_REVIEW · Loop continuous |
| ECR-035 | ExploreConfig · StarConfig | **Closed** | Spec ops-star-config.md · BD-2026-035 · migration 000036 · TEST_REPORT · CODE_REVIEW · Loop continuous |
+1 -1
View File
@@ -55,4 +55,4 @@ Human 明文:**直接用 Loop,不用人工确认。**
| Done | Next |
|------|------|
| ECR-013A…034 Closed | **ECR-035** StarConfig |
| ECR-013A…035 Closed | **ECR-036** RhythmConfig |