{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.geometry.coordinate/1.8.0/output.json",
  "title": "Coordinate geometry — success output",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "status",
    "capability_id",
    "engine",
    "inputs",
    "result",
    "result_detail",
    "calculation_version",
    "verification"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Requested tool id"
    },
    "status": {
      "const": "success"
    },
    "capability_id": {
      "const": "math.geometry.coordinate"
    },
    "tool": {
      "type": "string",
      "description": "Requested tool id"
    },
    "engine": {
      "type": "string"
    },
    "inputs": {
      "type": "object",
      "description": "Normalized calculation inputs (aliases resolved)"
    },
    "result": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "mode",
        "x1",
        "y1",
        "x2",
        "y2"
      ],
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "distance",
            "midpoint",
            "slope",
            "line",
            "point_line",
            "intersect",
            "angle"
          ]
        },
        "x1": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "y1": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "x2": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "y2": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "distance": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "mx": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "my": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "slope": {
          "type": [
            "number",
            "null"
          ]
        },
        "vertical": {
          "type": "boolean"
        },
        "intercept": {
          "type": [
            "number",
            "null"
          ],
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "equation": {
          "type": "string"
        },
        "standard": {
          "type": "string"
        },
        "A": {
          "type": "number"
        },
        "B": {
          "type": "number"
        },
        "C": {
          "type": "number"
        },
        "x0": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "y0": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "signed": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "foot_x": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "foot_y": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "status": {
          "type": "string",
          "enum": [
            "point",
            "empty",
            "coincident",
            "parallel",
            "perpendicular",
            "oblique"
          ]
        },
        "x": {
          "type": [
            "number",
            "null"
          ],
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "y": {
          "type": [
            "number",
            "null"
          ],
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "x3": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "y3": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "x4": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "y4": {
          "type": "number",
          "x-quantity-kind": "length",
          "x-dimension": [
            1,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-policy": "arbitrary_consistent_length",
          "x-uuce-role": "scalar"
        },
        "A1": {
          "type": "number"
        },
        "B1": {
          "type": "number"
        },
        "C1": {
          "type": "number"
        },
        "A2": {
          "type": "number"
        },
        "B2": {
          "type": "number"
        },
        "C2": {
          "type": "number"
        },
        "standard1": {
          "type": "string"
        },
        "standard2": {
          "type": "string"
        },
        "angle_deg": {
          "type": "number",
          "x-unit": "deg",
          "x-quantity-kind": "plane_angle",
          "x-role": "scalar",
          "x-dimension": [
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-id": "cx:deg",
          "x-uuce-unit": {
            "unit_id": "cx:deg",
            "revision": "1.0.0",
            "content_digest": "ebb31e3abee53f3bf57339c87949e1018d141739fba8a07f54c42ebfd219262b",
            "dependency_digest": "eef386126ec6524884c84bab06f2a96996df913376c0ce5ccdaca0e7faf7b9c3",
            "quantity_kind": "plane_angle",
            "dimension": [
              0,
              0,
              0,
              0,
              0,
              0,
              0
            ],
            "registry_version": "0.3.0-preview.3",
            "digest_contract": "calculatorx-unit-definition-digests-v2",
            "registry_status": "preview",
            "definition_lifecycle": "candidate",
            "role": "scalar"
          },
          "description": "Plane angle in deg; pinned UUCE definition reference in x-uuce-unit. No automatic wrap or conversion-engine migration."
        },
        "angle_rad": {
          "type": "number",
          "x-unit": "rad",
          "x-quantity-kind": "plane_angle",
          "x-role": "scalar",
          "x-dimension": [
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-id": "cx:rad",
          "x-uuce-unit": {
            "unit_id": "cx:rad",
            "revision": "1.0.0",
            "content_digest": "842467a958d28ac79bf34e796043449f6af24819d77b2b67f540dbabdecc8e3e",
            "dependency_digest": "9c07023393c6212aab52719f503df1bdc9456559b5c4719ff1fec47d0623e0ad",
            "quantity_kind": "plane_angle",
            "dimension": [
              0,
              0,
              0,
              0,
              0,
              0,
              0
            ],
            "registry_version": "0.3.0-preview.3",
            "digest_contract": "calculatorx-unit-definition-digests-v2",
            "registry_status": "preview",
            "definition_lifecycle": "candidate",
            "role": "scalar"
          },
          "description": "Plane angle in rad; pinned UUCE definition reference in x-uuce-unit. No automatic wrap or conversion-engine migration."
        },
        "supplement_deg": {
          "type": "number",
          "x-unit": "deg",
          "x-quantity-kind": "plane_angle",
          "x-role": "scalar",
          "x-dimension": [
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "x-unit-id": "cx:deg",
          "x-uuce-unit": {
            "unit_id": "cx:deg",
            "revision": "1.0.0",
            "content_digest": "ebb31e3abee53f3bf57339c87949e1018d141739fba8a07f54c42ebfd219262b",
            "dependency_digest": "eef386126ec6524884c84bab06f2a96996df913376c0ce5ccdaca0e7faf7b9c3",
            "quantity_kind": "plane_angle",
            "dimension": [
              0,
              0,
              0,
              0,
              0,
              0,
              0
            ],
            "registry_version": "0.3.0-preview.3",
            "digest_contract": "calculatorx-unit-definition-digests-v2",
            "registry_status": "preview",
            "definition_lifecycle": "candidate",
            "role": "scalar"
          },
          "description": "Plane angle in deg; pinned UUCE definition reference in x-uuce-unit. No automatic wrap or conversion-engine migration."
        },
        "formula": {
          "type": "string"
        },
        "dx": {
          "type": "number"
        },
        "dy": {
          "type": "number"
        }
      },
      "oneOf": [
        {
          "properties": {
            "mode": {
              "const": "distance"
            }
          },
          "required": [
            "mode",
            "x1",
            "y1",
            "x2",
            "y2",
            "distance"
          ]
        },
        {
          "properties": {
            "mode": {
              "const": "midpoint"
            }
          },
          "required": [
            "mode",
            "x1",
            "y1",
            "x2",
            "y2",
            "mx",
            "my"
          ]
        },
        {
          "properties": {
            "mode": {
              "const": "slope"
            }
          },
          "required": [
            "mode",
            "x1",
            "y1",
            "x2",
            "y2",
            "slope",
            "vertical"
          ]
        },
        {
          "properties": {
            "mode": {
              "const": "line"
            }
          },
          "required": [
            "mode",
            "x1",
            "y1",
            "x2",
            "y2",
            "equation",
            "standard",
            "A",
            "B",
            "C",
            "vertical"
          ]
        },
        {
          "properties": {
            "mode": {
              "const": "point_line"
            }
          },
          "required": [
            "mode",
            "x1",
            "y1",
            "x2",
            "y2",
            "x0",
            "y0",
            "distance",
            "signed",
            "foot_x",
            "foot_y",
            "standard"
          ]
        },
        {
          "properties": {
            "mode": {
              "const": "intersect"
            }
          },
          "required": [
            "mode",
            "x1",
            "y1",
            "x2",
            "y2",
            "x3",
            "y3",
            "x4",
            "y4",
            "status",
            "x",
            "y",
            "standard1",
            "standard2"
          ]
        },
        {
          "properties": {
            "mode": {
              "const": "angle"
            }
          },
          "required": [
            "mode",
            "x1",
            "y1",
            "x2",
            "y2",
            "x3",
            "y3",
            "x4",
            "y4",
            "status",
            "angle_deg",
            "angle_rad",
            "supplement_deg",
            "standard1",
            "standard2"
          ]
        }
      ]
    },
    "result_detail": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "value",
        "unit",
        "formatted"
      ],
      "properties": {
        "unit_contract": {
          "type": "object",
          "const": {
            "protocol": "calculatorx-field-unit-contract-v1",
            "capability_id": "math.geometry.coordinate",
            "registry_version": "0.3.0-preview.3",
            "declaration_scope": "Field/branch declarations only; inactive fields are not asserted to exist. No conversion-engine migration or new numerical certification.",
            "path_format": "Paths relative to inputs or result_detail.value; dot separates properties, * denotes array items, $ denotes a scalar result.",
            "inputs": {},
            "outputs": {
              "angle_deg": {
                "unit": "deg",
                "reference": {
                  "unit_id": "cx:deg",
                  "revision": "1.0.0",
                  "content_digest": "ebb31e3abee53f3bf57339c87949e1018d141739fba8a07f54c42ebfd219262b",
                  "dependency_digest": "eef386126ec6524884c84bab06f2a96996df913376c0ce5ccdaca0e7faf7b9c3",
                  "quantity_kind": "plane_angle",
                  "dimension": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                  ],
                  "registry_version": "0.3.0-preview.3",
                  "digest_contract": "calculatorx-unit-definition-digests-v2",
                  "registry_status": "preview",
                  "definition_lifecycle": "candidate",
                  "role": "scalar"
                }
              },
              "supplement_deg": {
                "unit": "deg",
                "reference": {
                  "unit_id": "cx:deg",
                  "revision": "1.0.0",
                  "content_digest": "ebb31e3abee53f3bf57339c87949e1018d141739fba8a07f54c42ebfd219262b",
                  "dependency_digest": "eef386126ec6524884c84bab06f2a96996df913376c0ce5ccdaca0e7faf7b9c3",
                  "quantity_kind": "plane_angle",
                  "dimension": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                  ],
                  "registry_version": "0.3.0-preview.3",
                  "digest_contract": "calculatorx-unit-definition-digests-v2",
                  "registry_status": "preview",
                  "definition_lifecycle": "candidate",
                  "role": "scalar"
                }
              },
              "angle_rad": {
                "unit": "rad",
                "reference": {
                  "unit_id": "cx:rad",
                  "revision": "1.0.0",
                  "content_digest": "842467a958d28ac79bf34e796043449f6af24819d77b2b67f540dbabdecc8e3e",
                  "dependency_digest": "9c07023393c6212aab52719f503df1bdc9456559b5c4719ff1fec47d0623e0ad",
                  "quantity_kind": "plane_angle",
                  "dimension": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                  ],
                  "registry_version": "0.3.0-preview.3",
                  "digest_contract": "calculatorx-unit-definition-digests-v2",
                  "registry_status": "preview",
                  "definition_lifecycle": "candidate",
                  "role": "scalar"
                }
              }
            },
            "quantity_policy": {
              "physical_unit_id": null,
              "input_policy": "Abstract consistent coordinate/length units; no physical unit is selected by this calculator.",
              "derived_policy": "Lengths inherit the input length unit U; areas U^2; volumes U^3. No implicit conversion or fixed metre binding.",
              "coefficient_policy": "Normalized implicit line/equation coefficients have equation-scale conventions, not universal physical unit IDs."
            }
          }
        },
        "field_units": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "angle_deg",
            "angle_rad",
            "supplement_deg"
          ],
          "properties": {
            "angle_deg": {
              "const": "deg"
            },
            "angle_rad": {
              "const": "rad"
            },
            "supplement_deg": {
              "const": "deg"
            }
          },
          "description": "Display units of fields in value; field_unit_refs carries the pinned UUCE definitions."
        },
        "field_unit_refs": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "angle_deg",
            "angle_rad",
            "supplement_deg"
          ],
          "properties": {
            "angle_deg": {
              "type": "object",
              "const": {
                "unit_id": "cx:deg",
                "revision": "1.0.0",
                "content_digest": "ebb31e3abee53f3bf57339c87949e1018d141739fba8a07f54c42ebfd219262b",
                "dependency_digest": "eef386126ec6524884c84bab06f2a96996df913376c0ce5ccdaca0e7faf7b9c3",
                "quantity_kind": "plane_angle",
                "dimension": [
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0
                ],
                "registry_version": "0.3.0-preview.3",
                "digest_contract": "calculatorx-unit-definition-digests-v2",
                "registry_status": "preview",
                "definition_lifecycle": "candidate",
                "role": "scalar"
              }
            },
            "angle_rad": {
              "type": "object",
              "const": {
                "unit_id": "cx:rad",
                "revision": "1.0.0",
                "content_digest": "842467a958d28ac79bf34e796043449f6af24819d77b2b67f540dbabdecc8e3e",
                "dependency_digest": "9c07023393c6212aab52719f503df1bdc9456559b5c4719ff1fec47d0623e0ad",
                "quantity_kind": "plane_angle",
                "dimension": [
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0
                ],
                "registry_version": "0.3.0-preview.3",
                "digest_contract": "calculatorx-unit-definition-digests-v2",
                "registry_status": "preview",
                "definition_lifecycle": "candidate",
                "role": "scalar"
              }
            },
            "supplement_deg": {
              "type": "object",
              "const": {
                "unit_id": "cx:deg",
                "revision": "1.0.0",
                "content_digest": "ebb31e3abee53f3bf57339c87949e1018d141739fba8a07f54c42ebfd219262b",
                "dependency_digest": "eef386126ec6524884c84bab06f2a96996df913376c0ce5ccdaca0e7faf7b9c3",
                "quantity_kind": "plane_angle",
                "dimension": [
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0
                ],
                "registry_version": "0.3.0-preview.3",
                "digest_contract": "calculatorx-unit-definition-digests-v2",
                "registry_status": "preview",
                "definition_lifecycle": "candidate",
                "role": "scalar"
              }
            }
          },
          "description": "Pinned UUCE definition references; definition metadata is not a conversion execution or numerical certification claim."
        },
        "value": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "mode",
            "x1",
            "y1",
            "x2",
            "y2"
          ],
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "distance",
                "midpoint",
                "slope",
                "line",
                "point_line",
                "intersect",
                "angle"
              ]
            },
            "x1": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "y1": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "x2": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "y2": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "distance": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "mx": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "my": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "slope": {
              "type": [
                "number",
                "null"
              ]
            },
            "vertical": {
              "type": "boolean"
            },
            "intercept": {
              "type": [
                "number",
                "null"
              ],
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "equation": {
              "type": "string"
            },
            "standard": {
              "type": "string"
            },
            "A": {
              "type": "number"
            },
            "B": {
              "type": "number"
            },
            "C": {
              "type": "number"
            },
            "x0": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "y0": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "signed": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "foot_x": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "foot_y": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "status": {
              "type": "string",
              "enum": [
                "point",
                "empty",
                "coincident",
                "parallel",
                "perpendicular",
                "oblique"
              ]
            },
            "x": {
              "type": [
                "number",
                "null"
              ],
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "y": {
              "type": [
                "number",
                "null"
              ],
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "x3": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "y3": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "x4": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "y4": {
              "type": "number",
              "x-quantity-kind": "length",
              "x-dimension": [
                1,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-policy": "arbitrary_consistent_length",
              "x-uuce-role": "scalar"
            },
            "A1": {
              "type": "number"
            },
            "B1": {
              "type": "number"
            },
            "C1": {
              "type": "number"
            },
            "A2": {
              "type": "number"
            },
            "B2": {
              "type": "number"
            },
            "C2": {
              "type": "number"
            },
            "standard1": {
              "type": "string"
            },
            "standard2": {
              "type": "string"
            },
            "angle_deg": {
              "type": "number",
              "x-unit": "deg",
              "x-quantity-kind": "plane_angle",
              "x-role": "scalar",
              "x-dimension": [
                0,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-id": "cx:deg",
              "x-uuce-unit": {
                "unit_id": "cx:deg",
                "revision": "1.0.0",
                "content_digest": "ebb31e3abee53f3bf57339c87949e1018d141739fba8a07f54c42ebfd219262b",
                "dependency_digest": "eef386126ec6524884c84bab06f2a96996df913376c0ce5ccdaca0e7faf7b9c3",
                "quantity_kind": "plane_angle",
                "dimension": [
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0
                ],
                "registry_version": "0.3.0-preview.3",
                "digest_contract": "calculatorx-unit-definition-digests-v2",
                "registry_status": "preview",
                "definition_lifecycle": "candidate",
                "role": "scalar"
              },
              "description": "Plane angle in deg; pinned UUCE definition reference in x-uuce-unit. No automatic wrap or conversion-engine migration."
            },
            "angle_rad": {
              "type": "number",
              "x-unit": "rad",
              "x-quantity-kind": "plane_angle",
              "x-role": "scalar",
              "x-dimension": [
                0,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-id": "cx:rad",
              "x-uuce-unit": {
                "unit_id": "cx:rad",
                "revision": "1.0.0",
                "content_digest": "842467a958d28ac79bf34e796043449f6af24819d77b2b67f540dbabdecc8e3e",
                "dependency_digest": "9c07023393c6212aab52719f503df1bdc9456559b5c4719ff1fec47d0623e0ad",
                "quantity_kind": "plane_angle",
                "dimension": [
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0
                ],
                "registry_version": "0.3.0-preview.3",
                "digest_contract": "calculatorx-unit-definition-digests-v2",
                "registry_status": "preview",
                "definition_lifecycle": "candidate",
                "role": "scalar"
              },
              "description": "Plane angle in rad; pinned UUCE definition reference in x-uuce-unit. No automatic wrap or conversion-engine migration."
            },
            "supplement_deg": {
              "type": "number",
              "x-unit": "deg",
              "x-quantity-kind": "plane_angle",
              "x-role": "scalar",
              "x-dimension": [
                0,
                0,
                0,
                0,
                0,
                0,
                0
              ],
              "x-unit-id": "cx:deg",
              "x-uuce-unit": {
                "unit_id": "cx:deg",
                "revision": "1.0.0",
                "content_digest": "ebb31e3abee53f3bf57339c87949e1018d141739fba8a07f54c42ebfd219262b",
                "dependency_digest": "eef386126ec6524884c84bab06f2a96996df913376c0ce5ccdaca0e7faf7b9c3",
                "quantity_kind": "plane_angle",
                "dimension": [
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0
                ],
                "registry_version": "0.3.0-preview.3",
                "digest_contract": "calculatorx-unit-definition-digests-v2",
                "registry_status": "preview",
                "definition_lifecycle": "candidate",
                "role": "scalar"
              },
              "description": "Plane angle in deg; pinned UUCE definition reference in x-uuce-unit. No automatic wrap or conversion-engine migration."
            },
            "formula": {
              "type": "string"
            },
            "dx": {
              "type": "number"
            },
            "dy": {
              "type": "number"
            }
          },
          "oneOf": [
            {
              "properties": {
                "mode": {
                  "const": "distance"
                }
              },
              "required": [
                "mode",
                "x1",
                "y1",
                "x2",
                "y2",
                "distance"
              ]
            },
            {
              "properties": {
                "mode": {
                  "const": "midpoint"
                }
              },
              "required": [
                "mode",
                "x1",
                "y1",
                "x2",
                "y2",
                "mx",
                "my"
              ]
            },
            {
              "properties": {
                "mode": {
                  "const": "slope"
                }
              },
              "required": [
                "mode",
                "x1",
                "y1",
                "x2",
                "y2",
                "slope",
                "vertical"
              ]
            },
            {
              "properties": {
                "mode": {
                  "const": "line"
                }
              },
              "required": [
                "mode",
                "x1",
                "y1",
                "x2",
                "y2",
                "equation",
                "standard",
                "A",
                "B",
                "C",
                "vertical"
              ]
            },
            {
              "properties": {
                "mode": {
                  "const": "point_line"
                }
              },
              "required": [
                "mode",
                "x1",
                "y1",
                "x2",
                "y2",
                "x0",
                "y0",
                "distance",
                "signed",
                "foot_x",
                "foot_y",
                "standard"
              ]
            },
            {
              "properties": {
                "mode": {
                  "const": "intersect"
                }
              },
              "required": [
                "mode",
                "x1",
                "y1",
                "x2",
                "y2",
                "x3",
                "y3",
                "x4",
                "y4",
                "status",
                "x",
                "y",
                "standard1",
                "standard2"
              ]
            },
            {
              "properties": {
                "mode": {
                  "const": "angle"
                }
              },
              "required": [
                "mode",
                "x1",
                "y1",
                "x2",
                "y2",
                "x3",
                "y3",
                "x4",
                "y4",
                "status",
                "angle_deg",
                "angle_rad",
                "supplement_deg",
                "standard1",
                "standard2"
              ]
            }
          ]
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "formatted": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "formula": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "expression": {
              "type": "string"
            },
            "label": {
              "type": "string"
            }
          }
        }
      ]
    },
    "assumptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "suggestion": {
            "type": "string"
          }
        }
      }
    },
    "verification": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "tier",
        "engine_tested",
        "expert_reviewed",
        "source_checked",
        "reviewed_by",
        "reviewer_role",
        "last_reviewed"
      ],
      "properties": {
        "tier": {
          "type": "string",
          "enum": [
            "candidate",
            "engine_tested",
            "internally_reviewed",
            "expert_verified"
          ]
        },
        "engine_tested": {
          "type": "boolean"
        },
        "expert_reviewed": {
          "type": "boolean"
        },
        "internally_reviewed": {
          "type": "boolean"
        },
        "review_kind": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_checked": {
          "type": "boolean"
        },
        "reviewed_by": {
          "type": [
            "string",
            "null"
          ]
        },
        "reviewer_role": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_reviewed": {
          "type": [
            "string",
            "null"
          ]
        },
        "citation_kind": {
          "type": "string"
        },
        "expert_review": {
          "type": "string"
        },
        "domain_review": {
          "type": "string"
        },
        "calculation_version": {
          "type": "string"
        },
        "calc_tests": {
          "type": [
            "string",
            "null"
          ]
        },
        "tests_passed": {
          "type": [
            "integer",
            "null"
          ]
        },
        "tests_total": {
          "type": [
            "integer",
            "null"
          ]
        },
        "artifact_contract": {
          "type": [
            "string",
            "null"
          ]
        },
        "trust_peek": {
          "type": [
            "string",
            "null"
          ]
        },
        "verification_revision": {
          "type": "string"
        },
        "verified_scope": {
          "type": "string"
        },
        "evidence_digest": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "tier": {
                "const": "expert_verified"
              }
            },
            "required": [
              "tier"
            ]
          },
          "then": {
            "properties": {
              "engine_tested": {
                "const": true
              },
              "expert_reviewed": {
                "const": true
              },
              "source_checked": {
                "const": true
              },
              "reviewed_by": {
                "type": "string",
                "minLength": 1
              },
              "reviewer_role": {
                "type": "string",
                "minLength": 1
              },
              "last_reviewed": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "tier": {
                "const": "internally_reviewed"
              }
            },
            "required": [
              "tier"
            ]
          },
          "then": {
            "properties": {
              "engine_tested": {
                "const": true
              },
              "internally_reviewed": {
                "const": true
              },
              "source_checked": {
                "const": true
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "tier": {
                "const": "engine_tested"
              }
            },
            "required": [
              "tier"
            ]
          },
          "then": {
            "properties": {
              "engine_tested": {
                "const": true
              }
            }
          }
        }
      ]
    },
    "calculation_version": {
      "type": "string",
      "const": "1.8.0"
    },
    "api_version": {
      "type": "string"
    },
    "api_contract_version": {
      "type": "string"
    },
    "spec_version": {
      "type": "string"
    },
    "page": {
      "type": [
        "string",
        "null"
      ],
      "description": "Canonical calculator page URL"
    },
    "links": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "schema_input": {
          "type": "string",
          "format": "uri"
        },
        "schema_output": {
          "type": "string",
          "format": "uri"
        },
        "evidence": {
          "type": "string",
          "format": "uri"
        },
        "openapi": {
          "type": "string",
          "format": "uri"
        },
        "capabilities": {
          "type": "string",
          "format": "uri"
        },
        "mcp": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  },
  "x-unit-contract": {
    "protocol": "calculatorx-field-unit-contract-v1",
    "capability_id": "math.geometry.coordinate",
    "registry_version": "0.3.0-preview.3",
    "declaration_scope": "Field/branch declarations only; inactive fields are not asserted to exist. No conversion-engine migration or new numerical certification.",
    "path_format": "Paths relative to inputs or result_detail.value; dot separates properties, * denotes array items, $ denotes a scalar result.",
    "inputs": {},
    "outputs": {
      "angle_deg": {
        "unit": "deg",
        "reference": {
          "unit_id": "cx:deg",
          "revision": "1.0.0",
          "content_digest": "ebb31e3abee53f3bf57339c87949e1018d141739fba8a07f54c42ebfd219262b",
          "dependency_digest": "eef386126ec6524884c84bab06f2a96996df913376c0ce5ccdaca0e7faf7b9c3",
          "quantity_kind": "plane_angle",
          "dimension": [
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "registry_version": "0.3.0-preview.3",
          "digest_contract": "calculatorx-unit-definition-digests-v2",
          "registry_status": "preview",
          "definition_lifecycle": "candidate",
          "role": "scalar"
        }
      },
      "supplement_deg": {
        "unit": "deg",
        "reference": {
          "unit_id": "cx:deg",
          "revision": "1.0.0",
          "content_digest": "ebb31e3abee53f3bf57339c87949e1018d141739fba8a07f54c42ebfd219262b",
          "dependency_digest": "eef386126ec6524884c84bab06f2a96996df913376c0ce5ccdaca0e7faf7b9c3",
          "quantity_kind": "plane_angle",
          "dimension": [
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "registry_version": "0.3.0-preview.3",
          "digest_contract": "calculatorx-unit-definition-digests-v2",
          "registry_status": "preview",
          "definition_lifecycle": "candidate",
          "role": "scalar"
        }
      },
      "angle_rad": {
        "unit": "rad",
        "reference": {
          "unit_id": "cx:rad",
          "revision": "1.0.0",
          "content_digest": "842467a958d28ac79bf34e796043449f6af24819d77b2b67f540dbabdecc8e3e",
          "dependency_digest": "9c07023393c6212aab52719f503df1bdc9456559b5c4719ff1fec47d0623e0ad",
          "quantity_kind": "plane_angle",
          "dimension": [
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "registry_version": "0.3.0-preview.3",
          "digest_contract": "calculatorx-unit-definition-digests-v2",
          "registry_status": "preview",
          "definition_lifecycle": "candidate",
          "role": "scalar"
        }
      }
    },
    "quantity_policy": {
      "physical_unit_id": null,
      "input_policy": "Abstract consistent coordinate/length units; no physical unit is selected by this calculator.",
      "derived_policy": "Lengths inherit the input length unit U; areas U^2; volumes U^3. No implicit conversion or fixed metre binding.",
      "coefficient_policy": "Normalized implicit line/equation coefficients have equation-scale conventions, not universal physical unit IDs."
    }
  }
}
