Eve library

Phase 122 completion evidence

Tracker

Revision 1

On this page

Historical task source. The Eve task board holds current task state.

Phase 122's checklist was audited against the current implementation on 2026-07-13. The audit found and closed four locally actionable release gaps:

  • the declared TypeScript type-check target used a composite build config that followed workspace aliases into sibling source trees and failed with TS6307;
  • the production declaration build inherited the same incompatible composite boundary;
  • the configured 85% branch-coverage threshold was not actually passing; and
  • the advertised N-API/WASM dual Rust surface had no N-API module and no WASM export, so enabling napi failed to compile and wasm exposed no kernel.

The library now has an independent strict type-check config, a declaration-safe production config, and focused edge-path coverage for defect notation, supercells, surface reconstruction, charge states, chemical-potential spaces, adsorption/catalysis, transition-state verification, KMC, and radiation damage. The Rust periodic Voronoi kernel is exported through validated Node N-API and browser WASM boundaries, with serializable vertices, faces, volumes, and neighbour lists. Both feature surfaces are checked by an Nx target.

Automated verification#

  • pnpm exec vitest run --config libs/kalika/defects/vitest.config.ts --coverage — 29 files and 263 tests passed; statements 95.52%, branches 85.23%, functions 96.91%, and lines 96.64%.
  • pnpm exec nx run @kalika/defects:type-check --skip-nx-cache — passed.
  • pnpm exec nx run @kalika/defects:lint --skip-nx-cache — passed with no warnings or errors.
  • pnpm exec nx run @kalika/defects:build --skip-nx-cache — the production ESM and declaration build passed with all six required dependency builds.
  • cargo test --workspace in libs/kalika/defects/rust — 18 tests passed.
  • cargo check --workspace --all-features — the combined N-API and WASM feature set passed.
  • cargo build --workspace --release --features napi — the release native addon compiled.
  • wasm-pack build --release --target web --out-dir ../../target/wasm-pack crates/defects-core --features wasm — the optimized web package compiled and generated TypeScript bindings.

No unchecked item, placeholder implementation marker, ignored test, or phase-local unverified build surface remains in TODOS/phase-122.md or libs/kalika/defects.