{
  "capability_id": "engineering.conformity.decision_rule",
  "tool_id": "decision-rule",
  "engine": "decision-rule",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:03:43.736Z",
  "engine_build": "2026-09-15",
  "test_count": 11,
  "passed": 11,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 0,
      "passed": 0
    },
    "boundary": {
      "total": 7,
      "passed": 7
    },
    "property": {
      "total": 4,
      "passed": 4
    }
  },
  "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/decision-rule",
  "api": "https://www.calculatorx.com/api/v1/calc/decision-rule",
  "schema_input": "https://www.calculatorx.com/schemas/engineering.conformity.decision_rule.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/engineering.conformity.decision_rule.output.json",
  "assumptions": [
    "ILAC G8-style binary simple (w=0) or guarded acceptance",
    "Default rule is simple",
    "Guarded w from w or already-expanded U; the band is fail",
    "Not JCGM 106 risk tables, not TUR, and not GB = k·u as a product"
  ],
  "limitations": [
    "Binary pass/fail only — the guard-band zone is fail, not conditional",
    "Does not compute ILAC G8 / JCGM 106 consumer or producer risk",
    "Does not compute TUR or GB = k·u as a product (use those pages)",
    "U or w is the already-stated band; this page does not expand u_c"
  ],
  "boundary_conditions": [
    "missing y or missing spec → MISSING_REQUIRED_INPUT",
    "rule=guarded without w or U → MISSING_REQUIRED_INPUT",
    "empty acceptance interval or unknown rule → INVALID_INPUT"
  ],
  "sources": [
    {
      "title": "ILAC G8:09/2019 — Guidelines on Decision Rules and Statements of Conformity",
      "section": "6.2 Simple acceptance and 6.3 Guarded acceptance (binary)",
      "url": "https://ilac.org/publications-and-resources/ilac-guidance-series/",
      "supports": "Simple: accept if y is inside the specification. Guarded: accept if y is inside the acceptance interval; the band is not a pass",
      "kind": "standard"
    },
    {
      "title": "JCGM 106:2012 — The role of measurement uncertainty in conformity assessment",
      "section": "Risk-based and non-binary rules are a different contract",
      "url": "https://www.bipm.org/en/committees/jc/jcgm/publications",
      "supports": "This page does not compute specific consumer/producer risk or a conditional third outcome",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:dda1f4f3da5ed844c325bd33de674cc6c85d2992a9c3029bc855f85508dd1436",
  "tests": [
    {
      "id": "boundary-dr-simple",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 6,
        "lsl": 0,
        "usl": 12
      },
      "expect": {
        "decision": "pass",
        "rule": "simple",
        "w": 0
      },
      "expectWarning": null,
      "actual": {
        "decision": "pass",
        "rule": "simple",
        "y": 6,
        "w": 0,
        "lsl": 0,
        "usl": 12,
        "accept_lsl": 0,
        "accept_usl": 12
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-dr-simple-fail",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 12.1,
        "lsl": 0,
        "usl": 12,
        "rule": "simple"
      },
      "expect": {
        "decision": "fail"
      },
      "expectWarning": null,
      "actual": {
        "decision": "fail",
        "rule": "simple",
        "y": 12.1,
        "w": 0,
        "lsl": 0,
        "usl": 12,
        "accept_lsl": 0,
        "accept_usl": 12
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-dr-guarded",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 6,
        "lsl": 0,
        "usl": 12,
        "rule": "guarded",
        "U": 1
      },
      "expect": {
        "decision": "pass",
        "w": 1,
        "accept_lsl": 1,
        "accept_usl": 11
      },
      "expectWarning": null,
      "actual": {
        "decision": "pass",
        "rule": "guarded",
        "y": 6,
        "w": 1,
        "lsl": 0,
        "usl": 12,
        "accept_lsl": 1,
        "accept_usl": 11
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-dr-band",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 0.5,
        "lsl": 0,
        "usl": 12,
        "rule": "guarded",
        "U": 1
      },
      "expect": {
        "decision": "fail"
      },
      "expectWarning": null,
      "actual": {
        "decision": "fail",
        "rule": "guarded",
        "y": 0.5,
        "w": 1,
        "lsl": 0,
        "usl": 12,
        "accept_lsl": 1,
        "accept_usl": 11
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-dr-missing-y",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "lsl": 0,
        "usl": 12
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "y is required"
    },
    {
      "id": "boundary-dr-guarded-U",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 6,
        "lsl": 0,
        "usl": 12,
        "rule": "guarded"
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "U is required"
    },
    {
      "id": "boundary-dr-empty",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 6,
        "lsl": 0,
        "usl": 12,
        "rule": "guarded",
        "w": 7
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "guard band leaves an empty acceptance interval"
    },
    {
      "id": "property-dr-simple",
      "ok": true,
      "kind": "property",
      "detail": "pass",
      "expect": "pass",
      "actual": "pass"
    },
    {
      "id": "property-dr-simple-fail",
      "ok": true,
      "kind": "property",
      "detail": "fail",
      "expect": "fail",
      "actual": "fail"
    },
    {
      "id": "property-dr-guarded",
      "ok": true,
      "kind": "property",
      "detail": "pass",
      "expect": "pass",
      "actual": "pass"
    },
    {
      "id": "property-dr-band",
      "ok": true,
      "kind": "property",
      "detail": "fail",
      "expect": "fail",
      "actual": "fail"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 11,
      "total": 11,
      "golden": 0,
      "boundary": 7,
      "property": 4
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-15T08:55:02.198Z",
  "rendered_at": "2026-09-16T22:03:43.736Z",
  "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": "6e053d4f5754cf3c234d51da7aa7576e548af6e3b61a8f427de166e422abe486",
      "output_schema_sha256": "22e442bce91f34d7848617f8a5d7f10c97fc577673d4dc8192be9d5d9f3e7ade",
      "evidence_sha256": "a75f0b40e1a23251b34d006553dc277774ce2a7c7eb6375b0d6c9c84198f2c71",
      "evidence_core_sha256": "a75f0b40e1a23251b34d006553dc277774ce2a7c7eb6375b0d6c9c84198f2c71",
      "capability_sha256": "b685a11409dfaeb96d70b547df5e4b35292966ed52c82df43cc5e37fd6cc3542",
      "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"
  }
}
