{
  "format": "lemonergy/truck-cost-workbook-check@1",
  "checkedOn": "2026-11-23",
  "checker": "Claude Sonnet, an agent that did not write the page",
  "method": "For each of the six runs, a copy of the Pack Designer's exported SpreadsheetML workbook was made and the stored value of every cell that carries a formula (20 per workbook, 7 of them on the Economics sheet) was deleted from the copy, leaving the formulas and the input cells untouched; LibreOffice 24.2.7.2 then loaded each copy headless, calculated the formulas itself and saved the result as .xlsx, from which the seven Economics outputs and the named input cells were read (LibreOffice stores 15 significant digits in .xlsx). Recalculation was shown by checking that no stored value remained in the copy and that every formula cell had a computed number after loading, and by a control copy with the cell price doubled whose upfront cost doubled. Each named input was compared with the matching runnerInputs value (to a relative 1e-12), and each recalculated output with the matching figure in cost.json (modules[id].runs[basis].cost) within the tolerance below; the largest relative difference seen was 7.68e-06, so no error band beyond the six-decimal rounding of cost.json is needed. Note the model field 'replacements' is compared with the sheet's 'Packs needed over target' cell, which is the only integer count on the sheet.",
  "tool": {
    "name": "LibreOffice",
    "version": "24.2.7.2"
  },
  "designCommit": "f29fa42f51544ac7d65d4c39a75d78d793994953",
  "costJsonSha256": "3649d983a8d7a68da52f57840c807478faed431f0ec1df603d30fe6120fa336b",
  "tolerance": {
    "relative": 2.8e-05,
    "why": "cost.json stores outputs to six decimals, so a stored value can be off by up to 5e-7 in absolute terms, which for the smallest compared output is a relative error of 2.54e-05; the tolerance is set just above that."
  },
  "runs": [
    {
      "run": "main-market",
      "workbook": "runs/main-market.xls",
      "workbookSha256": "f9f04f5e0900aa9fb9c262c9c3f3a06294b8fe6860c6a5f4f1ca82f1ffe06f6e",
      "inputs": [
        {
          "name": "CellPrice",
          "workbook": 61.2345468,
          "runnerInput": 61.234546800000004,
          "agrees": true
        },
        {
          "name": "SCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "PCount",
          "workbook": 1.0,
          "runnerInput": 1,
          "agrees": true
        },
        {
          "name": "SCount*PCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "SCount*PCount*VNom*CapAh",
          "workbook": 212964.36000000002,
          "runnerInput": 212964.36000000002,
          "agrees": true
        },
        {
          "name": "CycleLife",
          "workbook": 4000.0,
          "runnerInput": 4000,
          "agrees": true
        },
        {
          "name": "DoD",
          "workbook": 0.8,
          "runnerInput": 0.8,
          "agrees": true
        },
        {
          "name": "CyclesYr",
          "workbook": 600.0,
          "runnerInput": 600,
          "agrees": true
        },
        {
          "name": "Years",
          "workbook": 10.0,
          "runnerInput": 10,
          "agrees": true
        }
      ],
      "outputs": [
        {
          "field": "upfrontUSD",
          "formula": "=CellPrice*SCount*PCount",
          "model": 13410.365749,
          "workbook": 13410.3657492,
          "relDiff": 1.4913814257541897e-11,
          "agrees": true
        },
        {
          "field": "usdPerKWhCap",
          "formula": "=CellPrice*SCount*PCount/(SCount*PCount*VNom*CapAh/1000)",
          "model": 62.97,
          "workbook": 62.97,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "throughputKWh",
          "formula": "=CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000",
          "model": 681485.952,
          "workbook": 681485.952,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhDelivered",
          "formula": "=(CellPrice*SCount*PCount)/(CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000)",
          "model": 0.019678,
          "workbook": 0.019678125,
          "relDiff": 6.352231221222805e-06,
          "agrees": true
        },
        {
          "field": "serviceYears",
          "formula": "=CycleLife/CyclesYr",
          "model": 6.666667,
          "workbook": 6.66666666666667,
          "relDiff": 4.999999710730875e-08,
          "agrees": true
        },
        {
          "field": "replacements",
          "formula": "=MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 2,
          "workbook": 2.0,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "tcoUSD",
          "formula": "=CellPrice*SCount*PCount*MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 26820.731498,
          "workbook": 26820.7314984,
          "relDiff": 1.4913814257541897e-11,
          "agrees": true
        }
      ],
      "verdict": "agrees"
    },
    {
      "run": "main-catalog",
      "workbook": "runs/main-catalog.xls",
      "workbookSha256": "52007369f1f2f8b521e12df7a7551456872db71a97fc972faa2c38ec04432256",
      "inputs": [
        {
          "name": "CellPrice",
          "workbook": 90.0,
          "runnerInput": 90,
          "agrees": true
        },
        {
          "name": "SCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "PCount",
          "workbook": 1.0,
          "runnerInput": 1,
          "agrees": true
        },
        {
          "name": "SCount*PCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "SCount*PCount*VNom*CapAh",
          "workbook": 212964.36000000002,
          "runnerInput": 212964.36000000002,
          "agrees": true
        },
        {
          "name": "CycleLife",
          "workbook": 4000.0,
          "runnerInput": 4000,
          "agrees": true
        },
        {
          "name": "DoD",
          "workbook": 0.8,
          "runnerInput": 0.8,
          "agrees": true
        },
        {
          "name": "CyclesYr",
          "workbook": 600.0,
          "runnerInput": 600,
          "agrees": true
        },
        {
          "name": "Years",
          "workbook": 10.0,
          "runnerInput": 10,
          "agrees": true
        }
      ],
      "outputs": [
        {
          "field": "upfrontUSD",
          "formula": "=CellPrice*SCount*PCount",
          "model": 19710,
          "workbook": 19710.0,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhCap",
          "formula": "=CellPrice*SCount*PCount/(SCount*PCount*VNom*CapAh/1000)",
          "model": 92.550697,
          "workbook": 92.5506972152523,
          "relDiff": 2.325777179609962e-09,
          "agrees": true
        },
        {
          "field": "throughputKWh",
          "formula": "=CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000",
          "model": 681485.952,
          "workbook": 681485.952,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhDelivered",
          "formula": "=(CellPrice*SCount*PCount)/(CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000)",
          "model": 0.028922,
          "workbook": 0.0289220928797664,
          "relDiff": 3.211377779086854e-06,
          "agrees": true
        },
        {
          "field": "serviceYears",
          "formula": "=CycleLife/CyclesYr",
          "model": 6.666667,
          "workbook": 6.66666666666667,
          "relDiff": 4.999999710730875e-08,
          "agrees": true
        },
        {
          "field": "replacements",
          "formula": "=MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 2,
          "workbook": 2.0,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "tcoUSD",
          "formula": "=CellPrice*SCount*PCount*MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 39420,
          "workbook": 39420.0,
          "relDiff": 0.0,
          "agrees": true
        }
      ],
      "verdict": "agrees"
    },
    {
      "run": "reserve-market",
      "workbook": "runs/reserve-market.xls",
      "workbookSha256": "d70d4f508de799bdd9834d63b98c98e6ddf94c32ed46d67104cbb6ecc5834648",
      "inputs": [
        {
          "name": "CellPrice",
          "workbook": 21.15792,
          "runnerInput": 21.15792,
          "agrees": true
        },
        {
          "name": "SCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "PCount",
          "workbook": 1.0,
          "runnerInput": 1,
          "agrees": true
        },
        {
          "name": "SCount*PCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "SCount*PCount*VNom*CapAh",
          "workbook": 73584.0,
          "runnerInput": 73584,
          "agrees": true
        },
        {
          "name": "CycleLife",
          "workbook": 4000.0,
          "runnerInput": 4000,
          "agrees": true
        },
        {
          "name": "DoD",
          "workbook": 0.8,
          "runnerInput": 0.8,
          "agrees": true
        },
        {
          "name": "CyclesYr",
          "workbook": 600.0,
          "runnerInput": 600,
          "agrees": true
        },
        {
          "name": "Years",
          "workbook": 10.0,
          "runnerInput": 10,
          "agrees": true
        }
      ],
      "outputs": [
        {
          "field": "upfrontUSD",
          "formula": "=CellPrice*SCount*PCount",
          "model": 4633.58448,
          "workbook": 4633.58448,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhCap",
          "formula": "=CellPrice*SCount*PCount/(SCount*PCount*VNom*CapAh/1000)",
          "model": 62.97,
          "workbook": 62.97,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "throughputKWh",
          "formula": "=CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000",
          "model": 235468.8,
          "workbook": 235468.8,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhDelivered",
          "formula": "=(CellPrice*SCount*PCount)/(CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000)",
          "model": 0.019678,
          "workbook": 0.019678125,
          "relDiff": 6.352231221222805e-06,
          "agrees": true
        },
        {
          "field": "serviceYears",
          "formula": "=CycleLife/CyclesYr",
          "model": 6.666667,
          "workbook": 6.66666666666667,
          "relDiff": 4.999999710730875e-08,
          "agrees": true
        },
        {
          "field": "replacements",
          "formula": "=MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 2,
          "workbook": 2.0,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "tcoUSD",
          "formula": "=CellPrice*SCount*PCount*MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 9267.16896,
          "workbook": 9267.16896,
          "relDiff": 0.0,
          "agrees": true
        }
      ],
      "verdict": "agrees"
    },
    {
      "run": "reserve-catalog",
      "workbook": "runs/reserve-catalog.xls",
      "workbookSha256": "917067a663f337c270eef34b15c28bb5337ae85e66bf19af60b85503d13db651",
      "inputs": [
        {
          "name": "CellPrice",
          "workbook": 30.0,
          "runnerInput": 30,
          "agrees": true
        },
        {
          "name": "SCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "PCount",
          "workbook": 1.0,
          "runnerInput": 1,
          "agrees": true
        },
        {
          "name": "SCount*PCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "SCount*PCount*VNom*CapAh",
          "workbook": 73584.0,
          "runnerInput": 73584,
          "agrees": true
        },
        {
          "name": "CycleLife",
          "workbook": 4000.0,
          "runnerInput": 4000,
          "agrees": true
        },
        {
          "name": "DoD",
          "workbook": 0.8,
          "runnerInput": 0.8,
          "agrees": true
        },
        {
          "name": "CyclesYr",
          "workbook": 600.0,
          "runnerInput": 600,
          "agrees": true
        },
        {
          "name": "Years",
          "workbook": 10.0,
          "runnerInput": 10,
          "agrees": true
        }
      ],
      "outputs": [
        {
          "field": "upfrontUSD",
          "formula": "=CellPrice*SCount*PCount",
          "model": 6570,
          "workbook": 6570.0,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhCap",
          "formula": "=CellPrice*SCount*PCount/(SCount*PCount*VNom*CapAh/1000)",
          "model": 89.285714,
          "workbook": 89.2857142857143,
          "relDiff": 3.200000242031819e-09,
          "agrees": true
        },
        {
          "field": "throughputKWh",
          "formula": "=CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000",
          "model": 235468.8,
          "workbook": 235468.8,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhDelivered",
          "formula": "=(CellPrice*SCount*PCount)/(CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000)",
          "model": 0.027902,
          "workbook": 0.0279017857142857,
          "relDiff": 7.679941018611328e-06,
          "agrees": true
        },
        {
          "field": "serviceYears",
          "formula": "=CycleLife/CyclesYr",
          "model": 6.666667,
          "workbook": 6.66666666666667,
          "relDiff": 4.999999710730875e-08,
          "agrees": true
        },
        {
          "field": "replacements",
          "formula": "=MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 2,
          "workbook": 2.0,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "tcoUSD",
          "formula": "=CellPrice*SCount*PCount*MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 13140,
          "workbook": 13140.0,
          "relDiff": 0.0,
          "agrees": true
        }
      ],
      "verdict": "agrees"
    },
    {
      "run": "underFrameReserve-market",
      "workbook": "runs/underFrameReserve-market.xls",
      "workbookSha256": "09a18ef0cd07510e9c289313f97f4e639562175158d774c6f3de22bb7a3a2210",
      "inputs": [
        {
          "name": "CellPrice",
          "workbook": 21.15792,
          "runnerInput": 21.15792,
          "agrees": true
        },
        {
          "name": "SCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "PCount",
          "workbook": 1.0,
          "runnerInput": 1,
          "agrees": true
        },
        {
          "name": "SCount*PCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "SCount*PCount*VNom*CapAh",
          "workbook": 73584.0,
          "runnerInput": 73584,
          "agrees": true
        },
        {
          "name": "CycleLife",
          "workbook": 4000.0,
          "runnerInput": 4000,
          "agrees": true
        },
        {
          "name": "DoD",
          "workbook": 0.8,
          "runnerInput": 0.8,
          "agrees": true
        },
        {
          "name": "CyclesYr",
          "workbook": 600.0,
          "runnerInput": 600,
          "agrees": true
        },
        {
          "name": "Years",
          "workbook": 10.0,
          "runnerInput": 10,
          "agrees": true
        }
      ],
      "outputs": [
        {
          "field": "upfrontUSD",
          "formula": "=CellPrice*SCount*PCount",
          "model": 4633.58448,
          "workbook": 4633.58448,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhCap",
          "formula": "=CellPrice*SCount*PCount/(SCount*PCount*VNom*CapAh/1000)",
          "model": 62.97,
          "workbook": 62.97,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "throughputKWh",
          "formula": "=CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000",
          "model": 235468.8,
          "workbook": 235468.8,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhDelivered",
          "formula": "=(CellPrice*SCount*PCount)/(CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000)",
          "model": 0.019678,
          "workbook": 0.019678125,
          "relDiff": 6.352231221222805e-06,
          "agrees": true
        },
        {
          "field": "serviceYears",
          "formula": "=CycleLife/CyclesYr",
          "model": 6.666667,
          "workbook": 6.66666666666667,
          "relDiff": 4.999999710730875e-08,
          "agrees": true
        },
        {
          "field": "replacements",
          "formula": "=MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 2,
          "workbook": 2.0,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "tcoUSD",
          "formula": "=CellPrice*SCount*PCount*MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 9267.16896,
          "workbook": 9267.16896,
          "relDiff": 0.0,
          "agrees": true
        }
      ],
      "verdict": "agrees"
    },
    {
      "run": "underFrameReserve-catalog",
      "workbook": "runs/underFrameReserve-catalog.xls",
      "workbookSha256": "1b4591dc79ca53a9f167f989c3ead1b020b3f4c263f0966265def029ff157473",
      "inputs": [
        {
          "name": "CellPrice",
          "workbook": 30.0,
          "runnerInput": 30,
          "agrees": true
        },
        {
          "name": "SCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "PCount",
          "workbook": 1.0,
          "runnerInput": 1,
          "agrees": true
        },
        {
          "name": "SCount*PCount",
          "workbook": 219.0,
          "runnerInput": 219,
          "agrees": true
        },
        {
          "name": "SCount*PCount*VNom*CapAh",
          "workbook": 73584.0,
          "runnerInput": 73584,
          "agrees": true
        },
        {
          "name": "CycleLife",
          "workbook": 4000.0,
          "runnerInput": 4000,
          "agrees": true
        },
        {
          "name": "DoD",
          "workbook": 0.8,
          "runnerInput": 0.8,
          "agrees": true
        },
        {
          "name": "CyclesYr",
          "workbook": 600.0,
          "runnerInput": 600,
          "agrees": true
        },
        {
          "name": "Years",
          "workbook": 10.0,
          "runnerInput": 10,
          "agrees": true
        }
      ],
      "outputs": [
        {
          "field": "upfrontUSD",
          "formula": "=CellPrice*SCount*PCount",
          "model": 6570,
          "workbook": 6570.0,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhCap",
          "formula": "=CellPrice*SCount*PCount/(SCount*PCount*VNom*CapAh/1000)",
          "model": 89.285714,
          "workbook": 89.2857142857143,
          "relDiff": 3.200000242031819e-09,
          "agrees": true
        },
        {
          "field": "throughputKWh",
          "formula": "=CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000",
          "model": 235468.8,
          "workbook": 235468.8,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "usdPerKWhDelivered",
          "formula": "=(CellPrice*SCount*PCount)/(CycleLife*(SCount*PCount*VNom*CapAh)*DoD/1000)",
          "model": 0.027902,
          "workbook": 0.0279017857142857,
          "relDiff": 7.679941018611328e-06,
          "agrees": true
        },
        {
          "field": "serviceYears",
          "formula": "=CycleLife/CyclesYr",
          "model": 6.666667,
          "workbook": 6.66666666666667,
          "relDiff": 4.999999710730875e-08,
          "agrees": true
        },
        {
          "field": "replacements",
          "formula": "=MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 2,
          "workbook": 2.0,
          "relDiff": 0.0,
          "agrees": true
        },
        {
          "field": "tcoUSD",
          "formula": "=CellPrice*SCount*PCount*MAX(1,CEILING(CyclesYr*Years/CycleLife,1))",
          "model": 13140,
          "workbook": 13140.0,
          "relDiff": 0.0,
          "agrees": true
        }
      ],
      "verdict": "agrees"
    }
  ],
  "verdict": "fit for publication",
  "shares": "The workbook is exported by the same project's Pack Designer from the same inputs, and its formulas were written by the same people as the model's, so this check cannot catch a wrong formula, a wrong input or a shared misconception, only a disagreement between two implementations of the same arithmetic.",
  "notSettled": "Only a supplier quote or invoice for these cells (the CATL 302Ah and the reserve cell) at truck volumes would settle whether the cell prices, and so the dollar figures, are what a buyer would actually pay.",
  "files": [
    "verification/README.md",
    "verification/check_workbooks.py"
  ]
}
