{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/engineering.conformity.decision_rule/1.0.0/input.json",
  "title": "Conformity decision rule — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "y": {
      "type": "number",
      "description": "Measured value."
    },
    "lsl": {
      "type": "number",
      "description": "Lower specification limit. Provide lsl, usl, or both."
    },
    "usl": {
      "type": "number",
      "description": "Upper specification limit. Must be greater than lsl when both are set."
    },
    "rule": {
      "type": "string",
      "enum": [
        "simple",
        "guarded"
      ],
      "description": "simple (default) or guarded. Aliases: simple_acceptance, guarded_acceptance."
    },
    "w": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Guard-band width when rule=guarded. Provide w or U, not required for simple."
    },
    "U": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Already-expanded U used as w when rule=guarded and w is omitted."
    }
  },
  "required": [
    "y"
  ],
  "description": "Binary ILAC G8-style decision on a measured y: simple acceptance (w=0) or guarded acceptance (LSL+w ≤ y ≤ USL−w). The guard-band zone is fail, not conditional. Not JCGM 106 risk, not TUR, and not GB-only. (calculation_version 1.0.0)"
}
