dita_v2(test): enforce post-ack atomicity and suite integrity

This commit is contained in:
Codex
2026-07-13 10:03:06 +02:00
parent e49b959b2e
commit b13b54e769
7 changed files with 2041 additions and 1 deletions

View File

@@ -55,7 +55,10 @@ def _mk_intent(
) -> KernelIntent:
return KernelIntent(
timestamp=datetime.now(timezone.utc),
intent_id=kw.pop("intent_id", trade_id),
# Venue client IDs must distinguish entry and exit orders. Reusing the
# trade ID for both makes one fill match both active orders, which the
# identity-first Rust router correctly refuses to misclassify.
intent_id=kw.pop("intent_id", f"{trade_id}:{action.value.lower()}"),
trade_id=trade_id,
slot_id=slot_id,
asset=asset,