feat(ECR-032): CrisisCare InterventionOutcome 只读并 Closed

InterventionOutcome catalog (000033) · Loop continuous.
This commit is contained in:
jackyu66git
2026-08-08 03:15:30 +08:00
parent 58eef7c02b
commit 447fb6da16
25 changed files with 457 additions and 1 deletions
@@ -0,0 +1,23 @@
# Backend Design: ECR-032 InterventionOutcome
| ID | BD-2026-032 |
| Status | Approved |
| Coding | Loop authorized |
| Level | L2 |
| Migration | YES 000033 |
## Backend Change Boundary
```text
Domain: InterventionOutcome (read)
App: AdminHandler → admin.Service → AdminRepo
API: GET /admin/crisis/interventions; GET /admin/crisis/interventions/{id}
Permission: admin.crisis.read
Migration: 000033
```
## Out of boundary
干预写回 · 医疗诊断 · UGC · 真支付
Rollback: down migration + remove routes/UI
+1
View File
@@ -2,6 +2,7 @@
## 2026-08-08
- **ECR-032 Closed**CrisisCare InterventionOutcomemigration 000033 · admin client · /crisis/interventions · 只读)
- **ECR-031 Closed**CrisisCare CrisisEventmigration 000032 · admin client · /crisis/events · 只读)
- **ECR-030 Closed**ContentSafety ModerationCasemigration 000031 · admin client · /content-safety/cases · 只读)
- **ECR-029 Closed**ContentSafety BlockPolicymigration 000030 · admin client · /content-safety/block-policies · 只读)
+8
View File
@@ -0,0 +1,8 @@
# CODE_REVIEW — ECR-032
**Verdict:** Approve → Closed
Date: 2026-08-08 · Loop continuous
- InterventionOutcome 只读;无 UGC/真支付
- Integration AC mapped · OpenAPI updated
+22
View File
@@ -0,0 +1,22 @@
ecr: ECR-032
capability: CrisisCare
bounded_context: Content_Safety
parent: WAVE0-FROZEN
predecessor: ECR-031
change:
type: additive
breaking_change: false
migration_required: true
compatibility_notes: >
Adds InterventionOutcome read catalog. Forbidden: UGC / real payment.
apis:
- method: GET
path: /api/v1/admin/crisis/interventions
change: added
- method: GET
path: /api/v1/admin/crisis/interventions/{id}
change: added
perms:
- code: admin.crisis.read
change: unchanged
+15
View File
@@ -0,0 +1,15 @@
# ECR-032
**Title:** CrisisCare · InterventionOutcome(只读薄切片)
**Status:** **Closed**
**Closed:** 2026-08-08Loop continuous
**Parent:** WAVE0-FROZEN · **Predecessor:** ECR-031 Closed
**Change Level:** L2
## Change
InterventionOutcome 只读 · migration 000033 · admin client · /crisis/interventions
## Linked
Spec `ops-intervention-outcome.md` · BD-2026-032 · CONTRACT_DIFF/ECR-032.yaml · TEST_REPORT/ECR-032.md
@@ -0,0 +1,6 @@
# ENGINEERING_SPEC — ECR-032
1. migration 000033
2. AdminRepo/Service/Handler
3. OpenAPI + admin-h5
4. Integration · Closed
@@ -0,0 +1,3 @@
# HANDOFF — ECR-032 Architect → Engineer
Loop continuous · Approved + Coding. Migration 000033. Forbidden: UGC/真支付.
@@ -0,0 +1,3 @@
# HANDOFF — ECR-032 Engineer → Reviewer
TestCrisisCareInterventions PASS · Ready for Closed.
@@ -0,0 +1,3 @@
# PRODUCT_SPEC — ECR-032
对齐 ops-intervention-outcome.md · Approved · Loop · L2 · InterventionOutcome 只读
+6
View File
@@ -0,0 +1,6 @@
# STATE — ECR-032
| Status | **Closed** |
| Phase | closed |
| Spec | ops-intervention-outcome.md |
| Updated | 2026-08-08 |
+12
View File
@@ -0,0 +1,12 @@
id: TASK-032-ECR032
ecr: ECR-032
title: CrisisCare · InterventionOutcome(只读薄切片)
role: engineer
status: closed
change_level: L2
parent: WAVE0-FROZEN
predecessor: ECR-031
acceptance:
- Spec AC mapped
- InterventionOutcome read only
- No UGC / payment
+33
View File
@@ -0,0 +1,33 @@
# TEST_REPORT — ECR-032 InterventionOutcome
Date: 2026-08-08 · Loop continuous · commit: `PENDING`
## Commands
```bash
cd apps/api && go test ./internal/integration/ -run TestCrisisCareInterventions -count=1
npm run build:admin
python3 scripts/ess-validate.py --phase review --ecr ECR-032
python3 scripts/ess-gate-check.py --ecr ECR-032
```
## Results
| Check | Result |
|-------|--------|
| TestCrisisCareInterventions | 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
@@ -36,3 +36,4 @@
| ECR-029 | ContentSafety · BlockPolicy | **Closed** | Spec ops-block-policy.md · BD-2026-029 · migration 000030 · TEST_REPORT · CODE_REVIEW · Loop continuous |
| ECR-030 | ContentSafety · ModerationCase | **Closed** | Spec ops-moderation-case.md · BD-2026-030 · migration 000031 · TEST_REPORT · CODE_REVIEW · Loop continuous |
| 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 |
+1 -1
View File
@@ -55,4 +55,4 @@ Human 明文:**直接用 Loop,不用人工确认。**
| Done | Next |
|------|------|
| ECR-013A…031 Closed | **ECR-032** InterventionOutcome |
| ECR-013A…032 Closed | **ECR-033** HandoffCase |