Compare workers using scores saved with their last completed primary PV,
and report the selected PV's saved score. Live root scores may belong to
secondary variations or interrupted searches. Ignore workers without a
completed primary PV.
Co-authored-by: Codex (GPT-6 Astra) <codex@openai.com>
Co-authored-by: GPT 6 <codex@openai.com>
Accept excludemoves alongside searchmoves and reject overlapping lists. Resolve exclusions into allowed legal roots for search, MultiPV, workers and policy evaluation, and preserve restrictions in the early-stop fallback. Refuse searches when exclusions leave no legal roots.
Document the extension and add UCI regressions covering ordering, overlap rejection, session recovery, castling, policy evaluation and immediate stops.
Validation: make dev IS_TEST=1; Python regression suite (109 tests, 5 skipped); git diff --check.
Co-authored-by: GPT 6 <codex@openai.com>
Show every legal move and its raw NNUE score, best first, for go eval and go nodes 1. Use a colored table in mixed mode and info string rows in UCI mode.
Co-authored-by: GPT 6 <codex@openai.com>
Restore the original section removed during the README restructure, immediately before Building and Installation.
Co-authored-by: GPT 6 <codex@openai.com>
Print adb device state and the emulator log when the Android x86-64 release job fails. This exposes startup errors hidden behind the readiness timeout without changing the engine validation or publishing gates.
Validation: workflow YAML and embedded shell syntax passed; diagnostic step executed with and without a log and with adb failing.
Co-authored-by: GPT 6.1 Sol <codex@openai.com>
Select the matching Clang, LLD and llvm-profdata binaries through the LLVM 18 bin directory on PATH. Keep CC=clang so the tagged Makefile passes a compiler family that Nim accepts instead of the invalid --cc:clang-18.
Validation: reproduced the reported Nim rejection; corrected Makefile smoke build passed using a versioned LLVM bin directory. All 33 release-tool tests passed, and workflow YAML plus embedded shell syntax validated.
Co-authored-by: GPT 6.1 Sol <codex@openai.com>
Reserve watch analysis and PV rows while the next engine starts reporting, including narrow panels and engines with different MultiPV counts. This prevents the clocks and controls from jumping when the previous search display is cleared.
Show the numeric eval label in watch mode and reserve its layout row. Retain the last live white-relative score across turn changes, keeping history browsing and fresh games separate.
Add terminal-buffer regressions for pending search info, panel widths, MultiPV, score labels and history isolation. Validated with make dev, the rendering and notation tests, UCI integration with Stockfish, and the Python unittest suite (99 tests, 5 skipped).
Co-authored-by: GPT 6 <codex@openai.com>
Read depth, nodes, speed, scores and principal variations from the second internal search manager when Heimdall plays Black. Keep primary-worker PV results separate from the watch worker's display.
Extend watch regressions to require internal engine info and a legal PV, covering both colors, built-in engine matches and mixed Stockfish games. The new check reproduced missing Black-side analysis before the fix.
Validated with make dev, focused TUI UCI tests with Stockfish, TUI notation tests and the Python unittest suite (99 tests, 5 skipped).
Co-authored-by: GPT 6 <codex@openai.com>
Recover 98eaf53 from feature/tui-external-uci-watch and adapt it to current TUI notation and transposition-table APIs. Preserve external engine options, pondering, live analysis and PGN metadata.
Handle engine EOF and initialization failures, reset channels before reuse, honor advertised Threads and Hash options, and document the watch commands. Add subprocess protocol and lifecycle regressions, including mixed-engine games and optional Stockfish coverage.
Validated with make dev IS_TEST=1, external UCI tests with Stockfish, TUI notation tests, the Python unittest suite (99 tests, 5 skipped), and Valgrind (no memory errors).
Co-authored-by: GPT 6 <codex@openai.com>
Default principal variations to SAN and add :set pvnotation san|uci, which can change during analysis. Format UCI castling with the king destination in standard chess and the rook origin in Chess960. Include check and mate suffixes for SAN castling.
Validation: make dev, focused TUI notation tests, and 95 Python tests passed (5 skipped).
Co-authored-by: GPT 6 <codex@openai.com>
Select tyrfing-12ksn network 77F0596E and set the multilayer
scale to 288. Update the documented default scale.
At scale 305, the 7,153,653-position Lichess comparison gives
absolute means 927.90 for master and 981.15 for the new network;
getScale yields 288.446721, rounded to 288.
Validation: make bench with 77F0596E at scale 288 gives 4979204
nodes at depth 13. Confirmed the network ID and compiled scale;
the 10,000-position absolute mean is 911.04. Runtime-check build,
full-book evaluation and Python regressions passed (5 skipped).
Network weights remain local pending separate publication.
Co-authored-by: GPT 6.1 Sol <codex@openai.com>
Invoke sdkmanager from ANDROID_HOME/cmdline-tools/latest/bin when
installing the NDK. Add the command-line and platform-tools directories
to GITHUB_PATH for later sdkmanager, avdmanager and adb commands.
Apply the fix to Android binary, correctness and release workflows.
Validation: reproduced exit 127 with SDK tools absent from PATH;
verified the corrected setup, persisted tool discovery and the installed
SDK CLI, including SDK paths containing spaces. Actionlint passed.
Co-authored-by: GPT 6.1 Sol <codex@openai.com>
Build ARM64 and x86-64 universal engines with production weights through
the existing NDK release helper. Upload binaries, SHA-256 checksums and
archives as Actions artifacts, and document how to download them.
Validation: actionlint and 33 release helper tests passed.
Co-authored-by: GPT 6.1 Sol <codex@openai.com>
Cross-compile standalone ARM64 and x86-64 engines with the Android NDK,
portable SIMD defaults, API 21 support and 16 KiB ELF page alignment.
Use plain UCI, portable allocation and scheduler placement on Android.
Build both ABIs in correctness CI and include their universal binaries,
checksums and archives in automatic releases. Verify Android production
benchmarks and UCI behavior in an emulator before publishing x86-64.
Retain desktop PGO and use optimized NDK/LTO cross-builds for Android.
Consume each UCI search completion exactly once so a queued reply cannot
unblock a later wait. Add build, release, device and completion regressions;
update the README and Android, build, SIMD and release guides.
Require coauthor attribution for every AI-assisted commit in AGENTS.md.
Co-authored-by: GPT 6.1 Sol <codex@openai.com>
Build release artifacts through the Makefile's profile generation, UCI training,
profile merging and optimized rebuild flow. Reject source Makefiles that would
silently skip PGO, and prepare matching LLVM tools on each release runner.
Train macOS slices independently, support portable SSE2 training for fixed x86
targets, handle MSYS2 profile paths, and stage external Linux network weights
for the training executable. Document the release requirements and add focused
regressions.
Validated Linux universal, external-network slice and SSE2-trained AVX2 builds
against the recorded bench, 62 focused Python tests, and workflow lint. Native
macOS and Windows execution remains for CI verification.
Co-authored-by: GPT 6.1 Sol <codex@openai.com>
Provide browser play and analysis, legal move interaction, position imports, history, and PGN export. Add Fischer time controls, whole-MiB hash sizing and clearing, and CPU-aware thread selection backed by on-demand Wasm workers.
Validated native/Wasm search agreement, Chromium play and analysis through 24 search threads, clock boundary tests, and Python regressions. Keep the developer UCI console available.
Build Nim through Emscripten using shared Makefile architecture settings. Provide a worker-based UCI analysis demo, isolated local server, browser resource limits, and build documentation.
Keep cancellation responsive during search startup, recover from malformed FEN commands, and handle 32-bit limits without changing native search results. Add Node/native comparisons and Chromium smoke tests for threaded searches, stop, TT resizing and shutdown.
Import SIMD diagnostics explicitly in the multilayer, NNUE and threat-update tests so scalar builds compile. Use an int64 random range in the primitive checks so wasm32 does not narrow its bounds to Natural.
Move build, testing, UCI and TUI details into focused guides while keeping the README concise and preserving the engine overview, ratings and credits.
Co-authored-by: GPT 5.6 Luna <codex@openai.com>
Select SIMD kernels at startup and share the AVX-512 packing layout across
scalar, x86 and NEON inference using CJ's packing schedule. Preserve the
canonical network file format and provide backend diagnostics and overrides.
Add universal release targets, including a combined macOS executable. Tag
releases publish only universal binaries; individual SIMD variants remain
available through manual workflow runs.
Validate native x86 backends, Windows/Wine and AArch64/QEMU, older CPU and
OS vector-state fallback, network export/reload, NNUE state and UCI searches.
Tyrfing passes 17731 state comparisons per native backend and the full bench.
AVX-512/VNNI execution and native macOS validation require suitable runners.
Unroll threat updates and rebuilds across four vectors on every SIMD
backend. Add a shared paired widening-load helper with full-register NEON
loads and a fallback using existing x86 primitives.
Use NEON SADALP and saturating even/odd byte products while preserving the
existing arithmetic contract. Reduce dot-loop register pressure on SSE2
and NEON to eliminate accumulator spills. Keep explicit PSQ unrolling on
SSE2, AVX2 and NEON, where measurements and code generation support it.
Add exhaustive byte-product and paired-load checks, PSQ wrapping/tail
oracles, and documentation of backend choices and arithmetic contracts.
Validation: shared correctness suites on scalar, SSE2, SSSE3, SSE4.1,
AVX2 and NEON under QEMU; tail-width checks; all selected engine builds;
AVX-512/VNNI compile and assembly checks; make dev and 49 Python/UCI tests.
Depth-13 bench remains 5551733 nodes. Eight paired fixed-node UCI runs on
a Ryzen 5900X show a 7.84% native AVX2 NPS gain (95% interval 7.37-8.32%)
with matching per-position nodes, depths and best moves. ARM is not timed
natively and AVX-512 is not executed on this host.
Co-authored-by: Codex (GPT-6 Astra) <codex@openai.com>
Add native Intel macOS/SSE2 and Apple Silicon/NEON Make targets with a
macOS 11 deployment target and Apple ld stack settings.
Build each release artifact in its own CI job. Manual dispatch selects one
target or platform and can publish it to an existing release tag, using
current workflow tooling with the exact tagged source. Give every target
its own checksum and archive so uploads leave other release assets intact.
Document source selection, Mac builds and adding artifacts to an existing
release without moving its tag.
Validation: actionlint, 13 release tests, all 15 target build plans and
both Mac convenience targets. Single-target Linux builds from current
and 1.5.1-dev source both matched bench 5551733. Native Mac compilation
still needs validation on GitHub runners.
Co-authored-by: Codex (GPT-6 Astra) <codex@openai.com>
Remove push and pull-request triggers from the correctness workflow and
document how to start it manually. Release workflows retain their tag
triggers.
Validation: actionlint and git diff --check. Engine code is unchanged.
Co-authored-by: Codex (GPT-6 Astra) <codex@openai.com>
Extend the existing vec* API with a shared x86 128-bit backend and a small
AArch64 NEON adapter, preserving integer arithmetic and inference layout.
SSE4.1 selects native int32 min/max and multiplication intrinsics.
Use feature-set names for Make targets and release artifacts, with CPU
tuning selected separately through TUNE. Preserve the historical download
guide in the README and scope the new names to versions after 1.5.0.
Add shared SIMD and inference tests, native ARM CI, minimum x86 CPU checks,
and Linux ARM release builds. Check full v3/v4 requirements before running
release benches.
Validation: all six scalar/SSE2/SSSE3/SSE4.1/AVX2/NEON correctness suites,
41 Python tests, production bench 5551733, workflow lint and release dry
runs. NEON also passes under QEMU Cortex-A53, including full-engine perft
and single-/four-thread searches.
Co-authored-by: Codex (GPT-6 Astra) <codex@openai.com>
Clamp depth-scaled bonuses and compute complete history updates in int32,
narrowing only the final value to int16. Apply continuation-history gravity
to each individual entry so its value remains bounded. Keep table layouts
unchanged and use the same helper for quiet and capture histories.
Add the matetrack overflow position as a UCI regression. It fails on the
old checked binary; the fixed engine also completes a 1M-node reproduction.
Checked and optimized make dev builds pass, as do all 36 Python tests and
a checked 280-position matetrack run without runtime failures.
Eight paired timed UCI runs measured -0.06% NPS change, with a 95% bootstrap
interval of [-1.98%, +1.92%]. Playing strength has not been tested.
Co-authored-by: Codex (GPT-6 Astra) <codex@openai.com>