{
  "environment": {
    "postgres": "16.15 (Ubuntu 16.15-0ubuntu0.24.04.1)",
    "dotnet": "10.0.15",
    "os": "Ubuntu 24.04.5 LTS",
    "cpu_count": "4",
    "measured_at_utc": "2026-11-27 20:53:53Z"
  },
  "runs": 10,
  "records": [
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 1,
      "result": {
        "variant": "no-protection",
        "protected": false,
        "requests": 1000,
        "incidents": 950,
        "money_error_minor": 950000,
        "details": {
          "orders": 50,
          "charges": 1000
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 1,
      "result": {
        "variant": "check-then-pay",
        "protected": false,
        "requests": 1000,
        "incidents": 357,
        "money_error_minor": 357000,
        "details": {
          "orders": 50,
          "charges": 407
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 1,
      "result": {
        "variant": "key-in-same-transaction",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "orders": 50,
          "charges": 50
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 2,
      "result": {
        "variant": "no-protection",
        "protected": false,
        "requests": 1000,
        "incidents": 950,
        "money_error_minor": 950000,
        "details": {
          "orders": 50,
          "charges": 1000
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 2,
      "result": {
        "variant": "check-then-pay",
        "protected": false,
        "requests": 1000,
        "incidents": 330,
        "money_error_minor": 330000,
        "details": {
          "orders": 50,
          "charges": 380
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 2,
      "result": {
        "variant": "key-in-same-transaction",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "orders": 50,
          "charges": 50
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 3,
      "result": {
        "variant": "no-protection",
        "protected": false,
        "requests": 1000,
        "incidents": 950,
        "money_error_minor": 950000,
        "details": {
          "orders": 50,
          "charges": 1000
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 3,
      "result": {
        "variant": "check-then-pay",
        "protected": false,
        "requests": 1000,
        "incidents": 343,
        "money_error_minor": 343000,
        "details": {
          "orders": 50,
          "charges": 393
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 3,
      "result": {
        "variant": "key-in-same-transaction",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "orders": 50,
          "charges": 50
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 4,
      "result": {
        "variant": "no-protection",
        "protected": false,
        "requests": 1000,
        "incidents": 950,
        "money_error_minor": 950000,
        "details": {
          "orders": 50,
          "charges": 1000
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 4,
      "result": {
        "variant": "check-then-pay",
        "protected": false,
        "requests": 1000,
        "incidents": 333,
        "money_error_minor": 333000,
        "details": {
          "orders": 50,
          "charges": 383
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 4,
      "result": {
        "variant": "key-in-same-transaction",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "orders": 50,
          "charges": 50
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 5,
      "result": {
        "variant": "no-protection",
        "protected": false,
        "requests": 1000,
        "incidents": 950,
        "money_error_minor": 950000,
        "details": {
          "orders": 50,
          "charges": 1000
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 5,
      "result": {
        "variant": "check-then-pay",
        "protected": false,
        "requests": 1000,
        "incidents": 347,
        "money_error_minor": 347000,
        "details": {
          "orders": 50,
          "charges": 397
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 5,
      "result": {
        "variant": "key-in-same-transaction",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "orders": 50,
          "charges": 50
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 6,
      "result": {
        "variant": "no-protection",
        "protected": false,
        "requests": 1000,
        "incidents": 950,
        "money_error_minor": 950000,
        "details": {
          "orders": 50,
          "charges": 1000
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 6,
      "result": {
        "variant": "check-then-pay",
        "protected": false,
        "requests": 1000,
        "incidents": 397,
        "money_error_minor": 397000,
        "details": {
          "orders": 50,
          "charges": 447
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 6,
      "result": {
        "variant": "key-in-same-transaction",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "orders": 50,
          "charges": 50
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 7,
      "result": {
        "variant": "no-protection",
        "protected": false,
        "requests": 1000,
        "incidents": 950,
        "money_error_minor": 950000,
        "details": {
          "orders": 50,
          "charges": 1000
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 7,
      "result": {
        "variant": "check-then-pay",
        "protected": false,
        "requests": 1000,
        "incidents": 331,
        "money_error_minor": 331000,
        "details": {
          "orders": 50,
          "charges": 381
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 7,
      "result": {
        "variant": "key-in-same-transaction",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "orders": 50,
          "charges": 50
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 8,
      "result": {
        "variant": "no-protection",
        "protected": false,
        "requests": 1000,
        "incidents": 950,
        "money_error_minor": 950000,
        "details": {
          "orders": 50,
          "charges": 1000
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 8,
      "result": {
        "variant": "check-then-pay",
        "protected": false,
        "requests": 1000,
        "incidents": 352,
        "money_error_minor": 352000,
        "details": {
          "orders": 50,
          "charges": 402
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 8,
      "result": {
        "variant": "key-in-same-transaction",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "orders": 50,
          "charges": 50
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 9,
      "result": {
        "variant": "no-protection",
        "protected": false,
        "requests": 1000,
        "incidents": 950,
        "money_error_minor": 950000,
        "details": {
          "orders": 50,
          "charges": 1000
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 9,
      "result": {
        "variant": "check-then-pay",
        "protected": false,
        "requests": 1000,
        "incidents": 355,
        "money_error_minor": 355000,
        "details": {
          "orders": 50,
          "charges": 405
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 9,
      "result": {
        "variant": "key-in-same-transaction",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "orders": 50,
          "charges": 50
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 10,
      "result": {
        "variant": "no-protection",
        "protected": false,
        "requests": 1000,
        "incidents": 950,
        "money_error_minor": 950000,
        "details": {
          "orders": 50,
          "charges": 1000
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 10,
      "result": {
        "variant": "check-then-pay",
        "protected": false,
        "requests": 1000,
        "incidents": 349,
        "money_error_minor": 349000,
        "details": {
          "orders": 50,
          "charges": 399
        }
      }
    },
    {
      "scenario_id": "01-duplicate-requests",
      "title": "Same payment request sent 20 times at once",
      "run": 10,
      "result": {
        "variant": "key-in-same-transaction",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "orders": 50,
          "charges": 50
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 1,
      "result": {
        "variant": "read-then-write",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 55000,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 0,
          "money_created": 55000,
          "overdrawn": 0,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 1,
      "result": {
        "variant": "check-then-decrement",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 40000,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 20,
          "money_created": 0,
          "overdrawn": 40000,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 1,
      "result": {
        "variant": "row-lock",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 1,
      "result": {
        "variant": "conditional-update",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 2,
      "result": {
        "variant": "read-then-write",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 55200,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 0,
          "money_created": 55200,
          "overdrawn": 0,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 2,
      "result": {
        "variant": "check-then-decrement",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 40000,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 20,
          "money_created": 0,
          "overdrawn": 40000,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 2,
      "result": {
        "variant": "row-lock",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 2,
      "result": {
        "variant": "conditional-update",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 3,
      "result": {
        "variant": "read-then-write",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 54900,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 0,
          "money_created": 54900,
          "overdrawn": 0,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 3,
      "result": {
        "variant": "check-then-decrement",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 40000,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 20,
          "money_created": 0,
          "overdrawn": 40000,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 3,
      "result": {
        "variant": "row-lock",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 3,
      "result": {
        "variant": "conditional-update",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 4,
      "result": {
        "variant": "read-then-write",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 55700,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 0,
          "money_created": 55700,
          "overdrawn": 0,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 4,
      "result": {
        "variant": "check-then-decrement",
        "protected": false,
        "requests": 600,
        "incidents": 397,
        "money_error_minor": 39700,
        "details": {
          "allowed": 200,
          "captured": 597,
          "negative_wallets": 20,
          "money_created": 0,
          "overdrawn": 39700,
          "merchant_received": 59700
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 4,
      "result": {
        "variant": "row-lock",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 4,
      "result": {
        "variant": "conditional-update",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 5,
      "result": {
        "variant": "read-then-write",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 55600,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 0,
          "money_created": 55600,
          "overdrawn": 0,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 5,
      "result": {
        "variant": "check-then-decrement",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 40000,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 20,
          "money_created": 0,
          "overdrawn": 40000,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 5,
      "result": {
        "variant": "row-lock",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 5,
      "result": {
        "variant": "conditional-update",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 6,
      "result": {
        "variant": "read-then-write",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 55100,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 0,
          "money_created": 55100,
          "overdrawn": 0,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 6,
      "result": {
        "variant": "check-then-decrement",
        "protected": false,
        "requests": 600,
        "incidents": 398,
        "money_error_minor": 39800,
        "details": {
          "allowed": 200,
          "captured": 598,
          "negative_wallets": 20,
          "money_created": 0,
          "overdrawn": 39800,
          "merchant_received": 59800
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 6,
      "result": {
        "variant": "row-lock",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 6,
      "result": {
        "variant": "conditional-update",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 7,
      "result": {
        "variant": "read-then-write",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 55800,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 0,
          "money_created": 55800,
          "overdrawn": 0,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 7,
      "result": {
        "variant": "check-then-decrement",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 40000,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 20,
          "money_created": 0,
          "overdrawn": 40000,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 7,
      "result": {
        "variant": "row-lock",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 7,
      "result": {
        "variant": "conditional-update",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 8,
      "result": {
        "variant": "read-then-write",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 55100,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 0,
          "money_created": 55100,
          "overdrawn": 0,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 8,
      "result": {
        "variant": "check-then-decrement",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 40000,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 20,
          "money_created": 0,
          "overdrawn": 40000,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 8,
      "result": {
        "variant": "row-lock",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 8,
      "result": {
        "variant": "conditional-update",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 9,
      "result": {
        "variant": "read-then-write",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 54800,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 0,
          "money_created": 54800,
          "overdrawn": 0,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 9,
      "result": {
        "variant": "check-then-decrement",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 40000,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 20,
          "money_created": 0,
          "overdrawn": 40000,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 9,
      "result": {
        "variant": "row-lock",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 9,
      "result": {
        "variant": "conditional-update",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 10,
      "result": {
        "variant": "read-then-write",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 55300,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 0,
          "money_created": 55300,
          "overdrawn": 0,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 10,
      "result": {
        "variant": "check-then-decrement",
        "protected": false,
        "requests": 600,
        "incidents": 400,
        "money_error_minor": 40000,
        "details": {
          "allowed": 200,
          "captured": 600,
          "negative_wallets": 20,
          "money_created": 0,
          "overdrawn": 40000,
          "merchant_received": 60000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 10,
      "result": {
        "variant": "row-lock",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "02-overdraft",
      "title": "30 concurrent payments against a balance that covers 10",
      "run": 10,
      "result": {
        "variant": "conditional-update",
        "protected": true,
        "requests": 600,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "allowed": 200,
          "captured": 200,
          "negative_wallets": 0,
          "money_created": 0,
          "overdrawn": 0,
          "merchant_received": 20000
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 1,
      "result": {
        "variant": "lock-payer-first",
        "protected": false,
        "requests": 400,
        "incidents": 352,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 352,
          "succeeded": 48,
          "elapsed_ms": 33218
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 1,
      "result": {
        "variant": "lock-in-id-order",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 0,
          "succeeded": 400,
          "elapsed_ms": 535
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 2,
      "result": {
        "variant": "lock-payer-first",
        "protected": false,
        "requests": 400,
        "incidents": 226,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 226,
          "succeeded": 174,
          "elapsed_ms": 24231
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 2,
      "result": {
        "variant": "lock-in-id-order",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 0,
          "succeeded": 400,
          "elapsed_ms": 453
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 3,
      "result": {
        "variant": "lock-payer-first",
        "protected": false,
        "requests": 400,
        "incidents": 276,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 276,
          "succeeded": 124,
          "elapsed_ms": 27185
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 3,
      "result": {
        "variant": "lock-in-id-order",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 0,
          "succeeded": 400,
          "elapsed_ms": 408
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 4,
      "result": {
        "variant": "lock-payer-first",
        "protected": false,
        "requests": 400,
        "incidents": 57,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 57,
          "succeeded": 343,
          "elapsed_ms": 17053
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 4,
      "result": {
        "variant": "lock-in-id-order",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 0,
          "succeeded": 400,
          "elapsed_ms": 402
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 5,
      "result": {
        "variant": "lock-payer-first",
        "protected": false,
        "requests": 400,
        "incidents": 265,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 265,
          "succeeded": 135,
          "elapsed_ms": 33138
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 5,
      "result": {
        "variant": "lock-in-id-order",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 0,
          "succeeded": 400,
          "elapsed_ms": 429
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 6,
      "result": {
        "variant": "lock-payer-first",
        "protected": false,
        "requests": 400,
        "incidents": 219,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 219,
          "succeeded": 181,
          "elapsed_ms": 29190
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 6,
      "result": {
        "variant": "lock-in-id-order",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 0,
          "succeeded": 400,
          "elapsed_ms": 420
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 7,
      "result": {
        "variant": "lock-payer-first",
        "protected": false,
        "requests": 400,
        "incidents": 326,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 326,
          "succeeded": 74,
          "elapsed_ms": 41209
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 7,
      "result": {
        "variant": "lock-in-id-order",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 0,
          "succeeded": 400,
          "elapsed_ms": 422
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 8,
      "result": {
        "variant": "lock-payer-first",
        "protected": false,
        "requests": 400,
        "incidents": 248,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 248,
          "succeeded": 152,
          "elapsed_ms": 34075
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 8,
      "result": {
        "variant": "lock-in-id-order",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 0,
          "succeeded": 400,
          "elapsed_ms": 421
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 9,
      "result": {
        "variant": "lock-payer-first",
        "protected": false,
        "requests": 400,
        "incidents": 266,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 266,
          "succeeded": 134,
          "elapsed_ms": 20189
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 9,
      "result": {
        "variant": "lock-in-id-order",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 0,
          "succeeded": 400,
          "elapsed_ms": 423
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 10,
      "result": {
        "variant": "lock-payer-first",
        "protected": false,
        "requests": 400,
        "incidents": 131,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 131,
          "succeeded": 269,
          "elapsed_ms": 18215
        }
      }
    },
    {
      "scenario_id": "03-deadlock",
      "title": "Opposite transfers between the same two wallets",
      "run": 10,
      "result": {
        "variant": "lock-in-id-order",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deadlocks": 0,
          "succeeded": 400,
          "elapsed_ms": 404
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 1,
      "result": {
        "variant": "mark-failed-and-retry",
        "protected": false,
        "requests": 1000,
        "incidents": 45,
        "money_error_minor": 1175000,
        "details": {
          "bank_charges": 1047,
          "orders_charged_more_than_once": 45,
          "extra_charges": 47,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 102
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 1,
      "result": {
        "variant": "reference-and-status-query",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "bank_charges": 1000,
          "orders_charged_more_than_once": 0,
          "extra_charges": 0,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 0
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 2,
      "result": {
        "variant": "mark-failed-and-retry",
        "protected": false,
        "requests": 1000,
        "incidents": 50,
        "money_error_minor": 1250000,
        "details": {
          "bank_charges": 1048,
          "orders_charged_more_than_once": 49,
          "extra_charges": 49,
          "charged_but_order_failed": 1,
          "orders_captured": 998,
          "payments_failed_or_unknown": 95
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 2,
      "result": {
        "variant": "reference-and-status-query",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "bank_charges": 1000,
          "orders_charged_more_than_once": 0,
          "extra_charges": 0,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 0
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 3,
      "result": {
        "variant": "mark-failed-and-retry",
        "protected": false,
        "requests": 1000,
        "incidents": 48,
        "money_error_minor": 1350000,
        "details": {
          "bank_charges": 1054,
          "orders_charged_more_than_once": 48,
          "extra_charges": 54,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 115
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 3,
      "result": {
        "variant": "reference-and-status-query",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "bank_charges": 1000,
          "orders_charged_more_than_once": 0,
          "extra_charges": 0,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 0
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 4,
      "result": {
        "variant": "mark-failed-and-retry",
        "protected": false,
        "requests": 1000,
        "incidents": 53,
        "money_error_minor": 1375000,
        "details": {
          "bank_charges": 1055,
          "orders_charged_more_than_once": 53,
          "extra_charges": 55,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 106
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 4,
      "result": {
        "variant": "reference-and-status-query",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "bank_charges": 1000,
          "orders_charged_more_than_once": 0,
          "extra_charges": 0,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 0
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 5,
      "result": {
        "variant": "mark-failed-and-retry",
        "protected": false,
        "requests": 1000,
        "incidents": 54,
        "money_error_minor": 1350000,
        "details": {
          "bank_charges": 1053,
          "orders_charged_more_than_once": 54,
          "extra_charges": 54,
          "charged_but_order_failed": 0,
          "orders_captured": 999,
          "payments_failed_or_unknown": 112
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 5,
      "result": {
        "variant": "reference-and-status-query",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "bank_charges": 999,
          "orders_charged_more_than_once": 0,
          "extra_charges": 0,
          "charged_but_order_failed": 0,
          "orders_captured": 999,
          "payments_failed_or_unknown": 1
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 6,
      "result": {
        "variant": "mark-failed-and-retry",
        "protected": false,
        "requests": 1000,
        "incidents": 51,
        "money_error_minor": 1300000,
        "details": {
          "bank_charges": 1051,
          "orders_charged_more_than_once": 50,
          "extra_charges": 51,
          "charged_but_order_failed": 1,
          "orders_captured": 999,
          "payments_failed_or_unknown": 101
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 6,
      "result": {
        "variant": "reference-and-status-query",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "bank_charges": 1000,
          "orders_charged_more_than_once": 0,
          "extra_charges": 0,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 0
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 7,
      "result": {
        "variant": "mark-failed-and-retry",
        "protected": false,
        "requests": 1000,
        "incidents": 51,
        "money_error_minor": 1350000,
        "details": {
          "bank_charges": 1053,
          "orders_charged_more_than_once": 50,
          "extra_charges": 53,
          "charged_but_order_failed": 1,
          "orders_captured": 999,
          "payments_failed_or_unknown": 115
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 7,
      "result": {
        "variant": "reference-and-status-query",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "bank_charges": 1000,
          "orders_charged_more_than_once": 0,
          "extra_charges": 0,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 0
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 8,
      "result": {
        "variant": "mark-failed-and-retry",
        "protected": false,
        "requests": 1000,
        "incidents": 50,
        "money_error_minor": 1275000,
        "details": {
          "bank_charges": 1051,
          "orders_charged_more_than_once": 50,
          "extra_charges": 51,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 102
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 8,
      "result": {
        "variant": "reference-and-status-query",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "bank_charges": 1000,
          "orders_charged_more_than_once": 0,
          "extra_charges": 0,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 0
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 9,
      "result": {
        "variant": "mark-failed-and-retry",
        "protected": false,
        "requests": 1000,
        "incidents": 55,
        "money_error_minor": 1400000,
        "details": {
          "bank_charges": 1055,
          "orders_charged_more_than_once": 54,
          "extra_charges": 55,
          "charged_but_order_failed": 1,
          "orders_captured": 999,
          "payments_failed_or_unknown": 109
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 9,
      "result": {
        "variant": "reference-and-status-query",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "bank_charges": 1000,
          "orders_charged_more_than_once": 0,
          "extra_charges": 0,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 0
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 10,
      "result": {
        "variant": "mark-failed-and-retry",
        "protected": false,
        "requests": 1000,
        "incidents": 48,
        "money_error_minor": 1275000,
        "details": {
          "bank_charges": 1049,
          "orders_charged_more_than_once": 46,
          "extra_charges": 49,
          "charged_but_order_failed": 2,
          "orders_captured": 998,
          "payments_failed_or_unknown": 110
        }
      }
    },
    {
      "scenario_id": "04-bank-timeout",
      "title": "Bank call times out, sometimes after taking the money",
      "run": 10,
      "result": {
        "variant": "reference-and-status-query",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "bank_charges": 1000,
          "orders_charged_more_than_once": 0,
          "extra_charges": 0,
          "charged_but_order_failed": 0,
          "orders_captured": 1000,
          "payments_failed_or_unknown": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 1,
      "result": {
        "variant": "commit-then-publish",
        "protected": false,
        "requests": 1000,
        "incidents": 45,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 45,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 955,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 1,
      "result": {
        "variant": "publish-then-commit",
        "protected": false,
        "requests": 1000,
        "incidents": 45,
        "money_error_minor": 0,
        "details": {
          "paid": 955,
          "paid_not_shipped": 0,
          "shipped_not_paid": 45,
          "shipped_twice": 0,
          "messages_delivered": 1000,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 1,
      "result": {
        "variant": "outbox",
        "protected": false,
        "requests": 1000,
        "incidents": 178,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 178,
          "messages_delivered": 1249,
          "relay_crashes": 57
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 1,
      "result": {
        "variant": "outbox-and-inbox",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 1249,
          "relay_crashes": 57
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 2,
      "result": {
        "variant": "commit-then-publish",
        "protected": false,
        "requests": 1000,
        "incidents": 37,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 37,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 963,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 2,
      "result": {
        "variant": "publish-then-commit",
        "protected": false,
        "requests": 1000,
        "incidents": 37,
        "money_error_minor": 0,
        "details": {
          "paid": 963,
          "paid_not_shipped": 0,
          "shipped_not_paid": 37,
          "shipped_twice": 0,
          "messages_delivered": 1000,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 2,
      "result": {
        "variant": "outbox",
        "protected": false,
        "requests": 1000,
        "incidents": 167,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 167,
          "messages_delivered": 1210,
          "relay_crashes": 45
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 2,
      "result": {
        "variant": "outbox-and-inbox",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 1210,
          "relay_crashes": 45
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 3,
      "result": {
        "variant": "commit-then-publish",
        "protected": false,
        "requests": 1000,
        "incidents": 43,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 43,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 957,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 3,
      "result": {
        "variant": "publish-then-commit",
        "protected": false,
        "requests": 1000,
        "incidents": 43,
        "money_error_minor": 0,
        "details": {
          "paid": 957,
          "paid_not_shipped": 0,
          "shipped_not_paid": 43,
          "shipped_twice": 0,
          "messages_delivered": 1000,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 3,
      "result": {
        "variant": "outbox",
        "protected": false,
        "requests": 1000,
        "incidents": 206,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 206,
          "messages_delivered": 1305,
          "relay_crashes": 62
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 3,
      "result": {
        "variant": "outbox-and-inbox",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 1305,
          "relay_crashes": 62
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 4,
      "result": {
        "variant": "commit-then-publish",
        "protected": false,
        "requests": 1000,
        "incidents": 49,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 49,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 951,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 4,
      "result": {
        "variant": "publish-then-commit",
        "protected": false,
        "requests": 1000,
        "incidents": 49,
        "money_error_minor": 0,
        "details": {
          "paid": 951,
          "paid_not_shipped": 0,
          "shipped_not_paid": 49,
          "shipped_twice": 0,
          "messages_delivered": 1000,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 4,
      "result": {
        "variant": "outbox",
        "protected": false,
        "requests": 1000,
        "incidents": 233,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 233,
          "messages_delivered": 1323,
          "relay_crashes": 65
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 4,
      "result": {
        "variant": "outbox-and-inbox",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 1323,
          "relay_crashes": 65
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 5,
      "result": {
        "variant": "commit-then-publish",
        "protected": false,
        "requests": 1000,
        "incidents": 56,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 56,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 944,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 5,
      "result": {
        "variant": "publish-then-commit",
        "protected": false,
        "requests": 1000,
        "incidents": 56,
        "money_error_minor": 0,
        "details": {
          "paid": 944,
          "paid_not_shipped": 0,
          "shipped_not_paid": 56,
          "shipped_twice": 0,
          "messages_delivered": 1000,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 5,
      "result": {
        "variant": "outbox",
        "protected": false,
        "requests": 1000,
        "incidents": 332,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 332,
          "messages_delivered": 1432,
          "relay_crashes": 80
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 5,
      "result": {
        "variant": "outbox-and-inbox",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 1432,
          "relay_crashes": 80
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 6,
      "result": {
        "variant": "commit-then-publish",
        "protected": false,
        "requests": 1000,
        "incidents": 43,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 43,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 957,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 6,
      "result": {
        "variant": "publish-then-commit",
        "protected": false,
        "requests": 1000,
        "incidents": 43,
        "money_error_minor": 0,
        "details": {
          "paid": 957,
          "paid_not_shipped": 0,
          "shipped_not_paid": 43,
          "shipped_twice": 0,
          "messages_delivered": 1000,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 6,
      "result": {
        "variant": "outbox",
        "protected": false,
        "requests": 1000,
        "incidents": 211,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 211,
          "messages_delivered": 1253,
          "relay_crashes": 52
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 6,
      "result": {
        "variant": "outbox-and-inbox",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 1253,
          "relay_crashes": 52
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 7,
      "result": {
        "variant": "commit-then-publish",
        "protected": false,
        "requests": 1000,
        "incidents": 48,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 48,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 952,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 7,
      "result": {
        "variant": "publish-then-commit",
        "protected": false,
        "requests": 1000,
        "incidents": 48,
        "money_error_minor": 0,
        "details": {
          "paid": 952,
          "paid_not_shipped": 0,
          "shipped_not_paid": 48,
          "shipped_twice": 0,
          "messages_delivered": 1000,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 7,
      "result": {
        "variant": "outbox",
        "protected": false,
        "requests": 1000,
        "incidents": 231,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 231,
          "messages_delivered": 1328,
          "relay_crashes": 64
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 7,
      "result": {
        "variant": "outbox-and-inbox",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 1328,
          "relay_crashes": 64
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 8,
      "result": {
        "variant": "commit-then-publish",
        "protected": false,
        "requests": 1000,
        "incidents": 53,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 53,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 947,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 8,
      "result": {
        "variant": "publish-then-commit",
        "protected": false,
        "requests": 1000,
        "incidents": 53,
        "money_error_minor": 0,
        "details": {
          "paid": 947,
          "paid_not_shipped": 0,
          "shipped_not_paid": 53,
          "shipped_twice": 0,
          "messages_delivered": 1000,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 8,
      "result": {
        "variant": "outbox",
        "protected": false,
        "requests": 1000,
        "incidents": 206,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 206,
          "messages_delivered": 1299,
          "relay_crashes": 67
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 8,
      "result": {
        "variant": "outbox-and-inbox",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 1299,
          "relay_crashes": 67
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 9,
      "result": {
        "variant": "commit-then-publish",
        "protected": false,
        "requests": 1000,
        "incidents": 50,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 50,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 950,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 9,
      "result": {
        "variant": "publish-then-commit",
        "protected": false,
        "requests": 1000,
        "incidents": 50,
        "money_error_minor": 0,
        "details": {
          "paid": 950,
          "paid_not_shipped": 0,
          "shipped_not_paid": 50,
          "shipped_twice": 0,
          "messages_delivered": 1000,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 9,
      "result": {
        "variant": "outbox",
        "protected": false,
        "requests": 1000,
        "incidents": 254,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 254,
          "messages_delivered": 1357,
          "relay_crashes": 70
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 9,
      "result": {
        "variant": "outbox-and-inbox",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 1357,
          "relay_crashes": 70
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 10,
      "result": {
        "variant": "commit-then-publish",
        "protected": false,
        "requests": 1000,
        "incidents": 55,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 55,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 945,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 10,
      "result": {
        "variant": "publish-then-commit",
        "protected": false,
        "requests": 1000,
        "incidents": 55,
        "money_error_minor": 0,
        "details": {
          "paid": 945,
          "paid_not_shipped": 0,
          "shipped_not_paid": 55,
          "shipped_twice": 0,
          "messages_delivered": 1000,
          "relay_crashes": 0
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 10,
      "result": {
        "variant": "outbox",
        "protected": false,
        "requests": 1000,
        "incidents": 220,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 220,
          "messages_delivered": 1317,
          "relay_crashes": 70
        }
      }
    },
    {
      "scenario_id": "05-dual-write",
      "title": "Process dies between saving the payment and publishing the event",
      "run": 10,
      "result": {
        "variant": "outbox-and-inbox",
        "protected": true,
        "requests": 1000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "paid": 1000,
          "paid_not_shipped": 0,
          "shipped_not_paid": 0,
          "shipped_twice": 0,
          "messages_delivered": 1317,
          "relay_crashes": 70
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 1,
      "result": {
        "variant": "apply-every-event",
        "protected": false,
        "requests": 2573,
        "incidents": 760,
        "money_error_minor": 1230000,
        "details": {
          "deliveries": 2573,
          "duplicate_deliveries": 573,
          "payments_with_final_before_pending": 504,
          "wrong_final_status": 514,
          "merchant_credit_expected": 4525000,
          "merchant_credit_actual": 5755000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 1,
      "result": {
        "variant": "dedup-and-state-machine",
        "protected": true,
        "requests": 2573,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deliveries": 2573,
          "duplicate_deliveries": 573,
          "payments_with_final_before_pending": 504,
          "wrong_final_status": 0,
          "merchant_credit_expected": 4525000,
          "merchant_credit_actual": 4525000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 2,
      "result": {
        "variant": "apply-every-event",
        "protected": false,
        "requests": 2608,
        "incidents": 801,
        "money_error_minor": 1440000,
        "details": {
          "deliveries": 2608,
          "duplicate_deliveries": 608,
          "payments_with_final_before_pending": 530,
          "wrong_final_status": 513,
          "merchant_credit_expected": 4465000,
          "merchant_credit_actual": 5905000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 2,
      "result": {
        "variant": "dedup-and-state-machine",
        "protected": true,
        "requests": 2608,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deliveries": 2608,
          "duplicate_deliveries": 608,
          "payments_with_final_before_pending": 530,
          "wrong_final_status": 0,
          "merchant_credit_expected": 4465000,
          "merchant_credit_actual": 4465000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 3,
      "result": {
        "variant": "apply-every-event",
        "protected": false,
        "requests": 2617,
        "incidents": 760,
        "money_error_minor": 1305000,
        "details": {
          "deliveries": 2617,
          "duplicate_deliveries": 617,
          "payments_with_final_before_pending": 490,
          "wrong_final_status": 499,
          "merchant_credit_expected": 4410000,
          "merchant_credit_actual": 5715000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 3,
      "result": {
        "variant": "dedup-and-state-machine",
        "protected": true,
        "requests": 2617,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deliveries": 2617,
          "duplicate_deliveries": 617,
          "payments_with_final_before_pending": 490,
          "wrong_final_status": 0,
          "merchant_credit_expected": 4410000,
          "merchant_credit_actual": 4410000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 4,
      "result": {
        "variant": "apply-every-event",
        "protected": false,
        "requests": 2569,
        "incidents": 720,
        "money_error_minor": 1180000,
        "details": {
          "deliveries": 2569,
          "duplicate_deliveries": 569,
          "payments_with_final_before_pending": 477,
          "wrong_final_status": 484,
          "merchant_credit_expected": 4540000,
          "merchant_credit_actual": 5720000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 4,
      "result": {
        "variant": "dedup-and-state-machine",
        "protected": true,
        "requests": 2569,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deliveries": 2569,
          "duplicate_deliveries": 569,
          "payments_with_final_before_pending": 477,
          "wrong_final_status": 0,
          "merchant_credit_expected": 4540000,
          "merchant_credit_actual": 4540000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 5,
      "result": {
        "variant": "apply-every-event",
        "protected": false,
        "requests": 2615,
        "incidents": 801,
        "money_error_minor": 1430000,
        "details": {
          "deliveries": 2615,
          "duplicate_deliveries": 615,
          "payments_with_final_before_pending": 526,
          "wrong_final_status": 515,
          "merchant_credit_expected": 4525000,
          "merchant_credit_actual": 5955000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 5,
      "result": {
        "variant": "dedup-and-state-machine",
        "protected": true,
        "requests": 2615,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deliveries": 2615,
          "duplicate_deliveries": 615,
          "payments_with_final_before_pending": 526,
          "wrong_final_status": 0,
          "merchant_credit_expected": 4525000,
          "merchant_credit_actual": 4525000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 6,
      "result": {
        "variant": "apply-every-event",
        "protected": false,
        "requests": 2569,
        "incidents": 749,
        "money_error_minor": 1310000,
        "details": {
          "deliveries": 2569,
          "duplicate_deliveries": 569,
          "payments_with_final_before_pending": 489,
          "wrong_final_status": 487,
          "merchant_credit_expected": 4540000,
          "merchant_credit_actual": 5850000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 6,
      "result": {
        "variant": "dedup-and-state-machine",
        "protected": true,
        "requests": 2569,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deliveries": 2569,
          "duplicate_deliveries": 569,
          "payments_with_final_before_pending": 489,
          "wrong_final_status": 0,
          "merchant_credit_expected": 4540000,
          "merchant_credit_actual": 4540000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 7,
      "result": {
        "variant": "apply-every-event",
        "protected": false,
        "requests": 2595,
        "incidents": 764,
        "money_error_minor": 1305000,
        "details": {
          "deliveries": 2595,
          "duplicate_deliveries": 595,
          "payments_with_final_before_pending": 503,
          "wrong_final_status": 503,
          "merchant_credit_expected": 4500000,
          "merchant_credit_actual": 5805000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 7,
      "result": {
        "variant": "dedup-and-state-machine",
        "protected": true,
        "requests": 2595,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deliveries": 2595,
          "duplicate_deliveries": 595,
          "payments_with_final_before_pending": 503,
          "wrong_final_status": 0,
          "merchant_credit_expected": 4500000,
          "merchant_credit_actual": 4500000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 8,
      "result": {
        "variant": "apply-every-event",
        "protected": false,
        "requests": 2608,
        "incidents": 787,
        "money_error_minor": 1400000,
        "details": {
          "deliveries": 2608,
          "duplicate_deliveries": 608,
          "payments_with_final_before_pending": 514,
          "wrong_final_status": 507,
          "merchant_credit_expected": 4510000,
          "merchant_credit_actual": 5910000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 8,
      "result": {
        "variant": "dedup-and-state-machine",
        "protected": true,
        "requests": 2608,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deliveries": 2608,
          "duplicate_deliveries": 608,
          "payments_with_final_before_pending": 514,
          "wrong_final_status": 0,
          "merchant_credit_expected": 4510000,
          "merchant_credit_actual": 4510000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 9,
      "result": {
        "variant": "apply-every-event",
        "protected": false,
        "requests": 2609,
        "incidents": 756,
        "money_error_minor": 1285000,
        "details": {
          "deliveries": 2609,
          "duplicate_deliveries": 609,
          "payments_with_final_before_pending": 498,
          "wrong_final_status": 499,
          "merchant_credit_expected": 4540000,
          "merchant_credit_actual": 5825000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 9,
      "result": {
        "variant": "dedup-and-state-machine",
        "protected": true,
        "requests": 2609,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deliveries": 2609,
          "duplicate_deliveries": 609,
          "payments_with_final_before_pending": 498,
          "wrong_final_status": 0,
          "merchant_credit_expected": 4540000,
          "merchant_credit_actual": 4540000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 10,
      "result": {
        "variant": "apply-every-event",
        "protected": false,
        "requests": 2594,
        "incidents": 753,
        "money_error_minor": 1395000,
        "details": {
          "deliveries": 2594,
          "duplicate_deliveries": 594,
          "payments_with_final_before_pending": 474,
          "wrong_final_status": 474,
          "merchant_credit_expected": 4525000,
          "merchant_credit_actual": 5920000
        }
      }
    },
    {
      "scenario_id": "06-webhooks",
      "title": "Webhooks delivered twice and out of order",
      "run": 10,
      "result": {
        "variant": "dedup-and-state-machine",
        "protected": true,
        "requests": 2594,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "deliveries": 2594,
          "duplicate_deliveries": 594,
          "payments_with_final_before_pending": 474,
          "wrong_final_status": 0,
          "merchant_credit_expected": 4525000,
          "merchant_credit_actual": 4525000
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 1,
      "result": {
        "variant": "sum-then-insert",
        "protected": false,
        "requests": 400,
        "incidents": 19,
        "money_error_minor": 17800,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 378,
          "payments_over_refunded": 19,
          "refunded_beyond_captured": 17800
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 1,
      "result": {
        "variant": "locked-running-total",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 200,
          "payments_over_refunded": 0,
          "refunded_beyond_captured": 0
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 2,
      "result": {
        "variant": "sum-then-insert",
        "protected": false,
        "requests": 400,
        "incidents": 20,
        "money_error_minor": 16900,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 369,
          "payments_over_refunded": 20,
          "refunded_beyond_captured": 16900
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 2,
      "result": {
        "variant": "locked-running-total",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 200,
          "payments_over_refunded": 0,
          "refunded_beyond_captured": 0
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 3,
      "result": {
        "variant": "sum-then-insert",
        "protected": false,
        "requests": 400,
        "incidents": 20,
        "money_error_minor": 17600,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 376,
          "payments_over_refunded": 20,
          "refunded_beyond_captured": 17600
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 3,
      "result": {
        "variant": "locked-running-total",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 200,
          "payments_over_refunded": 0,
          "refunded_beyond_captured": 0
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 4,
      "result": {
        "variant": "sum-then-insert",
        "protected": false,
        "requests": 400,
        "incidents": 20,
        "money_error_minor": 16600,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 366,
          "payments_over_refunded": 20,
          "refunded_beyond_captured": 16600
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 4,
      "result": {
        "variant": "locked-running-total",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 200,
          "payments_over_refunded": 0,
          "refunded_beyond_captured": 0
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 5,
      "result": {
        "variant": "sum-then-insert",
        "protected": false,
        "requests": 400,
        "incidents": 20,
        "money_error_minor": 18000,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 380,
          "payments_over_refunded": 20,
          "refunded_beyond_captured": 18000
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 5,
      "result": {
        "variant": "locked-running-total",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 200,
          "payments_over_refunded": 0,
          "refunded_beyond_captured": 0
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 6,
      "result": {
        "variant": "sum-then-insert",
        "protected": false,
        "requests": 400,
        "incidents": 20,
        "money_error_minor": 16300,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 363,
          "payments_over_refunded": 20,
          "refunded_beyond_captured": 16300
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 6,
      "result": {
        "variant": "locked-running-total",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 200,
          "payments_over_refunded": 0,
          "refunded_beyond_captured": 0
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 7,
      "result": {
        "variant": "sum-then-insert",
        "protected": false,
        "requests": 400,
        "incidents": 20,
        "money_error_minor": 18400,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 384,
          "payments_over_refunded": 20,
          "refunded_beyond_captured": 18400
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 7,
      "result": {
        "variant": "locked-running-total",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 200,
          "payments_over_refunded": 0,
          "refunded_beyond_captured": 0
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 8,
      "result": {
        "variant": "sum-then-insert",
        "protected": false,
        "requests": 400,
        "incidents": 20,
        "money_error_minor": 18500,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 385,
          "payments_over_refunded": 20,
          "refunded_beyond_captured": 18500
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 8,
      "result": {
        "variant": "locked-running-total",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 200,
          "payments_over_refunded": 0,
          "refunded_beyond_captured": 0
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 9,
      "result": {
        "variant": "sum-then-insert",
        "protected": false,
        "requests": 400,
        "incidents": 20,
        "money_error_minor": 19000,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 390,
          "payments_over_refunded": 20,
          "refunded_beyond_captured": 19000
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 9,
      "result": {
        "variant": "locked-running-total",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 200,
          "payments_over_refunded": 0,
          "refunded_beyond_captured": 0
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 10,
      "result": {
        "variant": "sum-then-insert",
        "protected": false,
        "requests": 400,
        "incidents": 20,
        "money_error_minor": 16900,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 369,
          "payments_over_refunded": 20,
          "refunded_beyond_captured": 16900
        }
      }
    },
    {
      "scenario_id": "07-refunds",
      "title": "20 concurrent partial refunds on one payment",
      "run": 10,
      "result": {
        "variant": "locked-running-total",
        "protected": true,
        "requests": 400,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "refunds_allowed": 200,
          "refunds_made": 200,
          "payments_over_refunded": 0,
          "refunded_beyond_captured": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 1,
      "result": {
        "variant": "commission-double",
        "protected": false,
        "requests": 5000000,
        "incidents": 2716,
        "money_error_minor": 2716,
        "details": {
          "wrong_at_100_bp": 177,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 901,
          "wrong_at_1000_bp": 1638,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 1,
      "result": {
        "variant": "commission-decimal",
        "protected": true,
        "requests": 5000000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "wrong_at_100_bp": 0,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 0,
          "wrong_at_1000_bp": 0,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 1,
      "result": {
        "variant": "instalments-round-each",
        "protected": false,
        "requests": 999998,
        "incidents": 666665,
        "money_error_minor": 666665,
        "details": {
          "amounts_where_parts_do_not_add_up": 666665,
          "kurus_charged_too_much": 333332,
          "kurus_charged_too_little": 333333
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 1,
      "result": {
        "variant": "instalments-allocate-remainder",
        "protected": true,
        "requests": 999998,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "amounts_where_parts_do_not_add_up": 0,
          "kurus_charged_too_much": 0,
          "kurus_charged_too_little": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 2,
      "result": {
        "variant": "commission-double",
        "protected": false,
        "requests": 5000000,
        "incidents": 2716,
        "money_error_minor": 2716,
        "details": {
          "wrong_at_100_bp": 177,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 901,
          "wrong_at_1000_bp": 1638,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 2,
      "result": {
        "variant": "commission-decimal",
        "protected": true,
        "requests": 5000000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "wrong_at_100_bp": 0,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 0,
          "wrong_at_1000_bp": 0,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 2,
      "result": {
        "variant": "instalments-round-each",
        "protected": false,
        "requests": 999998,
        "incidents": 666665,
        "money_error_minor": 666665,
        "details": {
          "amounts_where_parts_do_not_add_up": 666665,
          "kurus_charged_too_much": 333332,
          "kurus_charged_too_little": 333333
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 2,
      "result": {
        "variant": "instalments-allocate-remainder",
        "protected": true,
        "requests": 999998,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "amounts_where_parts_do_not_add_up": 0,
          "kurus_charged_too_much": 0,
          "kurus_charged_too_little": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 3,
      "result": {
        "variant": "commission-double",
        "protected": false,
        "requests": 5000000,
        "incidents": 2716,
        "money_error_minor": 2716,
        "details": {
          "wrong_at_100_bp": 177,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 901,
          "wrong_at_1000_bp": 1638,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 3,
      "result": {
        "variant": "commission-decimal",
        "protected": true,
        "requests": 5000000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "wrong_at_100_bp": 0,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 0,
          "wrong_at_1000_bp": 0,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 3,
      "result": {
        "variant": "instalments-round-each",
        "protected": false,
        "requests": 999998,
        "incidents": 666665,
        "money_error_minor": 666665,
        "details": {
          "amounts_where_parts_do_not_add_up": 666665,
          "kurus_charged_too_much": 333332,
          "kurus_charged_too_little": 333333
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 3,
      "result": {
        "variant": "instalments-allocate-remainder",
        "protected": true,
        "requests": 999998,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "amounts_where_parts_do_not_add_up": 0,
          "kurus_charged_too_much": 0,
          "kurus_charged_too_little": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 4,
      "result": {
        "variant": "commission-double",
        "protected": false,
        "requests": 5000000,
        "incidents": 2716,
        "money_error_minor": 2716,
        "details": {
          "wrong_at_100_bp": 177,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 901,
          "wrong_at_1000_bp": 1638,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 4,
      "result": {
        "variant": "commission-decimal",
        "protected": true,
        "requests": 5000000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "wrong_at_100_bp": 0,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 0,
          "wrong_at_1000_bp": 0,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 4,
      "result": {
        "variant": "instalments-round-each",
        "protected": false,
        "requests": 999998,
        "incidents": 666665,
        "money_error_minor": 666665,
        "details": {
          "amounts_where_parts_do_not_add_up": 666665,
          "kurus_charged_too_much": 333332,
          "kurus_charged_too_little": 333333
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 4,
      "result": {
        "variant": "instalments-allocate-remainder",
        "protected": true,
        "requests": 999998,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "amounts_where_parts_do_not_add_up": 0,
          "kurus_charged_too_much": 0,
          "kurus_charged_too_little": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 5,
      "result": {
        "variant": "commission-double",
        "protected": false,
        "requests": 5000000,
        "incidents": 2716,
        "money_error_minor": 2716,
        "details": {
          "wrong_at_100_bp": 177,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 901,
          "wrong_at_1000_bp": 1638,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 5,
      "result": {
        "variant": "commission-decimal",
        "protected": true,
        "requests": 5000000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "wrong_at_100_bp": 0,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 0,
          "wrong_at_1000_bp": 0,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 5,
      "result": {
        "variant": "instalments-round-each",
        "protected": false,
        "requests": 999998,
        "incidents": 666665,
        "money_error_minor": 666665,
        "details": {
          "amounts_where_parts_do_not_add_up": 666665,
          "kurus_charged_too_much": 333332,
          "kurus_charged_too_little": 333333
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 5,
      "result": {
        "variant": "instalments-allocate-remainder",
        "protected": true,
        "requests": 999998,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "amounts_where_parts_do_not_add_up": 0,
          "kurus_charged_too_much": 0,
          "kurus_charged_too_little": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 6,
      "result": {
        "variant": "commission-double",
        "protected": false,
        "requests": 5000000,
        "incidents": 2716,
        "money_error_minor": 2716,
        "details": {
          "wrong_at_100_bp": 177,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 901,
          "wrong_at_1000_bp": 1638,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 6,
      "result": {
        "variant": "commission-decimal",
        "protected": true,
        "requests": 5000000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "wrong_at_100_bp": 0,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 0,
          "wrong_at_1000_bp": 0,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 6,
      "result": {
        "variant": "instalments-round-each",
        "protected": false,
        "requests": 999998,
        "incidents": 666665,
        "money_error_minor": 666665,
        "details": {
          "amounts_where_parts_do_not_add_up": 666665,
          "kurus_charged_too_much": 333332,
          "kurus_charged_too_little": 333333
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 6,
      "result": {
        "variant": "instalments-allocate-remainder",
        "protected": true,
        "requests": 999998,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "amounts_where_parts_do_not_add_up": 0,
          "kurus_charged_too_much": 0,
          "kurus_charged_too_little": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 7,
      "result": {
        "variant": "commission-double",
        "protected": false,
        "requests": 5000000,
        "incidents": 2716,
        "money_error_minor": 2716,
        "details": {
          "wrong_at_100_bp": 177,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 901,
          "wrong_at_1000_bp": 1638,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 7,
      "result": {
        "variant": "commission-decimal",
        "protected": true,
        "requests": 5000000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "wrong_at_100_bp": 0,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 0,
          "wrong_at_1000_bp": 0,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 7,
      "result": {
        "variant": "instalments-round-each",
        "protected": false,
        "requests": 999998,
        "incidents": 666665,
        "money_error_minor": 666665,
        "details": {
          "amounts_where_parts_do_not_add_up": 666665,
          "kurus_charged_too_much": 333332,
          "kurus_charged_too_little": 333333
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 7,
      "result": {
        "variant": "instalments-allocate-remainder",
        "protected": true,
        "requests": 999998,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "amounts_where_parts_do_not_add_up": 0,
          "kurus_charged_too_much": 0,
          "kurus_charged_too_little": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 8,
      "result": {
        "variant": "commission-double",
        "protected": false,
        "requests": 5000000,
        "incidents": 2716,
        "money_error_minor": 2716,
        "details": {
          "wrong_at_100_bp": 177,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 901,
          "wrong_at_1000_bp": 1638,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 8,
      "result": {
        "variant": "commission-decimal",
        "protected": true,
        "requests": 5000000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "wrong_at_100_bp": 0,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 0,
          "wrong_at_1000_bp": 0,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 8,
      "result": {
        "variant": "instalments-round-each",
        "protected": false,
        "requests": 999998,
        "incidents": 666665,
        "money_error_minor": 666665,
        "details": {
          "amounts_where_parts_do_not_add_up": 666665,
          "kurus_charged_too_much": 333332,
          "kurus_charged_too_little": 333333
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 8,
      "result": {
        "variant": "instalments-allocate-remainder",
        "protected": true,
        "requests": 999998,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "amounts_where_parts_do_not_add_up": 0,
          "kurus_charged_too_much": 0,
          "kurus_charged_too_little": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 9,
      "result": {
        "variant": "commission-double",
        "protected": false,
        "requests": 5000000,
        "incidents": 2716,
        "money_error_minor": 2716,
        "details": {
          "wrong_at_100_bp": 177,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 901,
          "wrong_at_1000_bp": 1638,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 9,
      "result": {
        "variant": "commission-decimal",
        "protected": true,
        "requests": 5000000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "wrong_at_100_bp": 0,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 0,
          "wrong_at_1000_bp": 0,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 9,
      "result": {
        "variant": "instalments-round-each",
        "protected": false,
        "requests": 999998,
        "incidents": 666665,
        "money_error_minor": 666665,
        "details": {
          "amounts_where_parts_do_not_add_up": 666665,
          "kurus_charged_too_much": 333332,
          "kurus_charged_too_little": 333333
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 9,
      "result": {
        "variant": "instalments-allocate-remainder",
        "protected": true,
        "requests": 999998,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "amounts_where_parts_do_not_add_up": 0,
          "kurus_charged_too_much": 0,
          "kurus_charged_too_little": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 10,
      "result": {
        "variant": "commission-double",
        "protected": false,
        "requests": 5000000,
        "incidents": 2716,
        "money_error_minor": 2716,
        "details": {
          "wrong_at_100_bp": 177,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 901,
          "wrong_at_1000_bp": 1638,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 10,
      "result": {
        "variant": "commission-decimal",
        "protected": true,
        "requests": 5000000,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "wrong_at_100_bp": 0,
          "wrong_at_175_bp": 0,
          "wrong_at_180_bp": 0,
          "wrong_at_1000_bp": 0,
          "wrong_at_2000_bp": 0
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 10,
      "result": {
        "variant": "instalments-round-each",
        "protected": false,
        "requests": 999998,
        "incidents": 666665,
        "money_error_minor": 666665,
        "details": {
          "amounts_where_parts_do_not_add_up": 666665,
          "kurus_charged_too_much": 333332,
          "kurus_charged_too_little": 333333
        }
      }
    },
    {
      "scenario_id": "08-rounding",
      "title": "Commission and instalments: double vs decimal, rounding vs allocation",
      "run": 10,
      "result": {
        "variant": "instalments-allocate-remainder",
        "protected": true,
        "requests": 999998,
        "incidents": 0,
        "money_error_minor": 0,
        "details": {
          "amounts_where_parts_do_not_add_up": 0,
          "kurus_charged_too_much": 0,
          "kurus_charged_too_little": 0
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 1,
      "result": {
        "variant": "naive-pipeline",
        "protected": false,
        "requests": 1047,
        "incidents": 49,
        "money_error_minor": 1225000,
        "details": {
          "only_at_bank": 47,
          "only_in_ledger": 2,
          "amount_mismatch": 0,
          "silent_reversals_injected": 2
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 1,
      "result": {
        "variant": "protected-pipeline",
        "protected": true,
        "requests": 1000,
        "incidents": 2,
        "money_error_minor": 50000,
        "details": {
          "only_at_bank": 0,
          "only_in_ledger": 2,
          "amount_mismatch": 0,
          "silent_reversals_injected": 2
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 2,
      "result": {
        "variant": "naive-pipeline",
        "protected": false,
        "requests": 1048,
        "incidents": 54,
        "money_error_minor": 1350000,
        "details": {
          "only_at_bank": 50,
          "only_in_ledger": 4,
          "amount_mismatch": 0,
          "silent_reversals_injected": 4
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 2,
      "result": {
        "variant": "protected-pipeline",
        "protected": true,
        "requests": 1000,
        "incidents": 5,
        "money_error_minor": 125000,
        "details": {
          "only_at_bank": 0,
          "only_in_ledger": 5,
          "amount_mismatch": 0,
          "silent_reversals_injected": 5
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 3,
      "result": {
        "variant": "naive-pipeline",
        "protected": false,
        "requests": 1054,
        "incidents": 55,
        "money_error_minor": 1375000,
        "details": {
          "only_at_bank": 54,
          "only_in_ledger": 1,
          "amount_mismatch": 0,
          "silent_reversals_injected": 1
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 3,
      "result": {
        "variant": "protected-pipeline",
        "protected": true,
        "requests": 1000,
        "incidents": 2,
        "money_error_minor": 50000,
        "details": {
          "only_at_bank": 0,
          "only_in_ledger": 2,
          "amount_mismatch": 0,
          "silent_reversals_injected": 2
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 4,
      "result": {
        "variant": "naive-pipeline",
        "protected": false,
        "requests": 1055,
        "incidents": 58,
        "money_error_minor": 1450000,
        "details": {
          "only_at_bank": 55,
          "only_in_ledger": 3,
          "amount_mismatch": 0,
          "silent_reversals_injected": 3
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 4,
      "result": {
        "variant": "protected-pipeline",
        "protected": true,
        "requests": 1000,
        "incidents": 2,
        "money_error_minor": 50000,
        "details": {
          "only_at_bank": 0,
          "only_in_ledger": 2,
          "amount_mismatch": 0,
          "silent_reversals_injected": 2
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 5,
      "result": {
        "variant": "naive-pipeline",
        "protected": false,
        "requests": 1053,
        "incidents": 58,
        "money_error_minor": 1450000,
        "details": {
          "only_at_bank": 54,
          "only_in_ledger": 4,
          "amount_mismatch": 0,
          "silent_reversals_injected": 4
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 5,
      "result": {
        "variant": "protected-pipeline",
        "protected": true,
        "requests": 999,
        "incidents": 3,
        "money_error_minor": 75000,
        "details": {
          "only_at_bank": 0,
          "only_in_ledger": 3,
          "amount_mismatch": 0,
          "silent_reversals_injected": 3
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 6,
      "result": {
        "variant": "naive-pipeline",
        "protected": false,
        "requests": 1051,
        "incidents": 54,
        "money_error_minor": 1350000,
        "details": {
          "only_at_bank": 52,
          "only_in_ledger": 2,
          "amount_mismatch": 0,
          "silent_reversals_injected": 2
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 6,
      "result": {
        "variant": "protected-pipeline",
        "protected": true,
        "requests": 1000,
        "incidents": 3,
        "money_error_minor": 75000,
        "details": {
          "only_at_bank": 0,
          "only_in_ledger": 3,
          "amount_mismatch": 0,
          "silent_reversals_injected": 3
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 7,
      "result": {
        "variant": "naive-pipeline",
        "protected": false,
        "requests": 1053,
        "incidents": 57,
        "money_error_minor": 1425000,
        "details": {
          "only_at_bank": 54,
          "only_in_ledger": 3,
          "amount_mismatch": 0,
          "silent_reversals_injected": 3
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 7,
      "result": {
        "variant": "protected-pipeline",
        "protected": true,
        "requests": 1000,
        "incidents": 3,
        "money_error_minor": 75000,
        "details": {
          "only_at_bank": 0,
          "only_in_ledger": 3,
          "amount_mismatch": 0,
          "silent_reversals_injected": 3
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 8,
      "result": {
        "variant": "naive-pipeline",
        "protected": false,
        "requests": 1051,
        "incidents": 56,
        "money_error_minor": 1400000,
        "details": {
          "only_at_bank": 51,
          "only_in_ledger": 5,
          "amount_mismatch": 0,
          "silent_reversals_injected": 5
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 8,
      "result": {
        "variant": "protected-pipeline",
        "protected": true,
        "requests": 1000,
        "incidents": 5,
        "money_error_minor": 125000,
        "details": {
          "only_at_bank": 0,
          "only_in_ledger": 5,
          "amount_mismatch": 0,
          "silent_reversals_injected": 5
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 9,
      "result": {
        "variant": "naive-pipeline",
        "protected": false,
        "requests": 1055,
        "incidents": 62,
        "money_error_minor": 1550000,
        "details": {
          "only_at_bank": 55,
          "only_in_ledger": 7,
          "amount_mismatch": 0,
          "silent_reversals_injected": 8
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 9,
      "result": {
        "variant": "protected-pipeline",
        "protected": true,
        "requests": 1000,
        "incidents": 9,
        "money_error_minor": 225000,
        "details": {
          "only_at_bank": 0,
          "only_in_ledger": 9,
          "amount_mismatch": 0,
          "silent_reversals_injected": 9
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 10,
      "result": {
        "variant": "naive-pipeline",
        "protected": false,
        "requests": 1049,
        "incidents": 53,
        "money_error_minor": 1325000,
        "details": {
          "only_at_bank": 51,
          "only_in_ledger": 2,
          "amount_mismatch": 0,
          "silent_reversals_injected": 2
        }
      }
    },
    {
      "scenario_id": "09-reconciliation",
      "title": "End-of-day comparison of bank records with our ledger",
      "run": 10,
      "result": {
        "variant": "protected-pipeline",
        "protected": true,
        "requests": 1000,
        "incidents": 3,
        "money_error_minor": 75000,
        "details": {
          "only_at_bank": 0,
          "only_in_ledger": 3,
          "amount_mismatch": 0,
          "silent_reversals_injected": 3
        }
      }
    }
  ]
}