{
  "capability_id": "chemistry.mole.amount",
  "tool_id": "mole",
  "engine": "mole",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T11:29:50.772Z",
  "engine_build": "2026-09-16",
  "test_count": 12,
  "passed": 12,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 1,
      "passed": 1
    },
    "boundary": {
      "total": 6,
      "passed": 6
    },
    "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/mole",
  "api": "https://www.calculatorx.com/api/v1/calc/mole",
  "schema_input": "https://www.calculatorx.com/schemas/chemistry.mole.amount.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/chemistry.mole.amount.output.json",
  "assumptions": [
    "n = m/M",
    "N = n·N_A",
    "N_A = 6.02214076e23 (CODATA 2018 exact)",
    "Lab units g, g/mol, mol",
    "Not molarity or dilution",
    "Not ICE or Henderson–Hasselbalch"
  ],
  "limitations": [
    "Lab units g, g/mol, mol",
    "Not molarity c=n/V or dilution C1V1=C2V2",
    "Not ICE or Henderson–Hasselbalch",
    "Does not rewrite /convert/chemistry pair pages"
  ],
  "boundary_conditions": [
    "from_mass missing mass or molar_mass → MISSING_REQUIRED_INPUT",
    "molar_mass ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "unknown mode → INVALID_MODE",
    "mass, amount, or particles < 0 → VALUE_OUT_OF_RANGE"
  ],
  "sources": [
    {
      "title": "CODATA 2018 — Avogadro constant",
      "section": "N_A",
      "url": "https://physics.nist.gov/cgi-bin/cuu/Value?na",
      "supports": "N_A = 6.02214076×10²³ mol⁻¹ exactly",
      "kind": "standard"
    },
    {
      "title": "IUPAC Gold Book — mole",
      "section": "amount of substance",
      "url": "https://goldbook.iupac.org/terms/view/M03980",
      "supports": "The mole is the SI unit of amount of substance; n = N/N_A",
      "kind": "standard"
    },
    {
      "title": "OpenStax Chemistry 2e — Formula Mass and the Mole Concept",
      "section": "The mole",
      "url": "https://openstax.org/books/chemistry-2e/pages/3-1-formula-mass-and-the-mole-concept",
      "supports": "n = m/M relates mass, molar mass, and amount",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:918c2cd3d6d266c310adc012f344657de4fdd9694b530d52df415bcb5c7c9f7d",
  "tests": [
    {
      "id": "golden-mole",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mass": 36.03,
        "molar_mass": 18.015
      },
      "expect": {
        "amount": 2,
        "mass": 36.03,
        "molar_mass": 18.015,
        "model": "mole"
      },
      "expectWarning": null,
      "actual": {
        "mode": "from_mass",
        "amount": 2,
        "mass": 36.03,
        "molar_mass": 18.015,
        "particles": 1.204428152e+24,
        "N_A": 6.02214076e+23,
        "model": "mole"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mole-mass",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "to_mass",
        "amount": 2,
        "molar_mass": 18.015
      },
      "expect": {
        "mass": 36.03,
        "amount": 2
      },
      "expectWarning": null,
      "actual": {
        "mode": "to_mass",
        "amount": 2,
        "mass": 36.03,
        "molar_mass": 18.015,
        "particles": 1.204428152e+24,
        "N_A": 6.02214076e+23,
        "model": "mole"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mole-particles",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "from_particles",
        "particles": 6.02214076e+23
      },
      "expect": {
        "amount": 1
      },
      "expectWarning": null,
      "actual": {
        "mode": "from_particles",
        "amount": 1,
        "particles": 6.02214076e+23,
        "N_A": 6.02214076e+23,
        "model": "mole"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mole-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mass": 0,
        "molar_mass": 18.015
      },
      "expect": {
        "amount": 0,
        "particles": 0
      },
      "expectWarning": null,
      "actual": {
        "mode": "from_mass",
        "amount": 0,
        "mass": 0,
        "molar_mass": 18.015,
        "particles": 0,
        "N_A": 6.02214076e+23,
        "model": "mole"
      },
      "tol": 1e-18
    },
    {
      "id": "boundary-mole-M",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mass": 1,
        "molar_mass": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "molar_mass must be greater than zero"
    },
    {
      "id": "boundary-mole-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "from_mass",
        "molar_mass": 18.015
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "mass is required"
    },
    {
      "id": "boundary-mole-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "molarity",
        "amount": 1
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be from_mass|to_mass|from_particles|to_particles"
    },
    {
      "id": "property-mole-n",
      "ok": true,
      "kind": "property",
      "detail": "n=2",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-mole-N",
      "ok": true,
      "kind": "property",
      "detail": "N/N_A=2",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-mole-mass",
      "ok": true,
      "kind": "property",
      "detail": "m=nM",
      "expect": 36.03,
      "actual": 36.03
    },
    {
      "id": "property-mole-from-N",
      "ok": true,
      "kind": "property",
      "detail": "n=N/N_A",
      "expect": 1,
      "actual": 1
    },
    {
      "id": "property-mole-model",
      "ok": true,
      "kind": "property",
      "detail": "mole",
      "expect": true,
      "actual": "mole"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 12,
      "total": 12,
      "golden": 1,
      "boundary": 6,
      "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.772Z",
  "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": "446cb7098c493ddb19c213a7e8351cb097c88380d70fb82df400f723f3fee47a",
      "output_schema_sha256": "11fcce728bbcce0364c2ba921aa449c52d35083022aadbadb7572a6f0be7a129",
      "evidence_sha256": "ed6d2400a3780668ee416fb760e59dff3ef66180094d815627e002e0229d3520",
      "evidence_core_sha256": "ed6d2400a3780668ee416fb760e59dff3ef66180094d815627e002e0229d3520",
      "capability_sha256": "e543d686a1d0a94a68fdfdf768f95262dbd83772d56b8ddaaa385f3234699611",
      "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"
  }
}
