{
  "capability_id": "electrical.pcb.diff_impedance",
  "tool_id": "pcb-diff-impedance",
  "engine": "pcb-diff-impedance",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:03:43.728Z",
  "engine_build": "2026-09-12",
  "test_count": 12,
  "passed": 12,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 4,
      "passed": 4
    },
    "boundary": {
      "total": 4,
      "passed": 4
    },
    "property": {
      "total": 4,
      "passed": 4
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": true,
  "review_kind": "internal",
  "source_checked": true,
  "reviewed_by": "CalculatorX electrical review",
  "reviewer_role": "electrical-engineer",
  "last_reviewed": "2026-09-13",
  "expert_review": {
    "status": "not_applicable",
    "reviewer": null,
    "note": "Internal domain review completed; not a named external expert review.",
    "kind": "internal"
  },
  "internal_review": {
    "status": "approved",
    "reviewer": {
      "name": "CalculatorX electrical review",
      "role": "electrical-engineer"
    },
    "reviewed_at": "2026-09-13",
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "kind": "internal"
  },
  "page": "https://www.calculatorx.com/calc/electric/pcb-diff-impedance",
  "api": "https://www.calculatorx.com/api/v1/calc/pcb-diff-impedance",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.pcb.diff_impedance.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.pcb.diff_impedance.output.json",
  "assumptions": [
    "Zero copper thickness (T=0)",
    "Homogeneous dielectric; no soldermask",
    "Edge-coupled pair; S is edge-to-edge gap",
    "H is dielectric height from trace to reference plane",
    "No dielectric dispersion, copper roughness, or weave"
  ],
  "limitations": [
    "Zero copper thickness (T=0); homogeneous dielectric; no soldermask",
    "S_m is edge-to-edge gap, not center-to-center",
    "Not a field solver; omits dielectric dispersion, copper roughness, and weave"
  ],
  "boundary_conditions": [
    "W,H,S≤0 → VALUE_MUST_BE_POSITIVE",
    "er<1 → VALUE_MUST_BE_POSITIVE"
  ],
  "sources": [
    {
      "title": "IPC-2141A / Wadell",
      "section": "Coupled microstrip approximations",
      "supports": "Zdiff from Z0 and S/H coupling",
      "kind": "standard"
    },
    {
      "title": "Pozar Microwave Engineering",
      "section": "Microstrip / coupled lines",
      "supports": "Effective εr and Z0 approximations",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:616e85a5eca1c2d25b7f069f5fe2e6412da475cc6a14d094d89eba4ad18b8fdd",
  "tests": [
    {
      "id": "fr4-sample",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W_m": 0.0002,
        "H_m": 0.0001,
        "S_m": 0.0002,
        "er": 4.2
      },
      "expect": {
        "Zdiff_ohm": 92.82916802055753,
        "Z0_ohm": 49.928090751070556
      },
      "expectWarning": null,
      "actual": {
        "mode": "zdiff",
        "W_m": 0.0002,
        "H_m": 0.0001,
        "S_m": 0.0002,
        "er": 4.2,
        "er_eff": 3.2047431568147635,
        "Z0_ohm": 49.928090751070556,
        "Zdiff_ohm": 92.82916802055753
      },
      "tol": 1e-9
    },
    {
      "id": "wider-lower-Z",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W_m": 0.0004,
        "H_m": 0.0001,
        "S_m": 0.0002,
        "er": 4.2
      },
      "expect": {
        "Zdiff_ohm": 58.273049069904864
      },
      "expectWarning": null,
      "actual": {
        "mode": "zdiff",
        "W_m": 0.0004,
        "H_m": 0.0001,
        "S_m": 0.0002,
        "er": 4.2,
        "er_eff": 3.4000000000000004,
        "Z0_ohm": 31.342110937151578,
        "Zdiff_ohm": 58.273049069904864
      },
      "tol": 1e-9
    },
    {
      "id": "wh-eq-1",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W_m": 0.0001,
        "H_m": 0.0001,
        "S_m": 0.0002,
        "er": 4.2
      },
      "expect": {
        "Zdiff_ohm": 134.93104102488513
      },
      "expectWarning": null,
      "actual": {
        "mode": "zdiff",
        "W_m": 0.0001,
        "H_m": 0.0001,
        "S_m": 0.0002,
        "er": 4.2,
        "er_eff": 3.0437601569801833,
        "Z0_ohm": 72.57254810185282,
        "Zdiff_ohm": 134.93104102488513
      },
      "tol": 1e-9
    },
    {
      "id": "narrow-branch",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "W_m": 0.00005,
        "H_m": 0.0001,
        "S_m": 0.0002,
        "er": 4.2
      },
      "expect": {
        "Zdiff_ohm": 181.5106250902856
      },
      "expectWarning": null,
      "actual": {
        "mode": "zdiff",
        "W_m": 0.00005,
        "H_m": 0.0001,
        "S_m": 0.0002,
        "er": 4.2,
        "er_eff": 2.92,
        "Z0_ohm": 97.6253386196932,
        "Zdiff_ohm": 181.5106250902856
      },
      "tol": 1e-9
    },
    {
      "id": "bad-W",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "W_m": 0,
        "H_m": 0.0001,
        "S_m": 0.0002,
        "er": 4.2
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "W_m must be greater than zero"
    },
    {
      "id": "bad-H",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "W_m": 0.0002,
        "H_m": 0,
        "S_m": 0.0002,
        "er": 4.2
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "H_m must be greater than zero"
    },
    {
      "id": "bad-S",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "W_m": 0.0002,
        "H_m": 0.0001,
        "S_m": 0,
        "er": 4.2
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "S_m must be greater than zero"
    },
    {
      "id": "bad-er",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "W_m": 0.0002,
        "H_m": 0.0001,
        "S_m": 0.0002,
        "er": 0.5
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "er must be ≥ 1"
    },
    {
      "id": "property-zdiff",
      "ok": true,
      "kind": "property",
      "detail": "Z>0",
      "expect": true,
      "actual": 92.82916802055753
    },
    {
      "id": "property-scale",
      "ok": true,
      "kind": "property",
      "detail": "scale-invariant",
      "expect": 92.82916802055753,
      "actual": 92.82916802055753
    },
    {
      "id": "property-mono-W",
      "ok": true,
      "kind": "property",
      "detail": "wider W → lower Zdiff",
      "expect": true,
      "actual": 58.273049069904864
    },
    {
      "id": "property-mono-S",
      "ok": true,
      "kind": "property",
      "detail": "larger S → higher Zdiff",
      "expect": true,
      "actual": 98.82597240275713
    }
  ],
  "tier": "internally_reviewed",
  "verification": {
    "tests": {
      "passed": 12,
      "total": 12,
      "golden": 4,
      "boundary": 4,
      "property": 4
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-12T22:29:20.477Z",
  "rendered_at": "2026-09-16T22:03:43.728Z",
  "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": "e81d3eefa501cc0d2222e7a0a1f38ec7865abeb040659a7376d526f25b930650",
      "output_schema_sha256": "0dbbec43e2eef498f984eaf82ba16410b6a6dae68847ad33a5fc3d61adc3467a",
      "evidence_sha256": "df6a71b70f52e73859eac9806010566bd58b69d94d5934e45496adcd2d1f06b4",
      "evidence_core_sha256": "df6a71b70f52e73859eac9806010566bd58b69d94d5934e45496adcd2d1f06b4",
      "capability_sha256": "1c03408c3847638a97177eff2b541a5c395fa4e0e5f6fa7010ac15e51f297813",
      "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"
  }
}
