{
  "protocol": {
    "name": "CVP",
    "version": "1.0.0-proposed"
  },
  "document_status": "proposed",
  "calculator": {
    "id": "ac-dc-rectifier",
    "version": "1.1.2",
    "title": "AC–DC Rectifier Calculator",
    "formula_family": "ideal-rectifier",
    "capability_id": "electrical.ac_dc_rectifier"
  },
  "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": "ac-dc-rectifier",
    "version": "1.1.2",
    "uri": "https://www.calculatorx.com/evidence/electrical.ac_dc_rectifier/1.1.2.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": "Texas Instruments — A Design Review of a Full-Featured 350-W Offline Power Supply (TIDU186)",
        "kind": "other",
        "reference": "Figure 4 — ideal bridge / half-wave average and RMS",
        "url": "https://www.ti.com/lit/ug/tidu186/tidu186.pdf"
      },
      {
        "label": "Analog Devices — Diode Applications, Rectifier Output Smoothing",
        "kind": "other",
        "reference": "Capacitor-input filter / reservoir capacitor",
        "url": "https://wiki.analog.com/university/courses/electronics/text/chapter-6"
      },
      {
        "label": "IEC 60050 — International Electrotechnical Vocabulary",
        "kind": "standard",
        "reference": "Electronic power conversion (IEV 551-11-02)",
        "url": "https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=551-11-02"
      },
      {
        "label": "IEC 60050 — International Electrotechnical Vocabulary",
        "kind": "standard",
        "reference": "Semiconductor diode (IEV 521-04-03)",
        "url": "https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=521-04-03"
      }
    ]
  },
  "reference": {
    "items": [
      {
        "class": "O1",
        "reference_scope": "model",
        "scope": "model",
        "label": "Ideal rectifier + capacitor-smoothed estimate"
      },
      {
        "class": "O2",
        "reference_scope": "expected_values",
        "scope": "expected_values",
        "label": "Separate-module AC–DC rectifier oracle — same V8 binary64 as IUT",
        "engine": {
          "name": "ac-dc-rectifier-reference",
          "precision_bits": 53,
          "independent_of_iut": true
        }
      },
      {
        "class": "O2",
        "reference_scope": "numerical_behavior",
        "scope": "numerical_behavior",
        "label": "Same O2 module backs ≤2 ULP Vavg/ripple comparison vs IUT",
        "engine": {
          "name": "ac-dc-rectifier-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": "Ideal half/full Vpeak/Vavg/Vrms; optional Vr=I/(fC)"
    },
    "CVP-SCOPE-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Ideal diodes; continuous-discharge Cap model when I+C given"
    },
    "CVP-UNIT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "V_rms, A, F, Hz"
    },
    "CVP-REF-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "O1 model + O2 expected_values + O2 numerical_behavior"
    },
    "CVP-GOLD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "3/3 legacy golden; 3/3 oracle-backed numeric"
    },
    "CVP-BND-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "8/8 boundary"
    },
    "CVP-INV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "7 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 (waveform, smoothed, invalid-domain) · 3 golden / 8 boundary unique cases · 7 Evidence invalid-input (may overlap boundary)"
    },
    "CVP-CONTRACT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "1/1 contract checks"
    },
    "CVP-DEP-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "engine ac-dc-rectifier; 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.1.2 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓ · schema_const=1.1.2 · 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": "Rectified voltage / DC estimate"
    },
    "CVP-PROP-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "16/16 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": "SKIP",
      "applicability": "optional",
      "notes": "expert_reviewed=false"
    }
  },
  "tests": {
    "golden": {
      "passed": 3,
      "total": 3,
      "failed": 0,
      "case_ids": [
        "g-full",
        "g-half",
        "g-ripple"
      ]
    },
    "boundary": {
      "passed": 8,
      "total": 8,
      "failed": 0,
      "case_ids": [
        "bad-vac",
        "boundary-neg-vac",
        "boundary-i-without-c",
        "boundary-c-without-i",
        "boundary-bad-c",
        "boundary-bad-f",
        "boundary-neg-i",
        "boundary-ripple-exceeds-peak"
      ]
    },
    "invalid": {
      "passed": 7,
      "total": 7,
      "failed": 0,
      "case_ids": [
        "bad-vac",
        "boundary-neg-vac",
        "boundary-i-without-c",
        "boundary-c-without-i",
        "boundary-bad-c",
        "boundary-bad-f",
        "boundary-neg-i"
      ]
    },
    "property": {
      "passed": 16,
      "total": 16,
      "failed": 0,
      "case_ids": [
        "property-avg-full-twice-half",
        "property-vpeak-mode-independent",
        "property-full-vrms-equals-vac",
        "property-half-vrms-vac-over-sqrt2",
        "property-full-friple-2fline",
        "property-half-friple-fline",
        "property-scale-vac",
        "property-c-double-halves-ripple",
        "property-i-double-doubles-ripple",
        "property-f-double-halves-ripple",
        "property-models-differ",
        "property-vdc-midpoint",
        "property-ripple-warning",
        "property-invalid-estimate-gated",
        "property-reject-vac-le0",
        "property-reject-partial-cap"
      ],
      "kind": "fixed"
    },
    "round_trip": {
      "passed": 0,
      "total": 0,
      "failed": 0,
      "case_ids": []
    },
    "metamorphic": {
      "passed": 0,
      "total": 0,
      "failed": 0,
      "case_ids": []
    },
    "contract": {
      "passed": 1,
      "total": 1,
      "failed": 0
    },
    "cross_interface": {
      "passed": 1,
      "total": 1,
      "failed": 0,
      "case_ids": [
        "iface-full"
      ]
    }
  },
  "coverage": {
    "partitions": [
      {
        "id": "waveform",
        "description": "Unfiltered rectified waveform",
        "exercised": true,
        "case_count": 4
      },
      {
        "id": "smoothed",
        "description": "Capacitor-smoothed",
        "exercised": true,
        "case_count": 3
      },
      {
        "id": "invalid-domain",
        "description": "Invalid inputs",
        "exercised": true,
        "case_count": 7
      }
    ]
  },
  "numerical": {
    "representation": "IEEE-754 binary64",
    "tolerance": {
      "type": "ulp",
      "value": 2,
      "rationale": "Ideal rectifier / continuous-discharge estimate; ≤2 ULP vs separate-module O2 (same V8). Declared a priori.",
      "declared_before_evaluation": true
    },
    "max_error_observed": 0,
    "records": [
      {
        "id": "g-full",
        "reference": {
          "mode": "full",
          "circuit_model": "rectified_waveform",
          "Vac_rms": 230,
          "Vpeak": 325.2691193458119,
          "Vavg": 207.0727527161344,
          "Vrms_out": 230,
          "f_line_Hz": 50,
          "f_ripple_Hz": 100,
          "ripple_Vpp": null,
          "Vdc_est": null,
          "Vmin": null,
          "Vmax": null,
          "model_validity": {
            "valid": true,
            "code": null
          },
          "raw_model_extrapolation": null
        },
        "actual": {
          "mode": "full",
          "circuit_model": "rectified_waveform",
          "Vac_rms": 230,
          "Vpeak": 325.2691193458119,
          "Vavg": 207.0727527161344,
          "Vrms_out": 230,
          "f_line_Hz": 50,
          "f_ripple_Hz": 100,
          "ripple_Vpp": null,
          "Vdc_est": null,
          "Vmin": null,
          "Vmax": null,
          "model_validity": {
            "valid": true,
            "code": null
          },
          "raw_model_extrapolation": null
        },
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "g-half",
        "reference": {
          "mode": "half",
          "circuit_model": "rectified_waveform",
          "Vac_rms": 230,
          "Vpeak": 325.2691193458119,
          "Vavg": 103.5363763580672,
          "Vrms_out": 162.63455967290594,
          "f_line_Hz": 50,
          "f_ripple_Hz": 50,
          "ripple_Vpp": null,
          "Vdc_est": null,
          "Vmin": null,
          "Vmax": null,
          "model_validity": {
            "valid": true,
            "code": null
          },
          "raw_model_extrapolation": null
        },
        "actual": {
          "mode": "half",
          "circuit_model": "rectified_waveform",
          "Vac_rms": 230,
          "Vpeak": 325.2691193458119,
          "Vavg": 103.5363763580672,
          "Vrms_out": 162.63455967290594,
          "f_line_Hz": 50,
          "f_ripple_Hz": 50,
          "ripple_Vpp": null,
          "Vdc_est": null,
          "Vmin": null,
          "Vmax": null,
          "model_validity": {
            "valid": true,
            "code": null
          },
          "raw_model_extrapolation": null
        },
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "g-ripple",
        "reference": {
          "mode": "full",
          "circuit_model": "capacitor_smoothed",
          "Vac_rms": 12,
          "Vpeak": 16.970562748477143,
          "Vavg": 10.803795793885275,
          "Vrms_out": 12,
          "f_line_Hz": 50,
          "f_ripple_Hz": 100,
          "ripple_Vpp": 5,
          "Vdc_est": 14.470562748477143,
          "Vmin": 11.970562748477143,
          "Vmax": 16.970562748477143,
          "model_validity": {
            "valid": true,
            "code": null
          },
          "raw_model_extrapolation": null
        },
        "actual": {
          "mode": "full",
          "circuit_model": "capacitor_smoothed",
          "Vac_rms": 12,
          "Vpeak": 16.970562748477143,
          "Vavg": 10.803795793885275,
          "Vrms_out": 12,
          "f_line_Hz": 50,
          "f_ripple_Hz": 100,
          "ripple_Vpp": 5,
          "Vdc_est": 14.470562748477143,
          "Vmin": 11.970562748477143,
          "Vmax": 16.970562748477143,
          "model_validity": {
            "valid": true,
            "code": null
          },
          "raw_model_extrapolation": null
        },
        "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": "c540d8294e3e417abc65b598d68b177cb68ea3b37a7d3b1f27cba5f4f60732f1",
    "evidence_digest": "5a857ec1e482ed398f975e2ddd3ebdb48f554660b5ea8ccee368b69bda9846b3",
    "production_sha256": "9424f31d3ca937ec4a453e41479201945df6495214f0a220ebb742e7fd1c3f20",
    "attested_catalog_sha256": "e03ef81b30568018b171fd1fc4757c2abe9df7220d9ff35bbaf08038d7630cdb",
    "production_checks": [
      {
        "id": "electrical.ac_dc_rectifier:output-const",
        "status": "pass",
        "detail": "output const 1.1.2 vs capability 1.1.2",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.ac_dc_rectifier:evidence-sha256",
        "status": "pass",
        "detail": "a6e877162925",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.ac_dc_rectifier:semantic-contract",
        "status": "pass",
        "detail": "27/27",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.ac_dc_rectifier:capability-html-public-origin-agree",
        "status": "pass",
        "detail": "public 1.1.2 vs origin 1.1.2",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.ac_dc_rectifier:cvp-manifest-public-origin-agree",
        "status": "pass",
        "detail": "electrical.ac_dc_rectifier/1.1.2/-/engineering/5a857ec1e482",
        "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.ac_dc_rectifier: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.ac_dc_rectifier: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": "ac-dc-rectifier-engine",
      "version": "1.1.2"
    },
    {
      "name": "ac-dc-rectifier-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": "ABSENT",
    "reviewer_role": "electrical-engineer",
    "spec_version": "1.1.2",
    "external_third_party": false,
    "independence": "internal"
  },
  "timestamps": {
    "verified_at": "2026-09-10T03:41:43.634Z",
    "generated_at": "2026-09-10T03:41:43.634Z"
  },
  "links": {
    "legacy_evidence": "https://www.calculatorx.com/evidence/electrical.ac_dc_rectifier/1.1.2.json",
    "evidence_page": "https://www.calculatorx.com/evidence/electrical.ac_dc_rectifier/1.1.2",
    "calculator": "https://www.calculatorx.com/calc/electric/ac-dc-rectifier",
    "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.ac_dc_rectifier/1.1.2.cvp.json"
  }
}
