- name: outbox-same-atomic-block
  where: "orders/confirmation.py"
  ensure: >-
    OutboxEvent.objects.create must run inside the same transaction.atomic block as order.save. Moving event insertion after the atomic block breaks the rule.
