{
  "capability_id": "math.geometry.coordinate",
  "tool_id": "coordinate-geometry",
  "engine": "coordinate-geometry",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:38:08.876Z",
  "engine_build": "2026-09-16",
  "test_count": 10,
  "passed": 10,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 4,
      "passed": 4
    },
    "boundary": {
      "total": 1,
      "passed": 1
    },
    "property": {
      "total": 5,
      "passed": 5
    }
  },
  "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/math/coordinate-geometry",
  "api": "https://www.calculatorx.com/api/v1/calc/coordinate-geometry",
  "schema_input": "https://www.calculatorx.com/schemas/math.geometry.coordinate.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.geometry.coordinate.output.json",
  "assumptions": [
    "Euclidean plane",
    "Not 3-D / spherical"
  ],
  "limitations": [
    "Not the Pythagorean-only calculator — distance of (0,0) to (3,4) is the same 5 as 3-4-5, but this page is coordinates",
    "Vertical line → slope null, vertical true",
    "Share URLs use slope as output, not query key m"
  ],
  "boundary_conditions": [
    "missing coordinates → MISSING_REQUIRED_INPUT",
    "unknown mode → INVALID_MODE"
  ],
  "sources": [
    "ISO 80000-2:2019 Quantities and units — Mathematics"
  ],
  "methods": [],
  "fingerprint": "sha256:9d7d56c51197fa062582a037f697900cb11b990dbc943fa0e08aeda4c2493492",
  "tests": [
    {
      "id": "golden-345-distance",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "distance",
        "x1": 0,
        "y1": 0,
        "x2": 3,
        "y2": 4
      },
      "expect": {
        "distance": 5
      },
      "expectWarning": null,
      "actual": {
        "mode": "distance",
        "x1": 0,
        "y1": 0,
        "x2": 3,
        "y2": 4,
        "dx": 3,
        "dy": 4,
        "distance": 5,
        "formula": "d = √((x₂−x₁)²+(y₂−y₁)²)"
      },
      "tol": null
    },
    {
      "id": "golden-midpoint",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "midpoint",
        "x1": 0,
        "y1": 0,
        "x2": 4,
        "y2": 6
      },
      "expect": {
        "mx": 2,
        "my": 3
      },
      "expectWarning": null,
      "actual": {
        "mode": "midpoint",
        "x1": 0,
        "y1": 0,
        "x2": 4,
        "y2": 6,
        "mx": 2,
        "my": 3,
        "formula": "M = ((x₁+x₂)/2, (y₁+y₂)/2)"
      },
      "tol": null
    },
    {
      "id": "golden-slope",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "slope",
        "x1": 0,
        "y1": 1,
        "x2": 2,
        "y2": 5
      },
      "expect": {
        "slope": 2,
        "intercept": 1
      },
      "expectWarning": null,
      "actual": {
        "mode": "slope",
        "x1": 0,
        "y1": 1,
        "x2": 2,
        "y2": 5,
        "dx": 2,
        "dy": 4,
        "slope": 2,
        "vertical": false,
        "intercept": 1,
        "formula": "slope = (y₂−y₁)/(x₂−x₁)"
      },
      "tol": null
    },
    {
      "id": "golden-vertical",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "slope",
        "x1": 2,
        "y1": 0,
        "x2": 2,
        "y2": 5
      },
      "expect": {
        "vertical": true,
        "slope": null
      },
      "expectWarning": null,
      "actual": {
        "mode": "slope",
        "x1": 2,
        "y1": 0,
        "x2": 2,
        "y2": 5,
        "dx": 0,
        "dy": 5,
        "slope": null,
        "vertical": true,
        "intercept": null,
        "formula": "x₂ = x₁ → vertical (undefined slope)"
      },
      "tol": null
    },
    {
      "id": "boundary-coord-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "pythagorean",
        "x1": 0,
        "y1": 0,
        "x2": 1,
        "y2": 0
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be distance, midpoint, or slope."
    },
    {
      "id": "property-coord-345",
      "ok": true,
      "kind": "property",
      "detail": "3-4-5 distance",
      "expect": 5,
      "actual": 5
    },
    {
      "id": "property-coord-mid",
      "ok": true,
      "kind": "property",
      "detail": "midpoint",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-coord-slope",
      "ok": true,
      "kind": "property",
      "detail": "slope 2",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-coord-vert",
      "ok": true,
      "kind": "property",
      "detail": "vertical",
      "expect": true,
      "actual": true
    },
    {
      "id": "property-coord-hyp",
      "ok": true,
      "kind": "property",
      "detail": "shift 3-4-5",
      "expect": 5,
      "actual": 5
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 10,
      "total": 10,
      "golden": 4,
      "boundary": 1,
      "property": 5
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-16T15:14:48.779Z",
  "rendered_at": "2026-09-16T22:38:08.876Z",
  "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": "d21805784f8e8fbfc705603ce89168956a1690daed3ec5fc41df5cca9012f4c0",
      "output_schema_sha256": "e3b88876bbfe00a06a744b6f783c980b5891cdbf187d31b42a721ab670fafa29",
      "evidence_sha256": "05af60d5fb99e486909b7b444f2961ed59547a522365726954d53f9c30e00e6f",
      "evidence_core_sha256": "05af60d5fb99e486909b7b444f2961ed59547a522365726954d53f9c30e00e6f",
      "capability_sha256": "c4e8b7cd82c34749dfb64db4807ecb4afadb0dc499212270110fae8c57dbcc78",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 3,
      "passed": 3,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
