refactor(ECR-001): 接入 ESS 并完成结构对齐 Phase A–E

绑定 ESS 双轨治理,拆分超大 H5 页与 Go 引擎,抽出 membership 服务,
并将 star/fortune 重命名为 outlook(JSON 双写兼容);同时修复 /psy API 代理与首页 + 菜单层级。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-05 17:51:40 +08:00
co-authored by Cursor
parent 583133dd09
commit 19d3cd5945
75 changed files with 4199 additions and 2505 deletions
@@ -0,0 +1,45 @@
# Handoff
**From:** ARCHITECT
**To:** ENGINEER
**ECR:** ECR-001
**State:** design → ready_for_engineeringPhase A/B 待领取)
**Date:** 2026-08-05
## Artifacts
- [x] ECR (Approved) — `docs/ECR/ECR-001-structural-realignment.md`
- [x] PRODUCT_SPEC — `docs/PRODUCT_SPEC/ECR-001-structural-realignment.md`
- [x] ENGINEERING_SPEC — `docs/ENGINEERING_SPEC/ECR-001-structural-realignment.md`
- [x] RISK_REVIEW — N/A
- [x] IMPLEMENTATION_PLAN / TEST_PLAN — `docs/HANDOFF/ECR-001-implementation-plan.md`
- [x] TRACEABILITY updated
- [ ] TEST_REPORT / CODE_REVIEW — Engineer per Phase
- [x] ADR-0007 — `.ai/adr/0007-ess-ai-dual-track.md`
## Restrictions — Do not modify
- 公共 API URL / envelope
- 用户可见文案与交互语义(除非子 ECR)
- 技术栈与 monorepo 边界
- 一次 PR 多个 Phase
- `internal/star/fortune` 破坏性重命名(归 ECR-002
## Goal for receiver
1. 领取 **Phase A**(文档对齐)或直接 **Phase B**H5 拆页,推荐先做最大痛点)。
2. 为该 Phase 建 `docs/TASKS/TASK-*-ECR001-phaseX.yaml``role: engineer`
3. 实现后:`ess-validate --phase coding` + 本仓 DoD Review Report。
4. 绿则更新 `docs/STATE/` owner → reviewer。
## Done for this hop
- [x] 架构诊断:全仓重写否决;分阶段结构对齐
- [x] ESS 工件齐备
- [x] 双轨 ADR Accepted
## References
- `docs/PROJECT_PROFILE.md`
- `.ai/coding.md` · `.ai/architecture.md` · `.ai/architecture/go-services.md`
- EvidenceH5/Go 行数勘察(2026-08-05