{
  "capability_id": "engineering.msa.gauge_rr",
  "tool_id": "gauge-rr",
  "engine": "gauge-rr",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:38:08.856Z",
  "engine_build": "2026-09-16",
  "test_count": 8,
  "passed": 8,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 1,
      "passed": 1
    },
    "boundary": {
      "total": 4,
      "passed": 4
    },
    "property": {
      "total": 3,
      "passed": 3
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": false,
  "review_kind": null,
  "source_checked": true,
  "reviewed_by": null,
  "reviewer_role": null,
  "last_reviewed": null,
  "expert_review": {
    "status": "optional_not_performed",
    "reviewer": null,
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "note": "Domain expert review is optional under CVP (CVP-EXP-01). Absence does not block CVP Verified. See Review policy for supplemental domain assurance."
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/engineering/gauge-repeatability-reproducibility",
  "api": "https://www.calculatorx.com/api/v1/calc/gauge-rr",
  "schema_input": "https://www.calculatorx.com/schemas/engineering.msa.gauge_rr.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/engineering.msa.gauge_rr.output.json",
  "assumptions": [
    "AIAG compose: GRR=√(EV²+AV²), TV=√(GRR²+PV²), %GRR=100·GRR/TV, ndc=1.41·PV/GRR",
    "Range-method EV = R̄/d2 (d2 defaults to 1.128 for n=2). Not a full ANOVA Gauge R&R.",
    "Provide ev or rbar, not both"
  ],
  "limitations": [
    "AIAG compose of stated EV, AV, PV — not a full ANOVA Gauge R&R",
    "Range-method EV uses d2 default 1.128 (n=2)",
    "GRR must be > 0 for ndc"
  ],
  "boundary_conditions": [
    "missing ev and rbar → MISSING_REQUIRED_INPUT",
    "both ev and rbar → INVALID_INPUT",
    "GRR=0 → VALUE_MUST_BE_POSITIVE (ndc)",
    "negative EV/AV/PV → VALUE_OUT_OF_RANGE"
  ],
  "sources": [
    {
      "title": "AIAG Measurement Systems Analysis (MSA)",
      "section": "Gauge R&R — %GRR and ndc",
      "supports": "GRR=√(EV²+AV²); %GRR=100·GRR/TV; ndc≈1.41·PV/GRR",
      "kind": "standard"
    },
    {
      "title": "NIST Engineering Statistics Handbook — Repeatability",
      "section": "2.4.5 Repeatability and reproducibility",
      "url": "https://www.itl.nist.gov/div898/handbook/mpc/section4/mpc4.htm",
      "supports": "Range-method equipment variation EV = R̄/d2; d2 for n=2",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:b3b98497ba42d897e007438b58bf39c5b25e1fb4218b7c18f6de34c3825fbded",
  "tests": [
    {
      "id": "golden-grr",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "ev": 3,
        "av": 4,
        "pv": 12
      },
      "expect": {
        "GRR": 5,
        "TV": 13,
        "pct_grr": 38.46153846153846,
        "ndc": 3.384
      },
      "expectWarning": null,
      "actual": {
        "EV": 3,
        "AV": 4,
        "PV": 12,
        "GRR": 5,
        "TV": 13,
        "pct_grr": 38.46153846153846,
        "ndc": 3.3839999999999995
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-grr-range",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "rbar": 1.128,
        "av": 4,
        "pv": 12
      },
      "expect": {
        "EV": 1
      },
      "expectWarning": null,
      "actual": {
        "EV": 1,
        "AV": 4,
        "PV": 12,
        "GRR": 4.123105625617661,
        "TV": 12.688577540449518,
        "pct_grr": 32.49462449572256,
        "ndc": 4.103702775614753,
        "rbar": 1.128,
        "d2": 1.128
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-grr-both",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "ev": 3,
        "rbar": 1.128,
        "av": 4,
        "pv": 12
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "provide ev or rbar, not both"
    },
    {
      "id": "boundary-grr-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "av": 4,
        "pv": 12
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "ev or rbar is required"
    },
    {
      "id": "boundary-grr-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "ev": 0,
        "av": 0,
        "pv": 12
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "grr must be greater than zero for ndc"
    },
    {
      "id": "property-grr",
      "ok": true,
      "kind": "property",
      "detail": "5",
      "expect": 5,
      "actual": 5
    },
    {
      "id": "property-tv",
      "ok": true,
      "kind": "property",
      "detail": "13",
      "expect": 13,
      "actual": 13
    },
    {
      "id": "property-range-ev",
      "ok": true,
      "kind": "property",
      "detail": "1",
      "expect": 1,
      "actual": 1
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 8,
      "total": 8,
      "golden": 1,
      "boundary": 4,
      "property": 3
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-16T21:07:40.795Z",
  "rendered_at": "2026-09-16T22:38:08.856Z",
  "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": "7fafa61ccb90494e4b9a004b46e43e812d4467c383095577a0fece97c8e38ed4",
      "output_schema_sha256": "700648723e9499b8fc173be03bae0e5442391fa64b1af01d44fe2935cb09691a",
      "evidence_sha256": "3f2db3ef336b8fdfa0b5d0896dc16775d9d210c4e0975a41627033e95ae40d85",
      "evidence_core_sha256": "3f2db3ef336b8fdfa0b5d0896dc16775d9d210c4e0975a41627033e95ae40d85",
      "capability_sha256": "2230a2887b4e28030f038c04c7bf9b745293db9d804c7256479de3588b8b7574",
      "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"
  }
}
