{
  "capability_id": "electrical.opamp.error_budget",
  "tool_id": "opamp-error-budget",
  "engine": "opamp-error-budget",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:03:43.726Z",
  "engine_build": "2026-09-10",
  "test_count": 7,
  "passed": 7,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 2,
      "passed": 2
    },
    "boundary": {
      "total": 3,
      "passed": 3
    },
    "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/opamp-error-budget",
  "api": "https://www.calculatorx.com/api/v1/calc/opamp-error-budget",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.opamp.error_budget.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.opamp.error_budget.output.json",
  "assumptions": [
    "Ideal closed-loop DC; matched simplified Ib path",
    "Ib and Ios terms use Rf as the dominant resistance scale"
  ],
  "limitations": [
    "DC Vos/Ib/Ios only — not noise/CMRR/PSRR"
  ],
  "boundary_conditions": [
    "Bad mode/combine → INVALID_MODE",
    "Rf/Rg ≤0 → VALUE_MUST_BE_POSITIVE"
  ],
  "sources": [
    {
      "title": "Analog Devices / TI op-amp error budget app notes",
      "section": "Vos, Ib, Ios DC errors",
      "supports": "Closed-loop referred offset model",
      "kind": "reference"
    },
    {
      "title": "Horowitz & Hill — The Art of Electronics",
      "section": "Op-amp DC errors and feedback",
      "supports": "Vos / bias-current referred-error pedagogy",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:2535dc4887b13952ecfc14da8c16d34ff32d8a2c2a1b100540a766d90364df6d",
  "tests": [
    {
      "id": "basic",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "Vos_V": 0.001,
        "Ib_A": 1e-7,
        "Ios_A": 2e-8,
        "Rf_ohm": 10000,
        "Rg_ohm": 1000
      },
      "expect": {
        "G_abs": 11,
        "Vout_err": 0.011047171583713182
      },
      "expectWarning": null,
      "actual": {
        "mode": "noninv",
        "combine": "rss",
        "G_abs": 11,
        "Vos_V": 0.001,
        "Ib_A": 1e-7,
        "Ios_A": 2e-8,
        "Rf_ohm": 10000,
        "Rg_ohm": 1000,
        "e_vos": 0.011,
        "e_ib": 0.001,
        "e_ios": 0.0002,
        "Vout_err": 0.011047171583713182,
        "Vout_err_rss": 0.011047171583713182,
        "Vout_err_worst": 0.0122,
        "Vin_err": 0.0010042883257921074
      },
      "tol": 1e-12
    },
    {
      "id": "worst",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "Vos_V": 0.001,
        "Ib_A": 1e-7,
        "Ios_A": 2e-8,
        "Rf_ohm": 10000,
        "Rg_ohm": 1000,
        "combine": "worst_case"
      },
      "expect": {
        "Vout_err": 0.0122
      },
      "expectWarning": null,
      "actual": {
        "mode": "noninv",
        "combine": "worst_case",
        "G_abs": 11,
        "Vos_V": 0.001,
        "Ib_A": 1e-7,
        "Ios_A": 2e-8,
        "Rf_ohm": 10000,
        "Rg_ohm": 1000,
        "e_vos": 0.011,
        "e_ib": 0.001,
        "e_ios": 0.0002,
        "Vout_err": 0.0122,
        "Vout_err_rss": 0.011047171583713182,
        "Vout_err_worst": 0.0122,
        "Vin_err": 0.0011090909090909092
      },
      "tol": 1e-12
    },
    {
      "id": "missing-Rf",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Vos_V": 0.001,
        "Rg_ohm": 1000
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Rf_ohm is required"
    },
    {
      "id": "bad-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "diff",
        "Vos_V": 0.001,
        "Rf_ohm": 10000,
        "Rg_ohm": 1000
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be \"noninv\" or \"inv\""
    },
    {
      "id": "boundary-oa",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Vos_V": 0.001,
        "Rf_ohm": 10000,
        "Rg_ohm": 1000
      },
      "expect": {
        "G_abs": 11
      },
      "expectWarning": null,
      "actual": {
        "mode": "noninv",
        "combine": "rss",
        "G_abs": 11,
        "Vos_V": 0.001,
        "Ib_A": 0,
        "Ios_A": 0,
        "Rf_ohm": 10000,
        "Rg_ohm": 1000,
        "e_vos": 0.011,
        "e_ib": 0,
        "e_ios": 0,
        "Vout_err": 0.011,
        "Vout_err_rss": 0.011,
        "Vout_err_worst": 0.011,
        "Vin_err": 0.001
      },
      "tol": 1e-12
    },
    {
      "id": "property-G",
      "ok": true,
      "kind": "property",
      "detail": "G=11",
      "expect": 11,
      "actual": 11
    },
    {
      "id": "property-vos",
      "ok": true,
      "kind": "property",
      "detail": "e_vos",
      "expect": 0.011,
      "actual": 0.011
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 7,
      "total": 7,
      "golden": 2,
      "boundary": 3,
      "property": 2
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-06T13:18:51.762Z",
  "rendered_at": "2026-09-16T22:03:43.726Z",
  "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": "f07d31a9e7ba617b070e8a37fe1e663f50f63cc50eb89e7e0cee8b6fc672c684",
      "output_schema_sha256": "b1661dff540121de443cc46959bff65c134647b2183d65cb0807fbb78840d1f5",
      "evidence_sha256": "5cbb9294d08d06cf1d2e6a66dbe6d5c7de7b5ad24a637813cecb60e3255ce115",
      "evidence_core_sha256": "5cbb9294d08d06cf1d2e6a66dbe6d5c7de7b5ad24a637813cecb60e3255ce115",
      "capability_sha256": "90dd3d2977e27cb03f8ff54936ecd4fe505f83fd1985bb1bde5121280dfc1965",
      "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"
  }
}
