This commit is contained in:
2026-08-24 19:58:35 +08:00
parent 9e0f41e78b
commit c93fdc44d5
23 changed files with 965 additions and 313 deletions
@@ -627,3 +627,14 @@ test('loaded boundary acceptance proves evidence and transport immutability with
assert.match(finalize, /afterHistorySignature === historySignature/)
assert.match(finalize, /afterPlanSignature === immutablePlanSignature/)
})
test('finalize publishes a current-marker producer correlation for cross-region verification', () => {
const finalize = source('./phase3-loading-finalize.mjs')
assert.match(finalize, /const producer = \{/)
assert.match(finalize, /createdResources\.phase3LoadingCompletedProducer = producer/)
assert.match(finalize, /marker: context\.context\?\.phase4ProducerMatrixMarker \|\| context\.marker/)
assert.match(finalize, /eventType: 'FIRST_LEG_LOADING_PLAN_COMPLETED'/)
assert.match(finalize, /eventKey: `FIRSTLEG_LOADING_COMPLETED:\$\{loadingPlanId\}:\$\{tenantId\}:2`/)
assert.match(finalize, /sourceStatus: 'LOADED'/)
assert.match(finalize, /PRODUCED_IN_COMPLETE_TRANSACTION_PENDING_BRIDGE_CONSUMER_HTTP/)
})