{
  "capability_id": "electrical.kva_to_kw",
  "tool_id": "kva-to-kw",
  "engine": "kva-kw",
  "calculation_version": "1.4.1",
  "generated_at": "2026-09-15T14:50:25.132Z",
  "engine_build": "2026-09-10",
  "test_count": 14,
  "passed": 14,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 7,
      "passed": 7
    },
    "boundary": {
      "total": 4,
      "passed": 4
    },
    "property": {
      "total": 3,
      "passed": 3
    }
  },
  "engine_tested": true,
  "expert_reviewed": true,
  "internally_reviewed": false,
  "review_kind": "expert",
  "source_checked": true,
  "reviewed_by": "CalculatorX electrical review",
  "reviewer_role": "electrical-engineer",
  "last_reviewed": "2026-08-08",
  "expert_review": {
    "status": "approved",
    "reviewer": {
      "name": "CalculatorX electrical review",
      "role": "electrical-engineer"
    },
    "reviewed_at": "2026-08-08",
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "kind": "expert"
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/electric/kva-to-kw",
  "api": "https://www.calculatorx.com/api/v1/calc/kva-to-kw",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.kva_to_kw.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.kva_to_kw.output.json",
  "assumptions": [
    "PF is the displacement/true power factor relating P and S",
    "Voltage and phase are not required when S or P is already known"
  ],
  "limitations": [
    "PF ∈ (0,1] hard",
    "No voltage/phase required"
  ],
  "boundary_conditions": [
    "power_factor must be in (0, 1] — PF≤0 → FRACTION_OUT_OF_RANGE (engine kva-kw)",
    "Missing PF → MISSING_REQUIRED_INPUT",
    "Zero kVA/kW yields 0 — soft boundary"
  ],
  "sources": [
    {
      "title": "IEC 60050 — International Electrotechnical Vocabulary",
      "section": "Apparent power (IEV 131-11-41)",
      "url": "https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=131-11-41",
      "supports": "kVA is apparent power S; unit volt-ampere (VA) at 10³ scale",
      "kind": "standard",
      "accessed": "2026-09-05",
      "clause": "IEV 131-11-41"
    },
    {
      "title": "IEC 60050 — International Electrotechnical Vocabulary",
      "section": "Power factor (IEV 131-11-46)",
      "url": "https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=131-11-46",
      "supports": "λ = |P| / S; P(kW) = S(kVA) × λ and S = P ÷ λ",
      "kind": "standard",
      "accessed": "2026-09-05",
      "clause": "IEV 131-11-46"
    },
    {
      "title": "IEEE Std 1459-2025",
      "section": "Relationship P = S × PF for sinusoidal conditions",
      "url": "https://standards.ieee.org/ieee/1459/7578/",
      "supports": "P(kW) = S(kVA) × PF; S = P ÷ PF",
      "kind": "standard",
      "accessed": "2026-09-05",
      "publisher": "IEEE",
      "published": "2025-05-16",
      "errata_checked": true
    },
    {
      "title": "BIPM SI Brochure (9th edition, version 4.01)",
      "section": "SI units for watt and volt-ampere",
      "url": "https://www.bipm.org/en/publications/si-brochure",
      "supports": "kW / kVA unit relationships; kilo (k) = 10³",
      "kind": "reference",
      "accessed": "2026-09-05",
      "published": "2026-06",
      "doi": "https://doi.org/10.59161/AUEZ1291"
    },
    {
      "title": "NIST Guide to the SI (SP 811)",
      "section": "Kilowatt and related power units",
      "url": "https://www.nist.gov/pml/special-publication-811",
      "supports": "kW / kVA unit relationships",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:fc80799671a641d8ef33c7b8240aac362579fd9ce3ce1cf6eee18b5b8244340d",
  "tests": [
    {
      "id": "100kVA-0.8",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "kva-kw",
        "a": 100,
        "b": 0.8
      },
      "expect": 80,
      "expectWarning": null,
      "actual": 80,
      "tol": 0.001
    },
    {
      "id": "50kVA-0.9",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "kva-kw",
        "a": 50,
        "b": 0.9
      },
      "expect": 45,
      "expectWarning": null,
      "actual": 45,
      "tol": 0.001
    },
    {
      "id": "10kVA-0.85",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "kva-kw",
        "a": 10,
        "b": 0.85
      },
      "expect": 8.5,
      "expectWarning": null,
      "actual": 8.5,
      "tol": 0.001
    },
    {
      "id": "kw-to-kva-80",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "kw-kva",
        "a": 80,
        "b": 0.8
      },
      "expect": 100,
      "expectWarning": null,
      "actual": 100,
      "tol": 0.001
    },
    {
      "id": "unity",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "kva-kw",
        "a": 25,
        "b": 1
      },
      "expect": 25,
      "expectWarning": null,
      "actual": 25,
      "tol": 0.001
    },
    {
      "id": "soft-zero",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "kva-kw",
        "a": 0,
        "b": 0.8
      },
      "expect": 0,
      "expectWarning": null,
      "actual": 0,
      "tol": 1e-12
    },
    {
      "id": "pf-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "kva-kw",
        "a": 100,
        "b": 0
      },
      "expectError": "FRACTION_OUT_OF_RANGE",
      "code": "FRACTION_OUT_OF_RANGE",
      "error": "pf must be in (0, 1]"
    },
    {
      "id": "pf-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "kva-kw",
        "a": 100
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "power_factor is required"
    },
    {
      "id": "roundtrip",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "kw-kva",
        "a": 45,
        "b": 0.9
      },
      "expect": 50,
      "expectWarning": null,
      "actual": 50,
      "tol": 0.001
    },
    {
      "id": "neg",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "kva-kw",
        "a": -1,
        "b": 0.8
      },
      "expectError": "VALUE_MUST_BE_NON_NEGATIVE",
      "code": "VALUE_MUST_BE_NON_NEGATIVE",
      "error": "kVA must be ≥ 0"
    },
    {
      "id": "bad-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "x",
        "a": 1,
        "b": 0.8
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be \"kva-kw\" or \"kw-kva\""
    },
    {
      "id": "property-kva-kw",
      "ok": true,
      "kind": "property",
      "detail": "100·0.8",
      "expect": 80,
      "actual": 80
    },
    {
      "id": "property-linear-pf",
      "ok": true,
      "kind": "property",
      "detail": "linear PF",
      "expect": 40,
      "actual": 40
    },
    {
      "id": "property-roundtrip",
      "ok": true,
      "kind": "property",
      "detail": "kw-kva recovers",
      "expect": 100,
      "actual": 100
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 14,
      "total": 14,
      "golden": 7,
      "boundary": 4,
      "property": 3
    },
    "contract_checks": {
      "passed": 2,
      "total": 2
    }
  },
  "evidence_core_generated_at": "2026-09-05T02:35:39.217Z",
  "rendered_at": "2026-09-15T14:50:25.132Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.4.1",
    "artifacts": {
      "engine": "1.4.1",
      "page": "1.4.1",
      "capability": "1.4.1",
      "evidence": "1.4.1",
      "input_schema": "1.4.1",
      "output_schema": "1.4.1",
      "mcp_contract": "1.4.1"
    },
    "digests": {
      "input_schema_sha256": "c543a92bf4e2fbc8d5bd563b71251aed29823ed93b26fe1c1427cfeae56cea92",
      "output_schema_sha256": "9919c77307a02ce1ce73fabc6190eacee2bb290c8bfe28b187406f53cc7750f8",
      "evidence_sha256": "5e0c3223347501ba65b037811200c2a9e2a34faa942095108c6f8dc1c1d45d52",
      "evidence_core_sha256": "5e0c3223347501ba65b037811200c2a9e2a34faa942095108c6f8dc1c1d45d52",
      "capability_sha256": "c976735c85c3e6fd82a49eeffa1f7c3d37df66ad920c32acfdeaec7c8dd35623",
      "engine_sha256": "dec597016e0ad8bd47df675f2a6a2dcd4755079cd5c9fefbc6d0f92fa1e50dad",
      "mcp_contract_sha256": "0626507ac692dfc842f786472771c2f6a21108b4112bda4c8e1bd7a6c3c228a2"
    },
    "contract_checks": {
      "total": 2,
      "passed": 2,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.4.1"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
