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:
@@ -1,41 +1,27 @@
|
||||
# ECR-002
|
||||
|
||||
**Title:** 星座引擎包名卫生(fortune → outlook)
|
||||
**Status:** Approved
|
||||
**Status:** Closed
|
||||
**Date:** 2026-08-05
|
||||
**Closed:** 2026-08-05
|
||||
**Change Level:** L2
|
||||
|
||||
## Change
|
||||
|
||||
将 `internal/star/fortune` 重命名为 `internal/star/outlook`;Summary/Detail 双写 `outlook` / `outlook_detail`,并保留旧键 `fortune` / `fortune_detail` 兼容期。
|
||||
|
||||
## Motivation
|
||||
|
||||
`.ai/architecture/go-services.md` 禁止 `fortune` 包名;与 lexicon 对齐。用户要求纳入 ECR-001 Phase E。
|
||||
|
||||
## Scope
|
||||
|
||||
### Allowed
|
||||
- 包重命名、import 更新、双写 JSON 键
|
||||
- 文档 / TRACEABILITY
|
||||
|
||||
### Forbidden
|
||||
- 删除旧 JSON 键(须另开迁移 ECR)
|
||||
- 改计分算法 / 文案语义
|
||||
- 改公共 URL
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [x] 无 `internal/star/fortune` 目录
|
||||
- [x] `go test ./internal/star/...` 绿
|
||||
- [x] 旧键 `fortune` 仍存在(compat)
|
||||
- [x] 旧键 `fortune` 仍存在(compat)— **兼容期结束见 ECR-003**
|
||||
- [x] 新键 `outlook` 存在
|
||||
|
||||
## Rollback
|
||||
revert 包名与双写 commit
|
||||
## Successor
|
||||
|
||||
## Risk Review
|
||||
N/A
|
||||
**ECR-003**:删除 `fortune`/`fortune_detail` 旧键;`lucky` → `boost`;H5 改读 `outlook`。
|
||||
|
||||
## Linked
|
||||
|
||||
- Parent: ECR-001 Phase E
|
||||
- TRACEABILITY: Yes
|
||||
- TRACEABILITY: Closed(compat 移交 ECR-003)
|
||||
|
||||
Reference in New Issue
Block a user