feat(ECR-033): AskOperations HandoffCase 只读并 Closed
HandoffCase catalog (000034) · Loop continuous.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Backend Design: ECR-033 HandoffCase
|
||||
|
||||
| ID | BD-2026-033 |
|
||||
| Status | Approved |
|
||||
| Coding | Loop authorized |
|
||||
| Level | L2 |
|
||||
| Migration | YES 000034 |
|
||||
|
||||
## Backend Change Boundary
|
||||
|
||||
```text
|
||||
Domain: HandoffCase (read)
|
||||
App: AdminHandler → admin.Service → AdminRepo
|
||||
API: GET /admin/ask/handoffs; GET /admin/ask/handoffs/{id}
|
||||
Permission: admin.ask.read
|
||||
Migration: 000034
|
||||
```
|
||||
|
||||
## Out of boundary
|
||||
|
||||
转人工写流 · 顾问执业 · UGC · 真支付
|
||||
|
||||
Rollback: down migration + remove routes/UI
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
## 2026-08-08
|
||||
|
||||
- **ECR-033 Closed**:AskOperations HandoffCase(migration 000034 · admin client · /ask/handoffs · 只读)
|
||||
- **ECR-032 Closed**:CrisisCare InterventionOutcome(migration 000033 · admin client · /crisis/interventions · 只读)
|
||||
- **ECR-031 Closed**:CrisisCare CrisisEvent(migration 000032 · admin client · /crisis/events · 只读)
|
||||
- **ECR-030 Closed**:ContentSafety ModerationCase(migration 000031 · admin client · /content-safety/cases · 只读)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# CODE_REVIEW — ECR-033
|
||||
|
||||
**Verdict:** Approve → Closed
|
||||
|
||||
Date: 2026-08-08 · Loop continuous
|
||||
|
||||
- HandoffCase 只读;无 UGC/真支付
|
||||
- Integration AC mapped · OpenAPI updated
|
||||
@@ -0,0 +1,22 @@
|
||||
ecr: ECR-033
|
||||
capability: AskOperations
|
||||
bounded_context: Ask_Ops
|
||||
parent: WAVE0-FROZEN
|
||||
predecessor: ECR-032
|
||||
change:
|
||||
type: additive
|
||||
breaking_change: false
|
||||
migration_required: true
|
||||
compatibility_notes: >
|
||||
Adds HandoffCase read catalog. Forbidden: UGC / real payment.
|
||||
|
||||
apis:
|
||||
- method: GET
|
||||
path: /api/v1/admin/ask/handoffs
|
||||
change: added
|
||||
- method: GET
|
||||
path: /api/v1/admin/ask/handoffs/{id}
|
||||
change: added
|
||||
perms:
|
||||
- code: admin.ask.read
|
||||
change: unchanged
|
||||
@@ -0,0 +1,15 @@
|
||||
# ECR-033
|
||||
|
||||
**Title:** AskOperations · HandoffCase(只读薄切片)
|
||||
**Status:** **Closed**
|
||||
**Closed:** 2026-08-08(Loop continuous)
|
||||
**Parent:** WAVE0-FROZEN · **Predecessor:** ECR-032 Closed
|
||||
**Change Level:** L2
|
||||
|
||||
## Change
|
||||
|
||||
HandoffCase 只读 · migration 000034 · admin client · /ask/handoffs
|
||||
|
||||
## Linked
|
||||
|
||||
Spec `ops-handoff-case.md` · BD-2026-033 · CONTRACT_DIFF/ECR-033.yaml · TEST_REPORT/ECR-033.md
|
||||
@@ -0,0 +1,6 @@
|
||||
# ENGINEERING_SPEC — ECR-033
|
||||
|
||||
1. migration 000034
|
||||
2. AdminRepo/Service/Handler
|
||||
3. OpenAPI + admin-h5
|
||||
4. Integration · Closed
|
||||
@@ -0,0 +1,3 @@
|
||||
# HANDOFF — ECR-033 Architect → Engineer
|
||||
|
||||
Loop continuous · Approved + Coding. Migration 000034. Forbidden: UGC/真支付.
|
||||
@@ -0,0 +1,3 @@
|
||||
# HANDOFF — ECR-033 Engineer → Reviewer
|
||||
|
||||
TestAskOpsHandoffs PASS · Ready for Closed.
|
||||
@@ -0,0 +1,3 @@
|
||||
# PRODUCT_SPEC — ECR-033
|
||||
|
||||
对齐 ops-handoff-case.md · Approved · Loop · L2 · HandoffCase 只读
|
||||
@@ -0,0 +1,6 @@
|
||||
# STATE — ECR-033
|
||||
|
||||
| Status | **Closed** |
|
||||
| Phase | closed |
|
||||
| Spec | ops-handoff-case.md |
|
||||
| Updated | 2026-08-08 |
|
||||
@@ -0,0 +1,12 @@
|
||||
id: TASK-033-ECR033
|
||||
ecr: ECR-033
|
||||
title: AskOperations · HandoffCase(只读薄切片)
|
||||
role: engineer
|
||||
status: closed
|
||||
change_level: L2
|
||||
parent: WAVE0-FROZEN
|
||||
predecessor: ECR-032
|
||||
acceptance:
|
||||
- Spec AC mapped
|
||||
- HandoffCase read only
|
||||
- No UGC / payment
|
||||
@@ -0,0 +1,33 @@
|
||||
# TEST_REPORT — ECR-033 HandoffCase
|
||||
|
||||
Date: 2026-08-08 · Loop continuous · commit: `PENDING`
|
||||
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
cd apps/api && go test ./internal/integration/ -run TestAskOpsHandoffs -count=1
|
||||
npm run build:admin
|
||||
python3 scripts/ess-validate.py --phase review --ecr ECR-033
|
||||
python3 scripts/ess-gate-check.py --ecr ECR-033
|
||||
```
|
||||
|
||||
## Results
|
||||
|
||||
| Check | Result |
|
||||
|-------|--------|
|
||||
| TestAskOpsHandoffs | 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 只读 |
|
||||
@@ -37,3 +37,4 @@
|
||||
| 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 |
|
||||
| ECR-033 | AskOperations · HandoffCase | **Closed** | Spec ops-handoff-case.md · BD-2026-033 · migration 000034 · TEST_REPORT · CODE_REVIEW · Loop continuous |
|
||||
|
||||
@@ -55,4 +55,4 @@ Human 明文:**直接用 Loop,不用人工确认。**
|
||||
|
||||
| Done | Next |
|
||||
|------|------|
|
||||
| ECR-013A…032 Closed | **ECR-033** HandoffCase |
|
||||
| ECR-013A…033 Closed | **ECR-034** PrivacyRequest |
|
||||
|
||||
Reference in New Issue
Block a user