Files
danyang-match/docs/Phase-03-V11-Recovery-Completion-Report-2026-09-12.md
T

56 lines
2.4 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.
# Phase 03 V1.1 恢复复验 Completion Report
日期:2026-09-12
分支:`codex/ui-v11-fidelity`
## 结论
**Phase 03 COMPLETE / 项目整体继续 NO-GO。**
实名认证增量预留已按当前客户基线重新验证。人脸核验继续默认关闭,不实现自研识别,不保存人脸模板或向量。Phase 04 及以后未获准开始。
## 本阶段修复
- 移除小程序首页开发预览中将当前用户 `verified` 写死为 `true` 的行为。
- 未登录时现在直接进入登录引导且保持 `userState: null`;登录后的实名状态只能来自 `/api/v1/home` 的服务端数据。
- 新增行为契约测试,实际执行首页登录门禁并验证未登录状态不会请求首页接口或伪造实名状态。
## 数据与配置验证
- Flyway V016 保留 `verification_level`、`liveness_verification_status`、`verification_provider` 三项预留。
- `livenessVerification.enabled` 默认值为 `false`。
- 生产代码不存在 `face_embedding`、`face_template` 或自研人脸识别实现。
- 前端与生产代码未发现“100%真实”“官方婚姻状态认证”“官方单身认证”等绝对承诺。
## 自动化验证
| 检查 | 结果 |
|---|---|
| `IdentityVerificationTest` | 5/5 通过,0 failure,0 error |
| `MockIdentityVerificationProviderTest` | 4/4 通过,0 failure,0 error |
| `ui-tests/phase03-verification-contracts.mjs` | 1/1 通过 |
| `ui-tests/ui-contracts.mjs` | 通过 |
| Admin Web TypeScript | 通过 |
| Miniapp TypeScript | 通过 |
Maven 前台容器命令在 Codex 等待窗口内未正常回传控制台,但本轮生成的 Surefire 报告时间为 2026-09-12 15:03:57,并明确记录上述 9 项测试全部通过。
## 门禁核对
- [x] V1.0 实名 Provider、身份证加密/hash 回归通过。
- [x] 成年校验相关既有测试通过。
- [x] 实名状态不再由首页预览数据硬编码。
- [x] 人脸能力 Flag 默认关闭。
- [x] 未实现或保存人脸 embedding/template。
- [x] 前端无夸大实名与婚姻状态承诺。
## 未覆盖与风险
- Backend 全量 277 项历史回归债务不属于本阶段,仍未全绿。
- 真实生产实名认证 Provider 尚未选型;生产环境不得使用 Mock Provider。
- 本阶段未重新执行管理端 production build,只完成 TypeScript 检查。
## 下一阶段
Phase 04:Profile、Preference 与本地资格。进入前须由用户明确确认;不得自动进入。