Files
digital-psychology/docs/ECR/ECR-004-hygiene-followup.md
T
jackyu66gitandCursor 7034c92de7
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s
refactor(ECR-004): Synastry 再拆、Scale 测、Membership 守卫、OpenAPI 与 CI
压合盘贴线文件;补选答单测与 nil 守卫;对齐关键 OpenAPI schemas;加 GitHub Actions 门禁。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 21:06:14 +08:00

36 lines
1.1 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.
# ECR-004
**Title:** 结构卫生跟进(Synastry 再拆 · Scale 测 · Membership 守卫 · OpenAPI · CI
**Status:** Approved
**Date:** 2026-08-05
**Change Level:** L2(结构 / 契约文档 / 工程门禁;无产品扩行为)
## Change
1. 拆分贴线合盘:`useSynastryPage` / `SynastryLanding`
2. Scale 选答交互 vitest
3. `ReportHandler` Membership nil 守卫
4. OpenAPI 补关键 schemas(对齐 `packages/types`)并挂关键 path `$ref`
5. GitHub Actions CIbuild/test H5 · API unit · ESS 文档门禁
## Forbidden
- 改公共 URL / 计分算法 / 产品文案改版
- Docker-only 本地工作流
## Acceptance Criteria
- [x] SynastryLanding / useSynastryPage ≤300 行
- [x] ScalePage.spec 覆盖选答→提交
- [x] Membership nil → 500 信封而非 panic
- [x] OpenAPI 含 Profile / GrowthReport / MembershipMe / Scale* / AskQuota 等
- [x] `.github/workflows/ci.yml` 存在
- [x] `test:h5` · star/handler 相关 go test 绿
**Status:** coding/review PASS · awaiting Human commit
## Linked
- ENGINEERING_SPEC / TASK / STATE / TEST_REPORT under ECR-004
- Successor of ECR-001 residual nits