fix(shipping-notice): 修复流程门禁审计与库存匹配同步

This commit is contained in:
hugo committed 2026-09-14 18:37:17 +08:00
1 parent fbca0b485c
commit 9745bb78a7
14 files changed
+832 -154

No files matched your search

@@ -518,22 +518,8 @@ def test_upstream_invalidation_only_targets_dependents(gate_execution):
"""库存源变化只失效依赖下游,不碰无关前置门禁。"""
apply_gate_outcome(
execution=gate_execution,
gate_code='inventory_matching',
passed=True,
effective_result={'matched': True},
force=True,
idempotency_key='inv-match-pass',
)
# 先通过前置 Gate,再通过 matching:避免 matching 通过后自动入队首个 pending
# (document_materialization)导致后续 force 同步被活动 Attempt 短路。
apply_gate_outcome(
execution=gate_execution,
@@ -550,6 +536,22 @@ def test_upstream_invalidation_only_targets_dependents(gate_execution):
)
apply_gate_outcome(
execution=gate_execution,
gate_code='inventory_matching',
passed=True,
effective_result={'matched': True},
force=True,
idempotency_key='inv-match-pass',
)
invalidated = invalidate_downstream_gates(
execution=gate_execution,