{
  "capability_id": "math.polynomial.roots",
  "tool_id": "polynomial-roots",
  "engine": "polynomial-roots",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-19T02:14:29.322Z",
  "engine_build": "2026-09-19",
  "test_count": 12,
  "passed": 12,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 3,
      "passed": 3
    },
    "boundary": {
      "total": 4,
      "passed": 4
    },
    "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/polynomial-roots",
  "api": "https://www.calculatorx.com/api/v1/calc/polynomial-roots",
  "schema_input": "https://www.calculatorx.com/schemas/math.polynomial.roots.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.polynomial.roots.output.json",
  "assumptions": [
    "Real coefficients",
    "Leading coefficient nonzero",
    "Degree ≤ 8",
    "Not a second quadratic page",
    "Not CAS factoring"
  ],
  "limitations": [
    "Not /calc/math/quadratic (discriminant / vertex / parabola)",
    "Not a single numerical root",
    "Not symbolic CAS factoring",
    "Degree ≤ 8",
    "Leading coefficient must be nonzero"
  ],
  "boundary_conditions": [
    "degree 0 or one coefficient → INVALID_INPUT",
    "leading coefficient 0 → INVALID_INPUT",
    "degree > 8 → VALUE_OUT_OF_RANGE",
    "method quadratic / cas / newton / eigen → INVALID_MODE"
  ],
  "sources": [
    "ISO 80000-2:2019 Quantities and units — Mathematics"
  ],
  "methods": [],
  "fingerprint": "sha256:f3f73837d774b8104ce7fcff47e182f781eb6d7b10ab90571a9f4f1e8e88fa16",
  "tests": [
    {
      "id": "golden-linear",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "coeffs": [
          -2,
          2
        ]
      },
      "expect": {
        "degree": 1,
        "n": 1,
        "solver": "linear"
      },
      "expectWarning": null,
      "actual": {
        "method": "all_roots",
        "solver": "linear",
        "degree": 1,
        "n": 1,
        "coeffs": [
          -2,
          2
        ],
        "roots": [
          {
            "re": 1,
            "im": 0,
            "kind": "real"
          }
        ],
        "residual_max": 0,
        "polynomial": "2x − 2",
        "formula": "x = −c0/c1"
      },
      "tol": null
    },
    {
      "id": "golden-quadratic",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "coeffs": [
          8,
          -6,
          1
        ]
      },
      "expect": {
        "degree": 2,
        "n": 2,
        "solver": "quadratic"
      },
      "expectWarning": null,
      "actual": {
        "method": "all_roots",
        "solver": "quadratic",
        "degree": 2,
        "n": 2,
        "coeffs": [
          8,
          -6,
          1
        ],
        "roots": [
          {
            "re": 2,
            "im": 0,
            "kind": "real"
          },
          {
            "re": 4,
            "im": 0,
            "kind": "real"
          }
        ],
        "residual_max": 0,
        "polynomial": "x² − 6x + 8",
        "formula": "x = (−b ± √(b² − 4ac)) / (2a)"
      },
      "tol": null
    },
    {
      "id": "golden-cubic-123",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "coeffs": [
          -6,
          11,
          -6,
          1
        ]
      },
      "expect": {
        "degree": 3,
        "n": 3,
        "solver": "durand_kerner"
      },
      "expectWarning": null,
      "actual": {
        "method": "all_roots",
        "solver": "durand_kerner",
        "degree": 3,
        "n": 3,
        "coeffs": [
          -6,
          11,
          -6,
          1
        ],
        "roots": [
          {
            "re": 1,
            "im": 0,
            "kind": "real"
          },
          {
            "re": 2,
            "im": 0,
            "kind": "real"
          },
          {
            "re": 3,
            "im": 0,
            "kind": "real"
          }
        ],
        "residual_max": 0,
        "polynomial": "x³ − 6x² + 11x − 6",
        "formula": "Durand–Kerner simultaneous iteration"
      },
      "tol": null
    },
    {
      "id": "boundary-leading-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "coeffs": [
          1,
          0
        ]
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "Leading coefficient must be nonzero."
    },
    {
      "id": "boundary-degree-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "coeffs": [
          5
        ]
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "Need at least two coefficients (degree ≥ 1)."
    },
    {
      "id": "boundary-quadratic-method",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "method": "quadratic",
        "coeffs": [
          8,
          -6,
          1
        ]
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "method must be all_roots. Not CAS, not a second quadratic page, not a single Newton root."
    },
    {
      "id": "boundary-cas",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "method": "cas",
        "coeffs": [
          -6,
          11,
          -6,
          1
        ]
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "method must be all_roots. Not CAS, not a second quadratic page, not a single Newton root."
    },
    {
      "id": "property-poly-linear",
      "ok": true,
      "kind": "property",
      "detail": "2x−2=0 → 1",
      "expect": 1,
      "actual": 1
    },
    {
      "id": "property-poly-quadratic",
      "ok": true,
      "kind": "property",
      "detail": "x²−6x+8",
      "expect": "2,4",
      "actual": "2,4"
    },
    {
      "id": "property-poly-cubic",
      "ok": true,
      "kind": "property",
      "detail": "(x−1)(x−2)(x−3)",
      "expect": "1,2,3",
      "actual": "1,2,3"
    },
    {
      "id": "property-poly-i",
      "ok": true,
      "kind": "property",
      "detail": "x²+1 → ±i",
      "expect": "±i",
      "actual": "[{\"re\":0,\"im\":-1,\"kind\":\"complex\"},{\"re\":0,\"im\":1,\"kind\":\"complex\"}]"
    },
    {
      "id": "property-poly-vieta",
      "ok": true,
      "kind": "property",
      "detail": "Vieta sum",
      "expect": 6,
      "actual": 6
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 12,
      "total": 12,
      "golden": 3,
      "boundary": 4,
      "property": 5
    },
    "contract_checks": {
      "passed": 1,
      "total": 1
    }
  },
  "evidence_core_generated_at": "2026-09-19T00:15:56.290Z",
  "rendered_at": "2026-09-19T02:14:29.322Z",
  "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": "90582b687e530878b80afd2e7f7677618ab4375357cb4cdfa3578afcadf10f34",
      "output_schema_sha256": "a2f6dbed117c9b3bc364cfa6673ad263420d04dd6c04e821555201d57630f281",
      "evidence_sha256": "4640c51522f47d214855a162023ccaf50170f77b25035c138440bfa9606b63ea",
      "evidence_core_sha256": "4640c51522f47d214855a162023ccaf50170f77b25035c138440bfa9606b63ea",
      "capability_sha256": "d0bc7e1f2bd0a5fcc1b1801d8048ad63ced0f676c2dae52a1e096312deb765de",
      "engine_sha256": "e2db0a7325e87d733eee5491a146d870677fe7b2ccb5d15ba36a8b5afbb17247",
      "mcp_contract_sha256": "312c860acede70764ad49c5e6180292fe8086ed8874884b9239465a80766d858"
    },
    "contract_checks": {
      "total": 1,
      "passed": 1,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
