test(contract): home surface includes the shared self-profile save (gate run 1584)
Independent Staging Quality Gate / validate (push) Successful in 11m53s
Independent Staging Quality Gate / publish (push) Successful in 3m33s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
This commit is contained in:
Jesse_Chen
2026-09-29 01:54:34 +08:00
co-authored by Claude Opus 5.5
parent 4ed0e8e791
commit da989c15da
2 changed files with 9 additions and 0 deletions
@@ -112,3 +112,9 @@ JS 增量是首页 bundle 里的 `AccountDialogDeepLink`、`account-dialog-inten
执行方报告的上一单缺陷(中国出生地 caption 永远没有城市)核实属实:存储标签以「中国 · 」开头。Claude 在本分支补一个提交修复并记 BUG-1082。
偏离裁定:1–4 接受。遗留给产品:本人 `birth_time_status = confirmed` 时,改出生时间不会移动已确认的排盘时间(账户路由既有行为),需产品决定。
### 门禁 run 1584 红(`4ed0e8e7`)→ 补修
- 本机按门禁同参数复现:`run_quality_gate.py --profile quick --skip-yoga-logic --skip-frontend-runtime` 唯一失败 `tests/test_supabase_user_data_contract.py::test_profile_coordinates_are_persisted_with_database_bounds`——坐标写入的源码文本从 `use-profile-onboarding` 挪进了 `lib/self-profile-save.ts`,而 Python 侧的首页表面白名单 `HOME_SURFACE_FILES` 没有同步(前端 `tests/home-surface.ts` 已同步)。
- 修:`HOME_SURFACE_FILES` 加入 `lib/self-profile-save.ts`。断言本身未改(原值 / 新值 / 原因:白名单 8 → 9 个文件 / 断言不变 / 写入逻辑换了文件)。复跑同参数 quick 门禁:997 passed,`Quality gate passed.`;隐私制品扫描 pass。
- 教训:执行方没跑 Python quick 门禁(理由是「没改 Python 文件」),但 Python 合同测试会按源码文本读前端文件。前端改动也必须跑 quick 门禁。