fix: retain scanned carton traceability in measurement drafts

This commit is contained in:
2026-09-02 17:57:35 +08:00
parent 2a0f942234
commit 6296f032f0
6 changed files with 155 additions and 12 deletions
@@ -90,6 +90,14 @@ test('phase-four producer variants restore the primary orchestration fixture aft
]) assert.match(createdKeys, new RegExp(`'${key}'`))
})
test('every cross-region producer keeps an isolated A0 occupancy for PDA snapshot invalidation', async () => {
const source = await import('node:fs/promises').then((fs) => fs.readFile(
new URL('../admin-test-env-acceptance.mjs', import.meta.url), 'utf8'))
const variantStart = source.indexOf('async runPhase4ProducerVariant')
const fixtureCall = source.slice(variantStart, source.indexOf('const loading =', variantStart))
assert.match(fixtureCall, /preparePhase3LoadingFixture\('', true\)/)
})
test('contract covers dual audience, canonical 403, both event directions and diagnostics', () => {
for (const token of [
'context.token)', 'context.overseasToken)', 'cn-overseas-event-not-delivered',