test(firstleg): cover phase3 outbound contracts

This commit is contained in:
2026-08-08 22:42:49 +08:00
parent 66d1aa0d3d
commit 9b88fb4b9e
12 changed files with 810 additions and 50 deletions
@@ -0,0 +1,10 @@
import { registerPendingContract } from './_phase3-pending-contract.mjs'
export async function run(context) {
registerPendingContract(context, {
module: 'phase3-evidence-gate', scenario: 'loading-evidence-gate', name: '四步照片与铅封证据完整性门禁',
reason: '本轮真实 HTTP 上传并绑定 SEAL 文件即可进入 LOADED;服务端未要求 PHOTO_STEP_1..4 齐全,也未将柜次级 PDA 复核结果作为前置', category: 'contract-gap',
fixtures: ['phase3Loading', 'phase3ContainerLoading'], contractSource: '待装柜证据完整性门禁 Controller/DTO/OpenAPI',
assertions: ['四步照片和铅封均绑定本轮柜次', '缺任一证据时完成装柜被拒绝', '全部证据与 PDA 复核齐备后幂等完成'],
})
}