{
  "capability_id": "electrical.rf.vswr",
  "tool_id": "vswr",
  "engine": "vswr",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:03:43.724Z",
  "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/vswr",
  "api": "https://www.calculatorx.com/api/v1/calc/vswr",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.rf.vswr.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.rf.vswr.output.json",
  "assumptions": [],
  "limitations": [
    "Scalar |Γ| only",
    "|Γ|≥1 → GAMMA_OUT_OF_RANGE"
  ],
  "boundary_conditions": [
    "|Γ|≥1 → GAMMA_OUT_OF_RANGE",
    "Bad mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "IEEE / microwave engineering references",
      "section": "VSWR and return loss",
      "supports": "Γ↔VSWR↔RL identities",
      "kind": "reference"
    },
    {
      "title": "Pozar — Microwave Engineering",
      "section": "Reflection coefficient and standing-wave ratio",
      "supports": "Γ↔VSWR↔RL textbook identities",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:93fdd9222931ba9e3e9b712185d24c76984c516c09bdadc0209907be4df4faeb",
  "tests": [
    {
      "id": "gamma-0.2",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "gamma",
        "Gamma": 0.2
      },
      "expect": {
        "VSWR": 1.5
      },
      "expectWarning": null,
      "actual": {
        "mode": "gamma",
        "Gamma": 0.2,
        "VSWR": 1.4999999999999998,
        "RL_dB": 13.979400086720375,
        "mismatch_loss_dB": 0.17728766960431602
      },
      "tol": 1e-12
    },
    {
      "id": "from-vswr",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "vswr",
        "VSWR": 1.5
      },
      "expect": {
        "Gamma": 0.2
      },
      "expectWarning": null,
      "actual": {
        "mode": "vswr",
        "Gamma": 0.2,
        "VSWR": 1.4999999999999998,
        "RL_dB": 13.979400086720375,
        "mismatch_loss_dB": 0.17728766960431602
      },
      "tol": 1e-12
    },
    {
      "id": "gamma-1",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "gamma",
        "Gamma": 1
      },
      "expectError": "GAMMA_OUT_OF_RANGE",
      "code": "GAMMA_OUT_OF_RANGE",
      "error": "|Γ| must be in [0, 1)"
    },
    {
      "id": "bad-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "swr",
        "Gamma": 0.1
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be \"gamma\", \"vswr\", or \"rl\""
    },
    {
      "id": "property-vswr",
      "ok": true,
      "kind": "property",
      "detail": "1.5",
      "expect": 1.5,
      "actual": 1.4999999999999998
    },
    {
      "id": "property-round",
      "ok": true,
      "kind": "property",
      "detail": "Γ",
      "expect": 0.2,
      "actual": 0.2
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 6,
      "total": 6,
      "golden": 2,
      "boundary": 2,
      "property": 2
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-06T13:16:40.891Z",
  "rendered_at": "2026-09-16T22:03:43.724Z",
  "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": "dc946260afa0c151587a0def8a6f2570a18ec5d475633432a524ffbc9573ad60",
      "output_schema_sha256": "42930fa6d0e26b20030c08e66bd951756ec952e0493345271e3b4d65ee5981f2",
      "evidence_sha256": "5a293cdd4ae0c3e830ea5ed2e4aa0151da5eddfaa0bc8b09b27d2dc4c2cbfa40",
      "evidence_core_sha256": "5a293cdd4ae0c3e830ea5ed2e4aa0151da5eddfaa0bc8b09b27d2dc4c2cbfa40",
      "capability_sha256": "a7ecf3951deebeb74913262eea5cdeb5e563709aa5cbdb8cedcc80f90b6347ec",
      "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"
  }
}
