{
  "capability_id": "electrical.wheatstone",
  "tool_id": "wheatstone-bridge",
  "engine": "wheatstone-bridge",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:03:43.722Z",
  "engine_build": "2026-09-10",
  "test_count": 6,
  "passed": 6,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 2,
      "passed": 2
    },
    "boundary": {
      "total": 2,
      "passed": 2
    },
    "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/wheatstone-bridge",
  "api": "https://www.calculatorx.com/api/v1/calc/wheatstone-bridge",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.wheatstone.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.wheatstone.output.json",
  "assumptions": [],
  "limitations": [
    "Unloaded ideal bridge only"
  ],
  "boundary_conditions": [
    "Missing/≤0 → MISSING_REQUIRED_INPUT / VALUE_MUST_BE_POSITIVE"
  ],
  "sources": [
    {
      "title": "IEC 60050 — IEV",
      "section": "Wheatstone bridge",
      "supports": "Four-arm bridge topology",
      "kind": "standard"
    },
    {
      "title": "Horowitz & Hill — The Art of Electronics",
      "section": "Bridge circuits",
      "supports": "Divider difference form",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:2ba69365674ee6335e3414b1e6057583a588016167836403a31bb6874aef02c4",
  "tests": [
    {
      "id": "balanced",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "Vin": 10,
        "R1": 1000,
        "R2": 1000,
        "R3": 1000,
        "R4": 1000
      },
      "expect": {
        "Vout": 0,
        "balanced": true
      },
      "expectWarning": null,
      "actual": {
        "Vin": 10,
        "R1": 1000,
        "R2": 1000,
        "R3": 1000,
        "R4": 1000,
        "Va": 5,
        "Vb": 5,
        "Vout": 0,
        "ratio_left": 1,
        "ratio_right": 1,
        "balanced": true
      },
      "tol": 1e-12
    },
    {
      "id": "unbalanced",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "Vin": 10,
        "R1": 1000,
        "R2": 1000,
        "R3": 1000,
        "R4": 1100
      },
      "expect": {
        "Vout": -0.23809523809523814
      },
      "expectWarning": null,
      "actual": {
        "Vin": 10,
        "R1": 1000,
        "R2": 1000,
        "R3": 1000,
        "R4": 1100,
        "Va": 5,
        "Vb": 5.238095238095238,
        "Vout": -0.23809523809523814,
        "ratio_left": 1,
        "ratio_right": 0.9090909090909091,
        "balanced": false
      },
      "tol": 1e-12
    },
    {
      "id": "missing-R4",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Vin": 10,
        "R1": 1000,
        "R2": 1000,
        "R3": 1000
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "R4 is required"
    },
    {
      "id": "zero-R",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Vin": 10,
        "R1": 0,
        "R2": 1000,
        "R3": 1000,
        "R4": 1000
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "R1 must be greater than zero"
    },
    {
      "id": "property-balanced",
      "ok": true,
      "kind": "property",
      "detail": "balanced 0",
      "expect": true,
      "actual": true
    },
    {
      "id": "property-unbal",
      "ok": true,
      "kind": "property",
      "detail": "unbalanced",
      "expect": true,
      "actual": true
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 6,
      "total": 6,
      "golden": 2,
      "boundary": 2,
      "property": 2
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-05T02:35:39.217Z",
  "rendered_at": "2026-09-16T22:03:43.722Z",
  "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": "51d643d5bf63db29ae0569e2da47aec8fab741d62b59ae63d58e4e9d599c9183",
      "output_schema_sha256": "b7886da7e240b9f203692bcacebd4283501a4b87ce063e40e954f5d6098bcaf5",
      "evidence_sha256": "95ac95340acf23c4f90132ec29e5752d1974c7edd84ee742e7d38eef3c993f3c",
      "evidence_core_sha256": "95ac95340acf23c4f90132ec29e5752d1974c7edd84ee742e7d38eef3c993f3c",
      "capability_sha256": "3b3bb99ccacad2dc1d8a30982ebdf941dbae55a371656f9c78a74742a7417cd2",
      "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"
  }
}
