Engineering Notes

Research & Architecture

Technical notes on UCI engine orchestration, WebAssembly performance, and move classification methodology.

2026-12-01·Analysis Research

Why a Sacrifice Is Not Automatically Brilliant

How MultiPV gap analysis, non-forced move filters, and post-sacrifice soundness prevent false positives in automated game review.

Automated chess review systems often over-reward obvious recaptures or unsound desperado checks. Checkmate Lab requires MultiPV >= 2 during full-game review so the classifier can measure whether alternative lines fail while confirming the sacrifice keeps at least equality.

2026-11-24·Performance Engineering

Single-Thread vs Multi-Thread WASM Stockfish in Modern Browsers

Understanding Cross-Origin Isolation (COOP/COEP credentialless), SharedArrayBuffer, and graceful fallback to single-threaded NNUE WASM.

Multi-threaded Emscripten builds rely on SharedArrayBuffer, which browsers lock behind Cross-Origin Isolation headers. Checkmate Lab emits credentialless COEP headers while probing self.crossOriginIsolated at runtime, automatically routing isolated sessions to multi-threaded Stockfish 19 and non-isolated sandboxes to Stockfish 19 Lite Single-Thread.

2026-11-15·Evaluation Math

Win-Probability Loss vs. Raw Centipawn Loss

Why measuring swings in expected winning chances aligns far better with practical chess decisions than raw centipawn thresholds.

Losing 150 centipawns from +0.2 to -1.3 often decides a game, whereas losing 150 centipawns from +9.5 to +8.0 changes almost nothing about the outcome. Using a calibrated logistic win-probability curve keeps Mistake, Blunder, and Missed Win detection consistent across opening, middlegame, and endgame phases.

View Complete Classification Formulas →