feat(ECR-034): AdminGovernance PrivacyRequest 只读并 Closed

PrivacyRequest catalog (000035) · Loop continuous.
This commit is contained in:
jackyu66git
2026-08-08 03:15:59 +08:00
parent aad6cdf7ea
commit 45e98f6872
26 changed files with 468 additions and 2 deletions
@@ -0,0 +1,23 @@
# Backend Design: ECR-034 PrivacyRequest
| ID | BD-2026-034 |
| Status | Approved |
| Coding | Loop authorized |
| Level | L2 |
| Migration | YES 000035 |
## Backend Change Boundary
```text
Domain: PrivacyRequest (read)
App: AdminHandler → admin.Service → AdminRepo
API: GET /admin/privacy/requests; GET /admin/privacy/requests/{id}
Permission: admin.privacy.read
Migration: 000035
```
## Out of boundary
隐私请求履约写 · soft-delete · UGC · 真支付
Rollback: down migration + remove routes/UI
+1
View File
@@ -2,6 +2,7 @@
## 2026-08-08
- **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 · 只读)
- **ECR-031 Closed**CrisisCare CrisisEventmigration 000032 · admin client · /crisis/events · 只读)
+8
View File
@@ -0,0 +1,8 @@
# CODE_REVIEW — ECR-034
**Verdict:** Approve → Closed
Date: 2026-08-08 · Loop continuous
- PrivacyRequest 只读;无 UGC/真支付
- Integration AC mapped · OpenAPI updated
+22
View File
@@ -0,0 +1,22 @@
ecr: ECR-034
capability: AdminGovernance
bounded_context: Admin_Auth_Audit
parent: WAVE0-FROZEN
predecessor: ECR-033
change:
type: additive
breaking_change: false
migration_required: true
compatibility_notes: >
Adds PrivacyRequest read catalog. Forbidden: UGC / real payment.
apis:
- method: GET
path: /api/v1/admin/privacy/requests
change: added
- method: GET
path: /api/v1/admin/privacy/requests/{id}
change: added
perms:
- code: admin.privacy.read
change: added
+15
View File
@@ -0,0 +1,15 @@
# ECR-034
**Title:** AdminGovernance · PrivacyRequest(只读薄切片)
**Status:** **Closed**
**Closed:** 2026-08-08Loop continuous
**Parent:** WAVE0-FROZEN · **Predecessor:** ECR-033 Closed
**Change Level:** L2
## Change
PrivacyRequest 只读 · migration 000035 · admin client · /privacy/requests
## Linked
Spec `ops-privacy-request.md` · BD-2026-034 · CONTRACT_DIFF/ECR-034.yaml · TEST_REPORT/ECR-034.md
@@ -0,0 +1,6 @@
# ENGINEERING_SPEC — ECR-034
1. migration 000035
2. AdminRepo/Service/Handler
3. OpenAPI + admin-h5
4. Integration · Closed
@@ -0,0 +1,3 @@
# HANDOFF — ECR-034 Architect → Engineer
Loop continuous · Approved + Coding. Migration 000035. Forbidden: UGC/真支付.
@@ -0,0 +1,3 @@
# HANDOFF — ECR-034 Engineer → Reviewer
TestAdminPrivacyRequests PASS · Ready for Closed.
@@ -0,0 +1,3 @@
# PRODUCT_SPEC — ECR-034
对齐 ops-privacy-request.md · Approved · Loop · L2 · PrivacyRequest 只读
+6
View File
@@ -0,0 +1,6 @@
# STATE — ECR-034
| Status | **Closed** |
| Phase | closed |
| Spec | ops-privacy-request.md |
| Updated | 2026-08-08 |
+12
View File
@@ -0,0 +1,12 @@
id: TASK-034-ECR034
ecr: ECR-034
title: AdminGovernance · PrivacyRequest(只读薄切片)
role: engineer
status: closed
change_level: L2
parent: WAVE0-FROZEN
predecessor: ECR-033
acceptance:
- Spec AC mapped
- PrivacyRequest read only
- No UGC / payment
+33
View File
@@ -0,0 +1,33 @@
# TEST_REPORT — ECR-034 PrivacyRequest
Date: 2026-08-08 · Loop continuous · commit: `PENDING`
## Commands
```bash
cd apps/api && go test ./internal/integration/ -run TestAdminPrivacyRequests -count=1
npm run build:admin
python3 scripts/ess-validate.py --phase review --ecr ECR-034
python3 scripts/ess-gate-check.py --ecr ECR-034
```
## Results
| Check | Result |
|-------|--------|
| TestAdminPrivacyRequests | 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
@@ -38,3 +38,4 @@
| ECR-031 | CrisisCare · CrisisEvent | **Closed** | Spec ops-crisis-event.md · BD-2026-031 · migration 000032 · TEST_REPORT · CODE_REVIEW · Loop continuous |
| 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 |
+1 -1
View File
@@ -55,4 +55,4 @@ Human 明文:**直接用 Loop,不用人工确认。**
| Done | Next |
|------|------|
| ECR-013A…033 Closed | **ECR-034** PrivacyRequest |
| ECR-013A…034 Closed | **ECR-035** StarConfig |