Skip to content

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 tag v2.3.0 (commit 3088b47).

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 ​

SurfaceCountResult
CLI commands12096 FIXED, 24 PASS
Library rows (Rust/Python/WASM)182173 FIXED, 9 PASS
Documentation content pages12354 FIXED, 69 PASS
Rust root API names120all indexed and reconciled
Python __all__ names (audited build)178every name resolves
WASM exports240every name defined
Audit/meta pages added2this 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.

  1. Inventory. Confirm the name exists in the Rust/Python/WASM/CLI inventory and identify aliases and deprecated spellings.
  2. Behaviour. Run it on a real geometry and assert the published numeric values, not only the exit status.
  3. Limits. Exercise zero, negative, NaN/Inf, wrong length, wrong element, empty input and unsupported combinations.
  4. Error contract. Check the documented exception/error type on every surface (ValueError, {error: ...}, SciFormError, CLI exit code).
  5. Parity. Compare Rust, Python, WASM and CLI output where the surface exists; record any intentional difference.
  6. Documentation. Check the page, equations, schema, examples, links, anchors, images and Mermaid diagrams against the source.
  7. Regression test. Add or expand a test that would fail on the defect; do not just update prose.
  8. 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 across uff, mmff94, pm3, xtb, gfn1, gfn2 and hf3c.

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:

ClassExample fixEvidence
Panics on short coordinatesPython wrappers sliced chunks(3) without checking 3Nmany LIB-* rows
Silent overflow/truncationnegative u8 elements, usize truncation, NaN in JSONLIB-155, LIB-172
Wrong force-field topologysingle-fragment parser dropped disconnected componentsLIB-117, LIB-180, LIB-182
Wrong unitseV/Ha/kcal, Bohr/Å and gradient conversions auditedLIB-147, LIB-155
Empty/zero systemszero-atom molecules and zero-step optimizers rejectedLIB-001, LIB-011
Missing result fieldspayload fields missing on one bindingLIB-001, LIB-012
Stale API/docswrong signatures, schema names and anchorssurface audit
Numeric limitsnon-finite EDL/GCS/Arrhenius/DOS outputsLIB-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_distance uniform and the CPU 0.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.

GateSurfaceRustASEDifferenceTolerance
Butane torsionUFF3.231756647224 kcal/mol3.248789188474 kcal/mol0.01700.05
CC=O -> C=C-O tautomerisationPM312.6314 kcal/mol12.6695 kcal/mol0.03810.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_images corrupted 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_dynamics now keeps every disconnected component (from_smiles_all), is ordered far→contact, and returns reaction_energy_kcal_mol = 0 as 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 ​

GateCommandResult
Core librarycargo test --profile numeric -p sci-form --lib --features <audited set>1279 passed, 3 ignored
3D reaction dynamicscargo test --profile numeric -p sci-form --features alpha-reaction-dynamics --test alpha_reaction_dynamics_3d45 passed
3D robustness... --test reaction_dynamics_robustness4 passed
CLIcargo test --profile numeric -p sci-form-cli --features alpha-kinetics55 passed
Python integrationpytest tests/integration/test_python_integration.py159 passed
Node/WASMnpm test130 passed
PASS revalidationpython scripts/audit/revalidate_pass_rows.py14 + 24, 0 failures
Documentationnpm run docs:buildbuild complete, 51.81 s
WebGPU harnessChrome 158 / BrowserWebGpu12/12 comparisons

Reproduction ​

bash
# 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:build

Release 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.

CandidateCurrent stateStill required before promotion
V2-01 Hybrid DFTRestricted PBE0 prototypeunrestricted/range-separated DFT, gradients, PySCF parity
V2-02 RI-MP2Conventional MP2 prototypeRI, SCS/SOS, local correlation, parity
V2-06 XPS/XANESKoopmans XPS prototypeΔSCF, XANES, benchmarks
V2-07 3D-RISMOZ/KH core + solvent modelsreal solvent, excess chemical potential, benchmark
V2-15 All-nuclide NMRregistry + driverSCF reuse, basis/ECP coverage, benchmarks

Additional release blockers:

  • docs/v2-roadmap.md records that no Wave C candidate has a row in reports/validation/summary.json yet; adding the oracle gate is part of promotion.
  • The release candidate checklist is release-checklist-2.3; the workspace is at 2.3.0 on release/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=false is 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 ​

ArtifactPurpose
library-audit182 per-function rows with numbers, limits, docs and tests
functional-audit120 CLI rows
surface-audit123 content pages, exports and reconciliation
pass-revalidationgenerated execution log for all PASS rows
scope-exclusionsquantitative scope and non-claims
commit-log211 audit commits
tests/fixtures/reaction_dynamics_3d/UFF/PM3/approach fixtures
scripts/validation/ase_neb_reference.pyreproducible ASE NEB reference generator
scripts/audit/revalidate_pass_rows.pyper-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 PASS rows 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.

Released under the MIT License.