Files
digital-psychology/docs/ENGINEERING_SPEC/ECR-011-identity-home-profile.md
T
jackyu66gitandCursor 13860bf1ef
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s
feat(ECR-011): 昵称、首页贴士与档案 Self 唯一/合盘交叉校验
每账号仅一条 self(migration 40902);合盘只选 TA;账号昵称可改;首页穿衣/颜色/养生贴士。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 22:05:00 +08:00

59 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ENGINEERING_SPEC — ECR-011
**ECR:** ECR-011
**Status:** Approved
**Date:** 2026-08-12
**Approved:** 2026-08-12
## Goal
在补齐 ESS 门禁的前提下,交付三块 L2 行为:账号昵称、首页每日贴士、档案 Self 唯一与合盘交叉校验。
## Workstreams
### A — Profile integrity(优先合入)
| Item | Done when |
|------|-----------|
| migration 000017 | 无用户 COUNT(self)>1;索引存在 |
| Create self 409 | OpenAPI/handler 一致 |
| Synastry B 约束 | service 拒绝同账号 self |
| H5 ensureSelf/Other | 不再重复造 self/同名同生日 other |
| Spec profile R7R8 · star R11 | Active |
### B — Nickname
| Item | Done when |
|------|-----------|
| 词库 Random | 单测词表规模与格式 |
| PATCH /auth/me | 档案页可改;首页展示 |
| Spec account-auth R7R8 | Active |
### C — Home daily tips
| Item | Done when |
|------|-----------|
| GET /home/daily-tips | llm 或 fallback |
| HomeSelfCard | 穿衣/颜色/养生;无恐吓文案 |
| Spec home R5R6 | Active |
## Non-goals
- ECR-010 Closed(另轨 Reviewer
- 运营后台改动
## Implementation note(现状)
工作区 **已有 WIP 实现**。Engineer 任务:
1. Human Approve ECR-011 + BD-2026-011 后,以 Spec/BD 为权威对照 diff
2. 缺测补测;清理 `test-results/` 勿提交
3. 产出 TEST_REPORT + HANDOFF→reviewer
4. 不得再扩 Scope Forbidden 项
## DoD pointers
- `.ai/definition-of-done.md`
- `docs/PROJECT_RULES.md` L2 矩阵
- `python scripts/ess-validate.py --phase coding --ecr ECR-011`