{
  "capability_id": "math.pythagorean",
  "tool_id": "pythagorean",
  "engine": "pythagorean",
  "calculation_version": "1.2.0",
  "generated_at": "2026-11-10T05:18:42.064Z",
  "engine_build": "2026-10-29",
  "test_count": 16,
  "passed": 16,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "passed": 6,
      "total": 6
    },
    "boundary": {
      "passed": 10,
      "total": 10
    },
    "property": {
      "passed": 0,
      "total": 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/math/pythagorean",
  "api": "https://www.calculatorx.com/api/v1/calc/pythagorean",
  "schema_input": "https://www.calculatorx.com/schemas/math.pythagorean.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.pythagorean.output.json",
  "assumptions": [
    "Right triangle; positive side lengths.",
    "c > a and c > b when solving for a leg.",
    "Exactly two fields are inputs when solving. Explicit solve_for selects the output. If all three are supplied without solve_for, they are verified rather than overwritten.",
    "Interactive evaluation, shared URLs, and REST use the same engine, solve_for contract, and error codes.",
    "Share URL is canonical: solve_for=a|b|c forces solve even if a leftover third side is present; mode=verify is required to stay in Verify after a tab change."
  ],
  "limitations": [
    "Positive finite binary64 side lengths in consistent units. Decimal text at most512characters,strict types and matching aliases. Nonzero-to-zero conversion rejects.",
    "Four operations:c,a,b,verify. solve_for selects the output;all supplied side tokens still validate. All three without solve_for verify;mode=verify conflicts with solve_for.",
    "Verification checks nondegenerate geometry and squared relative residual |a²+b²-c²|/c²<=1e-6 with scaled squares. Approximate binary64 diagnostics may differ by2e-15 near the threshold; no exact-equality proof.",
    "Solved sides must fit positive finite binary64. Unrepresentable positive area/perimeter are null with explicit range status;invalid verify has no right-angle area. Values display12significant digits. Exact radical only for exactly representable safe-integer radicands.",
    "Diagram is schematic,not to scale;no right-angle diagram for failed verification. Browser calculations run locally;shared URLs and REST/MCP transmit inputs and may enter logs."
  ],
  "boundary_conditions": [
    "Need exactly two known sides to solve the third, or all three to verify",
    "Invalid solve_for → INVALID_SOLVE_FOR",
    "Fewer than two inputs → MISSING_REQUIRED_INPUT",
    "Non-positive side → SIDE_NOT_POSITIVE",
    "c ≤ a or c ≤ b when solving a leg → HYPOTENUSE_TOO_SHORT",
    "All three without solve_for that do not satisfy Pythagoras → status invalid (not overwritten)"
  ],
  "sources": [
    {
      "title": "Euclid, Elements, Book I, Proposition 47",
      "section": "In right-angled triangles the square on the side subtending the right angle is equal to the squares on the sides containing the right angle",
      "url": "https://mathcs.clarku.edu/~djoyce/elements/bookI/propI47.html",
      "supports": "Classical statement of the Pythagorean theorem used as the geometric identity a² + b² = c².",
      "kind": "reference",
      "accessed": "2026-08-28",
      "publisher": "Clark University"
    },
    {
      "title": "Right-triangle area",
      "section": "A = ab/2",
      "supports": "Area of a right triangle is half the product of the legs that form the right angle. Perimeter is the sum of the three sides.",
      "kind": "definition"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:ae5876050d18745becc2acae23c641248775ca5bc566b083d0518bc04141bf07",
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 16,
      "total": 16,
      "golden": 6,
      "boundary": 10,
      "property": 0
    },
    "contract_checks": {
      "passed": 6,
      "total": 6
    }
  },
  "evidence_core_generated_at": "2026-10-29T08:55:15.563Z",
  "rendered_at": "2026-11-10T05:18:42.064Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.2.0",
    "artifacts": {
      "engine": "1.2.0",
      "page": "1.2.0",
      "capability": "1.2.0",
      "evidence": "1.2.0",
      "input_schema": "1.2.0",
      "output_schema": "1.2.0",
      "mcp_contract": "1.2.0"
    },
    "digests": {
      "input_schema_sha256": "4a1feee107792a0f52f9ad242b26dd6ce4e9bdac74e2d953ffa9051b79ab8e80",
      "output_schema_sha256": "07a015c5b000355407711cd67adbd9063a8033e61531e82dc9ab1a90b894fe44",
      "evidence_sha256": "1083bbd0124a8dfa50ae0aca9d2d775ba7b900078eb6ef61d803a6c84505ef24",
      "evidence_core_sha256": "1083bbd0124a8dfa50ae0aca9d2d775ba7b900078eb6ef61d803a6c84505ef24",
      "capability_sha256": "1a9600c4af30f9857be499055b93b667caf9510485418ed575af0553cbe76500",
      "engine_sha256": "c6ebd8436f08b413e1ac6317b2d48550f2e6639a90dff254244e3aa562158b8d",
      "mcp_contract_sha256": "eb3e39ad4a95ed263415b4932f185d5edfe00a2403267b7c5ed5f718d1ff6da3"
    },
    "contract_checks": {
      "total": 6,
      "passed": 6,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.2.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"
  },
  "tests": [],
  "disclosure": {
    "policy": "calculatorx-public-evidence-v1",
    "full_validation": "private",
    "representation": "summary"
  }
}
