test-acceptance.md
1.98 KB
项目知识图谱迁移验收
| ID | 验收项 | Pre | Post |
|---|---|---|---|
| KG-001 | migration readiness contract | pass | pass |
| KG-002 | existing merchant search contract | fail: park name is not searched | pass |
| KG-003 | knowledge graph fixture contracts | absent | pass |
| KG-004 | all 71 app pages are indexed | probe only | pass |
| KG-005 | generated artifacts are byte-stable | absent | pass |
| KG-006 | affected selection escalates shared/cross-domain/unresolved changes | absent | pass |
| KG-007 | Live profiles contain no credential literals and default to skipped | absent | pass |
| KG-008 | full offline suite | blocked by KG-002 | pass |
| KG-009 | knowledge artifacts remain outside upload package | docs/scripts/tests pass; .agents absent | pass |
最终证据(2026-08-21)
- 知识图谱与治理合同:34 项通过,0 失败。
- 生成稳定性:
docs/generated与组件索引共 12 个文件,连续两次构建的 SHA-256 完全一致;最终图谱包含 4,218 个节点、8,097 条边、71 个页面和 88 个未解析项。 - 全仓离线套件:
npm test退出码为 0;订单生命周期单独回归为 82 项通过、4 个 Live 用例默认跳过。 - Live 安全合同:开发 profile 仅允许登录冒烟,测试 profile 写入要求
LIVE_ALLOW_WRITES=1;登录冒烟停在账号列表,不选择园区、门店或场景。 - 公共查询:
createOrder返回 337 个直接命中和 1,360 条证据;packageWorkspace返回 1,158 个直接命中和 2,910 条证据。 - 上传边界:
docs、scripts、tests、.agents均被排除;Node 24.19 下上传 guard 扫描 236 个文件,依赖、路由和 API 闭包均无缺口。 - 凭据边界:从设计基线起的全部迁移差异通过通用 11 位手机号模式扫描,未发现凭据字面量。
- 当前项目没有参考项目的
constructionFlow.mjs;本次未引入该独有施工 Live 业务,只为现有撤销单与改单流程增加逆序、脱敏的尽力清理。