{
  "capability_id": "chemistry.acid_base.ph",
  "tool_id": "ph",
  "engine": "ph",
  "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": 7,
      "passed": 7
    },
    "property": {
      "total": 6,
      "passed": 6
    }
  },
  "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/ph",
  "api": "https://www.calculatorx.com/api/v1/calc/ph",
  "schema_input": "https://www.calculatorx.com/schemas/chemistry.acid_base.ph.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/chemistry.acid_base.ph.output.json",
  "assumptions": [
    "pH = −log10[H+]",
    "pOH = −log10[OH−]",
    "Kw = 1e-14 at 25 °C",
    "Not Henderson–Hasselbalch",
    "Not ICE or activity coefficients"
  ],
  "limitations": [
    "Kw = 1e-14 at 25 °C (not temperature-dependent)",
    "Not Henderson–Hasselbalch buffer pH",
    "Not ICE, activity coefficients, or polyprotic"
  ],
  "boundary_conditions": [
    "ph_from_h missing h → MISSING_REQUIRED_INPUT",
    "h ≤ 0 or oh ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "unknown mode → INVALID_MODE",
    "hh_ph is not a mode on this page"
  ],
  "sources": [
    {
      "title": "OpenStax Chemistry 2e — pH and pOH",
      "section": "pH and pOH",
      "url": "https://openstax.org/books/chemistry-2e/pages/14-2-ph-and-poh",
      "supports": "pH = −log10[H3O+]; pOH = −log10[OH−]; pH + pOH = 14 at 25 °C",
      "kind": "reference"
    },
    {
      "title": "IUPAC Gold Book — pH",
      "section": "pH",
      "url": "https://goldbook.iupac.org/terms/view/P04524",
      "supports": "pH is defined from hydrogen-ion activity; dilute water uses −log10[H+]",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:3db329ddc99d9bae43c2fe3739f1a31e12a724fc11607b4b62bc926b5341c1f7",
  "tests": [
    {
      "id": "golden-ph",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "ph_from_h",
        "h": 0.001
      },
      "expect": {
        "pH": 3,
        "pOH": 11,
        "model": "water_ion_product"
      },
      "expectWarning": null,
      "actual": {
        "mode": "ph_from_h",
        "pH": 3,
        "h": 0.001,
        "pOH": 11,
        "oh": 1e-11,
        "Kw": 1e-14,
        "pKw": 14,
        "T_C": 25,
        "model": "water_ion_product"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-ph-from-ph",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "h_from_ph",
        "pH": 3
      },
      "expect": {
        "pH": 3
      },
      "expectWarning": null,
      "actual": {
        "mode": "h_from_ph",
        "pH": 3,
        "h": 0.001,
        "pOH": 11,
        "oh": 1e-11,
        "Kw": 1e-14,
        "pKw": 14,
        "T_C": 25,
        "model": "water_ion_product"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-ph-poh-oh",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "poh_from_oh",
        "oh": 0.001
      },
      "expect": {
        "pOH": 3,
        "pH": 11
      },
      "expectWarning": null,
      "actual": {
        "mode": "poh_from_oh",
        "pH": 11,
        "h": 1e-11,
        "pOH": 3,
        "oh": 0.001,
        "Kw": 1e-14,
        "pKw": 14,
        "T_C": 25,
        "model": "water_ion_product"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-ph-from-poh",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "ph_from_poh",
        "pOH": 11
      },
      "expect": {
        "pH": 3
      },
      "expectWarning": null,
      "actual": {
        "mode": "ph_from_poh",
        "pH": 3,
        "h": 0.001,
        "pOH": 11,
        "oh": 1e-11,
        "Kw": 1e-14,
        "pKw": 14,
        "T_C": 25,
        "model": "water_ion_product"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-ph-poh-from-ph",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "poh_from_ph",
        "pH": 3
      },
      "expect": {
        "pOH": 11
      },
      "expectWarning": null,
      "actual": {
        "mode": "poh_from_ph",
        "pH": 3,
        "h": 0.001,
        "pOH": 11,
        "oh": 1e-11,
        "Kw": 1e-14,
        "pKw": 14,
        "T_C": 25,
        "model": "water_ion_product"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-ph-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "h": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "h must be greater than zero"
    },
    {
      "id": "boundary-ph-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "ph_from_h"
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "h is required"
    },
    {
      "id": "boundary-ph-hh",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "hh_ph",
        "pKa": 5,
        "HA": 0.1,
        "A": 0.1
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be ph_from_h|h_from_ph|poh_from_oh|oh_from_poh|ph_from_poh|poh_from_ph"
    },
    {
      "id": "property-ph-from-h",
      "ok": true,
      "kind": "property",
      "detail": "pH=3",
      "expect": 3,
      "actual": 3
    },
    {
      "id": "property-ph-poh",
      "ok": true,
      "kind": "property",
      "detail": "pH+pOH=14",
      "expect": 11,
      "actual": 11
    },
    {
      "id": "property-ph-h",
      "ok": true,
      "kind": "property",
      "detail": "[H+]=10^(−pH)",
      "expect": 0.001,
      "actual": 0.001
    },
    {
      "id": "property-ph-oh",
      "ok": true,
      "kind": "property",
      "detail": "pOH=3",
      "expect": 3,
      "actual": 3
    },
    {
      "id": "property-ph-sum",
      "ok": true,
      "kind": "property",
      "detail": "pH=14−pOH",
      "expect": 3,
      "actual": 3
    },
    {
      "id": "property-ph-model",
      "ok": true,
      "kind": "property",
      "detail": "water_ion_product",
      "expect": true,
      "actual": "water_ion_product"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 14,
      "total": 14,
      "golden": 1,
      "boundary": 7,
      "property": 6
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-16T11:27:17.156Z",
  "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": "aa1d41479ee00f117f3801fcbb95513c05cf476041c9a429aeb81387e33a0bbb",
      "output_schema_sha256": "9e6b732828f2878b79d7197921d719923b25926ab207aac316866b2cb13dee5b",
      "evidence_sha256": "0d9ae4f2ed22b6b472ac52500eaab3408479290a76b8f9d997e8ee47d5ab120d",
      "evidence_core_sha256": "0d9ae4f2ed22b6b472ac52500eaab3408479290a76b8f9d997e8ee47d5ab120d",
      "capability_sha256": "32929974fbc4bed27a241d04fff62ba92c5597bdf08041e72897c426bc4b57ad",
      "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"
  }
}
