{
  "generatedAt": "2026-11-29T05:31:12.4461504+00:00",
  "totalCostUsd": 0.9164,
  "totalCalls": 349,
  "tickets": 60,
  "files": [
    {
      "name": "AppSettings.cs",
      "lines": 26
    },
    {
      "name": "CheckoutService.cs",
      "lines": 44
    },
    {
      "name": "DiscountCatalog.cs",
      "lines": 26
    },
    {
      "name": "Models.cs",
      "lines": 35
    },
    {
      "name": "Money.cs",
      "lines": 43
    },
    {
      "name": "OrderRepository.cs",
      "lines": 57
    },
    {
      "name": "PaymentGateway.cs",
      "lines": 56
    },
    {
      "name": "PricingService.cs",
      "lines": 27
    },
    {
      "name": "ReconciliationJob.cs",
      "lines": 34
    },
    {
      "name": "RefundService.cs",
      "lines": 33
    },
    {
      "name": "RetryPolicy.cs",
      "lines": 34
    },
    {
      "name": "TaxCalculator.cs",
      "lines": 24
    },
    {
      "name": "WebhookHandler.cs",
      "lines": 37
    }
  ],
  "bugs": [
    {
      "id": "L1",
      "kind": "local",
      "title": "Expired discount codes are honoured and active ones ignored",
      "files": [
        "DiscountCatalog.cs"
      ]
    },
    {
      "id": "L2",
      "kind": "local",
      "title": "Discount cap uses Math.Max, so every order gets at least 500 TRY off",
      "files": [
        "PricingService.cs"
      ]
    },
    {
      "id": "L3",
      "kind": "local",
      "title": "VAT is truncated instead of rounded half away from zero",
      "files": [
        "TaxCalculator.cs"
      ]
    },
    {
      "id": "L4",
      "kind": "local",
      "title": "Full card number is written to the logs",
      "files": [
        "PaymentGateway.cs"
      ]
    },
    {
      "id": "L5",
      "kind": "local",
      "title": "Off by one: the call is attempted MaxAttempts \u002B 1 times",
      "files": [
        "RetryPolicy.cs"
      ]
    },
    {
      "id": "L6",
      "kind": "local",
      "title": "A failed payment is reported to the caller as success",
      "files": [
        "CheckoutService.cs"
      ]
    },
    {
      "id": "L7",
      "kind": "local",
      "title": "Refund limit check is inverted: refunds above the paid amount pass, smaller ones fail",
      "files": [
        "RefundService.cs"
      ]
    },
    {
      "id": "L8",
      "kind": "local",
      "title": "SQL injection through string interpolation of the email",
      "files": [
        "OrderRepository.cs"
      ]
    },
    {
      "id": "L9",
      "kind": "local",
      "title": "Webhook signature is computed but the result is ignored",
      "files": [
        "WebhookHandler.cs"
      ]
    },
    {
      "id": "L10",
      "kind": "local",
      "title": "A new HttpClient per order, socket exhaustion under load",
      "files": [
        "ReconciliationJob.cs"
      ]
    },
    {
      "id": "X1",
      "kind": "cross",
      "title": "Checkout sends lira to a gateway that expects kuru\u015F, charging 100x less",
      "files": [
        "CheckoutService.cs",
        "Money.cs",
        "PaymentGateway.cs"
      ]
    },
    {
      "id": "X2",
      "kind": "cross",
      "title": "Timeout read from a key that does not exist (TimeoutSeconds vs TimeoutMs), so the configured timeout is never used",
      "files": [
        "AppSettings.cs",
        "RetryPolicy.cs"
      ]
    },
    {
      "id": "X3",
      "kind": "cross",
      "title": "FindAsync returns null for unknown ids, callers dereference it",
      "files": [
        "CheckoutService.cs",
        "OrderRepository.cs",
        "RefundService.cs"
      ]
    },
    {
      "id": "X4",
      "kind": "cross",
      "title": "Provider status codes (1 Authorized, 2 Captured, 3 Declined) cast straight to PaymentStatus, whose values differ",
      "files": [
        "Models.cs",
        "PaymentGateway.cs",
        "WebhookHandler.cs"
      ]
    },
    {
      "id": "X5",
      "kind": "cross",
      "title": "Charge and refund use the same idempotency key, so a refund is always rejected as a duplicate",
      "files": [
        "CheckoutService.cs",
        "Models.cs",
        "RefundService.cs"
      ]
    },
    {
      "id": "X6",
      "kind": "cross",
      "title": "Discount rate is a 0-1 fraction but Money.Percent expects 0-100, so 15% off becomes 0.15% off",
      "files": [
        "DiscountCatalog.cs",
        "Money.cs",
        "PricingService.cs"
      ]
    },
    {
      "id": "X7",
      "kind": "cross",
      "title": "VAT is added twice: TaxCalculator.Apply already returns the gross amount",
      "files": [
        "PricingService.cs",
        "TaxCalculator.cs"
      ]
    },
    {
      "id": "X8",
      "kind": "cross",
      "title": "Retry policy retries every exception, including declines that must never be retried",
      "files": [
        "CheckoutService.cs",
        "PaymentGateway.cs",
        "RetryPolicy.cs"
      ]
    },
    {
      "id": "X9",
      "kind": "cross",
      "title": "Webhook compares currency with \u0022TL\u0022 but the system uses ISO \u0022TRY\u0022, so every webhook is dropped",
      "files": [
        "Money.cs",
        "WebhookHandler.cs"
      ]
    },
    {
      "id": "X10",
      "kind": "cross",
      "title": "Repository returns at most 100 rows per page, job stops when a page is not 500, so only the first 100 pending orders are reconciled",
      "files": [
        "OrderRepository.cs",
        "ReconciliationJob.cs"
      ]
    }
  ],
  "coLocation": [
    {
      "agents": 1,
      "split": [
        [
          "AppSettings.cs",
          "CheckoutService.cs",
          "DiscountCatalog.cs",
          "Models.cs",
          "Money.cs",
          "OrderRepository.cs",
          "PaymentGateway.cs",
          "PricingService.cs",
          "ReconciliationJob.cs",
          "RefundService.cs",
          "RetryPolicy.cs",
          "TaxCalculator.cs",
          "WebhookHandler.cs"
        ]
      ],
      "coLocatedCrossBugs": [
        "X1",
        "X2",
        "X3",
        "X4",
        "X5",
        "X6",
        "X7",
        "X8",
        "X9",
        "X10"
      ]
    },
    {
      "agents": 3,
      "split": [
        [
          "AppSettings.cs",
          "CheckoutService.cs",
          "DiscountCatalog.cs",
          "Models.cs",
          "Money.cs"
        ],
        [
          "OrderRepository.cs",
          "PaymentGateway.cs",
          "PricingService.cs",
          "ReconciliationJob.cs"
        ],
        [
          "RefundService.cs",
          "RetryPolicy.cs",
          "TaxCalculator.cs",
          "WebhookHandler.cs"
        ]
      ],
      "coLocatedCrossBugs": [
        "X10"
      ]
    },
    {
      "agents": 5,
      "split": [
        [
          "AppSettings.cs",
          "CheckoutService.cs",
          "DiscountCatalog.cs"
        ],
        [
          "Models.cs",
          "Money.cs",
          "OrderRepository.cs"
        ],
        [
          "PaymentGateway.cs",
          "PricingService.cs",
          "ReconciliationJob.cs"
        ],
        [
          "RefundService.cs",
          "RetryPolicy.cs"
        ],
        [
          "TaxCalculator.cs",
          "WebhookHandler.cs"
        ]
      ],
      "coLocatedCrossBugs": []
    },
    {
      "agents": 10,
      "split": [
        [
          "AppSettings.cs",
          "CheckoutService.cs"
        ],
        [
          "DiscountCatalog.cs",
          "Models.cs"
        ],
        [
          "Money.cs",
          "OrderRepository.cs"
        ],
        [
          "PaymentGateway.cs"
        ],
        [
          "PricingService.cs"
        ],
        [
          "ReconciliationJob.cs"
        ],
        [
          "RefundService.cs"
        ],
        [
          "RetryPolicy.cs"
        ],
        [
          "TaxCalculator.cs"
        ],
        [
          "WebhookHandler.cs"
        ]
      ],
      "coLocatedCrossBugs": []
    }
  ],
  "simple": [
    {
      "model": "claude-haiku-5-5",
      "agents": 3,
      "variant": "naive",
      "reps": 5,
      "wallSeconds": {
        "Mean": 5.5032,
        "Min": 4.578,
        "Max": 6.669
      },
      "costUsd": {
        "Mean": 0.0018,
        "Min": 0.0018,
        "Max": 0.0019
      },
      "inputTokens": {
        "Mean": 4311,
        "Min": 4311,
        "Max": 4311
      },
      "outputTokens": {
        "Mean": 2824,
        "Min": 2712,
        "Max": 2998
      },
      "accuracy": {
        "Mean": 0.9833,
        "Min": 0.9833,
        "Max": 0.9833
      },
      "categoryAccuracy": {
        "Mean": 0.9833,
        "Min": 0.9833,
        "Max": 0.9833
      },
      "amountAccuracy": {
        "Mean": 1,
        "Min": 1,
        "Max": 1
      },
      "urgentAccuracy": {
        "Mean": 1,
        "Min": 1,
        "Max": 1
      },
      "missing": 0,
      "wrongIds": [
        {
          "id": 12,
          "times": 5
        }
      ]
    },
    {
      "model": "claude-haiku-5-5",
      "agents": 5,
      "variant": "naive",
      "reps": 5,
      "wallSeconds": {
        "Mean": 4.0982,
        "Min": 3.416,
        "Max": 5.019
      },
      "costUsd": {
        "Mean": 0.0022,
        "Min": 0.0021,
        "Max": 0.0022
      },
      "inputTokens": {
        "Mean": 5797,
        "Min": 5797,
        "Max": 5797
      },
      "outputTokens": {
        "Mean": 3191.4,
        "Min": 3140,
        "Max": 3293
      },
      "accuracy": {
        "Mean": 0.9833,
        "Min": 0.9833,
        "Max": 0.9833
      },
      "categoryAccuracy": {
        "Mean": 0.9833,
        "Min": 0.9833,
        "Max": 0.9833
      },
      "amountAccuracy": {
        "Mean": 1,
        "Min": 1,
        "Max": 1
      },
      "urgentAccuracy": {
        "Mean": 1,
        "Min": 1,
        "Max": 1
      },
      "missing": 0,
      "wrongIds": [
        {
          "id": 12,
          "times": 5
        }
      ]
    },
    {
      "model": "claude-haiku-5-5",
      "agents": 10,
      "variant": "naive",
      "reps": 5,
      "wallSeconds": {
        "Mean": 3.646,
        "Min": 3.253,
        "Max": 3.99
      },
      "costUsd": {
        "Mean": 0.0026,
        "Min": 0.0025,
        "Max": 0.0027
      },
      "inputTokens": {
        "Mean": 9512,
        "Min": 9512,
        "Max": 9512
      },
      "outputTokens": {
        "Mean": 3340.8,
        "Min": 3194,
        "Max": 3488
      },
      "accuracy": {
        "Mean": 0.97,
        "Min": 0.9667,
        "Max": 0.9833
      },
      "categoryAccuracy": {
        "Mean": 0.97,
        "Min": 0.9667,
        "Max": 0.9833
      },
      "amountAccuracy": {
        "Mean": 1,
        "Min": 1,
        "Max": 1
      },
      "urgentAccuracy": {
        "Mean": 1,
        "Min": 1,
        "Max": 1
      },
      "missing": 0,
      "wrongIds": [
        {
          "id": 54,
          "times": 5
        },
        {
          "id": 12,
          "times": 4
        }
      ]
    },
    {
      "model": "claude-haiku-5-5",
      "agents": 1,
      "variant": "single",
      "reps": 5,
      "wallSeconds": {
        "Mean": 9.8826,
        "Min": 9.219,
        "Max": 10.424
      },
      "costUsd": {
        "Mean": 0.0015,
        "Min": 0.0015,
        "Max": 0.0016
      },
      "inputTokens": {
        "Mean": 2825,
        "Min": 2825,
        "Max": 2825
      },
      "outputTokens": {
        "Mean": 2519.8,
        "Min": 2421,
        "Max": 2566
      },
      "accuracy": {
        "Mean": 0.98,
        "Min": 0.9667,
        "Max": 0.9833
      },
      "categoryAccuracy": {
        "Mean": 0.98,
        "Min": 0.9667,
        "Max": 0.9833
      },
      "amountAccuracy": {
        "Mean": 1,
        "Min": 1,
        "Max": 1
      },
      "urgentAccuracy": {
        "Mean": 1,
        "Min": 1,
        "Max": 1
      },
      "missing": 0,
      "wrongIds": [
        {
          "id": 12,
          "times": 5
        },
        {
          "id": 54,
          "times": 1
        }
      ]
    }
  ],
  "review": [
    {
      "model": "claude-haiku-5-5",
      "agents": 3,
      "variant": "contracts",
      "reps": 5,
      "wallSeconds": {
        "Mean": 20.1878,
        "Min": 17.452,
        "Max": 24.265
      },
      "mergeSeconds": {
        "Mean": 8.8404,
        "Min": 7.239,
        "Max": 11.575
      },
      "costUsd": {
        "Mean": 0.0064,
        "Min": 0.0062,
        "Max": 0.0067
      },
      "inputTokens": {
        "Mean": 22568.8,
        "Min": 22513,
        "Max": 22675
      },
      "outputTokens": {
        "Mean": 8237.4,
        "Min": 7873,
        "Max": 8875
      },
      "localFound": {
        "Mean": 10,
        "Min": 10,
        "Max": 10
      },
      "crossFound": {
        "Mean": 9.6,
        "Min": 9,
        "Max": 10
      },
      "findings": {
        "Mean": 21.6,
        "Min": 21,
        "Max": 22
      },
      "extra": {
        "Mean": 1.4,
        "Min": 1,
        "Max": 2
      },
      "perBug": {
        "L1": 1,
        "L2": 1,
        "L3": 1,
        "L4": 1,
        "L5": 1,
        "L6": 1,
        "L7": 1,
        "L8": 1,
        "L9": 1,
        "L10": 1,
        "X1": 1,
        "X2": 1,
        "X3": 0.8,
        "X4": 1,
        "X5": 1,
        "X6": 0.8,
        "X7": 1,
        "X8": 1,
        "X9": 1,
        "X10": 1
      },
      "nearMiss": [
        "CheckoutService.cs:34 The result.Success flag from the gateway is never checked, so the order is marked Captured and Paid even when the provider returned an unsuccessful charge result, causing unpaid orders to be recorded as paid."
      ],
      "extraFindings": [
        "Models.cs:16 Total and Paid default to a Money value whose Currency is null, so any arithmetic or currency check on an unset order fails or mixes currencies silently.",
        "RefundService.cs:28 Order.Paid is reduced even when the gateway result reports Success = false, so the ledger records money as refunded that was never returned.",
        "RefundService.cs:28 order.Paid is decremented even when the gateway returned Success = false, so the local ledger records a refund that never happened.",
        "RefundService.cs:28 The paid amount and order status are updated even when the gateway returned Success = false, so the local state records refunds that never happened.",
        "RefundService.cs:28 Paid is decremented even when the gateway returned Success=false, so the order records money as refunded that was never returned to the customer.",
        "CheckoutService.cs:34 The result.Success flag from the gateway is never checked, so the order is marked Captured and Paid even when the provider returned an unsuccessful charge result, causing unpaid orders to be recorded as paid.",
        "RefundService.cs:28 Paid is decremented and the order status updated even when the gateway returned Success=false, so a failed refund is recorded as completed and the books drift from the provider."
      ]
    },
    {
      "model": "claude-haiku-5-5",
      "agents": 5,
      "variant": "contracts",
      "reps": 5,
      "wallSeconds": {
        "Mean": 18.0416,
        "Min": 17.045,
        "Max": 18.537
      },
      "mergeSeconds": {
        "Mean": 8.9482,
        "Min": 7.407,
        "Max": 9.827
      },
      "costUsd": {
        "Mean": 0.0077,
        "Min": 0.0075,
        "Max": 0.0079
      },
      "inputTokens": {
        "Mean": 30086.8,
        "Min": 30043,
        "Max": 30172
      },
      "outputTokens": {
        "Mean": 9456.2,
        "Min": 9057,
        "Max": 9731
      },
      "localFound": {
        "Mean": 10,
        "Min": 10,
        "Max": 10
      },
      "crossFound": {
        "Mean": 9.2,
        "Min": 9,
        "Max": 10
      },
      "findings": {
        "Mean": 22,
        "Min": 21,
        "Max": 23
      },
      "extra": {
        "Mean": 2.6,
        "Min": 2,
        "Max": 3
      },
      "perBug": {
        "L1": 1,
        "L2": 1,
        "L3": 1,
        "L4": 1,
        "L5": 1,
        "L6": 1,
        "L7": 1,
        "L8": 1,
        "L9": 1,
        "L10": 1,
        "X1": 1,
        "X2": 1,
        "X3": 0.6,
        "X4": 1,
        "X5": 1,
        "X6": 0.6,
        "X7": 1,
        "X8": 1,
        "X9": 1,
        "X10": 1
      },
      "nearMiss": [
        "CheckoutService.cs:34 The order is marked Captured without checking result.Success, so a ChargeResult reporting failure still records the order as paid.",
        "CheckoutService.cs:34 The ChargeResult from the gateway is never checked, so a result with Success=false is still recorded as Captured with Paid set to the full total."
      ],
      "extraFindings": [
        "CheckoutService.cs:34 The order is marked Captured without checking result.Success, so a ChargeResult reporting failure still records the order as paid.",
        "Models.cs:16 Total and Paid are not initialised, so they default to Money with a null Currency, and any later Money arithmetic on them against TRY amounts throws a currency mismatch exception.",
        "RefundService.cs:28 The result of the gateway refund is never checked, so Paid is reduced and the status is changed even when the provider reports the refund failed, leaving the order\u0027s money state wrong.",
        "OrderRepository.cs:45 ListPendingAsync pages with offset/limit but orders only by created_at_utc, which is not unique, so rows with equal timestamps can appear on two pages or be skipped, causing the reconciliation job to miss pending orders.",
        "OrderRepository.cs:38 SaveAsync passes the whole Order as Dapper parameters, but Total and Paid are Money structs with no database mapping, so the update fails at runtime and the Currency part of the amounts is never persisted.",
        "RefundService.cs:28 The gateway result is never checked for Success, so a failed or declined refund still decrements order.Paid and may set the status to Refunded, corrupting the ledger.",
        "OrderRepository.cs:38 SaveAsync passes the Order object as parameters, but Total and Paid are Money structs that Npgsql cannot map to a column type, so every save fails and order totals and payment status cannot be persisted.",
        "RefundService.cs:28 The code deducts the refund from order.Paid and updates the status without checking result.Success, so a failed gateway refund still reduces the recorded paid amount and can mark the order Refunded while the customer has not been refunded.",
        "CheckoutService.cs:34 The ChargeResult from the gateway is never checked, so a result with Success=false is still recorded as Captured with Paid set to the full total.",
        "OrderRepository.cs:45 Paging orders only by created_at_utc with no unique tiebreaker makes offset/limit pages nondeterministic when timestamps tie, so the reconciliation job can skip or process the same pending order twice.",
        "RefundService.cs:28 The gateway result is never checked for Success, so Paid is reduced and the status is changed to Refunded or Captured even when the provider refused the refund, leaving the local ledger wrong.",
        "Models.cs:16 Total and Paid are Money structs whose default value has a null Currency, so an order whose Total or Paid was never set carries a null currency, and later arithmetic or currency checks against it fail or give wrong results.",
        "RefundService.cs:28 \u0060order.Paid\u0060 is reduced and the order status is saved even when the gateway returned \u0060Success == false\u0060, so the local ledger records money as refunded that the provider never refunded."
      ]
    },
    {
      "model": "claude-haiku-5-5",
      "agents": 10,
      "variant": "contracts",
      "reps": 5,
      "wallSeconds": {
        "Mean": 20.064,
        "Min": 18.809,
        "Max": 23.856
      },
      "mergeSeconds": {
        "Mean": 13.1194,
        "Min": 11.622,
        "Max": 16.34
      },
      "costUsd": {
        "Mean": 0.0113,
        "Min": 0.011,
        "Max": 0.0116
      },
      "inputTokens": {
        "Mean": 49177.4,
        "Min": 49074,
        "Max": 49377
      },
      "outputTokens": {
        "Mean": 12848,
        "Min": 12265,
        "Max": 13402
      },
      "localFound": {
        "Mean": 10,
        "Min": 10,
        "Max": 10
      },
      "crossFound": {
        "Mean": 10,
        "Min": 10,
        "Max": 10
      },
      "findings": {
        "Mean": 27.8,
        "Min": 27,
        "Max": 29
      },
      "extra": {
        "Mean": 6.2,
        "Min": 4,
        "Max": 7
      },
      "perBug": {
        "L1": 1,
        "L2": 1,
        "L3": 1,
        "L4": 1,
        "L5": 1,
        "L6": 1,
        "L7": 1,
        "L8": 1,
        "L9": 1,
        "L10": 1,
        "X1": 1,
        "X2": 1,
        "X3": 1,
        "X4": 1,
        "X5": 1,
        "X6": 1,
        "X7": 1,
        "X8": 1,
        "X9": 1,
        "X10": 1
      },
      "nearMiss": [
        "OrderRepository.cs:29 Dapper maps select * onto Order, but Subtotal, Total and Paid are Money structs with no column mapping, so these amounts are not loaded correctly and can be silently zero or throw.",
        "Money.cs:36 Min compares only the Minor values and skips the currency check that the operators perform, so amounts in different currencies can be compared and the wrong one returned.",
        "Money.cs:36 Min compares only the Minor values and skips the currency check that the \u002B and - operators perform, so amounts in different currencies can be compared and the wrong one returned.",
        "ReconciliationJob.cs:24 If the configured gateway base URL has no trailing slash, the relative path on line 24 replaces its last segment (e.g. /payments/v1/orders becomes /v1/orders), so status requests go to the wrong endpoint.",
        "ReconciliationJob.cs:24 An exception from one provider call (such as a 404 or timeout) propagates out of RunAsync and aborts the whole nightly run, so the remaining pending orders are never checked.",
        "Money.cs:36 Min compares only the Minor values and skips the currency check used by \u002B and -, so amounts in different currencies are compared as if they were the same and a wrong amount can be returned without any error.",
        "WebhookHandler.cs:24 The paid amount is taken from the webhook\u0027s AmountMinor without comparing it to the order total, so a callback with a wrong or tampered amount records an incorrect payment on the order.",
        "Money.cs:36 Min compares only the Minor values and skips the currency check that \u002B, - and the other operators enforce, so amounts in different currencies can be compared silently and the wrong one returned.",
        "ReconciliationJob.cs:24 The relative path v1/orders/{id} is resolved against a BaseAddress that may lack a trailing slash, so any path segment in the configured gateway base URL is silently dropped and requests go to the wrong endpoint.",
        "WebhookHandler.cs:24 The paid amount is taken from the webhook payload without checking it against the order total, so a short or wrong amount from the callback marks the order as fully paid."
      ],
      "extraFindings": [
        "OrderRepository.cs:38 The Order\u0027s Total and Paid are Money structs passed as raw Dapper parameters, which Npgsql cannot map to the columns, so SaveAsync will fail at runtime and orders cannot be updated.",
        "OrderRepository.cs:29 Dapper maps select * onto Order, but Subtotal, Total and Paid are Money structs with no column mapping, so these amounts are not loaded correctly and can be silently zero or throw.",
        "Money.cs:36 Min compares only the Minor values and skips the currency check that the operators perform, so amounts in different currencies can be compared and the wrong one returned.",
        "PaymentGateway.cs:52 RefundAsync returns the original charge\u0027s providerReference as the refund\u0027s reference and ignores the provider\u0027s refund response, so the caller cannot track the actual refund and a failed or pending refund is reported as successful.",
        "PaymentGateway.cs:40 If the provider returns a success status with an empty or null body, body!.Reference throws a NullReferenceException after the charge was already made, so the caller sees a failure for a payment that was taken.",
        "RefundService.cs:28 order.Paid is reduced even when the gateway result is a failure (Success false), so the local ledger records money as refunded that the provider never refunded.",
        "WebhookHandler.cs:35 Convert.ToHexString produces uppercase hex, so a valid signature sent in lowercase hex fails the comparison and legitimate callbacks are rejected.",
        "Money.cs:36 Min compares only the Minor values and skips the currency check that the \u002B and - operators perform, so amounts in different currencies can be compared and the wrong one returned.",
        "PaymentGateway.cs:40 \u0060body!.Reference\u0060 assumes the provider returns a JSON body, so an empty or null success response throws a NullReferenceException after the charge may already have been taken, and the order is left in an unknown state.",
        "PaymentGateway.cs:45 \u0060providerReference\u0060 is interpolated into the URL path without escaping, so a value containing \u0027/\u0027, \u0027?\u0027 or \u0027..\u0027 can change the target endpoint of the refund request.",
        "ReconciliationJob.cs:24 If the configured gateway base URL has no trailing slash, the relative path on line 24 replaces its last segment (e.g. /payments/v1/orders becomes /v1/orders), so status requests go to the wrong endpoint.",
        "ReconciliationJob.cs:24 An exception from one provider call (such as a 404 or timeout) propagates out of RunAsync and aborts the whole nightly run, so the remaining pending orders are never checked.",
        "RefundService.cs:28 The order\u0027s Paid amount and Status are updated even when the gateway returned Success=false, so a failed refund is recorded as completed and the books diverge from the provider.",
        "WebhookHandler.cs:35 The expected signature is uppercase hex from Convert.ToHexString, so a lowercase hex signature from the provider never matches and valid webhooks are rejected.",
        "Money.cs:36 Min compares only the Minor values and skips the currency check used by \u002B and -, so amounts in different currencies are compared as if they were the same and a wrong amount can be returned without any error.",
        "PaymentGateway.cs:45 providerReference is interpolated into the URL path without escaping, so a value containing \u0027/\u0027, \u0027?\u0027 or \u0027#\u0027 can redirect the refund request to a different endpoint.",
        "PaymentGateway.cs:52 RefundAsync returns the original charge\u0027s providerReference instead of the refund\u0027s own reference from the response, so the refund cannot be identified later and the result is wrong.",
        "PaymentGateway.cs:40 body!.Reference dereferences a null body when a successful response has no JSON content, which throws NullReferenceException after the provider may already have captured the money.",
        "RefundService.cs:28 Paid is reduced and the status is changed without checking result.Success, so a declined or failed provider refund still marks the money as refunded in the database.",
        "WebhookHandler.cs:24 The paid amount is taken from the webhook\u0027s AmountMinor without comparing it to the order total, so a callback with a wrong or tampered amount records an incorrect payment on the order.",
        "PaymentGateway.cs:40 If the provider returns a success response with an empty body, body!.Reference throws NullReferenceException after the charge has already succeeded, so the order is not marked paid and a retry may charge the customer again.",
        "PaymentGateway.cs:45 providerReference is interpolated unescaped into the request path, so a value containing \u0027/\u0027, \u0027?\u0027 or \u0027#\u0027 can redirect the refund request to a different endpoint.",
        "RefundService.cs:28 The result of the gateway refund is never checked, so Paid is reduced and the status is changed to Refunded or kept as Captured even when the provider declined or failed the refund, leaving the internal ledger wrong.",
        "WebhookHandler.cs:35 The expected signature is uppercase hex from Convert.ToHexString, so a valid signature sent in lowercase hex fails the comparison and legitimate webhooks are rejected.",
        "OrderRepository.cs:46 A negative take is passed through Math.Min unchanged, so the query gets a negative LIMIT, which PostgreSQL rejects and makes the listing fail.",
        "Money.cs:36 Min compares only the Minor values and skips the currency check that \u002B, - and the other operators enforce, so amounts in different currencies can be compared silently and the wrong one returned.",
        "PaymentGateway.cs:45 providerReference is interpolated into the URL path without escaping, so a value containing \u0027/\u0027, \u0027?\u0027 or \u0027..\u0027 can change the target endpoint and send a refund request to an unintended resource.",
        "PaymentGateway.cs:40 body!.Reference dereferences a null body when the provider returns an empty or non-JSON success response, throwing after the charge has succeeded so the order is not recorded as paid.",
        "ReconciliationJob.cs:24 The relative path v1/orders/{id} is resolved against a BaseAddress that may lack a trailing slash, so any path segment in the configured gateway base URL is silently dropped and requests go to the wrong endpoint.",
        "RefundService.cs:28 The order\u0027s Paid amount and Status are updated without checking result.Success, so a declined or failed gateway refund still reduces Paid and may mark the order Refunded, leaving the books wrong.",
        "WebhookHandler.cs:24 The paid amount is taken from the webhook payload without checking it against the order total, so a short or wrong amount from the callback marks the order as fully paid."
      ]
    },
    {
      "model": "claude-haiku-5-5",
      "agents": 3,
      "variant": "naive",
      "reps": 5,
      "wallSeconds": {
        "Mean": 17.0784,
        "Min": 13.669,
        "Max": 18.732
      },
      "mergeSeconds": {
        "Mean": 5.9482,
        "Min": 5.042,
        "Max": 6.55
      },
      "costUsd": {
        "Mean": 0.0045,
        "Min": 0.0043,
        "Max": 0.0048
      },
      "inputTokens": {
        "Mean": 12636.2,
        "Min": 12461,
        "Max": 12792
      },
      "outputTokens": {
        "Mean": 6464.4,
        "Min": 6013,
        "Max": 6992
      },
      "localFound": {
        "Mean": 9.6,
        "Min": 9,
        "Max": 10
      },
      "crossFound": {
        "Mean": 5,
        "Min": 5,
        "Max": 5
      },
      "findings": {
        "Mean": 17.4,
        "Min": 16,
        "Max": 19
      },
      "extra": {
        "Mean": 1.8,
        "Min": 1,
        "Max": 4
      },
      "perBug": {
        "L1": 1,
        "L2": 1,
        "L3": 1,
        "L4": 1,
        "L5": 0.6,
        "L6": 1,
        "L7": 1,
        "L8": 1,
        "L9": 1,
        "L10": 1,
        "X1": 1,
        "X2": 0,
        "X3": 0,
        "X4": 0.2,
        "X5": 1,
        "X6": 0,
        "X7": 1,
        "X8": 0.8,
        "X9": 0,
        "X10": 1
      },
      "nearMiss": [
        "WebhookHandler.cs:24 The paid amount is taken directly from the unverified payload without comparing it to the order total, so a callback can set an arbitrary paid amount.",
        "WebhookHandler.cs:24 The paid amount is overwritten with the unverified AmountMinor from the webhook payload without checking it against the order total, so a callback can set an arbitrary paid amount."
      ],
      "extraFindings": [
        "RefundService.cs:28 Paid is decremented even when the gateway refund failed (result is not checked), so the local ledger shows money returned that was never refunded.",
        "RefundService.cs:30 The gateway refund (line 27) happens before the order is saved, so if SaveAsync fails the customer is refunded while the order still shows the old paid amount, which can lead to a second refund.",
        "RetryPolicy.cs:17 The loop allows maxAttempts retries after the first call, giving maxAttempts\u002B1 total gateway calls, one more than configured.",
        "WebhookHandler.cs:24 The paid amount is taken directly from the unverified payload without comparing it to the order total, so a callback can set an arbitrary paid amount.",
        "RefundService.cs:28 Paid is decremented and the order is saved even when the gateway refund failed or returned an error result, so the local ledger diverges from the provider.",
        "RefundService.cs:28 Order.Paid is reduced and the status updated even when the gateway refund failed or was declined, so the local ledger records money as refunded that was never returned.",
        "RefundService.cs:28 Order.Paid is reduced and saved regardless of whether the gateway refund succeeded, since the result is never checked, so a failed refund still reduces the recorded paid amount and the books diverge from the provider.",
        "WebhookHandler.cs:24 The paid amount is overwritten with the unverified AmountMinor from the webhook payload without checking it against the order total, so a callback can set an arbitrary paid amount.",
        "RefundService.cs:28 The gateway result is never checked, so order.Paid is reduced and saved even when the provider refund failed, which records money as refunded that was not returned."
      ]
    },
    {
      "model": "claude-haiku-5-5",
      "agents": 5,
      "variant": "naive",
      "reps": 5,
      "wallSeconds": {
        "Mean": 15.656,
        "Min": 12.624,
        "Max": 17.65
      },
      "mergeSeconds": {
        "Mean": 7.0278,
        "Min": 5.222,
        "Max": 8.63
      },
      "costUsd": {
        "Mean": 0.0052,
        "Min": 0.0047,
        "Max": 0.0057
      },
      "inputTokens": {
        "Mean": 13700.8,
        "Min": 13538,
        "Max": 13804
      },
      "outputTokens": {
        "Mean": 7711,
        "Min": 6728,
        "Max": 8665
      },
      "localFound": {
        "Mean": 9.2,
        "Min": 9,
        "Max": 10
      },
      "crossFound": {
        "Mean": 4.8,
        "Min": 4,
        "Max": 5
      },
      "findings": {
        "Mean": 18.2,
        "Min": 16,
        "Max": 20
      },
      "extra": {
        "Mean": 4,
        "Min": 1,
        "Max": 7
      },
      "perBug": {
        "L1": 1,
        "L2": 1,
        "L3": 1,
        "L4": 1,
        "L5": 0.2,
        "L6": 1,
        "L7": 1,
        "L8": 1,
        "L9": 1,
        "L10": 1,
        "X1": 0.2,
        "X2": 0,
        "X3": 0.8,
        "X4": 0.8,
        "X5": 1,
        "X6": 0,
        "X7": 1,
        "X8": 1,
        "X9": 0,
        "X10": 0
      },
      "nearMiss": [
        "CheckoutService.cs:30 Casting order.Total.Lira to long truncates any fractional amount, so the gateway can charge less than the order total.",
        "CheckoutService.cs:30 Casting order.Total.Lira to long truncates any fractional amount, so the gateway is charged less than the order total and the difference is lost.",
        "ReconciliationJob.cs:24 A single failed or non-success provider call throws and aborts the entire reconciliation run, leaving the remaining pending orders unchecked.",
        "CheckoutService.cs:30 Casting order.Total.Lira to long truncates the fractional part, so customers are charged less than the computed total whenever the amount has a fractional component.",
        "WebhookHandler.cs:24 The Paid amount is taken directly from the unverified payload\u0027s AmountMinor without comparing it to the order\u0027s expected total, so a callback can record a wrong paid amount for the order.",
        "CheckoutService.cs:30 Casting order.Total.Lira to long truncates any fractional amount, so the gateway may charge less than the order total.",
        "ReconciliationJob.cs:24 A single failed or throwing provider request is not caught, so one bad order aborts the whole reconciliation run and leaves the remaining pending orders unchecked."
      ],
      "extraFindings": [
        "CheckoutService.cs:30 Casting order.Total.Lira to long truncates any fractional amount, so the gateway can charge less than the order total.",
        "Models.cs:17 Order.Paid (and Total on line 16) are not initialized to Money.Zero, so a new order holds default(Money) with a null Currency, and the first Paid \u002B amount call throws the currency-mismatch exception.",
        "RefundService.cs:28 Paid is reduced before checking whether the gateway refund succeeded, so a declined or failed refund still lowers the recorded paid amount and corrupts the order\u0027s money state.",
        "CheckoutService.cs:30 Casting order.Total.Lira to long truncates any fractional amount, so the gateway is charged less than the order total and the difference is lost.",
        "PaymentGateway.cs:52 RefundAsync returns the original charge reference instead of the refund\u0027s own reference from the provider, so callers record a wrong reference for the refund.",
        "ReconciliationJob.cs:24 A single failed or non-success provider call throws and aborts the entire reconciliation run, leaving the remaining pending orders unchecked.",
        "RefundService.cs:28 The order\u0027s Paid balance and status are reduced even when the gateway result indicates failure, so the local record shows money refunded that was never returned.",
        "RetryPolicy.cs:17 The loop allows maxAttempts retries after the first call, so with the default of 3 the gateway is called 4 times, one more than configured.",
        "RefundService.cs:28 The result of the gateway refund is never checked, so a failed or declined refund still reduces order.Paid and can mark the order Refunded, leaving the books wrong.",
        "CheckoutService.cs:30 Casting order.Total.Lira to long truncates the fractional part, so customers are charged less than the computed total whenever the amount has a fractional component.",
        "Models.cs:17 Paid defaults to a Money with a null Currency, so adding or subtracting it against a TRY amount throws a currency-mismatch exception on any order whose Paid was never set.",
        "OrderRepository.cs:45 Paging with offset over order by created_at_utc alone has no unique tiebreaker, so rows with equal timestamps can be skipped or returned twice across pages.",
        "OrderRepository.cs:38 The Order object is passed as the parameter source while Total and Paid are Money structs, which Npgsql has no mapping for, so the update fails at runtime.",
        "PaymentGateway.cs:52 RefundAsync returns the original charge reference instead of the refund\u0027s own reference, so callers cannot track the refund at the provider.",
        "RefundService.cs:28 The paid amount is reduced even when the gateway reports a failed refund (result not checked), so the ledger records money as refunded that was never returned.",
        "WebhookHandler.cs:24 The Paid amount is taken directly from the unverified payload\u0027s AmountMinor without comparing it to the order\u0027s expected total, so a callback can record a wrong paid amount for the order.",
        "CheckoutService.cs:30 Casting order.Total.Lira to long truncates any fractional amount, so the gateway may charge less than the order total.",
        "OrderRepository.cs:38 The Order\u0027s Total and Paid are Money structs passed as Dapper parameters without mapping to Minor and Currency columns, so Npgsql cannot send them and the save fails or writes the wrong value.",
        "ReconciliationJob.cs:24 A single failed or throwing provider request is not caught, so one bad order aborts the whole reconciliation run and leaves the remaining pending orders unchecked.",
        "RefundService.cs:28 The paid amount and order status are updated without checking result.Success, so a failed gateway refund still reduces the recorded paid amount and can mark the order Refunded while no money was returned."
      ]
    },
    {
      "model": "claude-haiku-5-5",
      "agents": 10,
      "variant": "naive",
      "reps": 5,
      "wallSeconds": {
        "Mean": 15.8532,
        "Min": 13.921,
        "Max": 17.511
      },
      "mergeSeconds": {
        "Mean": 8.6958,
        "Min": 7.432,
        "Max": 9.918
      },
      "costUsd": {
        "Mean": 0.0068,
        "Min": 0.0064,
        "Max": 0.0071
      },
      "inputTokens": {
        "Mean": 16771,
        "Min": 16614,
        "Max": 17010
      },
      "outputTokens": {
        "Mean": 10164.4,
        "Min": 9386,
        "Max": 10749
      },
      "localFound": {
        "Mean": 10,
        "Min": 10,
        "Max": 10
      },
      "crossFound": {
        "Mean": 4.8,
        "Min": 4,
        "Max": 5
      },
      "findings": {
        "Mean": 23.2,
        "Min": 22,
        "Max": 25
      },
      "extra": {
        "Mean": 8.2,
        "Min": 7,
        "Max": 10
      },
      "perBug": {
        "L1": 1,
        "L2": 1,
        "L3": 1,
        "L4": 1,
        "L5": 1,
        "L6": 1,
        "L7": 1,
        "L8": 1,
        "L9": 1,
        "L10": 1,
        "X1": 0.8,
        "X2": 0,
        "X3": 0,
        "X4": 0.8,
        "X5": 1,
        "X6": 0,
        "X7": 1,
        "X8": 1,
        "X9": 0,
        "X10": 0.2
      },
      "nearMiss": [
        "ReconciliationJob.cs:24 The relative URL is resolved against BaseAddress, so a gateway base URL without a trailing slash (e.g. https://host/gateway) drops its last path segment and every status request goes to the wrong endpoint.",
        "ReconciliationJob.cs:24 GetFromJsonAsync throws on any non-success HTTP response with no handling, so one failing provider call aborts the whole run and leaves the remaining pending orders unreconciled.",
        "ReconciliationJob.cs:25 The provider status is only logged and never applied to the order, so orders stuck in pending are never actually reconciled and stay pending after the job runs.",
        "WebhookHandler.cs:24 The order is marked as paid using the AmountMinor from the webhook payload without checking it against the order\u0027s expected total, so an underpaid or manipulated amount is recorded as fully paid.",
        "ReconciliationJob.cs:24 An HTTP error or malformed response from the provider throws and aborts the whole loop, so the remaining pending orders in the batch are never reconciled and the job fails partway through.",
        "WebhookHandler.cs:24 The provider-reported AmountMinor is recorded as paid without comparing it to the order\u0027s total, so a captured status with a short or wrong amount marks the order fully paid and loses money.",
        "ReconciliationJob.cs:24 An exception from one provider call (network error, non-success status, or deserialization failure) propagates out of the loop and aborts the whole run, so the remaining pending orders are never reconciled.",
        "WebhookHandler.cs:24 Order.Paid is set from the provider-supplied AmountMinor without checking it against the order\u0027s expected total, so a short or manipulated amount can mark an order as fully paid.",
        "Money.cs:36 Min compares only the Minor values and never checks that the currencies match, so amounts in different currencies can be compared and the wrong amount returned silently, unlike the \u002B and - operators.",
        "ReconciliationJob.cs:24 The relative URI \u0022v1/orders/{id}\u0022 resolved against a BaseAddress without a trailing slash drops any path segment in the gateway base URL, so status requests can go to the wrong endpoint.",
        "ReconciliationJob.cs:24 GetFromJsonAsync throws on any non-success response or transient network error, which aborts the whole nightly run and leaves the remaining pending orders unreconciled.",
        "WebhookHandler.cs:24 The paid amount is taken from the unverified webhook AmountMinor and never compared with the order total, so a forged or wrong amount is recorded as the order\u0027s payment.",
        "CheckoutService.cs:30 Casting order.Total.Lira to long truncates any fractional amount, so the gateway can be charged less than the order total.",
        "ReconciliationJob.cs:24 GetFromJsonAsync throws on any non-success response or network error with no per-order handling, so one failing provider call aborts the whole run and leaves the remaining pending orders unreconciled.",
        "ReconciliationJob.cs:23 If the configured gateway base URL has a path without a trailing slash (e.g. https://host/api), the relative path \u0027v1/orders/...\u0027 resolves against the base and drops the last segment, so status requests go to the wrong endpoint.",
        "WebhookHandler.cs:24 The paid amount is taken directly from the unverified webhook AmountMinor without checking it against the order\u0027s total, so a callback can record a wrong or fraudulent payment amount."
      ],
      "extraFindings": [
        "OrderRepository.cs:45 The query orders only by created_at_utc with offset paging, so rows with equal timestamps can appear in different order across pages, causing pending orders to be skipped or returned twice.",
        "PaymentGateway.cs:40 If the provider returns a success response with an empty or null JSON body, the null-forgiving body! dereference throws a NullReferenceException after the charge was already made, so the caller gets an error for a successful payment and may retry it.",
        "PaymentGateway.cs:45 The providerReference is interpolated into the URL without escaping, so a value containing \u0027/\u0027, \u0027?\u0027 or \u0027#\u0027 can alter the request path and refund a different charge or hit an unintended endpoint.",
        "PaymentGateway.cs:52 RefundAsync returns the original charge\u0027s reference and ignores the provider\u0027s refund response, so callers cannot get the actual refund identifier and may record the refund against the wrong transaction.",
        "ReconciliationJob.cs:24 The relative URL is resolved against BaseAddress, so a gateway base URL without a trailing slash (e.g. https://host/gateway) drops its last path segment and every status request goes to the wrong endpoint.",
        "ReconciliationJob.cs:24 GetFromJsonAsync throws on any non-success HTTP response with no handling, so one failing provider call aborts the whole run and leaves the remaining pending orders unreconciled.",
        "ReconciliationJob.cs:25 The provider status is only logged and never applied to the order, so orders stuck in pending are never actually reconciled and stay pending after the job runs.",
        "RefundService.cs:28 The paid amount is decremented and the status updated without checking result.Success, so a gateway-declined refund still reduces the order\u0027s paid balance and may mark it Refunded, losing track of money actually held.",
        "RefundService.cs:30 The gateway refund at line 27 is not compensated or retried if SaveAsync fails, so the money can be refunded while the order still shows the full paid amount, enabling a duplicate refund on retry.",
        "WebhookHandler.cs:24 The order is marked as paid using the AmountMinor from the webhook payload without checking it against the order\u0027s expected total, so an underpaid or manipulated amount is recorded as fully paid.",
        "OrderRepository.cs:45 The query orders only by created_at_utc with no unique tie-breaker, so offset/limit paging can skip or repeat orders that share a timestamp when the caller pages with skip.",
        "PaymentGateway.cs:40 If the provider returns a success status with an empty or null body, the null-forgiving \u0060body!\u0060 dereference throws a NullReferenceException after the charge may already have been captured, so the caller cannot record the payment.",
        "PaymentGateway.cs:45 The providerReference is interpolated directly into the request path without escaping, so a value containing \u0027/\u0027, \u0027?\u0027 or \u0027#\u0027 can redirect the refund to a different endpoint.",
        "PaymentGateway.cs:52 RefundAsync returns the original charge reference instead of the refund identifier from the provider\u0027s response, so the refund cannot be tracked or reconciled against the provider.",
        "ReconciliationJob.cs:24 An HTTP error or malformed response from the provider throws and aborts the whole loop, so the remaining pending orders in the batch are never reconciled and the job fails partway through.",
        "RefundService.cs:28 The paid amount and order status are updated even when the gateway refund failed (result is not checked), so the local ledger records money as refunded that was never returned.",
        "RefundService.cs:30 The gateway refund is sent before the order is saved, so if SaveAsync fails the refund is already done but not recorded, and a retry can refund the same money again.",
        "WebhookHandler.cs:24 The provider-reported AmountMinor is recorded as paid without comparing it to the order\u0027s total, so a captured status with a short or wrong amount marks the order fully paid and loses money.",
        "OrderRepository.cs:46 take is silently capped at 100 while the caller is not told, so a caller paging with skip \u002B= take skips rows (or misses them) whenever take exceeds 100.",
        "PaymentGateway.cs:40 If the provider returns a success status with an empty or null body, body! throws a NullReferenceException after the money was already captured, so the caller loses the provider reference and may retry or mis-record the payment.",
        "PaymentGateway.cs:52 RefundAsync returns the original charge\u0027s providerReference as the result instead of the refund\u0027s own reference, so the caller cannot identify or reconcile the actual refund at the provider.",
        "ReconciliationJob.cs:24 An exception from one provider call (network error, non-success status, or deserialization failure) propagates out of the loop and aborts the whole run, so the remaining pending orders are never reconciled.",
        "RefundService.cs:28 The paid amount and order status are updated even when the gateway refund failed (result is not checked), so the local ledger records money as refunded that was never returned.",
        "RefundService.cs:30 If SaveAsync fails after the gateway has already refunded, the order keeps its old Paid and status, so a retry can refund the same money again or the books diverge from the provider.",
        "WebhookHandler.cs:24 Order.Paid is set from the provider-supplied AmountMinor without checking it against the order\u0027s expected total, so a short or manipulated amount can mark an order as fully paid.",
        "Money.cs:36 Min compares only the Minor values and never checks that the currencies match, so amounts in different currencies can be compared and the wrong amount returned silently, unlike the \u002B and - operators.",
        "PaymentGateway.cs:52 RefundAsync returns the original charge\u0027s providerReference instead of the refund reference from the provider response, so callers cannot track or reconcile individual refunds.",
        "PaymentGateway.cs:39 ReadFromJsonAsync can return null for an empty or null 2xx body, and the null-forgiving operator at line 40 then throws NullReferenceException after the provider has already charged the card, leaving the order state inconsistent.",
        "ReconciliationJob.cs:24 The relative URI \u0022v1/orders/{id}\u0022 resolved against a BaseAddress without a trailing slash drops any path segment in the gateway base URL, so status requests can go to the wrong endpoint.",
        "ReconciliationJob.cs:24 GetFromJsonAsync throws on any non-success response or transient network error, which aborts the whole nightly run and leaves the remaining pending orders unreconciled.",
        "RefundService.cs:28 The gateway result is never checked, so when the provider refund fails the order\u0027s Paid amount and status are still reduced and saved, recording money as refunded that was not returned.",
        "WebhookHandler.cs:24 The paid amount is taken from the unverified webhook AmountMinor and never compared with the order total, so a forged or wrong amount is recorded as the order\u0027s payment.",
        "CheckoutService.cs:30 Casting order.Total.Lira to long truncates any fractional amount, so the gateway can be charged less than the order total.",
        "OrderRepository.cs:45 The paging query orders only by created_at_utc with no unique tie-breaker, so rows with equal timestamps can appear in different order across offset pages, causing some pending orders to be skipped or processed twice.",
        "PaymentGateway.cs:40 If the provider returns an empty or null body after a successful charge, body!.Reference throws a NullReferenceException, so the caller sees a failure even though money was captured and no reference is recorded.",
        "PaymentGateway.cs:45 providerReference is interpolated into the URL path without escaping, so a value containing \u0027/\u0027, \u0027?\u0027 or \u0027..\u0027 can change the target endpoint of the refund request.",
        "PaymentGateway.cs:52 RefundAsync returns the original charge reference instead of the refund\u0027s own reference from the response, so callers cannot track or reconcile the refund at the provider.",
        "ReconciliationJob.cs:24 GetFromJsonAsync throws on any non-success response or network error with no per-order handling, so one failing provider call aborts the whole run and leaves the remaining pending orders unreconciled.",
        "ReconciliationJob.cs:23 If the configured gateway base URL has a path without a trailing slash (e.g. https://host/api), the relative path \u0027v1/orders/...\u0027 resolves against the base and drops the last segment, so status requests go to the wrong endpoint.",
        "RefundService.cs:28 The order\u0027s Paid balance and status are updated without checking \u0060result.Success\u0060, so a failed gateway refund still reduces the recorded paid amount and can mark the order Refunded while no money was returned.",
        "WebhookHandler.cs:24 The paid amount is taken directly from the unverified webhook AmountMinor without checking it against the order\u0027s total, so a callback can record a wrong or fraudulent payment amount."
      ]
    },
    {
      "model": "claude-haiku-5-5",
      "agents": 1,
      "variant": "single",
      "reps": 5,
      "wallSeconds": {
        "Mean": 17.5082,
        "Min": 15.401,
        "Max": 18.58
      },
      "mergeSeconds": {
        "Mean": 0,
        "Min": 0,
        "Max": 0
      },
      "costUsd": {
        "Mean": 0.0028,
        "Min": 0.0026,
        "Max": 0.0029
      },
      "inputTokens": {
        "Mean": 9839,
        "Min": 9839,
        "Max": 9839
      },
      "outputTokens": {
        "Mean": 3581.8,
        "Min": 3268,
        "Max": 3846
      },
      "localFound": {
        "Mean": 9.8,
        "Min": 9,
        "Max": 10
      },
      "crossFound": {
        "Mean": 8.4,
        "Min": 8,
        "Max": 9
      },
      "findings": {
        "Mean": 18.6,
        "Min": 18,
        "Max": 19
      },
      "extra": {
        "Mean": 0.4,
        "Min": 0,
        "Max": 2
      },
      "perBug": {
        "L1": 1,
        "L2": 1,
        "L3": 1,
        "L4": 0.8,
        "L5": 1,
        "L6": 1,
        "L7": 1,
        "L8": 1,
        "L9": 1,
        "L10": 1,
        "X1": 1,
        "X2": 1,
        "X3": 0.4,
        "X4": 0.8,
        "X5": 1,
        "X6": 0.2,
        "X7": 1,
        "X8": 1,
        "X9": 1,
        "X10": 1
      },
      "nearMiss": [],
      "extraFindings": [
        "HttpPaymentGateway.cs:25 The full card number is written to the logs, which exposes cardholder data and violates PCI requirements.",
        "WebhookHandler.cs:35 FixedTimeEquals throws when the signature length differs from the expected hex length, so a malformed signature causes an exception instead of a clean rejection."
      ]
    },
    {
      "model": "claude-sonnet-5-5",
      "agents": 5,
      "variant": "contracts",
      "reps": 3,
      "wallSeconds": {
        "Mean": 19.327,
        "Min": 17.414,
        "Max": 21.274
      },
      "mergeSeconds": {
        "Mean": 14.3387,
        "Min": 12.422,
        "Max": 16.212
      },
      "costUsd": {
        "Mean": 0.1074,
        "Min": 0.1045,
        "Max": 0.1091
      },
      "inputTokens": {
        "Mean": 30292.3333,
        "Min": 30259,
        "Max": 30341
      },
      "outputTokens": {
        "Mean": 4679.6667,
        "Min": 4392,
        "Max": 4859
      },
      "localFound": {
        "Mean": 10,
        "Min": 10,
        "Max": 10
      },
      "crossFound": {
        "Mean": 9,
        "Min": 9,
        "Max": 9
      },
      "findings": {
        "Mean": 23,
        "Min": 22,
        "Max": 24
      },
      "extra": {
        "Mean": 3.3333,
        "Min": 3,
        "Max": 4
      },
      "perBug": {
        "L1": 1,
        "L2": 1,
        "L3": 1,
        "L4": 1,
        "L5": 1,
        "L6": 1,
        "L7": 1,
        "L8": 1,
        "L9": 1,
        "L10": 1,
        "X1": 1,
        "X2": 1,
        "X3": 1,
        "X4": 1,
        "X5": 1,
        "X6": 0,
        "X7": 1,
        "X8": 1,
        "X9": 1,
        "X10": 1
      },
      "nearMiss": [
        "CheckoutService.cs:33 The result of the charge is never checked (result.Success), so the order is marked Captured and fully Paid even if the provider reported failure.",
        "CheckoutService.cs:33 The ChargeResult is never checked for Success, so a failed charge result still marks the order Captured and Paid even though no money was collected."
      ],
      "extraFindings": [
        "CheckoutService.cs:33 The result of the charge is never checked (result.Success), so the order is marked Captured and fully Paid even if the provider reported failure.",
        "RefundService.cs:27 The gateway result is not checked, so a failed refund still reduces order.Paid and changes the status, and an exception leaves the idempotency key consumed so the refund can never be retried.",
        "TaxCalculator.cs:21 Math.Round is called on a double/decimal division with a mismatched argument and the net is derived from rounded gross/1.2, which can be off by one kuru\u015F; the VAT part should be rounded directly (gross - gross/1.2 rounded) so invoices match Apply().",
        "WebhookHandler.cs:35 Signature comparison is case-sensitive against uppercase hex and FixedTimeEquals returns false for differing lengths; valid lowercase-hex signatures are rejected (compare case-insensitively).",
        "CheckoutService.cs:33 The ChargeResult is never checked for Success, so a failed charge result still marks the order Captured and Paid even though no money was collected.",
        "RefundService.cs:28 The order\u0027s Paid and Status are updated and saved even when the gateway refund failed (result.Success false), so the local state says money was refunded when it was not.",
        "WebhookHandler.cs:35 The signature is compared case-sensitively against uppercase hex and FixedTimeEquals on differently sized arrays returns false, so valid lowercase hex signatures fail to match.",
        "RefundService.cs:28 The result of the gateway refund is not checked, so a failed refund still reduces Paid, changes the order status and saves it, leaving the order marked refunded when no money was returned.",
        "TaxCalculator.cs:21 Math.Round is applied to a decimal division, which is fine, but the net is rounded rather than the VAT, so the VAT part can differ by a kuru\u015F from the VAT that Apply computed, which gives inconsistent invoice amounts.",
        "WebhookHandler.cs:35 The hex signature comparison is case-sensitive, and FixedTimeEquals returns false on length mismatch, so valid lowercase hex signatures would be rejected; it should compare in a case-insensitive way."
      ]
    },
    {
      "model": "claude-sonnet-5-5",
      "agents": 5,
      "variant": "naive",
      "reps": 3,
      "wallSeconds": {
        "Mean": 18.9077,
        "Min": 14.89,
        "Max": 21.62
      },
      "mergeSeconds": {
        "Mean": 13.4273,
        "Min": 9.817,
        "Max": 16.713
      },
      "costUsd": {
        "Mean": 0.0734,
        "Min": 0.0693,
        "Max": 0.0778
      },
      "inputTokens": {
        "Mean": 14310,
        "Min": 14230,
        "Max": 14352
      },
      "outputTokens": {
        "Mean": 4476,
        "Min": 4064,
        "Max": 4907
      },
      "localFound": {
        "Mean": 10,
        "Min": 10,
        "Max": 10
      },
      "crossFound": {
        "Mean": 7,
        "Min": 7,
        "Max": 7
      },
      "findings": {
        "Mean": 24.3333,
        "Min": 23,
        "Max": 25
      },
      "extra": {
        "Mean": 6,
        "Min": 4,
        "Max": 8
      },
      "perBug": {
        "L1": 1,
        "L2": 1,
        "L3": 1,
        "L4": 1,
        "L5": 1,
        "L6": 1,
        "L7": 1,
        "L8": 1,
        "L9": 1,
        "L10": 1,
        "X1": 1,
        "X2": 0,
        "X3": 1,
        "X4": 1,
        "X5": 1,
        "X6": 0,
        "X7": 1,
        "X8": 1,
        "X9": 0,
        "X10": 1
      },
      "nearMiss": [
        "WebhookHandler.cs:24 The paid amount is taken from the payload without comparing it to the order\u0027s expected total, so a partial or wrong amount marks the order as fully paid.",
        "CheckoutService.cs:22 When TryBeginAsync fails because a previous attempt exists, the method returns false with no way to recover, and since the key is never released on failure, retries after a failed charge are blocked permanently.",
        "RetryPolicy.cs:24 Retrying a non-idempotent gateway call such as a charge after a timeout can result in duplicate charges unless the same idempotency key is reused.",
        "WebhookHandler.cs:24 The paid amount is taken from the webhook payload without comparing it to the order\u0027s expected total, so an underpaid or tampered amount marks the order as paid.",
        "RetryPolicy.cs:24 Retrying a non-idempotent gateway call with no idempotency guarantee can double-charge or double-refund when the first attempt actually succeeded but timed out.",
        "WebhookHandler.cs:24 The captured amount from the payload is stored as Paid without comparing it to the order total, so an underpaid or wrong amount marks the order as paid."
      ],
      "extraFindings": [
        "PricingService.cs:21 The free-shipping threshold is checked against the amount after discount and tax rather than the order subtotal, so shipping is waived or charged on the wrong basis.",
        "RefundService.cs:28 The gateway result is not checked, so order.Paid is reduced and saved even when the refund failed, losing track of money that was never returned.",
        "WebhookHandler.cs:24 The paid amount is taken from the payload without comparing it to the order\u0027s expected total, so a partial or wrong amount marks the order as fully paid.",
        "WebhookHandler.cs:35 The signature comparison is case-sensitive against uppercase hex and FixedTimeEquals returns false on length mismatch, so valid lowercase-hex signatures from the provider would be rejected.",
        "CheckoutService.cs:22 When TryBeginAsync fails because a previous attempt exists, the method returns false with no way to recover, and since the key is never released on failure, retries after a failed charge are blocked permanently.",
        "Models.cs:16 Money is a struct whose default value has a null Currency, so Total and Paid on a loaded or new Order carry a null currency and later Money arithmetic throws a currency mismatch.",
        "RefundService.cs:27 The gateway result is not checked for success before the order is debited, so a failed refund still reduces Paid and may mark the order Refunded, losing track of money.",
        "RefundService.cs:28 Reading, modifying and saving the order without concurrency control lets concurrent refunds both pass checks and double-refund or corrupt Paid.",
        "RetryPolicy.cs:24 Retrying a non-idempotent gateway call such as a charge after a timeout can result in duplicate charges unless the same idempotency key is reused.",
        "TaxCalculator.cs:21 gross.Minor / (1 \u002B VatRate) uses a long divided by a decimal, which is fine, but the rounding is applied to the net while the doc says VAT is rounded, and Math.Round on the net can disagree with Apply for amounts like 1 kuru\u015F, so invoices may not match the charged VAT.",
        "WebhookHandler.cs:24 The paid amount is taken from the webhook payload without comparing it to the order\u0027s expected total, so an underpaid or tampered amount marks the order as paid.",
        "WebhookHandler.cs:35 The hex string is uppercase and compared case-sensitively, and FixedTimeEquals returns false on length mismatch, so valid lowercase signatures from the provider would be rejected.",
        "OrderRepository.cs:38 The update does not check the affected row count or the current status, so concurrent saves overwrite each other and a lost update can produce wrong paid or status values for an order.",
        "RefundService.cs:27 The gateway result is not checked before the order is updated, so a failed refund still reduces order.Paid and changes the status, leaving the order inconsistent with the provider.",
        "RetryPolicy.cs:24 Retrying a non-idempotent gateway call with no idempotency guarantee can double-charge or double-refund when the first attempt actually succeeded but timed out.",
        "TaxCalculator.cs:21 gross.Minor is a long and (1 \u002B VatRate) is a decimal, so the division is fine, but Math.Round is called on the net amount while the VAT is derived as gross minus rounded net, which can disagree with Apply\u0027s rounding and produce invoice VAT that does not match the charged VAT.",
        "WebhookHandler.cs:24 The captured amount from the payload is stored as Paid without comparing it to the order total, so an underpaid or wrong amount marks the order as paid.",
        "WebhookHandler.cs:35 The signature comparison is case-sensitive against uppercase hex and FixedTimeEquals returns false for length mismatches, so valid lowercase-hex signatures from the provider would be rejected once validation is enforced."
      ]
    },
    {
      "model": "claude-sonnet-5-5",
      "agents": 1,
      "variant": "single",
      "reps": 3,
      "wallSeconds": {
        "Mean": 12.0023,
        "Min": 10.93,
        "Max": 13.135
      },
      "mergeSeconds": {
        "Mean": 0.0003,
        "Min": 0,
        "Max": 0.001
      },
      "costUsd": {
        "Mean": 0.0366,
        "Min": 0.0353,
        "Max": 0.0375
      },
      "inputTokens": {
        "Mean": 9839,
        "Min": 9839,
        "Max": 9839
      },
      "outputTokens": {
        "Mean": 1688.6667,
        "Min": 1561,
        "Max": 1784
      },
      "localFound": {
        "Mean": 10,
        "Min": 10,
        "Max": 10
      },
      "crossFound": {
        "Mean": 9.6667,
        "Min": 9,
        "Max": 10
      },
      "findings": {
        "Mean": 23.3333,
        "Min": 22,
        "Max": 24
      },
      "extra": {
        "Mean": 3,
        "Min": 1,
        "Max": 4
      },
      "perBug": {
        "L1": 1,
        "L2": 1,
        "L3": 1,
        "L4": 1,
        "L5": 1,
        "L6": 1,
        "L7": 1,
        "L8": 1,
        "L9": 1,
        "L10": 1,
        "X1": 1,
        "X2": 1,
        "X3": 1,
        "X4": 1,
        "X5": 1,
        "X6": 0.667,
        "X7": 1,
        "X8": 1,
        "X9": 1,
        "X10": 1
      },
      "nearMiss": [
        "RefundService.cs:16 int.Parse on a missing or invalid setting value throws, and the setting is read as if it had a default, so a malformed config breaks refunds."
      ],
      "extraFindings": [
        "PricingService.cs:21 Free shipping threshold is checked against the VAT-inclusive amount, which is inconsistent, and shipping is then also taxed; the shipping fee is added before the second VAT.",
        "RefundService.cs:27 The result of the gateway refund is not checked for Success before reducing Paid and saving the order, so the order state can be corrupted if the refund fails.",
        "WebhookHandler.cs:35 FixedTimeEquals on a hex string with case-sensitive comparison may wrongly reject valid lowercase signatures since ToHexString produces uppercase.",
        "OrderRepository.cs:46 The page size is capped at 100 but the caller pages with 500, and the order has no tie-breaker; combined with the caller\u0027s skip logic this skips orders.",
        "RefundService.cs:16 int.Parse on a missing or invalid setting value throws, and the setting is read as if it had a default, so a malformed config breaks refunds.",
        "PricingService.cs:21 Free shipping threshold is checked against the VAT-inclusive amount in a different order than shipping is added, and shipping is then taxed again by the final VAT step; shipping fee gets VAT twice-ish incorrectly.",
        "OrderRepository.cs:46 The repository silently caps page size at 100 while the reconciliation job uses a page size of 500, so the paging loop ends after the first page.",
        "RefundService.cs:27 The gateway result is not checked for success before the order\u0027s paid amount and status are updated, and a failure after TryBegin leaves the key consumed.",
        "WebhookHandler.cs:35 FixedTimeEquals throws on length mismatch and compares upper-case hex case-sensitively, so a differently-cased or malformed signature causes exceptions or false rejects."
      ]
    }
  ]
}