{
  "capability_id": "electrical.rectifier.ripple_cap",
  "tool_id": "rectifier-ripple-cap",
  "engine": "rectifier-ripple-cap",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:03:43.745Z",
  "engine_build": "2026-09-10",
  "test_count": 5,
  "passed": 5,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 2,
      "passed": 2
    },
    "boundary": {
      "total": 1,
      "passed": 1
    },
    "property": {
      "total": 2,
      "passed": 2
    }
  },
  "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/rectifier-ripple-cap",
  "api": "https://www.calculatorx.com/api/v1/calc/rectifier-ripple-cap",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.rectifier.ripple_cap.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.rectifier.ripple_cap.output.json",
  "assumptions": [],
  "limitations": [
    "Constant load current; ideal diodes"
  ],
  "boundary_conditions": [
    "I,f,C ≤0 → VALUE_MUST_BE_POSITIVE"
  ],
  "sources": [
    {
      "title": "Power supply design — capacitor input filter",
      "section": "Ripple estimate",
      "supports": "Vr≈I/(fC)",
      "kind": "reference"
    },
    {
      "title": "Erickson / Maksimović — Fundamentals of Power Electronics",
      "section": "Capacitor-input rectifier",
      "supports": "Full-wave f_ripple=2f line approximation",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:4d8c8cc1620fe01f4714913d60dcf19a5d6b80571f3f26b6b1723f081f8a2c1c",
  "tests": [
    {
      "id": "full-ripple",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "ripple",
        "wave": "full",
        "I_A": 1,
        "f_Hz": 50,
        "C_F": 0.001
      },
      "expect": {
        "Vripple_V": 10
      },
      "expectWarning": null,
      "actual": {
        "mode": "ripple",
        "wave": "full",
        "I_A": 1,
        "f_Hz": 50,
        "f_ripple_Hz": 100,
        "C_F": 0.001,
        "Vripple_V": 10
      },
      "tol": 1e-12
    },
    {
      "id": "cap",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "capacitance",
        "wave": "full",
        "I_A": 1,
        "f_Hz": 50,
        "Vripple_V": 10
      },
      "expect": {
        "C_F": 0.001
      },
      "expectWarning": null,
      "actual": {
        "mode": "capacitance",
        "wave": "full",
        "I_A": 1,
        "f_Hz": 50,
        "f_ripple_Hz": 100,
        "Vripple_V": 10,
        "C_F": 0.001,
        "C_uF": 1000
      },
      "tol": 1e-12
    },
    {
      "id": "bad-C",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "ripple",
        "wave": "full",
        "I_A": 1,
        "f_Hz": 50,
        "C_F": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "C_F must be greater than zero"
    },
    {
      "id": "property-vr",
      "ok": true,
      "kind": "property",
      "detail": "10",
      "expect": 10,
      "actual": 10
    },
    {
      "id": "property-C",
      "ok": true,
      "kind": "property",
      "detail": "1mF",
      "expect": 0.001,
      "actual": 0.001
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 5,
      "total": 5,
      "golden": 2,
      "boundary": 1,
      "property": 2
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-06T13:16:40.891Z",
  "rendered_at": "2026-09-16T22:03:43.745Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.0",
    "artifacts": {
      "engine": "1.0.0",
      "page": "1.0.0",
      "capability": "1.0.0",
      "evidence": "1.0.0",
      "input_schema": "1.0.0",
      "output_schema": "1.0.0",
      "mcp_contract": "1.0.0"
    },
    "digests": {
      "input_schema_sha256": "ddac7a52731f8aa2b838370c42b537aee30a6707ebe5eaf734b41a09126d2792",
      "output_schema_sha256": "cfeb02dcc846f9e66e83f5ef3726467ce5de22229ca82360a915eadaff79aee1",
      "evidence_sha256": "bfb6f6199cd2db572f301f8572d5509af9d6e707f0e639030acb82ad9b0aaf36",
      "evidence_core_sha256": "bfb6f6199cd2db572f301f8572d5509af9d6e707f0e639030acb82ad9b0aaf36",
      "capability_sha256": "9b06fe4738f4c57881e0d8fd31642aeca45bec541c19e706452fea2f7cba7eb2",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 4,
      "passed": 4,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "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"
  }
}
