# Phase 123 completion evidence

Phase 123's checklist was audited against the implementation and executable
release surfaces on 2026-07-13. The audit found and closed five locally
actionable gaps that were hidden by the fully checked markdown list:

- all nine TypeScript projects lacked an executable strict type-check target;
- production declaration builds inherited composite solution boundaries and
  failed with TS6307 when a Phase 123 package imported `@kalika/transport`;
- every phase-local lint target failed on the checked-in sources (70 errors and
  two warnings), including unsafe non-null assertions and an empty interface;
- the configured test executor was deprecated and emitted a removal warning; and
- the advertised native implementation was incomplete: transport declared a Node
  N-API/browser WASM pipeline without either binding, while the optical,
  magnetic, spintronic, and topological Rust kernels named by the phase had no
  Rust workspace at all.

The TypeScript projects now have independent strict type-check and
declaration-safe production configs, clean lint surfaces, and the supported Nx
Vitest executor. The native implementation now includes:

- N-API and WASM transport bindings with shared boundary validation for Onsager
  moments, tetrahedron DOS, and combined scattering rates;
- Rust transport kernels for Fourier/Wannier assembly, Jones-Zener
  magnetotransport, polar-optical scattering, and iterative BTE solution;
- parallel Rust independent-particle dielectric and SHG/THG reductions;
- seeded classical-Heisenberg Metropolis Monte Carlo;
- parallel Berry-curvature and intrinsic spin-Hall Kubo sums; and
- lattice-Chern/Wilson-loop invariants plus Sancho-Rubio surface Green
  functions.

## Automated verification

- `pnpm exec nx run-many -t build -p @kalika/transport @kalika/thermoelectric @kalika/optical-response @kalika/magnetism @kalika/spintronics @kalika/topology-materials @kalika/piezoelectric @kalika/elastic @kalika/thermal-properties --parallel=1 --nxBail --skip-nx-cache`
  — all nine production ESM and declaration builds passed with their two shared
  dependency builds.
- Strict `tsc -p <project>/tsconfig.typecheck.json --noEmit` checks passed for
  all nine projects.
- ESLint over all nine `src` trees passed with `--max-warnings=0`.
- `pnpm exec nx run-many -t test -p @kalika/transport @kalika/thermoelectric @kalika/optical-response @kalika/magnetism @kalika/spintronics @kalika/topology-materials @kalika/piezoelectric @kalika/elastic @kalika/thermal-properties --parallel=1 --nxBail --skip-nx-cache`
  — all nine test targets passed; direct Vitest execution reports 208 TypeScript
  unit, benchmark, and cross-module integration tests passing.
- V8 coverage execution passed for every project. Statement coverage was 75.30%
  transport, 94.78% thermoelectric, 82.98% optical response, 80.76% magnetism,
  89.13% spintronics, 80.29% topology, 90.99% piezoelectric, 92.33% elastic, and
  96.87% thermal properties.
- `cargo test --workspace` passed in all five Rust workspaces: 21 transport,
  five optical-response, two magnetism, two spintronics, and two topology tests
  (32 total).
- `cargo clippy --workspace --all-targets -- -D warnings` passed in the four new
  Rust workspaces; transport passed the same gate with `--all-features`.
- Release Rust builds passed for all five workspaces.
- `cargo check --workspace --all-features` passed for transport's combined N-API
  and WASM feature surface.
- `cargo build --workspace --release --features napi` passed, and the produced
  native addon was loaded by Node and exercised across all three exports.
- `wasm-pack build --release --target web --features wasm` passed, and Node
  instantiated the generated web module and exercised all three exports.
- `git diff --check` passed. Searches found no unchecked Phase 123 item,
  placeholder marker, ignored Rust test, or skipped/todo TypeScript test.

The phase's solid-state optics implementation remains named
`@kalika/optical-response` because `@kalika/optics` is the pre-existing
photonics library; this intentional collision avoidance is documented in its
public barrel and path mapping.
