chore(ECR-001,ECR-003): 关闭结构对齐并清理 outlook JSON 旧键

正式关闭 ECR-001/002;删除 fortune 双写与 lucky 字段,H5 改读 outlook/boost。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-05 20:39:34 +08:00
co-authored by Cursor
parent 69fa1b85d6
commit 67701d1f7b
22 changed files with 286 additions and 133 deletions
+57
View File
@@ -0,0 +1,57 @@
# ECR-003
**Title:** 星座 JSON 键卫生(删 fortune 兼容键 · lucky→boost
**Status:** Approved
**Date:** 2026-08-05
**Change Level:** L2
## Change
1. API Summary/Detail **仅**输出 `outlook` / `outlook_detail`,删除 `fortune` / `fortune_detail` 双写。
2. Period 字段 `lucky` 重命名为 `boost``json:"boost"`);内容语义不变(颜色/数字提示等)。
3. H5 / 单测改读 `summary.outlook``boost`;UI「幸运」改为「今日提示」(非恐吓、非吉凶字段名)。
4. 周期 `label` 文案去掉「吉/大吉」等偏恐吓标签,改为探索向能量词(高能/顺畅/偏顺/平稳/宜缓行)。
## Motivation
- ECR-002 完成包名与双写;兼容期结束。
- `.ai/architecture/go-services.md` 禁止 JSON 字段名 `fortune` / `luck*`
- 愈心谷 lexicon:运势可用;字段名与恐吓式吉凶标签需对齐。
## Scope
### Allowed
- `internal/star/engine.go` · `internal/star/outlook/*`
- H5 composables / StarFortunePanel / specs 读键迁移
- ESS 文档 · go-services · TRACEABILITY
### Forbidden
- 改计分算法数值逻辑(seed/score 公式)
- 改公共 URL / envelope
- 扩产品功能
## Acceptance Criteria
- [x] Summary 无 `fortune` 键;有 `outlook`
- [x] Detail 无 `fortune_detail`;有 `outlook_detail`
- [x] Period JSON 无 `lucky`;有 `boost`
- [x] H5 星座/报告运势面板读 `outlook` + 展示 `boost`
- [x] `go test ./internal/star/...` · `npm run test:h5` · 相关 e2e 绿
- [x] go-services / TRACEABILITY / STATE 更新
**Status note:** 实现与 Review PASS;待 Human commit 后标 Closed。
## Rollback
revert 本 ECR commit;可临时恢复双写。
## Risk Review
N/A(非交易域)
## Linked
- Parent residual of ECR-001 / ECR-002
- ENGINEERING_SPEC: `docs/ENGINEERING_SPEC/ECR-003-outlook-json-hygiene.md`
- TASK: `docs/TASKS/TASK-20260805-ECR003.yaml`
- STATE: `docs/STATE/ECR-003.md`