{
  "capability_id": "engineering.measurement.duplicate_sd",
  "tool_id": "duplicate-sd",
  "engine": "duplicate-sd",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T03:19:09.588Z",
  "engine_build": "2026-09-16",
  "test_count": 8,
  "passed": 8,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 0,
      "passed": 0
    },
    "boundary": {
      "total": 5,
      "passed": 5
    },
    "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/duplicate-sd",
  "api": "https://www.calculatorx.com/api/v1/calc/duplicate-sd",
  "schema_input": "https://www.calculatorx.com/schemas/engineering.measurement.duplicate_sd.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/engineering.measurement.duplicate_sd.output.json",
  "assumptions": [
    "ISO 5725 duplicate-difference repeatability: s_r = √(Σ d_i² / (2m)) from m≥2 pairs. m=1 is rejected.",
    "d_i may be negative or zero. Both zero is valid (s_r = 0).",
    "Not Type A from a sample of observations, not r = 2.8·s, and not AIAG GRR EV = R̄/d2."
  ],
  "limitations": [
    "Takes duplicate differences — not a sample of observations",
    "m=1 is rejected so this cannot wrap |d|/√2",
    "Does not report r = 2.8·s_r",
    "Not AIAG GRR EV = R̄/d2"
  ],
  "boundary_conditions": [
    "missing d (and no y1+y2) → MISSING_REQUIRED_INPUT",
    "m = 1 → VALUE_OUT_OF_RANGE",
    "y1/y2 length mismatch → INVALID_INPUT",
    "d = [0,0] is valid"
  ],
  "sources": [
    {
      "title": "ISO 5725-2 — Repeatability and reproducibility of standard measurement methods",
      "section": "Repeatability variance from duplicate differences",
      "supports": "Each pair contributes d_i²/2 to the within-laboratory variance. Pooled over m pairs, s_r² = Σ d_i² / (2m).",
      "kind": "standard"
    },
    {
      "title": "ISO 5725-1 — Accuracy (trueness and precision) of measurement methods and results",
      "section": "Repeatability standard deviation s_r",
      "supports": "This page estimates s_r from already-formed differences. It does not report the conventional limit r = 2.8·s_r.",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:1401e667d7e486336e99e075490cc671e4c96e064448c05ef49debedc739eec7",
  "tests": [
    {
      "id": "boundary-dup",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "d": [
          6,
          8
        ]
      },
      "expect": {
        "s_r": 5,
        "m": 2
      },
      "expectWarning": null,
      "actual": {
        "s_r": 5,
        "m": 2,
        "d": [
          6,
          8
        ]
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-dup-pairs",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y1": [
          10,
          20
        ],
        "y2": [
          4,
          12
        ]
      },
      "expect": {
        "s_r": 5
      },
      "expectWarning": null,
      "actual": {
        "s_r": 5,
        "m": 2,
        "d": [
          6,
          8
        ]
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-dup-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "d": [
          0,
          0
        ]
      },
      "expect": {
        "s_r": 0
      },
      "expectWarning": null,
      "actual": {
        "s_r": 0,
        "m": 2,
        "d": [
          0,
          0
        ]
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-dup-one",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "d": [
          6
        ]
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "need at least two duplicate pairs"
    },
    {
      "id": "boundary-dup-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {},
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "d is required"
    },
    {
      "id": "property-dup",
      "ok": true,
      "kind": "property",
      "detail": "5",
      "expect": 5,
      "actual": 5
    },
    {
      "id": "property-dup-pairs",
      "ok": true,
      "kind": "property",
      "detail": "5",
      "expect": 5,
      "actual": 5
    },
    {
      "id": "property-dup-alias",
      "ok": true,
      "kind": "property",
      "detail": "5",
      "expect": 5,
      "actual": 5
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 8,
      "total": 8,
      "golden": 0,
      "boundary": 5,
      "property": 3
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-16T01:11:22.698Z",
  "rendered_at": "2026-09-16T03:19:09.588Z",
  "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": "257a00ccac5fe7cccfee4fec7919dd4b715b8f1e011eb0b9601927a282296629",
      "output_schema_sha256": "86e01706412e53fcbda8a0a6ae981ee8595ff5a9984370aa492bc5f213e1ccb1",
      "evidence_sha256": "cc84af3a2460d7025539d4f984d5b703e3b36bf0db18acc42c74f6b5984fd175",
      "evidence_core_sha256": "cc84af3a2460d7025539d4f984d5b703e3b36bf0db18acc42c74f6b5984fd175",
      "capability_sha256": "95741b6489910db1f2ab55c729df1277a263371569d87bd3e54c1ba207e8145f",
      "engine_sha256": "ea9bae9a12cb180eccca2dd42c0e71bab90cea9c281681a59399f440e098cbe3",
      "mcp_contract_sha256": "d82f6c8fae5d72f2f39afde75cbfe10e3136f1ac48b2db522c333cd81151ad4f"
    },
    "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"
  }
}
