{
  "capability_id": "physics.optics.snell",
  "tool_id": "snell",
  "engine": "snell",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:03:43.762Z",
  "engine_build": "2026-09-10",
  "test_count": 3,
  "passed": 3,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 1,
      "passed": 1
    },
    "boundary": {
      "total": 1,
      "passed": 1
    },
    "property": {
      "total": 1,
      "passed": 1
    }
  },
  "engine_tested": true,
  "expert_reviewed": true,
  "internally_reviewed": false,
  "review_kind": "expert",
  "source_checked": true,
  "reviewed_by": "CalculatorX electrical review",
  "reviewer_role": null,
  "last_reviewed": "2026-08-09",
  "expert_review": {
    "status": "approved",
    "reviewer": {
      "name": "CalculatorX electrical review",
      "role": null
    },
    "reviewed_at": "2026-08-09",
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "kind": "expert"
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/physics/snell",
  "api": "https://www.calculatorx.com/api/v1/calc/snell",
  "schema_input": "https://www.calculatorx.com/schemas/physics.optics.snell.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.optics.snell.output.json",
  "assumptions": [],
  "limitations": [
    "Geometric optics; TIR flagged as error in refraction modes"
  ],
  "boundary_conditions": [
    "coded hard errors"
  ],
  "sources": [
    {
      "title": "Intro physics / IEC / NIST units",
      "section": "standard relations",
      "supports": "engine formulas",
      "kind": "reference"
    },
    {
      "title": "ISO 80000-7 — Light and related electromagnetic radiations",
      "section": "Refraction / Snell",
      "supports": "n1 sinθ1 = n2 sinθ2",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:d1d4bdd0524cc903b5f46a459b39c085fcfab6b66cc961ff67736bca10dc305b",
  "tests": [
    {
      "id": "t2",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "theta2",
        "n1": 1.5,
        "n2": 1,
        "theta1_deg": 30
      },
      "expect": {
        "theta2_deg": 48.59037789072913
      },
      "expectWarning": null,
      "actual": {
        "mode": "theta2",
        "n1": 1.5,
        "n2": 1,
        "theta1_deg": 30,
        "theta2_deg": 48.59037789072913
      },
      "tol": 1e-9
    },
    {
      "id": "tir",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "theta2",
        "n1": 1.5,
        "n2": 1,
        "theta1_deg": 50
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "total internal reflection (sinθ2 > 1)"
    },
    {
      "id": "property-snell-c",
      "ok": true,
      "kind": "property",
      "detail": "41.810314895778596",
      "expect": 41.810314895778596,
      "actual": 41.810314895778596
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 3,
      "total": 3,
      "golden": 1,
      "boundary": 1,
      "property": 1
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-06T13:16:40.891Z",
  "rendered_at": "2026-09-16T22:03:43.762Z",
  "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": "139f8a0910675cb9efd6f72bef2055c918ed573d8501dfb26316481bbfeb08f2",
      "output_schema_sha256": "6558947ef76773cf2680e8842f841dc149a153501eec0a270a56f1851f8cda2b",
      "evidence_sha256": "b289f15cafcf78408862e86e453afe6206b26881dbe52eb62fec682e3640cc4c",
      "evidence_core_sha256": "b289f15cafcf78408862e86e453afe6206b26881dbe52eb62fec682e3640cc4c",
      "capability_sha256": "4725795e3ac61cb09f4a5521a9cf59580ec6fa3214743fe3d2992bf99c1669f0",
      "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"
  }
}
