fix(firstleg): finalize loading before customs acceptance

This commit is contained in:
2026-08-24 12:52:23 +08:00
parent 4377a7acd9
commit 92dbeb1676
7 changed files with 41 additions and 10 deletions
@@ -110,7 +110,7 @@ test('default loading chain carries the three loading-list remarks contract', ()
assert.match(loading, /preservedRemarkItem\?\.warehouseRemark === warehouseRemark/)
})
test('default Admin HTTP entry carries evidence chain through settlement-aware PDA completion', () => {
test('default Admin HTTP entry completes settlement before customs consumes loaded slices', () => {
const focused = normalizeModuleOrder([
'merchant-qualification-fixture', 'orders', 'inbound-measurement',
'phase3-container-loading', 'phase3-loading', 'phase3-container-overview',
@@ -120,8 +120,8 @@ test('default Admin HTTP entry carries evidence chain through settlement-aware P
assert.deepEqual(focused, [
'merchant-qualification-fixture', 'orders', 'inbound-measurement',
'phase3-container-loading', 'phase3-loading', 'phase3-container-overview',
'phase3-pda-convergence', 'phase3-evidence-gate', 'phase3-customs',
'phase3-loading-finalize',
'phase3-pda-convergence', 'phase3-evidence-gate', 'phase3-loading-finalize',
'phase3-customs',
])
const loading = readFileSync(resolve(scriptsDir, 'admin-test-env-modules', 'phase3-loading.mjs'), 'utf8')