{
  "capability_id": "math.algebra.linear_equation",
  "tool_id": "linear-equation",
  "engine": "linear-equation",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:38:08.874Z",
  "engine_build": "2026-09-16",
  "test_count": 10,
  "passed": 10,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 3,
      "passed": 3
    },
    "boundary": {
      "total": 2,
      "passed": 2
    },
    "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/linear-equation",
  "api": "https://www.calculatorx.com/api/v1/calc/linear-equation",
  "schema_input": "https://www.calculatorx.com/schemas/math.algebra.linear_equation.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.algebra.linear_equation.output.json",
  "assumptions": [
    "Degree 1 only",
    "Not quadratic"
  ],
  "limitations": [
    "Not ax² + bx + c = 0 — use /calc/math/quadratic",
    "a = 0 and b = rhs → infinite",
    "a = 0 and b ≠ rhs → inconsistent"
  ],
  "boundary_conditions": [
    "missing a or rhs → MISSING_REQUIRED_INPUT",
    "unknown mode → INVALID_MODE"
  ],
  "sources": [
    "ISO 80000-2:2019 Quantities and units — Mathematics"
  ],
  "methods": [],
  "fingerprint": "sha256:625b632dd227a8917a61c3d5144aa87d27b1691d352ce4fdcebc48038f8b6516",
  "tests": [
    {
      "id": "golden-linear",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "a": 2,
        "b": 3,
        "rhs": 11
      },
      "expect": {
        "x": 4,
        "status": "success"
      },
      "expectWarning": null,
      "actual": {
        "a": 2,
        "b": 3,
        "rhs": 11,
        "x": 4,
        "status": "success",
        "formula": "x = (rhs − b) / a",
        "mode": "solve"
      },
      "tol": null
    },
    {
      "id": "golden-linear-infinite",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "a": 0,
        "b": 5,
        "rhs": 5
      },
      "expect": {
        "status": "infinite"
      },
      "expectWarning": null,
      "actual": {
        "a": 0,
        "b": 5,
        "rhs": 5,
        "x": null,
        "status": "infinite",
        "formula": "0·x + b = rhs",
        "mode": "solve"
      },
      "tol": null
    },
    {
      "id": "golden-linear-empty",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "a": 0,
        "b": 5,
        "rhs": 6
      },
      "expect": {
        "status": "inconsistent"
      },
      "expectWarning": null,
      "actual": {
        "a": 0,
        "b": 5,
        "rhs": 6,
        "x": null,
        "status": "inconsistent",
        "formula": "0·x + b = rhs",
        "mode": "solve"
      },
      "tol": null
    },
    {
      "id": "boundary-linear-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "a": 2
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter rhs."
    },
    {
      "id": "boundary-linear-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "quadratic",
        "a": 2,
        "b": 3,
        "rhs": 11
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be solve."
    },
    {
      "id": "property-linear-x",
      "ok": true,
      "kind": "property",
      "detail": "2x+3=11 → 4",
      "expect": 4,
      "actual": 4
    },
    {
      "id": "property-linear-third",
      "ok": true,
      "kind": "property",
      "detail": "3x=1",
      "expect": 0.3333333333333333,
      "actual": 0.333333333333
    },
    {
      "id": "property-linear-id",
      "ok": true,
      "kind": "property",
      "detail": "0x+2=2",
      "expect": "infinite",
      "actual": "infinite"
    },
    {
      "id": "property-linear-none",
      "ok": true,
      "kind": "property",
      "detail": "0x+2=3",
      "expect": "inconsistent",
      "actual": "inconsistent"
    },
    {
      "id": "property-linear-neg",
      "ok": true,
      "kind": "property",
      "detail": "−x+4=1",
      "expect": 3,
      "actual": 3
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 10,
      "total": 10,
      "golden": 3,
      "boundary": 2,
      "property": 5
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-16T14:46:01.365Z",
  "rendered_at": "2026-09-16T22:38:08.874Z",
  "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": "073d67f036a9182b4438fc26a94975a3f907bda5b4e6ac3ee8795cc97521a06b",
      "output_schema_sha256": "6a31a1fe8a9ae6ccc4855daf8c7eed4ce6b953981237bee5a92e96cfa1b45ea9",
      "evidence_sha256": "69e7e7e58de1932f593c8b29d8ac7d5a0db5db8889ed180ae7b0e0b9f9b4e6c9",
      "evidence_core_sha256": "69e7e7e58de1932f593c8b29d8ac7d5a0db5db8889ed180ae7b0e0b9f9b4e6c9",
      "capability_sha256": "3bf11cc0af986767ac82a7f00188eab83284ca1854ebbd28a29daff2fdbe4aa1",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 4,
      "passed": 4,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
