docs(ECR-013B): 启动 AccountLifecycle 契约定义
Human Start Authorization:UserStatus 状态机 Spec/BD/contract_diff; 禁止 coding,待 Approve + coding Start Authorization。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
# PRODUCT_SPEC — ECR-013B AccountLifecycle
|
||||
|
||||
对齐 Feature Spec:`.ai/product/feature-spec/ops-account-lifecycle.md`
|
||||
Parent: **WAVE0-FROZEN** (`27f27a1`) · Predecessor: **ECR-013A Closed**
|
||||
Phase: **Contract Definition**(No Coding)
|
||||
|
||||
## Meta
|
||||
|
||||
| 字段 | 值 |
|
||||
|------|-----|
|
||||
| ECR | ECR-013B |
|
||||
| Status | Draft |
|
||||
| Capability (L0) | `AccountLifecycle` |
|
||||
| Bounded Context (L1) | `Identity_Profile` |
|
||||
| Change Level | L2 |
|
||||
|
||||
## L0 Capability
|
||||
|
||||
| 字段 | 内容 |
|
||||
|------|------|
|
||||
| Capability ID | `AccountLifecycle` |
|
||||
| Purpose | 可审计的用户账户启停/封禁,并阻断 C 端会话 |
|
||||
| Why now | status 字段无运营闭环;013A 已提供权限挂载点 |
|
||||
| Non-goals | soft-delete · UGC · 真支付 · Admin 账号启停深化 |
|
||||
|
||||
## L1 Bounded Context
|
||||
|
||||
见 `.ai/domain/boundary-rules.md` → `Identity_Profile`(owns UserStatus)。
|
||||
|
||||
## L2 Domain
|
||||
|
||||
`UserStatus` · `AccountStateTransition` — glossary 已登记;状态机见 Spec。
|
||||
|
||||
## L3 API
|
||||
|
||||
见 Spec §L3;`docs/CONTRACT_DIFF/ECR-013B.yaml`。
|
||||
|
||||
## L4 AC
|
||||
|
||||
Spec AC-F / AC-S / AC-P / AC-O — 实现轮 TEST_REPORT 必须引用 ID。
|
||||
|
||||
## Outcome(实现后)
|
||||
|
||||
1. 运营可迁移 UserStatus
|
||||
2. 非 active C 端拒绝
|
||||
3. 迁移可审计(AuditLog + Transition)
|
||||
|
||||
## Out of scope
|
||||
|
||||
soft-delete;Payment;Community;ECR-013C+。
|
||||
Reference in New Issue
Block a user