{
  "capability_id": "chemistry.solution.molarity",
  "tool_id": "molarity",
  "engine": "molarity",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T11:29:50.773Z",
  "engine_build": "2026-09-16",
  "test_count": 14,
  "passed": 14,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 1,
      "passed": 1
    },
    "boundary": {
      "total": 8,
      "passed": 8
    },
    "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/chemistry/molarity",
  "api": "https://www.calculatorx.com/api/v1/calc/molarity",
  "schema_input": "https://www.calculatorx.com/schemas/chemistry.solution.molarity.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/chemistry.solution.molarity.output.json",
  "assumptions": [
    "c = n/V",
    "C1·V1 = C2·V2",
    "Lab units mol, L, mol/L",
    "Not mole n=m/M",
    "Not ICE or Henderson–Hasselbalch"
  ],
  "limitations": [
    "Lab units mol, L, mol/L",
    "Not mole n=m/M or Avogadro",
    "Not ICE or Henderson–Hasselbalch",
    "Dilution needs exactly one of c1, v1, c2, v2 omitted"
  ],
  "boundary_conditions": [
    "molarity missing amount or volume → MISSING_REQUIRED_INPUT",
    "volume ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "dilution with 0 or 2+ omitted keys → INVALID_INPUT",
    "unknown mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "OpenStax Chemistry 2e — Molarity",
      "section": "Molarity",
      "url": "https://openstax.org/books/chemistry-2e/pages/3-3-molarity",
      "supports": "c = n/V relates amount, volume, and molar concentration",
      "kind": "reference"
    },
    {
      "title": "OpenStax Chemistry 2e — Dilution of Solutions",
      "section": "Dilution",
      "url": "https://openstax.org/books/chemistry-2e/pages/3-4-other-units-for-solution-concentrations",
      "supports": "C1·V1 = C2·V2 conserves solute amount on dilution",
      "kind": "reference"
    },
    {
      "title": "IUPAC Gold Book — concentration",
      "section": "amount concentration",
      "url": "https://goldbook.iupac.org/terms/view/A00295",
      "supports": "Amount concentration is amount of substance divided by volume",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:9094a5820952f71bc7e2c5d7d1b9484c4d53581cfc7e2334ab5ac65ee94d8208",
  "tests": [
    {
      "id": "golden-molarity",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "amount": 0.5,
        "volume": 0.25
      },
      "expect": {
        "molarity": 2,
        "amount": 0.5,
        "volume": 0.25,
        "model": "solution"
      },
      "expectWarning": null,
      "actual": {
        "mode": "molarity",
        "molarity": 2,
        "amount": 0.5,
        "volume": 0.25,
        "model": "solution"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-sol-amount",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "amount",
        "molarity": 2,
        "volume": 0.25
      },
      "expect": {
        "amount": 0.5
      },
      "expectWarning": null,
      "actual": {
        "mode": "amount",
        "molarity": 2,
        "amount": 0.5,
        "volume": 0.25,
        "model": "solution"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-sol-volume",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "volume",
        "amount": 0.5,
        "molarity": 2
      },
      "expect": {
        "volume": 0.25
      },
      "expectWarning": null,
      "actual": {
        "mode": "volume",
        "molarity": 2,
        "amount": 0.5,
        "volume": 0.25,
        "model": "solution"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-sol-dilution",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "dilution",
        "c1": 2,
        "v1": 0.05,
        "c2": 0.1
      },
      "expect": {
        "v2": 1,
        "solved_field": "v2"
      },
      "expectWarning": null,
      "actual": {
        "mode": "dilution",
        "c1": 2,
        "v1": 0.05,
        "c2": 0.1,
        "v2": 1,
        "solved_field": "v2",
        "model": "solution"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-sol-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "amount": 0,
        "volume": 1
      },
      "expect": {
        "molarity": 0
      },
      "expectWarning": null,
      "actual": {
        "mode": "molarity",
        "molarity": 0,
        "amount": 0,
        "volume": 1,
        "model": "solution"
      },
      "tol": 1e-18
    },
    {
      "id": "boundary-sol-V",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "amount": 0.5,
        "volume": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "volume must be greater than zero"
    },
    {
      "id": "boundary-sol-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "molarity",
        "volume": 0.25
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "amount is required"
    },
    {
      "id": "boundary-sol-all-four",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "dilution",
        "c1": 1,
        "v1": 1,
        "c2": 0.1,
        "v2": 1
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "dilution needs exactly one of c1, v1, c2, v2 omitted"
    },
    {
      "id": "boundary-sol-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "from_mass",
        "amount": 1,
        "volume": 1
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be molarity|amount|volume|dilution"
    },
    {
      "id": "property-sol-c",
      "ok": true,
      "kind": "property",
      "detail": "c=2",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-sol-n",
      "ok": true,
      "kind": "property",
      "detail": "n=cV",
      "expect": 0.5,
      "actual": 0.5
    },
    {
      "id": "property-sol-V",
      "ok": true,
      "kind": "property",
      "detail": "V=n/c",
      "expect": 0.25,
      "actual": 0.25
    },
    {
      "id": "property-sol-dil",
      "ok": true,
      "kind": "property",
      "detail": "C1V1=C2V2",
      "expect": 1,
      "actual": 1
    },
    {
      "id": "property-sol-model",
      "ok": true,
      "kind": "property",
      "detail": "solution",
      "expect": true,
      "actual": "solution"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 14,
      "total": 14,
      "golden": 1,
      "boundary": 8,
      "property": 5
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-16T11:18:24.767Z",
  "rendered_at": "2026-09-16T11:29:50.773Z",
  "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": "3d506ca4830d42b1a6317f81c2286b1f0e952ecd4aa3ae94fea8d84d569c2b26",
      "output_schema_sha256": "83faeefb90afae1f3fb3f4fd1b759e5375a64c62ab88e0e119c09a365cec92df",
      "evidence_sha256": "08906bcc7ef15c6e7b9f8ffb398b0df9de3228403a64ee679f780ed0d46d7f3e",
      "evidence_core_sha256": "08906bcc7ef15c6e7b9f8ffb398b0df9de3228403a64ee679f780ed0d46d7f3e",
      "capability_sha256": "50c1023df1cf7b25ce1a901afb1ca352574d70b9d3908fc959cb72c5fb3287ec",
      "engine_sha256": "962b388bf6ab964c25534c158f4effd05da87b7802057b995c26b059ee2f2a06",
      "mcp_contract_sha256": "eaab9a259f55e96fcf88ca76f89a5314de080a19cf54b6d1e4c6633c4574abcf"
    },
    "contract_checks": {
      "total": 3,
      "passed": 3,
      "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"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
