{
  "capability_id": "electrical.battery.pack_sizing",
  "tool_id": "battery-pack-sizing",
  "engine": "battery-pack-sizing",
  "calculation_version": "1.2.0",
  "generated_at": "2026-11-10T05:18:41.736Z",
  "engine_build": "2026-09-10",
  "test_count": 27,
  "passed": 27,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "passed": 3,
      "total": 3
    },
    "boundary": {
      "passed": 17,
      "total": 17
    },
    "property": {
      "passed": 7,
      "total": 7
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": true,
  "review_kind": "internal",
  "source_checked": true,
  "reviewed_by": "CalculatorX electrical review",
  "reviewer_role": "electrical-engineer",
  "last_reviewed": "2026-09-05",
  "expert_review": {
    "status": "not_applicable",
    "reviewer": null,
    "note": "Internal domain review completed; not a named external expert review.",
    "kind": "internal"
  },
  "internal_review": {
    "status": "approved",
    "reviewer": {
      "name": "CalculatorX electrical review",
      "role": "electrical-engineer"
    },
    "reviewed_at": "2026-09-05",
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "kind": "internal"
  },
  "page": "https://www.calculatorx.com/calc/electric/battery-pack-sizing",
  "api": "https://www.calculatorx.com/api/v1/calc/battery-pack-sizing",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.battery.pack_sizing.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.battery.pack_sizing.output.json",
  "assumptions": [
    "Constant load; ceil cell counts as nominal packing estimate; not Peukert or BMS design",
    "Amps mode I_A is battery-side; η does not enter Ah",
    "V is target/system nominal voltage; V_pack = Ns·V_cell may differ"
  ],
  "limitations": [
    "Constant-load inverse of BatteryRuntimeBaseInput / battery_runtime 1.2+",
    "Amps mode = battery-side current; η does not enter Ah",
    "Cell Ns/Np use ceil — nominal packing estimate only, not BMS / chemistry pack design",
    "When V_pack ≠ V_target the result includes warning PACK_VOLTAGE_DIFFERS_FROM_TARGET",
    "mode=watts requires P_W; mode=amps requires I_A",
    "V_cell XOR incomplete pair → NEEDS_TWO_INPUTS (both or neither)"
  ],
  "boundary_conditions": [
    "Only one of V_cell/capacity_cell_Ah → NEEDS_TWO_INPUTS",
    "Bad mode → INVALID_MODE; dod/eta out of range → FRACTION_OUT_OF_RANGE",
    "t/V/P/I ≤ 0 → VALUE_MUST_BE_POSITIVE / VOLTAGE_MUST_BE_POSITIVE / LOAD_MUST_BE_POSITIVE",
    "V_pack ≠ V → warning PACK_VOLTAGE_DIFFERS_FROM_TARGET"
  ],
  "sources": [
    {
      "title": "IEC 60050 — International Electrotechnical Vocabulary",
      "section": "Electric battery capacity and related quantities",
      "supports": "Ah capacity and Wh energy relationship E ≈ Q·V for nominal estimates",
      "kind": "standard"
    },
    {
      "title": "Victron Energy — Battery capacity and Peukert exponent",
      "section": "SmartShunt / battery monitor documentation",
      "url": "https://www.victronenergy.com/media/pg/SmartShunt/en/battery-capacity-and-peukert-exponent.html",
      "supports": "Ideal Ah ≈ I·t under constant current; Peukert and rate effects as reasons this tool stays first-order (Not Peukert)",
      "kind": "reference"
    },
    {
      "title": "CalculatorX Battery Runtime capability",
      "section": "Constant-load watts/amps model (1.2+) — internal method dependency",
      "supports": "Inverse capacity sizing; shared watts/amps semantics with electrical.battery_runtime",
      "kind": "other"
    }
  ],
  "methods": [
    "derived_from:electrical.battery_runtime@1.2.0 — inverse constant-load watts/amps model"
  ],
  "fingerprint": "sha256:b3a87a18a21fe41a5c7d2da0d313bf40be7ccbbf30980df5749b8ea96dbd34ca",
  "tier": "internally_reviewed",
  "verification": {
    "tests": {
      "passed": 27,
      "total": 27,
      "golden": 3,
      "boundary": 17,
      "property": 7
    },
    "contract_checks": {
      "passed": 6,
      "total": 6
    }
  },
  "evidence_core_generated_at": "2026-09-05T15:29:50.831Z",
  "rendered_at": "2026-11-10T05:18:41.736Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.2.0",
    "artifacts": {
      "engine": "1.2.0",
      "page": "1.2.0",
      "capability": "1.2.0",
      "evidence": "1.2.0",
      "input_schema": "1.2.0",
      "output_schema": "1.2.0",
      "mcp_contract": "1.2.0"
    },
    "digests": {
      "input_schema_sha256": "efbfe6f1c002ef9ba44af12ce224324e0618ece83cfc78c98f4db8b38c5f70f3",
      "output_schema_sha256": "acb2f259f709c99aca6f4aac55846212b216b63f875beae2644fd0d8aecde756",
      "evidence_sha256": "a27cacfb99345074574bad3d6579d2a4bdfe1eeb65e7d87a30f66a0e3673342c",
      "evidence_core_sha256": "a27cacfb99345074574bad3d6579d2a4bdfe1eeb65e7d87a30f66a0e3673342c",
      "capability_sha256": "d8484f01246f2cd0bbbcc8759b9eead84de916cfa86dc34dd8cd5b8a8a787d43",
      "engine_sha256": "c6ebd8436f08b413e1ac6317b2d48550f2e6639a90dff254244e3aa562158b8d",
      "mcp_contract_sha256": "eb3e39ad4a95ed263415b4932f185d5edfe00a2403267b7c5ed5f718d1ff6da3"
    },
    "contract_checks": {
      "total": 6,
      "passed": 6,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.2.0"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        },
        {
          "id": "rest-success-payload-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  },
  "derived_from": {
    "capability_id": "electrical.battery_runtime",
    "calculation_version": "1.2.0",
    "relation": "inverse_model",
    "note": "inverse constant-load watts/amps model"
  },
  "tests": [],
  "disclosure": {
    "policy": "calculatorx-public-evidence-v1",
    "full_validation": "private",
    "representation": "summary"
  }
}
