{
  "capability_id": "mechanical.statics.principal_section_modulus",
  "tool_id": "principal-section-modulus",
  "engine": "principal-section-modulus",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-23T10:57:00.183Z",
  "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-section-modulus",
  "api": "https://www.calculatorx.com/api/v1/calc/principal-section-modulus",
  "schema_input": "https://www.calculatorx.com/schemas/mechanical.statics.principal_section_modulus.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/mechanical.statics.principal_section_modulus.output.json",
  "assumptions": [],
  "limitations": [
    "S1 = I1/c1 and S2 = I2/c2 along the principal axes",
    "c1 and c2 are distances from the composite centroid to the extreme fiber",
    "A blank distance omits that modulus",
    "θ is the I1 axis, CCW from +x, in (−90°, 90°]",
    "Not Sx or Sy, bending stress, plastic modulus, or beam deflection"
  ],
  "boundary_conditions": [
    "no parts → MISSING_REQUIRED_INPUT",
    "neither c1 nor c2 → MISSING_REQUIRED_INPUT",
    "c1 or c2 ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "I1 < 0 when c1 is set, or I2 < 0 when c2 is set → INVALID_INPUT"
  ],
  "sources": [
    {
      "title": "Hibbeler, Engineering Mechanics: Statics",
      "section": "Moments of inertia",
      "supports": "Elastic section modulus about a principal axis is I/c, with c measured from the centroid along that axis",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:09f77ae5b9306fcc14cc67be37f92cae57dfeed84eae8a616ce841c0be4da6e4",
  "tests": [
    {
      "id": "golden-both",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "parts": "4,1,0,2,0,0",
        "c1": 2,
        "c2": 1
      },
      "expect": {
        "I1": 4,
        "I2": 1,
        "S1": 2,
        "S2": 1,
        "theta_deg": 0,
        "model": "principal_section_modulus"
      },
      "expectWarning": null,
      "actual": {
        "model": "principal_section_modulus",
        "area": 2,
        "x_bar": 0,
        "y_bar": 0,
        "I1": 4,
        "I2": 1,
        "theta_deg": 0,
        "S1": 2,
        "S2": 1,
        "c1": 2,
        "c2": 1,
        "n": 1,
        "solver": "principal moment",
        "convention": "S1 = I1/c1 and S2 = I2/c2. c1 and c2 are distances from the centroid to the extreme fiber measured along the principal axes. θ is the I1 axis."
      },
      "tol": 1e-12
    },
    {
      "id": "golden-s1",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "parts": "0,0,0,1,0,0; 0,0,0,1,2,2",
        "c1": 1
      },
      "expect": {
        "I1": 4,
        "S1": 4,
        "S2": null,
        "theta_deg": -45
      },
      "expectWarning": null,
      "actual": {
        "model": "principal_section_modulus",
        "area": 2,
        "x_bar": 1,
        "y_bar": 1,
        "I1": 4,
        "I2": 0,
        "theta_deg": -45,
        "S1": 4,
        "S2": null,
        "c1": 1,
        "c2": null,
        "n": 2,
        "solver": "principal moment",
        "convention": "S1 = I1/c1 and S2 = I2/c2. c1 and c2 are distances from the centroid to the extreme fiber measured along the principal axes. θ is the I1 axis."
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-zero-i2",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "parts": "0,0,0,1,0,0; 0,0,0,1,2,2",
        "c1": 1,
        "c2": 1
      },
      "expect": {
        "S2": 0,
        "I2": 0
      },
      "expectWarning": null,
      "actual": {
        "model": "principal_section_modulus",
        "area": 2,
        "x_bar": 1,
        "y_bar": 1,
        "I1": 4,
        "I2": 0,
        "theta_deg": -45,
        "S1": 4,
        "S2": 0,
        "c1": 1,
        "c2": 1,
        "n": 2,
        "solver": "principal moment",
        "convention": "S1 = I1/c1 and S2 = I2/c2. c1 and c2 are distances from the centroid to the extreme fiber measured along the principal axes. θ is the I1 axis."
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-empty",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "parts": "4,1,0,2,0,0"
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter c1, c2, or both."
    },
    {
      "id": "boundary-fiber",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "parts": "4,1,0,2,0,0",
        "c1": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "c1 must be positive."
    },
    {
      "id": "boundary-negative-i",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "parts": "-4,-1,0,2,0,0",
        "c1": 1
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "I1 must be non-negative to form S1."
    }
  ],
  "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-23T10:08:55.272Z",
  "rendered_at": "2026-09-23T10:57:00.183Z",
  "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": "cfa32d3cb50430035827b916967f09174fb907e2a252417a312b88c651358471",
      "output_schema_sha256": "82ba0604fe95cd9a7db3c07bba25cabaf1b611878f953c588434f83aea58bb80",
      "evidence_sha256": "925e7a23e0835c7dc9e47351c37bb20f97a560a95dce0c4daad6aa0398b58cce",
      "evidence_core_sha256": "925e7a23e0835c7dc9e47351c37bb20f97a560a95dce0c4daad6aa0398b58cce",
      "capability_sha256": "119770c0ec1ca71e10316d7728667d37888bdedd47343ab5128cd689e2998b46",
      "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"
  }
}
