{
  "capability_id": "mechanical.statics.plane_centroid",
  "tool_id": "plane-centroid",
  "engine": "plane-centroid",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-23T10:57:00.181Z",
  "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/plane-centroid",
  "api": "https://www.calculatorx.com/api/v1/calc/plane-centroid",
  "schema_input": "https://www.calculatorx.com/schemas/mechanical.statics.plane_centroid.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/mechanical.statics.plane_centroid.output.json",
  "assumptions": [],
  "limitations": [
    "Plane areas with a known part centroid",
    "Negative area is a hole",
    "Total area must not be zero",
    "Not moment of inertia, radius of gyration, section modulus, or beam deflection"
  ],
  "boundary_conditions": [
    "no parts → MISSING_REQUIRED_INPUT",
    "a row that is not A,x,y → INVALID_INPUT",
    "total area zero → INVALID_INPUT"
  ],
  "sources": [
    {
      "title": "Hibbeler, Engineering Mechanics: Statics",
      "section": "Center of gravity and centroid",
      "supports": "x̄ = Σ(A x)/ΣA and ȳ = Σ(A y)/ΣA for a composite plane area",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:a0f3f0e03ada0699cd9c50725fe5859e11b0edd1dad8b9aa4a9ce820f9bf4e5d",
  "tests": [
    {
      "id": "golden-two-areas",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "parts": "2,0,0; 2,4,0"
      },
      "expect": {
        "area": 4,
        "x_bar": 2,
        "y_bar": 0,
        "model": "plane_centroid"
      },
      "expectWarning": null,
      "actual": {
        "model": "plane_centroid",
        "area": 4,
        "x_bar": 2,
        "y_bar": 0,
        "n": 2,
        "solver": "math.vector add",
        "convention": "x̄ = Σ(A x)/ΣA, ȳ = Σ(A y)/ΣA. Negative area is a hole."
      },
      "tol": 1e-12
    },
    {
      "id": "golden-hole",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "parts": "4,0,0; -2,3,0"
      },
      "expect": {
        "area": 2,
        "x_bar": -3,
        "y_bar": 0
      },
      "expectWarning": null,
      "actual": {
        "model": "plane_centroid",
        "area": 2,
        "x_bar": -3,
        "y_bar": 0,
        "n": 2,
        "solver": "math.vector add",
        "convention": "x̄ = Σ(A x)/ΣA, ȳ = Σ(A y)/ΣA. Negative area is a hole."
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-single",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "parts": "6,1,2"
      },
      "expect": {
        "area": 6,
        "x_bar": 1,
        "y_bar": 2
      },
      "expectWarning": null,
      "actual": {
        "model": "plane_centroid",
        "area": 6,
        "x_bar": 1,
        "y_bar": 2,
        "n": 1,
        "solver": "math.vector add",
        "convention": "x̄ = Σ(A x)/ΣA, ȳ = Σ(A y)/ΣA. Negative area is a hole."
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-empty",
      "ok": true,
      "kind": "boundary",
      "inputs": {},
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter at least one area as A,x,y."
    },
    {
      "id": "boundary-row",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "parts": "1,2"
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "parts row 1 must be A,x,y."
    },
    {
      "id": "boundary-cancel",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "parts": "1,0,0; -1,2,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-23T06:51:38.777Z",
  "rendered_at": "2026-09-23T10:57:00.181Z",
  "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": "eaff4f751255836d0e227831d915e2a5ffd21810362954efdb5e58ab2ea8829e",
      "output_schema_sha256": "ba150d4057a041215efbbb0735d67852526bb0480a7942d7d7e812dd9f0cd4dc",
      "evidence_sha256": "2d190588f3c215b404d6c4ad8e5f1433792f720708f4008adb18fad85659805a",
      "evidence_core_sha256": "2d190588f3c215b404d6c4ad8e5f1433792f720708f4008adb18fad85659805a",
      "capability_sha256": "0f4c67f5876ef64ee5f6137bad4c4ee5d7543e4223a8a54251cd77855e2e0676",
      "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"
  }
}
