Exhaustive audit report
Audit status: complete · Release: 2.3.0 published 2026-11-30 · Tag commit: 3088b47
Audit complete does not mean every Wave C candidate is stable. The audit verifies that the implemented surfaces behave as documented. The 2.3.0 release candidate ships all three waves together as an alpha-inclusive release: the six scientific gaps below remain explicit, and the candidates that have not passed the promotion gate in the v2 roadmap stay experimental. The current published version is
2.3.0, released from tagv2.3.0(commit3088b47).
This is the consolidated entry point for the function-by-function audit of sci-form. The raw evidence is intentionally kept in three registries:
- Library audit — one row for every Rust/Python/WASM library surface (
LIB-001…LIB-182). - CLI audit — one row for every CLI command (
CLI-001…CLI-120). - Surface audit — every documentation page, the export inventories and the cross-surface reconciliation.
The PASS-row revalidation log is generated by actually executing every PASS row. The commit log records the full audit history (211 commits).
What was audited
| Surface | Count | Result |
|---|---|---|
| CLI commands | 120 | 96 FIXED, 24 PASS |
| Library rows (Rust/Python/WASM) | 182 | 173 FIXED, 9 PASS |
| Documentation content pages | 123 | 54 FIXED, 69 PASS |
| Rust root API names | 120 | all indexed and reconciled |
Python __all__ names (audited build) | 178 | every name resolves |
| WASM exports | 240 | every name defined |
| Audit/meta pages added | 2 | this report + commit log |
The strict inventory reconciliation is 0 Rust / 0 Python / 0 WASM names without an explicit audit row. Aliases and the *_seed64, *_typed and *_wasm spellings are attributed to their canonical rows.
Protocol used for every item
Each row was checked individually; no PASS row was accepted as a group.
- Inventory. Confirm the name exists in the Rust/Python/WASM/CLI inventory and identify aliases and deprecated spellings.
- Behaviour. Run it on a real geometry and assert the published numeric values, not only the exit status.
- Limits. Exercise zero, negative, NaN/Inf, wrong length, wrong element, empty input and unsupported combinations.
- Error contract. Check the documented exception/error type on every surface (
ValueError,{error: ...},SciFormError, CLI exit code). - Parity. Compare Rust, Python, WASM and CLI output where the surface exists; record any intentional difference.
- Documentation. Check the page, equations, schema, examples, links, anchors, images and Mermaid diagrams against the source.
- Regression test. Add or expand a test that would fail on the defect; do not just update prose.
- Evidence. Record the observed values and test names in the owning
LIB-*/CLI-*row.
scripts/audit/revalidate_pass_rows.py repeats the protocol for every PASS row: 14 library checks and 24 CLI checks, each with its named test/command and published-value assertions.
Workstreams and outcomes
1. Inventory and reconciliation
- Indexed 120 Rust root functions, 178 Python
__all__entries and 240 WASM exports. - Reconciled every name against
LIB-*rows and the CLI catalogue. - Final result: 0 / 0 / 0 unindexed names.
- Added checked/unchecked Rust contracts where historical bare functions were intentionally permissive (
create_unit_cell,write_cif).
2. CLI — 120/120
- 96 commands were corrected and 24 were already
PASS. - Every row documents the command, category, owning page, behaviour, limits, measured values and tests.
- The executable catalogue is
crates/cli/src/catalog.tsv; the regression test runs all 120 commands and compares published values. CLI-051(neb-gradient) verifies energy/gradient consistency acrossuff,mmff94,pm3,xtb,gfn1,gfn2andhf3c.
3. Library — 182/182
The registry covers force fields, conformers, EHT/DFT/semi-empirical methods, spectroscopy, materials, periodic systems, kinetics, reaction paths and the alpha/beta wrappers. Representative defect classes:
| Class | Example fix | Evidence |
|---|---|---|
| Panics on short coordinates | Python wrappers sliced chunks(3) without checking 3N | many LIB-* rows |
| Silent overflow/truncation | negative u8 elements, usize truncation, NaN in JSON | LIB-155, LIB-172 |
| Wrong force-field topology | single-fragment parser dropped disconnected components | LIB-117, LIB-180, LIB-182 |
| Wrong units | eV/Ha/kcal, Bohr/Å and gradient conversions audited | LIB-147, LIB-155 |
| Empty/zero systems | zero-atom molecules and zero-step optimizers rejected | LIB-001, LIB-011 |
| Missing result fields | payload fields missing on one binding | LIB-001, LIB-012 |
| Stale API/docs | wrong signatures, schema names and anchors | surface audit |
| Numeric limits | non-finite EDL/GCS/Arrhenius/DOS outputs | LIB-168, LIB-181 |
Full details, including the exact measured numbers, are in the library audit.
4. Documentation — 123 content pages
- 54 pages corrected, 69 already
PASS. - Checked links, anchors, images, equations, API names and Mermaid syntax.
- Added conceptual pages where they were missing (for example periodic molecules, molecular dynamics, metal topology).
- Every corrected page is listed in the surface audit.
- The docs build is a release gate; the final build completed in 51.81 s.
5. WebGPU and browser harness
- Created
crates/wasm/examples/vite-webgpu-hybrid/. - Chrome 158 /
BrowserWebGpu,iterations=3: 12/12 comparisons passed. - ESP max abs diff:
1.13e-6(water),3.35e-7(benzene). - Orbital-grid max abs diff:
1.19e-7,2.46e-7. - Fixed the missing
min_distanceuniform and the CPU0.1 Åclamp; both paths now use the shared singularity guard. - Details: WebGPU validation, LIB-181.
6. 3D reaction dynamics — quantitative gates
The 3D path was the final open item. It now has two ASE 3.30 NEB parity gates and a geometric contract for the non-barrier frames.
| Gate | Surface | Rust | ASE | Difference | Tolerance |
|---|---|---|---|---|---|
| Butane torsion | UFF | 3.231756647224 kcal/mol | 3.248789188474 kcal/mol | 0.0170 | 0.05 |
CC=O -> C=C-O tautomerisation | PM3 | 12.6314 kcal/mol | 12.6695 kcal/mol | 0.0381 | 0.10 |
The PM3 gate is a connectivity-changing reaction: PM3 depends only on elements and coordinates, so bonds can form and break. It passes both with fixed ASE-minimised endpoints and through the default endpoint-relaxation and atom-mapping pipeline.
Defects found and fixed in this phase:
- The CI-NEB line search accepted any finite trial below
1e6, allowing uphill steps; it now uses the NEB band objective for regular images and a bounded rise for the climbing image. - Periodic
redistribute_imagescorrupted connectivity-changing bands; the pass was removed (the spring force already maintains spacing). - Trial geometries with any atom pair closer than
0.6 Åare rejected. - The product endpoint is rigid-body aligned to the reactant before NEB.
- Non-isomorphic reactions use identity mapping when the element sequences match, otherwise heavy-atom Kabsch plus hydrogen-parent preservation.
- UFF/MMFF now reject connectivity-changing reactions explicitly; PM3, GFN1, GFN2, xTB and HF-3c are supported.
compute_approach_dynamicsnow keeps every disconnected component (from_smiles_all), is ordered far→contact, and returnsreaction_energy_kcal_mol = 0as documented.
The approach frames are pinned to exact energies/separations in tests/fixtures/reaction_dynamics_3d/approach_contract.json; departure frames are checked by departure_dynamics_separates_products (Cl–Br separation 1.94 → 6.67 Å). There are no active quantitative exclusions; see scope boundaries.
7. PASS-row revalidation
Every PASS row is re-executed individually by scripts/audit/revalidate_pass_rows.py:
- 14 library checks (Python, Rust and WASM).
- 24 CLI checks using the exact catalogue examples.
- 0 failures; the generated log is pass-revalidation.
Test and build evidence
| Gate | Command | Result |
|---|---|---|
| Core library | cargo test --profile numeric -p sci-form --lib --features <audited set> | 1279 passed, 3 ignored |
| 3D reaction dynamics | cargo test --profile numeric -p sci-form --features alpha-reaction-dynamics --test alpha_reaction_dynamics_3d | 45 passed |
| 3D robustness | ... --test reaction_dynamics_robustness | 4 passed |
| CLI | cargo test --profile numeric -p sci-form-cli --features alpha-kinetics | 55 passed |
| Python integration | pytest tests/integration/test_python_integration.py | 159 passed |
| Node/WASM | npm test | 130 passed |
| PASS revalidation | python scripts/audit/revalidate_pass_rows.py | 14 + 24, 0 failures |
| Documentation | npm run docs:build | build complete, 51.81 s |
| WebGPU harness | Chrome 158 / BrowserWebGpu | 12/12 comparisons |
Reproduction
# Core library (audited feature set)
cargo test --profile numeric -p sci-form --lib --features \
'parallel alpha-dft alpha-reaxff alpha-mlff alpha-obara-saika alpha-cga \
alpha-gsm alpha-sdr alpha-dynamics-live alpha-imd alpha-edl \
alpha-periodic-linear alpha-kinetics alpha-render-bridge \
alpha-reaction-dynamics alpha-v2 beta-kpm beta-mbh beta-randnla \
beta-riemannian beta-cpm'
# 3D gates
cargo test --profile numeric -p sci-form --features alpha-reaction-dynamics \
--test alpha_reaction_dynamics_3d
cargo test --profile numeric -p sci-form --features alpha-reaction-dynamics \
--test reaction_dynamics_robustness
# CLI
cargo test --profile numeric -p sci-form-cli --features alpha-kinetics
# Python / WASM
pytest tests/integration/test_python_integration.py
npm test
# PASS rows (build the CLI with the features used by the catalogue first)
cargo build --profile numeric -p sci-form-cli \
--features 'alpha-kinetics alpha-render-bridge alpha-gsm'
python scripts/audit/revalidate_pass_rows.py
# ASE fixtures
python scripts/validation/ase_neb_reference.py
python scripts/validation/ase_neb_reference.py --calculator pm3 \
--reactant 'CC=O' --product 'C=C-O' --product-mapping '0,1,2,5,3,4,6' \
--out tests/fixtures/reaction_dynamics_3d/tautomerization_pm3_ase.json
# Docs
npm run docs:buildRelease readiness: Wave C
The audit and the release decision are separate gates. The audit says the prototypes are testable and their current contracts are documented. The roadmap says they are not promoted.
| Candidate | Current state | Still required before promotion |
|---|---|---|
| V2-01 Hybrid DFT | Restricted PBE0 prototype | unrestricted/range-separated DFT, gradients, PySCF parity |
| V2-02 RI-MP2 | Conventional MP2 prototype | RI, SCS/SOS, local correlation, parity |
| V2-06 XPS/XANES | Koopmans XPS prototype | ΔSCF, XANES, benchmarks |
| V2-07 3D-RISM | OZ/KH core + solvent models | real solvent, excess chemical potential, benchmark |
| V2-15 All-nuclide NMR | registry + driver | SCF reuse, basis/ECP coverage, benchmarks |
Additional release blockers:
docs/v2-roadmap.mdrecords that no Wave C candidate has a row inreports/validation/summary.jsonyet; adding the oracle gate is part of promotion.- The release candidate checklist is release-checklist-2.3; the workspace is at
2.3.0onrelease/v2.3. - The six gaps mean this is an alpha-inclusive release, not a blanket stable promotion. F82 (GSM Müller-Brown path choice) is a known alpha limitation and is ignored in the default gate.
- The promotion gate requires an oracle with written tolerance/confidence, a documented failure mode, Rust/Python/CLI examples, docs + diagram + validation row, a reproducible benchmark, and no regression.
- The audit report therefore marks the code as audit-complete and the published release as alpha-inclusive, not a blanket stable promotion.
If the goal is an alpha/pre-release snapshot rather than a stable promotion, that is a separate release decision; it still needs a versioned checklist, a wheel/WASM/npm build and an explicit “alpha” label.
Boundaries and non-claims
- Alpha/beta modules remain gated and may change API shape. The audit does not promote them to stable.
- The ASE gates validate the NEB algorithm and numerical path on the same UFF/PM3 surfaces; they do not claim that UFF or PM3 is a quantitative physical method for every reaction.
- Approach/departure frames are geometric scans. They are validated against their documented frame/energy contract, not as transition-state barriers. See scope boundaries.
- A path with
neb_converged=falseis exploratory; its energy profile must not be reported as a quantitative barrier. - ReaxFF is not used as a 3D NEB backend in this audit; PM3 supplies the connectivity-changing gate. ReaxFF has its own gradient/energy validation.
- The 3D path remains Rust-only. Python/WASM expose the 1D path and the simplified NEB.
- WebGPU parity was measured on Chrome 158 with
BrowserWebGpu; the harness skips cleanly when that backend is unavailable.
Artifact map
| Artifact | Purpose |
|---|---|
| library-audit | 182 per-function rows with numbers, limits, docs and tests |
| functional-audit | 120 CLI rows |
| surface-audit | 123 content pages, exports and reconciliation |
| pass-revalidation | generated execution log for all PASS rows |
| scope-exclusions | quantitative scope and non-claims |
| commit-log | 211 audit commits |
tests/fixtures/reaction_dynamics_3d/ | UFF/PM3/approach fixtures |
scripts/validation/ase_neb_reference.py | reproducible ASE NEB reference generator |
scripts/audit/revalidate_pass_rows.py | per-row PASS gate |
Final checklist
- [x] 120/120 CLI commands audited.
- [x] 182/182 library rows audited.
- [x] 0/0/0 inventory reconciliation.
- [x] 123/123 content pages checked (+2 meta pages).
- [x] All
PASSrows re-executed individually. - [x] UFF same-topology ASE gate.
- [x] PM3 connectivity-changing ASE gate.
- [x] Endpoint relaxation, mapping and approach/departure contracts.
- [x] No active quantitative exclusions.
- [x] Core, 3D, robustness, CLI, Python, Node, PASS and docs gates green.