{
  "capability_id": "math.algebra.linear_equation",
  "tool_id": "linear-equation",
  "engine": "linear-equation",
  "calculation_version": "1.5.0",
  "generated_at": "2026-09-20T09:07:29.779Z",
  "engine_build": "2026-09-20",
  "test_count": 18,
  "passed": 18,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 7,
      "passed": 7
    },
    "boundary": {
      "total": 3,
      "passed": 3
    },
    "property": {
      "total": 8,
      "passed": 8
    }
  },
  "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",
    "Not a quadratic inequality",
    "Not a linear system",
    "Not CAS",
    "a = 0 and b = rhs → infinite (equation)",
    "a = 0 and b ≠ rhs → inconsistent (equation)",
    "a = 0 inequality → ℝ or ∅",
    "|ax+b|=rhs is mode=abs; rhs < 0 → empty",
    "|ax+b| ○ rhs is mode=abs_inequality; rhs < 0 → ℝ or ∅",
    "(ax+b)/(cx+d)=rhs is mode=rational; pole x=−d/c excluded; identically 0 denominator → INVALID_INPUT",
    "(ax+b)/(cx+d) ○ rhs is mode=rational_inequality; pole excluded; identically 0 denominator → INVALID_INPUT"
  ],
  "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:377665020e0dc7814f58864ebd93118f1ea85ee2e7d982d8842b8ccfc1e4df2e",
  "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, inequality, abs, abs_inequality, rational, or rational_inequality. Not quadratic, not a system, not CAS."
    },
    {
      "id": "golden-ineq-lt",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "inequality",
        "a": 2,
        "b": 3,
        "rhs": 11,
        "op": "lt"
      },
      "expect": {
        "status": "interval",
        "bound": 4,
        "sense": "lt"
      },
      "expectWarning": null,
      "actual": {
        "a": 2,
        "b": 3,
        "rhs": 11,
        "mode": "inequality",
        "op": "lt",
        "op_symbol": "<",
        "sense": "lt",
        "sense_symbol": "<",
        "x": 4,
        "bound": 4,
        "status": "interval",
        "interval": "(-∞, 4)",
        "formula": "x < (rhs − b) / a"
      },
      "tol": null
    },
    {
      "id": "golden-ineq-flip",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "inequality",
        "a": -2,
        "b": 3,
        "rhs": 11,
        "op": "lt"
      },
      "expect": {
        "status": "interval",
        "bound": -4,
        "sense": "gt"
      },
      "expectWarning": null,
      "actual": {
        "a": -2,
        "b": 3,
        "rhs": 11,
        "mode": "inequality",
        "op": "lt",
        "op_symbol": "<",
        "sense": "gt",
        "sense_symbol": ">",
        "x": -4,
        "bound": -4,
        "status": "interval",
        "interval": "(-4, ∞)",
        "formula": "a < 0 flips <"
      },
      "tol": null
    },
    {
      "id": "golden-ineq-all",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "inequality",
        "a": 0,
        "b": 5,
        "rhs": 6,
        "op": "lt"
      },
      "expect": {
        "status": "all"
      },
      "expectWarning": null,
      "actual": {
        "a": 0,
        "b": 5,
        "rhs": 6,
        "mode": "inequality",
        "op": "lt",
        "op_symbol": "<",
        "sense": "lt",
        "x": null,
        "bound": null,
        "status": "all",
        "interval": "ℝ",
        "formula": "0·x + b < rhs"
      },
      "tol": null
    },
    {
      "id": "golden-ineq-empty",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "inequality",
        "a": 0,
        "b": 5,
        "rhs": 5,
        "op": "lt"
      },
      "expect": {
        "status": "empty"
      },
      "expectWarning": null,
      "actual": {
        "a": 0,
        "b": 5,
        "rhs": 5,
        "mode": "inequality",
        "op": "lt",
        "op_symbol": "<",
        "sense": "lt",
        "x": null,
        "bound": null,
        "status": "empty",
        "interval": "∅",
        "formula": "0·x + b < rhs"
      },
      "tol": null
    },
    {
      "id": "boundary-ineq-op",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "inequality",
        "a": 2,
        "b": 3,
        "rhs": 11,
        "op": "=="
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "op must be <, ≤, >, or ≥."
    },
    {
      "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
    },
    {
      "id": "property-ineq-lt",
      "ok": true,
      "kind": "property",
      "detail": "2x+3<11 → x<4",
      "expect": 4,
      "actual": 4
    },
    {
      "id": "property-ineq-flip",
      "ok": true,
      "kind": "property",
      "detail": "−2x+3<11 flips",
      "expect": -4,
      "actual": -4
    },
    {
      "id": "property-ineq-all",
      "ok": true,
      "kind": "property",
      "detail": "0x+1<2 → ℝ",
      "expect": "all",
      "actual": "all"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 18,
      "total": 18,
      "golden": 7,
      "boundary": 3,
      "property": 8
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-20T01:32:35.605Z",
  "rendered_at": "2026-09-20T09:07:29.779Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.5.0",
    "artifacts": {
      "engine": "1.5.0",
      "page": "1.5.0",
      "capability": "1.5.0",
      "evidence": "1.5.0",
      "input_schema": "1.5.0",
      "output_schema": "1.5.0",
      "mcp_contract": "1.5.0"
    },
    "digests": {
      "input_schema_sha256": "40dae8e6c190a5c2c1b6a5d66bf0a4a6f7ae46fecbfb3a4205af090f245b5a64",
      "output_schema_sha256": "0b79e6418d826e2e9bacc475f70a48c725f1d5ec68406d2b296ffaba119bd227",
      "evidence_sha256": "266d9be62d3f33caeef778177f880319ba39e35acfa9d98b8a041730459e86a7",
      "evidence_core_sha256": "266d9be62d3f33caeef778177f880319ba39e35acfa9d98b8a041730459e86a7",
      "capability_sha256": "62b5894dd616fe83a9da4d9c0e4b3163208ab73f8c6b7017ee375fd6851a762a",
      "engine_sha256": "43bbc25ec362b3f78daa612fef9a96df34206649b79e753faa7f17441d59b17a",
      "mcp_contract_sha256": "bf0dcfcfd80680efd201a229fab7f7a80ba9abbff3bea07815672d1d5cb2435a"
    },
    "contract_checks": {
      "total": 4,
      "passed": 4,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.5.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"
  }
}
