# ChessBest R3 engine assets — LAB R&D release evidence (2026-10-12)

The machine-readable `engine-assets.json` records exact byte sizes and SHA-256 for every local file. The JS/WASM bytes were **not rebuilt**; they are pinned published builds, verified against the publishers' release digests and donor manifest.

## Stockfish Full

- `stockfish@19.0.1`, tag `v19.0.1` (`0d5dd7944f88c817c07a26bc4fb1905d5f9c46d6`), [official release](https://github.com/nmrugg/stockfish.js/releases/tag/v19.0.1). The npm tarball is `https://registry.npmjs.org/stockfish/-/stockfish-19.0.1.tgz`; its `package/bin/stockfish-19.js` and `.wasm` are the **threaded Full** pair; `stockfish-19-single.js` and `.wasm` are **Full single-thread**. The hashes in the manifest match the release API digest for each file. All matching pairs must stay side by side and be served as JS and `application/wasm`. The threaded file itself spawns same-script Emscripten pthread Workers, so no separate worker JS asset is needed.
- Full network `nn-1a298aa575a0.nnue`, SHA-256 `1a298aa575a085434d29027978dc36867fe9c5bcea9376654b7a8eba1e52dfc2`, 98,511,183 bytes, is embedded in the WASM by `build.js`. The full digest and size are the [official network repository's LFS pointer](https://github.com/official-stockfish/networks/blob/master/nn-1a298aa575a0.nnue). That repository says its author-uploaded networks are [CC0](https://github.com/official-stockfish/networks/blob/master/LICENSE); there is no separate network HTTP request at engine startup. Stockfish engine code is GPL-3.0; `stockfish/Copying.txt` is from the npm package.
- Exact upstream source snapshot: `stockfish-v19.0.1-source.tar.gz` from `https://codeload.github.com/nmrugg/stockfish.js/tar.gz/refs/tags/v19.0.1`. It has build scripts and engine source but not the separately maintained NNUE bytes; `make net` fetches them by the `src/evaluate.h` name, verifies the SHA prefix, and `build.js` embeds the net. Include the official network by its full digest (or an exact reachable source) alongside this source snapshot when making a distribution-ready corresponding-source bundle.
- UCI `Threads` on the threaded build advertises max 32 and processed `Threads=2` in smoke; the single build advertises max 1 and requires no COOP/COEP. The threaded build requires the page and same-origin worker resources to be cross-origin isolated. The `stockfish-19.js` worker accepts `postMessage('uci')`, `position ...`, `go ...`, `stop`, `quit`; emits plain UCI string lines.
- Existing baseline only: `stockfish@18.0.0` `package/src/stockfish-18-lite-single.js` and `.wasm` from `https://registry.npmjs.org/stockfish/-/stockfish-18.0.0.tgz`, hashes in manifest matching ChessBest's pinned SF18 Lite. Preserve that pair unchanged in the LAB.

## Berserk 14

- Donor [manthedan/0x88](https://github.com/manthedan/0x88) at `5b8d6c930168cd645dd34d646055f303fae2b5b1`, specifically its [release manifest](https://github.com/manthedan/0x88/blob/5b8d6c930168cd645dd34d646055f303fae2b5b1/public/berserk/berserk-emscripten-single-thread.manifest.json). Upstream [jhonnold/berserk](https://github.com/jhonnold/berserk) tag 14, commit `8ae895a6151695be4a50d4fb65b0c131659c513a`, GPL-3.0. Donor built with Emscripten 5.0.7-git, `patches/berserk-emscripten.patch`, tablebases disabled. This release uses the scalar pair `berserk-emscripten.js`/`.wasm` and the automatically fetched original author NNUE in the versioned directory; no duplicate `.data` payload is published. A sanitized code-only corresponding-source archive preserves the exact upstream code, patch and build recipe, with all NNUE files excluded. The exact original network is published separately alongside that archive, verified before use, and retained in origin-local IndexedDB where available (session RAM fallback). Author: Jay Honnold; license text: `berserk/LICENSE`.
- The 25,201,924-byte `.data` preload is the verbatim full `berserk-9b84c340af7e.nn` network, SHA-256 `9b84c340af7e45f6e07f0046235ccb327f4ae0840c8ee2c4b97b99121e5c5084`, originally at `https://github.com/jhonnold/berserk-networks/releases/download/networks/berserk-9b84c340af7e.nn`. The author also publishes this exact network in the [official Berserk 14 engine release](https://github.com/jhonnold/berserk/releases/download/14/berserk-9b84c340af7e.nn). The tagged GPL build fetches and embeds it. R3 distributes it as an input of this GPL engine package, using the source-bound interpretation recorded in `CHESSBEST_BERSERK_NNUE_RESEARCH_20261012_R1.md`. A separate standalone network LICENSE was not found in that research; this notice does not claim otherwise.
- Emscripten exports a synchronous `command()` facade: instantiate `Berserk({locateFile,print,printErr})`, then `module.ccall('command', null, ['string'], [uciCommand])`. `berserk/berserk-host.js` is a same-origin classic Web Worker adapter around this exact contract, accepting and emitting plain UCI strings. Its `go` call blocks its own event loop, so `stop` cannot be observed during search. For a bounded cancellation call `hostWorker.terminate()`, invalidate that job generation immediately, and construct a new Worker for a later search. SIMD is not multithreading. Despite an upstream UCI option advertising Threads max 2048, this compiled build's **effective search threads are 1**.

## Bounded execution evidence

- `node berserk-smoke-donor.mjs --js berserk/berserk-emscripten.js --depth 2`: startpos bestmove `d2d4`, Italian FEN bestmove `e1g1`, `info depth 2`, ~0.7 seconds, no stderr.
- `node smoke-stockfish.mjs stockfish/stockfish-19-single.js 1` and `... stockfish-19.js 2`: each reports genuine SF19 UCI ID, Threads option, depth 3 info, `bestmove e2e4`; no stderr.
- `node browser-smoke.cjs`: Chromium 153 with a plain page and isolated page; in each, Full SF + Berserk start `go movetime 1200` on the exact same `position startpos moves e2e4 e7e5 g1f3 b8c6 f1c4`. Both emit overlapping `info` before either `bestmove` and independent UCI IDs/PVs. Plain page reports `crossOriginIsolated=false` with Full single Threads max 1. Isolated page reports `crossOriginIsolated=true` with Full MT Threads max 32; selection 2 emits 3 SF child Worker creation events in addition to the host, demonstrating an actual pthread worker tree. A second long search uses `stop` for SF and host `terminate()` for Berserk. A 3.5-second observation window saw zero remaining engine Web Workers and zero CDP worker targets after teardown in both cases. Browser termination is asynchronous under active synchronous WASM, so manager generation invalidation must precede teardown; do not promise immediate physical resource release at the `terminate()` call.
- Local smoke uses an npm-bundled Chromium binary. Install `@sparticuz/chromium@153.0.0` under `browser-deps/` to rerun in this container, and ensure `playwright` is resolvable. `browser-smoke.cjs` inflates the bundled binary only; it does not rely on Playwright CDN downloads.

The live GitHub Pages origin cannot run SF pthread WASM unless its actual response headers provide COOP/COEP. A committed `_headers` file by itself does not establish that hosting behavior. The feature candidate may honestly use Full single there while a separate authorized isolation hosting change is assessed.

Public release: see BERSERK_NETWORK_STATUS.md. The original NNUE is served lazily from `berserk/v14-5b8d6c93/berserk-9b84c340af7e.manifest.json` and its three exact-byte parts, alongside GPL notices and the exact code/build archive. It is excluded from PWA startup precaching.

## R8 public engine additions

Reckless and LCZero NN / Maia1900 / browser PUCT are separately versioned browser components. Their exact binaries, model, source and license notices are available in [Public free operations](../engines/PUBLIC_FREE_OPERATIONS.md), with [Reckless source offer](../engines/reckless/v0.10.0-a6fa482c-r8/SOURCE.md) and [LCZero model/source/build notices](../engines/lc0/v0.32.1-maia1900-r8/README.md). Searches remain on the visitor device; no runtime CDN, paid API or BD host is required.
