{
  "completed_at_utc": "2026-10-12T17:55:56.781576+00:00",
  "environment": {
    "python": "3.14.7 (main, Aug  5 2026, 10:29:49) [Clang 21.0.0 (clang-2100.1.1.101)]",
    "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
    "machine": "arm64",
    "dependencies": "standard library only"
  },
  "result": {
    "golden_cases": 16,
    "golden_failures": {
      "original": [
        "standard-equal",
        "coupon-equal",
        "vip-equal-low",
        "vip-equal-high"
      ],
      "refactor": [
        "standard-equal",
        "coupon-equal",
        "vip-equal-low",
        "vip-equal-high"
      ],
      "fixed": []
    },
    "invalid_cases": 12,
    "invalid_rejected": {
      "original": 12,
      "refactor": 12,
      "fixed": 12
    },
    "negative_controls": {
      "strict_threshold": 6,
      "stack_discounts": 40,
      "threshold_before_discount": 15,
      "bankers_rounding": 2
    },
    "groups": {
      "boundary_matrix": {
        "cases": 192,
        "oracle_mismatches": {
          "original": 6,
          "refactor": 6,
          "fixed": 0
        },
        "original_vs_refactor_mismatches": 0,
        "trace_sha256": "836e00e79f707329c858fa5b3cf07b59d324907364087a6382495237a67e4f9d",
        "mismatches": [
          {
            "input": {
              "subtotal": 20000,
              "tier": "standard",
              "coupon": "NONE",
              "delivery": "courier"
            },
            "expected": {
              "discount": 0,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 0,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 0,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 0,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          },
          {
            "input": {
              "subtotal": 22222,
              "tier": "standard",
              "coupon": "SAVE10",
              "delivery": "courier"
            },
            "expected": {
              "discount": 2222,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 2222,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 2222,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 2222,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          },
          {
            "input": {
              "subtotal": 23529,
              "tier": "vip",
              "coupon": "NONE",
              "delivery": "courier"
            },
            "expected": {
              "discount": 3529,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 3529,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 3529,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 3529,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          },
          {
            "input": {
              "subtotal": 23529,
              "tier": "vip",
              "coupon": "SAVE10",
              "delivery": "courier"
            },
            "expected": {
              "discount": 3529,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 3529,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 3529,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 3529,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          },
          {
            "input": {
              "subtotal": 23530,
              "tier": "vip",
              "coupon": "NONE",
              "delivery": "courier"
            },
            "expected": {
              "discount": 3530,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 3530,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 3530,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 3530,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          },
          {
            "input": {
              "subtotal": 23530,
              "tier": "vip",
              "coupon": "SAVE10",
              "delivery": "courier"
            },
            "expected": {
              "discount": 3530,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 3530,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 3530,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 3530,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          }
        ]
      },
      "exhaustive": {
        "cases": 240008,
        "oracle_mismatches": {
          "original": 6,
          "refactor": 6,
          "fixed": 0
        },
        "original_vs_refactor_mismatches": 0,
        "trace_sha256": "fc40938f6bc3ea3a4c7d5e8135f55a4f0048bd6dea5c35022c1a3d2561623cd0",
        "mismatches": [
          {
            "input": {
              "subtotal": 20000,
              "tier": "standard",
              "coupon": "NONE",
              "delivery": "courier"
            },
            "expected": {
              "discount": 0,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 0,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 0,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 0,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          },
          {
            "input": {
              "subtotal": 22222,
              "tier": "standard",
              "coupon": "SAVE10",
              "delivery": "courier"
            },
            "expected": {
              "discount": 2222,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 2222,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 2222,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 2222,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          },
          {
            "input": {
              "subtotal": 23529,
              "tier": "vip",
              "coupon": "NONE",
              "delivery": "courier"
            },
            "expected": {
              "discount": 3529,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 3529,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 3529,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 3529,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          },
          {
            "input": {
              "subtotal": 23529,
              "tier": "vip",
              "coupon": "SAVE10",
              "delivery": "courier"
            },
            "expected": {
              "discount": 3529,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 3529,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 3529,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 3529,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          },
          {
            "input": {
              "subtotal": 23530,
              "tier": "vip",
              "coupon": "NONE",
              "delivery": "courier"
            },
            "expected": {
              "discount": 3530,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 3530,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 3530,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 3530,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          },
          {
            "input": {
              "subtotal": 23530,
              "tier": "vip",
              "coupon": "SAVE10",
              "delivery": "courier"
            },
            "expected": {
              "discount": 3530,
              "shipping": 0,
              "total": 20000
            },
            "actual": {
              "original": {
                "discount": 3530,
                "shipping": 1499,
                "total": 21499
              },
              "refactor": {
                "discount": 3530,
                "shipping": 1499,
                "total": 21499
              },
              "fixed": {
                "discount": 3530,
                "shipping": 0,
                "total": 20000
              }
            },
            "failed": [
              "original",
              "refactor"
            ]
          }
        ]
      },
      "upper_limit": {
        "cases": 8,
        "oracle_mismatches": {
          "original": 0,
          "refactor": 0,
          "fixed": 0
        },
        "original_vs_refactor_mismatches": 0,
        "trace_sha256": "ddfee47624f9f82744733a9e8b0ea9acfdc639e0e5b1fbd663dd3ab5ad808279",
        "mismatches": []
      }
    }
  }
}
