{
  "capability_id": "electrical.rf.link_budget",
  "tool_id": "rf-link-budget",
  "engine": "rf-link-budget",
  "calculation_version": "1.1.1",
  "generated_at": "2026-09-16T22:03:43.720Z",
  "engine_build": "2026-09-12",
  "test_count": 12,
  "passed": 12,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 2,
      "passed": 2
    },
    "boundary": {
      "total": 5,
      "passed": 5
    },
    "property": {
      "total": 5,
      "passed": 5
    }
  },
  "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-10",
  "expert_review": {
    "status": "approved",
    "reviewer": {
      "name": "CalculatorX electrical review",
      "role": "electrical-engineer"
    },
    "reviewed_at": "2026-08-10",
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "kind": "expert"
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/electric/rf-link-budget",
  "api": "https://www.calculatorx.com/api/v1/calc/rf-link-budget",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.rf.link_budget.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.rf.link_budget.output.json",
  "assumptions": [
    "Ideal free space; isotropic FSPL reference",
    "When u_* are set, first-order GUM sensitivity with independent inputs (no ρ on this page)"
  ],
  "limitations": [
    "Ideal free space only",
    "Extends electrical.rf.fspl",
    "Optional u_* use GUM sensitivity on Pr only (no MC/ρ/νeff UI); empty u_* preserves 1.0.0 fields"
  ],
  "boundary_conditions": [
    "Missing Pt/d/f → MISSING_REQUIRED_INPUT",
    "L_dB < 0 → VALUE_MUST_BE_NON_NEGATIVE",
    "uncertainty_k without any u_* → INVALID_INPUT"
  ],
  "sources": [
    {
      "title": "Friis transmission equation",
      "section": "Free-space link",
      "supports": "FSPL and received-power form",
      "kind": "reference"
    },
    {
      "title": "ITU-R P.525",
      "section": "Free-space attenuation",
      "supports": "Standard FSPL formulation",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:5ab8b3cfa8e85218e586a4b892e3ea5916b53439b95caecc6243104101bb3f9b",
  "tests": [
    {
      "id": "1km-2g4",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "Pt_dBm": 20,
        "d_m": 1000,
        "f_Hz": 2400000000,
        "S_dBm": -90
      },
      "expect": {
        "fspl_dB": 100.05200805611548,
        "Pr_dBm": -80.05200805611548,
        "margin_dB": 9.947991943884517
      },
      "expectWarning": null,
      "actual": {
        "fspl_dB": 100.05200805611548,
        "path_loss_dB": 100.05200805611548,
        "Pr_dBm": -80.05200805611548,
        "margin_dB": 9.947991943884517,
        "wavelength_m": 0.12491352416666666,
        "d_m": 1000,
        "f_Hz": 2400000000,
        "Pt_dBm": 20,
        "Gt_dBi": 0,
        "Gr_dBi": 0,
        "L_dB": 0,
        "S_dBm": -90
      },
      "tol": 1e-9
    },
    {
      "id": "with-gains",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "Pt_dBm": 20,
        "d_m": 1000,
        "f_Hz": 2400000000,
        "Gt_dBi": 6,
        "Gr_dBi": 6,
        "S_dBm": -90
      },
      "expect": {
        "path_loss_dB": 88.05200805611548
      },
      "expectWarning": null,
      "actual": {
        "fspl_dB": 100.05200805611548,
        "path_loss_dB": 88.05200805611548,
        "Pr_dBm": -68.05200805611548,
        "margin_dB": 21.947991943884517,
        "wavelength_m": 0.12491352416666666,
        "d_m": 1000,
        "f_Hz": 2400000000,
        "Pt_dBm": 20,
        "Gt_dBi": 6,
        "Gr_dBi": 6,
        "L_dB": 0,
        "S_dBm": -90
      },
      "tol": 1e-9
    },
    {
      "id": "missing-Pt",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "d_m": 1000,
        "f_Hz": 1000000000
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Pt_dBm is required"
    },
    {
      "id": "neg-L",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Pt_dBm": 10,
        "d_m": 100,
        "f_Hz": 1000000000,
        "L_dB": -1
      },
      "expectError": "VALUE_MUST_BE_NON_NEGATIVE",
      "code": "VALUE_MUST_BE_NON_NEGATIVE",
      "error": "L_dB must be ≥ 0"
    },
    {
      "id": "boundary-link",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Pt_dBm": 20,
        "d_m": 1000,
        "f_Hz": 2400000000,
        "S_dBm": -90
      },
      "expect": {
        "Pr_dBm": -80.05200805611548,
        "margin_dB": 9.947991943884517
      },
      "expectWarning": null,
      "actual": {
        "fspl_dB": 100.05200805611548,
        "path_loss_dB": 100.05200805611548,
        "Pr_dBm": -80.05200805611548,
        "margin_dB": 9.947991943884517,
        "wavelength_m": 0.12491352416666666,
        "d_m": 1000,
        "f_Hz": 2400000000,
        "Pt_dBm": 20,
        "Gt_dBi": 0,
        "Gr_dBi": 0,
        "L_dB": 0,
        "S_dBm": -90
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-unc-Pt-d",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Pt_dBm": 20,
        "d_m": 1000,
        "f_Hz": 2400000000,
        "S_dBm": -90,
        "u_Pt_dBm": 0.5,
        "u_d_m": 50
      },
      "expect": {
        "Pr_dBm": -80.05200805611548
      },
      "expectWarning": null,
      "actual": {
        "fspl_dB": 100.05200805611548,
        "path_loss_dB": 100.05200805611548,
        "Pr_dBm": -80.05200805611548,
        "margin_dB": 9.947991943884517,
        "wavelength_m": 0.12491352416666666,
        "d_m": 1000,
        "f_Hz": 2400000000,
        "Pt_dBm": 20,
        "Gt_dBi": 0,
        "Gr_dBi": 0,
        "L_dB": 0,
        "S_dBm": -90,
        "uncertainty": {
          "y": -80.05200805611548,
          "u_c": 0.6622776585478435,
          "U": 1.324555317095687,
          "k": 2,
          "k_source": "user",
          "unit": "dBm",
          "u_rel": 0.008273092388683054,
          "mode": "sensitivity",
          "contributions": [
            {
              "i": 0,
              "label": "Pt_dBm",
              "c": 1,
              "u": 0.5,
              "variance": 0.25,
              "percent": 56.99802392487957,
              "type": null,
              "nu": null
            },
            {
              "i": 1,
              "label": "d_m",
              "c": -0.008685889638065037,
              "u": 50,
              "variance": 0.18861169701161395,
              "percent": 43.00197607512043,
              "type": null,
              "nu": null
            }
          ],
          "largest": {
            "i": 0,
            "label": "Pt_dBm",
            "percent": 56.99802392487957
          },
          "reported": {
            "u_c": 0.66,
            "y": -80.05,
            "significant_digits": 2,
            "decimal_places": 2,
            "formatted_u_c": "0.66",
            "formatted_y": "-80.05",
            "k": 2,
            "U": 1.3,
            "formatted_U": "1.30"
          },
          "capability_id": "engineering.uncertainty.propagate"
        }
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-unc-k-without-u",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "Pt_dBm": 20,
        "d_m": 1000,
        "f_Hz": 2400000000,
        "uncertainty_k": 2
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "uncertainty_k requires at least one u_* input"
    },
    {
      "id": "property-pr",
      "ok": true,
      "kind": "property",
      "detail": "Pr",
      "expect": -80.05200805611548,
      "actual": -80.05200805611548
    },
    {
      "id": "property-gains",
      "ok": true,
      "kind": "property",
      "detail": "+6 dB gains",
      "expect": -74.05200805611548,
      "actual": -74.05200805611548
    },
    {
      "id": "property-dist",
      "ok": true,
      "kind": "property",
      "detail": "2d → +6.02 dB",
      "expect": 6.020599913279624,
      "actual": 6.020599913279625
    },
    {
      "id": "property-uncertainty-compose",
      "ok": true,
      "kind": "property",
      "detail": "u_* → sensitivity U=k·u_c on Pr",
      "expect": {
        "Pr_dBm": -80.05200805611548,
        "u_c": 0.6622776585478435,
        "U": 1.324555317095687
      },
      "actual": {
        "y": -80.05200805611548,
        "u_c": 0.6622776585478435,
        "U": 1.324555317095687,
        "k": 2,
        "k_source": "user",
        "unit": "dBm",
        "u_rel": 0.008273092388683054,
        "mode": "sensitivity",
        "contributions": [
          {
            "i": 0,
            "label": "Pt_dBm",
            "c": 1,
            "u": 0.5,
            "variance": 0.25,
            "percent": 56.99802392487957,
            "type": null,
            "nu": null
          },
          {
            "i": 1,
            "label": "d_m",
            "c": -0.008685889638065037,
            "u": 50,
            "variance": 0.18861169701161395,
            "percent": 43.00197607512043,
            "type": null,
            "nu": null
          }
        ],
        "largest": {
          "i": 0,
          "label": "Pt_dBm",
          "percent": 56.99802392487957
        },
        "reported": {
          "u_c": 0.66,
          "y": -80.05,
          "significant_digits": 2,
          "decimal_places": 2,
          "formatted_u_c": "0.66",
          "formatted_y": "-80.05",
          "k": 2,
          "U": 1.3,
          "formatted_U": "1.30"
        },
        "capability_id": "engineering.uncertainty.propagate"
      }
    },
    {
      "id": "property-no-unc-omit",
      "ok": true,
      "kind": "property",
      "detail": "no u_* → no uncertainty object",
      "expect": null
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 12,
      "total": 12,
      "golden": 2,
      "boundary": 5,
      "property": 5
    },
    "contract_checks": {
      "passed": 6,
      "total": 6
    }
  },
  "evidence_core_generated_at": "2026-09-12T08:32:37.705Z",
  "rendered_at": "2026-09-16T22:03:43.720Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.1.1",
    "artifacts": {
      "engine": "1.1.1",
      "page": "1.1.1",
      "capability": "1.1.1",
      "evidence": "1.1.1",
      "input_schema": "1.1.1",
      "output_schema": "1.1.1",
      "mcp_contract": "1.1.1"
    },
    "digests": {
      "input_schema_sha256": "d4f87ff5a30d278b278738952b8cf80685f3f4ee5fa2a3e0f59d51ccf1cccdcc",
      "output_schema_sha256": "a641d8b98b7cca0f17a0f66b45ece3c39aebf00d149567eea2ad7aa981c2eb34",
      "evidence_sha256": "f4f3141775db639ce4d73fe4fd3d51a4eb94c3f3a861e50de851b5be0a7aa5ba",
      "evidence_core_sha256": "f4f3141775db639ce4d73fe4fd3d51a4eb94c3f3a861e50de851b5be0a7aa5ba",
      "capability_sha256": "b22df7f3bbd3270433b2eef42a9312985f481cee56bed2e39dfecb0cb95a1f0f",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 6,
      "passed": 6,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.1.1"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        },
        {
          "id": "schema-coverage-requires-u",
          "status": "pass"
        },
        {
          "id": "schema-rejects-boundary-unc-k-without-u",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
