{
  "capability_id": "mechanical.statics.principal_moment",
  "tool_id": "principal-moment",
  "engine": "principal-moment",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-23T10:57:00.182Z",
  "engine_build": "2026-09-23",
  "test_count": 6,
  "passed": 6,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 2,
      "passed": 2
    },
    "boundary": {
      "total": 4,
      "passed": 4
    },
    "property": {
      "total": 0,
      "passed": 0
    }
  },
  "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/physics/principal-moment",
  "api": "https://www.calculatorx.com/api/v1/calc/principal-moment",
  "schema_input": "https://www.calculatorx.com/schemas/mechanical.statics.principal_moment.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/mechanical.statics.principal_moment.output.json",
  "assumptions": [],
  "limitations": [
    "Moments are supplied about each part centroid",
    "θ is the I1 axis, CCW from +x, in (−90°, 90°]",
    "Equal principal moments report θ = 0",
    "Negative area is a hole",
    "Total area must not be zero",
    "Not a Mohr circle drawing, section modulus, or beam deflection"
  ],
  "boundary_conditions": [
    "no parts → MISSING_REQUIRED_INPUT",
    "a row that is not Ix,Iy,Ixy,A,x,y → INVALID_INPUT",
    "total area zero → INVALID_INPUT"
  ],
  "sources": [
    {
      "title": "Hibbeler, Engineering Mechanics: Statics",
      "section": "Product of inertia and principal moments",
      "supports": "Ixy = Īxy + A x' y' and the principal values of the plane inertia tensor",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:6fc7f10379b03566e635c32dfa70a8a08a25e2034b5beac8441ea3e5a31439aa",
  "tests": [
    {
      "id": "golden-aligned",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "parts": "4,1,0,2,0,0"
      },
      "expect": {
        "Ix": 4,
        "Iy": 1,
        "Ixy": 0,
        "I1": 4,
        "I2": 1,
        "theta_deg": 0,
        "model": "principal_moment"
      },
      "expectWarning": null,
      "actual": {
        "model": "principal_moment",
        "area": 2,
        "x_bar": 0,
        "y_bar": 0,
        "Ix": 4,
        "Iy": 1,
        "Ixy": 0,
        "I1": 4,
        "I2": 1,
        "theta_deg": 0,
        "n": 1,
        "solver": "area moment + math.linear_algebra eigen",
        "convention": "Ixy = Σ(Īxy + A (x−x̄)(y−ȳ)). θ is the I1 axis, CCW from +x, in (−90°, 90°]."
      },
      "tol": 1e-12
    },
    {
      "id": "golden-shift",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "parts": "0,0,0,1,0,0; 0,0,0,1,2,2"
      },
      "expect": {
        "area": 2,
        "x_bar": 1,
        "y_bar": 1,
        "Ix": 2,
        "Iy": 2,
        "Ixy": 2,
        "I1": 4,
        "I2": 0,
        "theta_deg": -45
      },
      "expectWarning": null,
      "actual": {
        "model": "principal_moment",
        "area": 2,
        "x_bar": 1,
        "y_bar": 1,
        "Ix": 2,
        "Iy": 2,
        "Ixy": 2,
        "I1": 4,
        "I2": 0,
        "theta_deg": -45,
        "n": 2,
        "solver": "area moment + math.linear_algebra eigen",
        "convention": "Ixy = Σ(Īxy + A (x−x̄)(y−ȳ)). θ is the I1 axis, CCW from +x, in (−90°, 90°]."
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-swap",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "parts": "1,4,0,2,0,0"
      },
      "expect": {
        "I1": 4,
        "I2": 1,
        "theta_deg": 90
      },
      "expectWarning": null,
      "actual": {
        "model": "principal_moment",
        "area": 2,
        "x_bar": 0,
        "y_bar": 0,
        "Ix": 1,
        "Iy": 4,
        "Ixy": 0,
        "I1": 4,
        "I2": 1,
        "theta_deg": 90,
        "n": 1,
        "solver": "area moment + math.linear_algebra eigen",
        "convention": "Ixy = Σ(Īxy + A (x−x̄)(y−ȳ)). θ is the I1 axis, CCW from +x, in (−90°, 90°]."
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-empty",
      "ok": true,
      "kind": "boundary",
      "inputs": {},
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter at least one part as Ix,Iy,Ixy,A,x,y."
    },
    {
      "id": "boundary-row",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "parts": "1,2,3,4,5"
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "parts row 1 must be Ix,Iy,Ixy,A,x,y."
    },
    {
      "id": "boundary-cancel",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "parts": "0,0,0,1,0,0; 0,0,0,-1,1,0"
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "Total area must not be zero."
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 6,
      "total": 6,
      "golden": 2,
      "boundary": 4,
      "property": 0
    },
    "contract_checks": {
      "passed": 6,
      "total": 6
    }
  },
  "evidence_core_generated_at": "2026-09-23T07:51:27.049Z",
  "rendered_at": "2026-09-23T10:57:00.182Z",
  "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": "3e0599cac178918111b270ae1b6c8cb71e8211e0099e712f55617138e139c1fc",
      "output_schema_sha256": "8306a15b09b7e2e8694cbb307977921dd060e079425ac0de8e80278bb971b73d",
      "evidence_sha256": "20b5f63d156071ce674af004e3e6c5010f8a3c92f4c4ae2af92eb15c58715467",
      "evidence_core_sha256": "20b5f63d156071ce674af004e3e6c5010f8a3c92f4c4ae2af92eb15c58715467",
      "capability_sha256": "595a55997da3125f1be84196bf4067dc9387f5a31d4450a68766913ac8f9d226",
      "engine_sha256": "2834c6bc0e697b4d1e17766004f95cbfb57722d30aac4f3245109e79ef19ffae",
      "mcp_contract_sha256": "7015b0a59a475803dcfdfe80a660fa9d4d216cc36bd496d9466d1918d64ff186"
    },
    "contract_checks": {
      "total": 6,
      "passed": 6,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        },
        {
          "id": "rest-success-payload-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
