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
View File
@@ -0,0 +1,27 @@
# docs/TASKS/TASK-20260805-ECR001-phaseA-E.yaml
task_id: ECR-001-phaseA-E
role: engineer
phase: coding
tool: cursor
input:
- docs/ECR/ECR-001-structural-realignment.md
- docs/ENGINEERING_SPEC/ECR-001-structural-realignment.md
- docs/HANDOFF/ECR-001-implementation-plan.md
output:
- apps/api/internal/service/membership/*
- apps/api/internal/relation/*
- apps/api/internal/star/*
- docs/ECR/ECR-002-fortune-hygiene.md
- docs/TEST_REPORT/ECR-001-phaseA-E.md
forbidden:
- redesign_scope
- behavior_change
- api_url_change
next_agent: reviewer
notes: >
A docs finalize; C membership extract; D engine split;
E internal fortune package rename with JSON key compat (ECR-002).
@@ -0,0 +1,31 @@
# docs/TASKS/TASK-20260805-ECR001-phaseB.yaml
task_id: ECR-001-phaseB
role: engineer
phase: coding
tool: cursor
input:
- docs/ECR/ECR-001-structural-realignment.md
- docs/ENGINEERING_SPEC/ECR-001-structural-realignment.md
- docs/HANDOFF/ECR-001-architect-to-engineer.md
- docs/HANDOFF/ECR-001-implementation-plan.md
- .ai/coding.md
output:
- apps/user-h5/src/composables/*
- apps/user-h5/src/components/home/*
- apps/user-h5/src/components/synastry/*
- apps/user-h5/src/pages/HomePage.vue
- apps/user-h5/src/pages/SynastryPage.vue
- docs/TEST_REPORT/ECR-001-phaseB.md
- docs/HANDOFF/ECR-001-engineer-to-reviewer.md
forbidden:
- redesign_scope
- behavior_change
- api_contract_change
next_agent: reviewer
notes: >
Phase B only: split HomePage + SynastryPage to ≤400 lines each.
No copy/UX/API changes. Other oversized pages deferred.
+30
View File
@@ -0,0 +1,30 @@
# Copy to project: docs/TASKS/TASK-20260805-ECR001.yaml
task_id: ECR-001
role: architect
phase: design
tool: cursor
input:
- docs/PROJECT_PROFILE.md
- docs/PROJECT_RULES.md
- docs/TECH_STACK.md
- .ai/architecture.md
- .ai/architecture/go-services.md
- .ai/coding.md
- .ai/product/p1-status.md
output:
- docs/ECR/ECR-001-structural-realignment.md
- docs/PRODUCT_SPEC/ECR-001-structural-realignment.md
- docs/ENGINEERING_SPEC/ECR-001-structural-realignment.md
- docs/HANDOFF/ECR-001-implementation-plan.md
- docs/HANDOFF/ECR-001-architect-to-engineer.md
- .ai/adr/0007-ess-ai-dual-track.md
forbidden:
- code_change
next_agent: engineer
notes: >
Full rewrite rejected. Engineer picks Phase A or B first;
one Phase per Task/PR. Phase E requires ECR-002.