{
  "capability_id": "electrical.energy_consumption",
  "tool_id": "energy-consumption",
  "engine": "energy",
  "calculation_version": "1.4.2",
  "generated_at": "2026-09-16T22:03:43.701Z",
  "engine_build": "2026-09-13",
  "test_count": 16,
  "passed": 16,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 9,
      "passed": 9
    },
    "boundary": {
      "total": 3,
      "passed": 3
    },
    "property": {
      "total": 4,
      "passed": 4
    }
  },
  "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-13",
  "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-13",
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "kind": "internal"
  },
  "page": "https://www.calculatorx.com/calc/electric/energy-consumption",
  "api": "https://www.calculatorx.com/api/v1/calc/energy-consumption",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.energy_consumption.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.energy_consumption.output.json",
  "assumptions": [
    "Constant power over the stated hours.",
    "Month = 30 days, year = 365 days in daily UI projections (presentation-only).",
    "User converts kW→W when needed.",
    "W ≥ 0 and hours ≥ 0 (consumption, not signed energy flow)."
  ],
  "limitations": [
    "Assumes constant power over the stated hours",
    "W and hours must be ≥ 0 (VALUE_MUST_BE_NON_NEGATIVE)",
    "UI daily month/year projections are presentation-only; engine returns period kWh"
  ],
  "boundary_conditions": [
    "Zero watts or zero hours → 0 kWh — soft boundary",
    "Negative W or hours → VALUE_MUST_BE_NON_NEGATIVE",
    "UI daily projections (month/year, ×30 / ×365) are presentation-only; engine returns period kWh",
    "Daily UI: 0 ≤ hours/day ≤ 24 for a single load; period mode accepts any hours ≥ 0"
  ],
  "sources": [
    {
      "title": "NIST Guide to the SI (SP 811)",
      "section": "Energy as power × time; kilowatt-hour",
      "url": "https://www.nist.gov/pml/special-publication-811",
      "supports": "E(kWh) = P(W) × t(h) / 1000; 1 kWh = 3.6×10⁶ J",
      "kind": "reference"
    },
    {
      "title": "BIPM SI Brochure (9th edition, version 4.01)",
      "section": "Derived unit joule and common non-SI kWh",
      "url": "https://www.bipm.org/en/publications/si-brochure",
      "supports": "Energy from watt and hour quantities; 1 kWh = 3.6 MJ",
      "kind": "reference",
      "accessed": "2026-09-05",
      "published": "2026-06",
      "doi": "https://doi.org/10.59161/AUEZ1291"
    },
    {
      "title": "IEC 60050 — International Electrotechnical Vocabulary",
      "section": "Active energy (IEV 131-11-57)",
      "url": "https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=131-11-57",
      "supports": "Active energy W = ∫p dt; SI unit joule",
      "kind": "standard",
      "accessed": "2026-09-05",
      "clause": "IEV 131-11-57"
    },
    {
      "title": "IEC 60050 — International Electrotechnical Vocabulary",
      "section": "Watt hour (IEV 131-11-58)",
      "url": "https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=131-11-58",
      "supports": "1 Wh ≔ 3600 J; kWh is the common billing multiple. E(kWh) = P(W)×t(h)/1000 at constant power",
      "kind": "standard",
      "accessed": "2026-09-05",
      "clause": "IEV 131-11-58"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:12b8656c5419669724d3a3f6bedfd69f11c8f1e6df1e20e231487fb250072916",
  "tests": [
    {
      "id": "1500W-3h",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W": 1500,
        "hours": 3
      },
      "expect": 4.5,
      "expectWarning": null,
      "actual": 4.5,
      "tol": 0.001
    },
    {
      "id": "9W-8h",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W": 9,
        "hours": 8
      },
      "expect": 0.072,
      "expectWarning": null,
      "actual": 0.072,
      "tol": 0.001
    },
    {
      "id": "1000W-1h",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W": 1000,
        "hours": 1
      },
      "expect": 1,
      "expectWarning": null,
      "actual": 1,
      "tol": 0.001
    },
    {
      "id": "60W-5h",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W": 60,
        "hours": 5
      },
      "expect": 0.3,
      "expectWarning": null,
      "actual": 0.3,
      "tol": 0.001
    },
    {
      "id": "linear-2x-W",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W": 3000,
        "hours": 3
      },
      "expect": 9,
      "expectWarning": null,
      "actual": 9,
      "tol": 0.001
    },
    {
      "id": "linear-2x-h",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W": 1500,
        "hours": 6
      },
      "expect": 9,
      "expectWarning": null,
      "actual": 9,
      "tol": 0.001
    },
    {
      "id": "soft-zero-W",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W": 0,
        "hours": 3
      },
      "expect": 0,
      "expectWarning": null,
      "actual": 0,
      "tol": 1e-12
    },
    {
      "id": "soft-zero-h",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W": 1500,
        "hours": 0
      },
      "expect": 0,
      "expectWarning": null,
      "actual": 0,
      "tol": 1e-12
    },
    {
      "id": "neg-W",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "W": -500,
        "hours": 2
      },
      "expectError": "VALUE_MUST_BE_NON_NEGATIVE",
      "code": "VALUE_MUST_BE_NON_NEGATIVE",
      "error": "W must be ≥ 0"
    },
    {
      "id": "neg-hours",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "W": 500,
        "hours": -2
      },
      "expectError": "VALUE_MUST_BE_NON_NEGATIVE",
      "code": "VALUE_MUST_BE_NON_NEGATIVE",
      "error": "hours must be ≥ 0"
    },
    {
      "id": "2000W-24h",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W": 2000,
        "hours": 24
      },
      "expect": 48,
      "expectWarning": null,
      "actual": 48,
      "tol": 0.001
    },
    {
      "id": "missing-W",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "hours": 3
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "W is required"
    },
    {
      "id": "property-kwh",
      "ok": true,
      "kind": "property",
      "detail": "E = P·t / 1000",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-linear-power",
      "ok": true,
      "kind": "property",
      "detail": "E(2P)=2E(P)",
      "expect": 4,
      "actual": 4
    },
    {
      "id": "property-linear-time",
      "ok": true,
      "kind": "property",
      "detail": "E(2t)=2E(t)",
      "expect": 4,
      "actual": 4
    },
    {
      "id": "property-default",
      "ok": true,
      "kind": "property",
      "detail": "1500 W × 3 h",
      "expect": 4.5,
      "actual": 4.5
    }
  ],
  "tier": "internally_reviewed",
  "verification": {
    "tests": {
      "passed": 16,
      "total": 16,
      "golden": 9,
      "boundary": 3,
      "property": 4
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-13T14:29:59.920Z",
  "rendered_at": "2026-09-16T22:03:43.701Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.4.2",
    "artifacts": {
      "engine": "1.4.2",
      "page": "1.4.2",
      "capability": "1.4.2",
      "evidence": "1.4.2",
      "input_schema": "1.4.2",
      "output_schema": "1.4.2",
      "mcp_contract": "1.4.2"
    },
    "digests": {
      "input_schema_sha256": "4fbea79f291b0be2d402bcdf35e1ee32958364497986406299f9bc995d16ad71",
      "output_schema_sha256": "513207640dd3f6145f0da67434085aa12ebf3bc9a84d9250d53dda64ead66e47",
      "evidence_sha256": "af2d679bfc458fdfc50a0f8f2dc9786710676212a82be62dae14cbfc2f8e376e",
      "evidence_core_sha256": "af2d679bfc458fdfc50a0f8f2dc9786710676212a82be62dae14cbfc2f8e376e",
      "capability_sha256": "cf588175ea4547cc056fb7e51aac958ee08347b0241460132bc9dcf058431be6",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 4,
      "passed": 4,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.4.2"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
