{
  "capability_id": "electrical.pcb.via_current",
  "tool_id": "pcb-via-current",
  "engine": "pcb-via-current",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:03:43.720Z",
  "engine_build": "2026-09-10",
  "test_count": 7,
  "passed": 7,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 2,
      "passed": 2
    },
    "boundary": {
      "total": 2,
      "passed": 2
    },
    "property": {
      "total": 3,
      "passed": 3
    }
  },
  "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/pcb-via-current",
  "api": "https://www.calculatorx.com/api/v1/calc/pcb-via-current",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.pcb.via_current.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.pcb.via_current.output.json",
  "assumptions": [],
  "limitations": [
    "IPC-2221 closed form",
    "t≥d/2 → PLATING_TOO_THICK"
  ],
  "boundary_conditions": [
    "t ≥ d/2 → PLATING_TOO_THICK",
    "Bad n_vias → N_VIAS_MUST_BE_POSITIVE_INT"
  ],
  "sources": [
    {
      "title": "IPC-2221 — Generic Standard on Printed Board Design",
      "section": "Conductor current capacity",
      "supports": "I = k·ΔT^0.44·A^0.725 applied to via plating area",
      "kind": "standard"
    },
    {
      "title": "IPC-2152 — Standard for Determining Current-Carrying Capacity",
      "section": "Via / conductor thermal ampacity guidance",
      "supports": "Temperature-rise ampacity context for plated vias",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:1bf56cb6df01415c30eed11a5e57d96c66c10ccb98f2bf0dcf1f8754ba7c52e9",
  "tests": [
    {
      "id": "current-0p3",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "current",
        "d_drill_m": 0.0003,
        "t_plating_m": 0.000025,
        "dT": 10
      },
      "expect": {
        "I_A": 1.6853446055708443
      },
      "expectWarning": null,
      "actual": {
        "mode": "current",
        "I_A": 1.6853446055708443,
        "I_one_A": 1.6853446055708443,
        "d_drill_m": 0.0003,
        "d_drill_mm": 0.3,
        "t_plating_m": 0.000025,
        "t_plating_um": 25,
        "A_m2": 2.1598449493429825e-8,
        "A_mil2": 33.47766367014356,
        "dT": 10,
        "n_vias": 1,
        "k": 0.048
      },
      "tol": 1e-9
    },
    {
      "id": "drill-1A",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "drill",
        "I_A": 1,
        "t_plating_m": 0.000025,
        "dT": 10
      },
      "expect": {
        "d_drill_m": 0.00015886239896063185
      },
      "expectWarning": null,
      "actual": {
        "mode": "drill",
        "I_A": 1,
        "I_one_A": 1,
        "d_drill_m": 0.00015886239896063185,
        "d_drill_mm": 0.15886239896063184,
        "t_plating_m": 0.000025,
        "t_plating_um": 25,
        "A_m2": 1.0513528229165673e-8,
        "A_mil2": 16.296001347209486,
        "dT": 10,
        "n_vias": 1,
        "k": 0.048
      },
      "tol": 1e-12
    },
    {
      "id": "thick-plate",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "current",
        "d_drill_m": 0.0001,
        "t_plating_m": 0.00006,
        "dT": 10
      },
      "expectError": "PLATING_TOO_THICK",
      "code": "PLATING_TOO_THICK",
      "error": "plating thickness must be < drill/2"
    },
    {
      "id": "missing-dT",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "current",
        "d_drill_m": 0.0003
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "dT is required"
    },
    {
      "id": "property-I",
      "ok": true,
      "kind": "property",
      "detail": "0.3mm via",
      "expect": 1.6853446055708443,
      "actual": 1.6853446055708443
    },
    {
      "id": "property-nvias",
      "ok": true,
      "kind": "property",
      "detail": "2 vias → 2I",
      "expect": 3.3706892111416886,
      "actual": 3.3706892111416886
    },
    {
      "id": "property-drill",
      "ok": true,
      "kind": "property",
      "detail": "drill>0",
      "expect": true,
      "actual": true
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 7,
      "total": 7,
      "golden": 2,
      "boundary": 2,
      "property": 3
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-06T13:18:51.762Z",
  "rendered_at": "2026-09-16T22:03:43.720Z",
  "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": "a6b70951cddd4e72f68a1b23fe9d088b2d79a0220d309e2d5b9e7aef13e7a607",
      "output_schema_sha256": "f832e6cd5e52dbbe128c58037a48a2dea4ab27d1c59da5f09da25f2f7f030f45",
      "evidence_sha256": "578d781b1f176d799418f5baa72ab2b5e776f419a06fc8f6b0e1969251158798",
      "evidence_core_sha256": "578d781b1f176d799418f5baa72ab2b5e776f419a06fc8f6b0e1969251158798",
      "capability_sha256": "e92d9a6600e9fcf93a236c3639aab9b41817707bf270719f24e1b25b1f0cecba",
      "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"
  }
}
