{
  "capability_id": "electrical.kirchhoff",
  "tool_id": "kirchhoff",
  "engine": "kirchhoff",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:03:43.722Z",
  "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/kirchhoff",
  "api": "https://www.calculatorx.com/api/v1/calc/kirchhoff",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.kirchhoff.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.kirchhoff.output.json",
  "assumptions": [],
  "limitations": [
    "Single loop/node demo only"
  ],
  "boundary_conditions": [
    "Bad mode → INVALID_MODE",
    "Missing Vs/Is or R → MISSING_REQUIRED_INPUT"
  ],
  "sources": [
    {
      "title": "IEC 60050 — Kirchhoff's laws",
      "section": "KVL / KCL",
      "supports": "Loop voltage and node current summation",
      "kind": "standard"
    },
    {
      "title": "Nilsson/Riedel — Electric Circuits",
      "section": "KVL and KCL",
      "supports": "Series current and parallel voltage identities",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:9848cacc2b5c01ac786c8d4bd7ed4504598bcfa1bb83818af1f9924acc575130",
  "tests": [
    {
      "id": "series-12",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "series",
        "Vs": 12,
        "R1": 100,
        "R2": 200
      },
      "expect": {
        "I_A": 0.04,
        "V_sum": 12
      },
      "expectWarning": null,
      "actual": {
        "mode": "series",
        "Vs": 12,
        "R_ohm": [
          100,
          200
        ],
        "R_eq": 300,
        "I_A": 0.04,
        "V_drop": [
          4,
          8
        ],
        "V_sum": 12
      },
      "tol": 1e-12
    },
    {
      "id": "parallel",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "parallel",
        "Is": 0.03,
        "R1": 100,
        "R2": 100
      },
      "expect": {
        "V": 1.5,
        "I_sum": 0.03
      },
      "expectWarning": null,
      "actual": {
        "mode": "parallel",
        "Is": 0.03,
        "R_ohm": [
          100,
          100
        ],
        "R_eq": 50,
        "V": 1.5,
        "I_branch": [
          0.015,
          0.015
        ],
        "I_sum": 0.03
      },
      "tol": 1e-12
    },
    {
      "id": "bad-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "mesh",
        "Vs": 12,
        "R1": 10
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be \"series\" or \"parallel\""
    },
    {
      "id": "missing-Vs",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "series",
        "R1": 10
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Vs is required"
    },
    {
      "id": "boundary-series",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "series",
        "Vs": 12,
        "R1": 100,
        "R2": 200
      },
      "expect": {
        "I_A": 0.04
      },
      "expectWarning": null,
      "actual": {
        "mode": "series",
        "Vs": 12,
        "R_ohm": [
          100,
          200
        ],
        "R_eq": 300,
        "I_A": 0.04,
        "V_drop": [
          4,
          8
        ],
        "V_sum": 12
      },
      "tol": 1e-12
    },
    {
      "id": "property-kvl",
      "ok": true,
      "kind": "property",
      "detail": "KVL",
      "expect": true,
      "actual": true
    },
    {
      "id": "property-kcl",
      "ok": true,
      "kind": "property",
      "detail": "KCL",
      "expect": true,
      "actual": true
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 7,
      "total": 7,
      "golden": 2,
      "boundary": 3,
      "property": 2
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-10T03:39:44.474Z",
  "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": "eb3cd6153708f7d03a4a0f9cd0aea187a59dbd54cf89be94cee121858c468a8a",
      "output_schema_sha256": "458fc4674a20c7c393ac05662092291bda95b815733c897671eae8ec0e98d5d7",
      "evidence_sha256": "2e8367595ea19bdfbad8897d67506914be700c57d09895c187ee92f1ba98cd22",
      "evidence_core_sha256": "2e8367595ea19bdfbad8897d67506914be700c57d09895c187ee92f1ba98cd22",
      "capability_sha256": "088236b43a61f0d76d3a9e38fb67ee34b671f8ad735ba74df628cf3ea0c93423",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 3,
      "passed": 3,
      "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"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
