{
  "capability_id": "engineering.uncertainty.type_a",
  "tool_id": "type-a",
  "engine": "type-a",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:38:08.851Z",
  "engine_build": "2026-09-16",
  "test_count": 7,
  "passed": 7,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 1,
      "passed": 1
    },
    "boundary": {
      "total": 3,
      "passed": 3
    },
    "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/type-a-uncertainty",
  "api": "https://www.calculatorx.com/api/v1/calc/type-a",
  "schema_input": "https://www.calculatorx.com/schemas/engineering.uncertainty.type_a.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/engineering.uncertainty.type_a.output.json",
  "assumptions": [
    "Type A: u_A = s/√n from summarizeSample (ddof=1 default)",
    "Not GUM combination of several uᵢ",
    "Not Monte Carlo",
    "Independent repeated observations of one quantity"
  ],
  "limitations": [
    "Type A from a sample — not GUM RSS of several uᵢ",
    "Not Monte Carlo",
    "ddof=1 requires n≥2"
  ],
  "boundary_conditions": [
    "missing values → MISSING_REQUIRED_INPUT",
    "n<2 with ddof=1 → VALUE_OUT_OF_RANGE",
    "ddof not 0 or 1 → INVALID_INPUT"
  ],
  "sources": [
    {
      "title": "JCGM 100:2008 (GUM) — Evaluation of measurement data",
      "section": "4.2 Type A evaluation of standard uncertainty",
      "url": "https://www.bipm.org/en/committees/jc/jcgm/publications",
      "supports": "u_A = s/√n from repeated independent observations",
      "kind": "standard"
    },
    {
      "title": "JCGM 100:2008 (GUM) — Evaluation of measurement data",
      "section": "4.2.3 Experimental standard deviation of the mean",
      "url": "https://www.bipm.org/utils/common/pdf/jcgm/JCGM_100_2008_E.pdf",
      "supports": "The experimental standard deviation of the mean is s/√n",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:abbbbc01e87248308a204e5238109d9a34f5b23acb2bb4d4f12993d725f5fe38",
  "tests": [
    {
      "id": "golden-type-a",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "values": [
          1,
          2,
          3
        ],
        "ddof": 1
      },
      "expect": {
        "mean": 2,
        "std": 1,
        "u_A": 0.5773502691896258
      },
      "expectWarning": null,
      "actual": {
        "mean": 2,
        "std": 1,
        "u_A": 0.5773502691896258,
        "n": 3,
        "ddof": 1,
        "values": [
          1,
          2,
          3
        ]
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-type-a-n1",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "values": [
          1
        ],
        "ddof": 1
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "sample variance needs at least two values"
    },
    {
      "id": "boundary-type-a-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {},
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "values is required"
    },
    {
      "id": "boundary-type-a-ddof",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "values": [
          1,
          2,
          3
        ],
        "ddof": 2
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "ddof must be 0 or 1"
    },
    {
      "id": "property-ua",
      "ok": true,
      "kind": "property",
      "detail": "1/√3",
      "expect": 0.5773502691896258,
      "actual": 0.5773502691896258
    },
    {
      "id": "property-mean",
      "ok": true,
      "kind": "property",
      "detail": "2",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-csv",
      "ok": true,
      "kind": "property",
      "detail": "csv=array",
      "expect": 0.5773502691896258,
      "actual": 0.5773502691896258
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 7,
      "total": 7,
      "golden": 1,
      "boundary": 3,
      "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.851Z",
  "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": "8cd2753b3d27d89ca2d63c7fc2d854103e5aa4db1d51e454eb70909d76d2ec82",
      "output_schema_sha256": "81b14f1a196e3f3448dddad91670038b910b106a21811ced1c5b0f62eb86b714",
      "evidence_sha256": "7094386abc48072e8840f84fd8fb69f94e6d4d7252934e46cd5a0491b759037d",
      "evidence_core_sha256": "7094386abc48072e8840f84fd8fb69f94e6d4d7252934e46cd5a0491b759037d",
      "capability_sha256": "26bdc3e7738a9668259be525161eac54eae9601a7262b09fecb6b91948f4cb90",
      "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"
  }
}
