{
  "protocol": {
    "name": "CVP",
    "version": "1.0.0-proposed"
  },
  "document_status": "proposed",
  "calculator": {
    "id": "mosfet-switching-loss",
    "version": "1.0.0",
    "title": "MOSFET Switching Loss Calculator",
    "formula_family": "hard-switching-overlap",
    "capability_id": "electrical.mosfet.switching_loss"
  },
  "profile": "engineering",
  "status": "VERIFIED",
  "runner": {
    "name": "cvp-runner",
    "version": "1.0.0"
  },
  "environment": {
    "runtime": "node",
    "runtime_version": "20.19.2",
    "numeric_model": "IEEE-754 binary64",
    "os": "darwin"
  },
  "suite": {
    "id": "mosfet-switching-loss",
    "version": "1.0.0",
    "uri": "https://www.calculatorx.com/evidence/electrical.mosfet.switching_loss/1.0.0.json"
  },
  "obligation_set": [
    "CVP-PROV-01",
    "CVP-MODEL-01",
    "CVP-SCOPE-01",
    "CVP-UNIT-01",
    "CVP-REF-01",
    "CVP-GOLD-01",
    "CVP-BND-01",
    "CVP-INV-01",
    "CVP-NUM-01",
    "CVP-COV-01",
    "CVP-CONTRACT-01",
    "CVP-DEP-01",
    "CVP-ART-01",
    "CVP-PROD-01",
    "CVP-DIM-01",
    "CVP-PROP-01",
    "CVP-IFACE-01"
  ],
  "provenance": {
    "mode": "direct",
    "sources": [
      {
        "label": "Erickson & Maksimović — Fundamentals of Power Electronics",
        "kind": "other",
        "reference": "Hard-switching loss estimates"
      },
      {
        "label": "Texas Instruments SLYT664 — MOSFET power losses and how they affect power-supply efficiency",
        "kind": "other",
        "reference": "Switching and gate-drive loss",
        "url": "https://www.ti.com/lit/pdf/slyt664"
      },
      {
        "label": "Texas Instruments SLUA618 — Fundamentals of MOSFET and IGBT Gate Driver Circuits",
        "kind": "other",
        "reference": "Gate-drive energy split among driver and gate resistance",
        "url": "https://www.ti.com/lit/pdf/slua618"
      }
    ]
  },
  "reference": {
    "items": [
      {
        "class": "O1",
        "reference_scope": "model",
        "scope": "model",
        "label": "Hard-switching MOSFET overlap loss with optional gate drive"
      },
      {
        "class": "O2",
        "reference_scope": "expected_values",
        "scope": "expected_values",
        "label": "Separate-module MOSFET switching-loss oracle — same V8 binary64 as IUT",
        "engine": {
          "name": "mosfet-switching-reference",
          "precision_bits": 53,
          "independent_of_iut": true
        }
      },
      {
        "class": "O2",
        "reference_scope": "numerical_behavior",
        "scope": "numerical_behavior",
        "label": "Same O2 module backs ≤2 ULP P_sw_W / P_total_W comparison vs IUT",
        "engine": {
          "name": "mosfet-switching-reference",
          "precision_bits": 53,
          "independent_of_iut": true
        }
      }
    ],
    "notes": "Golden expected values use a separate O2 module (not IUT transcription). O2 shares Node/V8 binary64 with the IUT unless noted otherwise."
  },
  "controls": {
    "CVP-PROV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Sources present on evidence"
    },
    "CVP-MODEL-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "P_sw = ½·Vds·Id·(tr+tf)·f_sw; optional P_gate = Qg·Vdrive·f_sw"
    },
    "CVP-SCOPE-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Hard-switching approximation — soft-switching / Coss / Qrr excluded here"
    },
    "CVP-UNIT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "SI: V, A, s, Hz, C"
    },
    "CVP-REF-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "O1 model + O2 expected_values + O2 numerical_behavior"
    },
    "CVP-GOLD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "2/2 legacy golden; 2/2 oracle-backed numeric"
    },
    "CVP-BND-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "6/6 boundary"
    },
    "CVP-INV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "6 invalid-domain cases"
    },
    "CVP-NUM-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "max_error_observed_ulp=0; policy declared a priori"
    },
    "CVP-COV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "3/3 declared partitions (overlap-only, with-gate, invalid-domain) · 2 golden / 6 boundary unique cases · 6 Evidence invalid-input (may overlap boundary)"
    },
    "CVP-CONTRACT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "11/11 contract checks"
    },
    "CVP-DEP-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "engine mosfet-switching-loss; Node binary64"
    },
    "CVP-ART-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "release_integrity.status=verified · evidence_digest=CVP verification fingerprint v2 (canonical inputs, expected/actual/status, policy, versions; independent of generated_at) · evidence_bundle_sha256=legacy Evidence JSON bytes · production_sha256=bound production attestation report"
    },
    "CVP-PROD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "CURRENT · site report pass · local checks pass · attestation_id=00c818a77ba026c2d6aa3f7402680cd2dac2a40a816209600bc3c3fcd0b8921c · CURRENT · Public schema 1.0.0 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓ · schema_const=1.0.0 · report output-const=pass · evidence-sha256=pass · semantic-contract=pass · capability-html-public-origin-agree=pass · cvp-manifest-public-origin-agree=pass · calculator-html-cvp-projection=pass · evidence-html-cvp-projection=pass · attested_evidence_sha256=9424f31d3ca937ec4a453e41479201945df6495214f0a220ebb742e7fd1c3f20"
    },
    "CVP-DIM-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "Power from overlap energy × f"
    },
    "CVP-PROP-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "5/5 property"
    },
    "CVP-META-01": {
      "result": "SKIP",
      "applicability": "not_applicable",
      "notes": "No input→output transformation vectors in pack — control not in obligation set"
    },
    "CVP-ROUND-01": {
      "result": "SKIP",
      "applicability": "not_applicable",
      "notes": "No inverse / round-trip vectors in pack — control not in obligation set"
    },
    "CVP-XCAL-01": {
      "result": "SKIP",
      "applicability": "not_applicable",
      "notes": "No related calculator in the same formula family / no related-identity peers declared — control not in obligation set"
    },
    "CVP-IFACE-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "UI (SSR) · REST · MCP equivalent (MCP uses calc API handler). ui-ssr is query-result HTML, not a live browser session."
    },
    "CVP-ORACLE-01": {
      "result": "SKIP",
      "applicability": "higher_assurance",
      "notes": "O2 present; O3 not required this wave"
    },
    "CVP-EXP-01": {
      "result": "PASS",
      "applicability": "optional",
      "notes": "expert_reviewed=true"
    }
  },
  "tests": {
    "golden": {
      "passed": 2,
      "total": 2,
      "failed": 0,
      "case_ids": [
        "g-hard",
        "g-gate"
      ]
    },
    "boundary": {
      "passed": 6,
      "total": 6,
      "failed": 0,
      "case_ids": [
        "missing-tr",
        "qg-only",
        "zero-Vds",
        "boundary-vdrive-only",
        "boundary-negative-tr",
        "boundary-zero-f_sw"
      ]
    },
    "invalid": {
      "passed": 6,
      "total": 6,
      "failed": 0,
      "case_ids": [
        "missing-tr",
        "qg-only",
        "zero-Vds",
        "boundary-vdrive-only",
        "boundary-negative-tr",
        "boundary-zero-f_sw"
      ]
    },
    "property": {
      "passed": 5,
      "total": 5,
      "failed": 0,
      "case_ids": [
        "property-freq",
        "property-v",
        "property-id",
        "property-times",
        "property-gate-linear"
      ],
      "kind": "fixed"
    },
    "round_trip": {
      "passed": 0,
      "total": 0,
      "failed": 0,
      "case_ids": []
    },
    "metamorphic": {
      "passed": 0,
      "total": 0,
      "failed": 0,
      "case_ids": []
    },
    "contract": {
      "passed": 11,
      "total": 11,
      "failed": 0
    },
    "cross_interface": {
      "passed": 1,
      "total": 1,
      "failed": 0,
      "case_ids": [
        "iface-hard"
      ]
    }
  },
  "coverage": {
    "partitions": [
      {
        "id": "overlap-only",
        "description": "Hard-switching without gate",
        "exercised": true,
        "case_count": 2
      },
      {
        "id": "with-gate",
        "description": "With Qg·Vdrive gate term",
        "exercised": true,
        "case_count": 2
      },
      {
        "id": "invalid-domain",
        "description": "Invalid inputs",
        "exercised": true,
        "case_count": 6
      }
    ]
  },
  "numerical": {
    "representation": "IEEE-754 binary64",
    "tolerance": {
      "type": "ulp",
      "value": 2,
      "rationale": "Hard-switching product; ≤2 ULP vs separate-module O2 (same V8). Declared a priori.",
      "declared_before_evaluation": true
    },
    "max_error_observed": 0,
    "records": [
      {
        "id": "g-hard",
        "reference": {
          "P_sw_W": 2.16,
          "P_gate_W": 0,
          "P_total_W": 2.16,
          "Vds": 48,
          "Id": 10,
          "tr": 5e-8,
          "tf": 4e-8,
          "f_sw": 100000,
          "Qg": null,
          "Vdrive": null
        },
        "actual": {
          "P_sw_W": 2.16,
          "P_gate_W": 0,
          "P_total_W": 2.16,
          "Vds": 48,
          "Id": 10,
          "tr": 5e-8,
          "tf": 4e-8,
          "f_sw": 100000,
          "Qg": null,
          "Vdrive": null
        },
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "g-gate",
        "reference": {
          "P_sw_W": 2.16,
          "P_gate_W": 0.049999999999999996,
          "P_total_W": 2.21,
          "Vds": 48,
          "Id": 10,
          "tr": 5e-8,
          "tf": 4e-8,
          "f_sw": 100000,
          "Qg": 5e-8,
          "Vdrive": 10
        },
        "actual": {
          "P_sw_W": 2.16,
          "P_gate_W": 0.049999999999999996,
          "P_total_W": 2.21,
          "Vds": 48,
          "Id": 10,
          "tr": 5e-8,
          "tf": 4e-8,
          "f_sw": 100000,
          "Qg": 5e-8,
          "Vdrive": 10
        },
        "error_ulp": 0,
        "threshold_ulp": 2
      }
    ]
  },
  "interfaces": {
    "compared": [
      "ui-ssr",
      "rest",
      "mcp"
    ],
    "result": "PASS",
    "notes": "UI (SSR) · REST · MCP equivalent (MCP uses calc API handler). ui-ssr is query-result HTML, not a live browser session."
  },
  "artifacts": {
    "evidence_bundle_sha256": "a207501707c510e3345fae5f64d573725fa3121b11bafe53e77d9057012d737f",
    "evidence_digest": "e80c68d19929c47a7fc0bd7bd2019f21e52b7637989aa8d29212ded5477ee0a8",
    "production_sha256": "9424f31d3ca937ec4a453e41479201945df6495214f0a220ebb742e7fd1c3f20",
    "attested_catalog_sha256": "e03ef81b30568018b171fd1fc4757c2abe9df7220d9ff35bbaf08038d7630cdb",
    "production_checks": [
      {
        "id": "electrical.mosfet.switching_loss:output-const",
        "status": "pass",
        "detail": "output const 1.0.0 vs capability 1.0.0",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.mosfet.switching_loss:evidence-sha256",
        "status": "pass",
        "detail": "6b049d0ba25d",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.mosfet.switching_loss:semantic-contract",
        "status": "pass",
        "detail": "13/13",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.mosfet.switching_loss:capability-html-public-origin-agree",
        "status": "pass",
        "detail": "public 1.0.0 vs origin 1.0.0",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.mosfet.switching_loss:cvp-manifest-public-origin-agree",
        "status": "pass",
        "detail": "electrical.mosfet.switching_loss/1.0.0/-/engineering/e80c68d19929",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z",
        "projection_compared": false,
        "observed_live_projection_at_attestation": "VERIFIED"
      },
      {
        "id": "electrical.mosfet.switching_loss:calculator-html-cvp-projection",
        "status": "pass",
        "detail": "matches Manifest",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.mosfet.switching_loss:evidence-html-cvp-projection",
        "status": "pass",
        "detail": "matches Manifest",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      }
    ]
  },
  "dependencies": [
    {
      "name": "mosfet-switching-loss-engine",
      "version": "1.0.0"
    },
    {
      "name": "mosfet-switching-loss-reference-oracle",
      "version": "1.0.0"
    },
    {
      "name": "node",
      "version": "20.19.2"
    }
  ],
  "attestation": {
    "status": "CURRENT",
    "href": "/.well-known/calculatorx-production-attestation.json",
    "id": "00c818a77ba026c2d6aa3f7402680cd2dac2a40a816209600bc3c3fcd0b8921c",
    "attested_at": "2026-09-10T02:52:51.379Z"
  },
  "domain_review": {
    "status": "PASS",
    "reviewer_role": "electrical-engineer",
    "spec_version": "1.0.0",
    "external_third_party": false,
    "independence": "internal"
  },
  "timestamps": {
    "verified_at": "2026-09-10T03:41:42.210Z",
    "generated_at": "2026-09-10T03:41:42.210Z"
  },
  "links": {
    "legacy_evidence": "https://www.calculatorx.com/evidence/electrical.mosfet.switching_loss/1.0.0.json",
    "evidence_page": "https://www.calculatorx.com/evidence/electrical.mosfet.switching_loss/1.0.0",
    "calculator": "https://www.calculatorx.com/calc/electric/mosfet-switching-loss",
    "schema": "https://www.calculatorx.com/developers/cvp/schema/cvp-evidence-1.0.json",
    "protocol": "https://www.calculatorx.com/developers/cvp/spec/1.0",
    "manifest": "https://www.calculatorx.com/evidence/electrical.mosfet.switching_loss/1.0.0.cvp.json"
  }
}
