953 Commits
Author SHA1 Message Date
nocturn9x 398f787c7e Yeet silly debug easter egg to use faster autovec repetition comparisons + clang LTO black magic (bench 5611448) 2026-11-02 14:38:30 +01:00
nocturn9x 08ee2b6193 Double check zobrist collisions using our position stack (bench 5611448) 2026-11-02 13:47:44 +01:00
nocturn9xandCodex 18368e693b Use completed PV scores when selecting workers (bench 5611448)
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>
2026-11-02 13:42:53 +01:00
nocturn9xandGPT 6 36c7e2cc2f Add excludemoves UCI root restriction (bench 5611448)
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>
2026-11-02 13:19:46 +01:00
nocturn9xandGPT 6 73cffc62a9 Print ranked NNUE evaluations in policy mode (bench 5611448)
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>
2026-11-02 13:19:46 +01:00
nocturn9xandGPT 6 c08be2674d Restore AI usage notes in README (bench 5611448)
Restore the original section removed during the README restructure, immediately before Building and Installation.

Co-authored-by: GPT 6 <codex@openai.com>
2026-11-02 13:19:46 +01:00
nocturn9xandGPT 6.1 Sol 26030466fb Expose Android release emulator failures (bench 5611448)
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>
2026-10-27 21:31:11 +01:00
nocturn9xandGPT 6.1 Sol df2929f946 Fix Linux release compiler selection (bench 5611448)
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>
2026-10-27 21:29:57 +01:00
nocturn9xandGPT 6.1 Sol 1823d90e63 Prepare Heimdall 1.5.2 (bench 5611448)
Synchronize the Makefile and Nimble versions and document changes since 1.5.1, including Remiel, search fixes, TUI improvements, Android downloads, browser support and PGO release builds.

Validation: Linux AMD64 universal PGO build and UCI identity passed; depth-13 bench matched 5611448 nodes. Python regressions passed (102 tests, 4 Android skips) with umask 022. Remiel matched the pinned Git LFS checksum; packaged executable and archive contents verified.

Co-authored-by: GPT 6.1 Sol <codex@openai.com>
1.5.2
2026-10-27 21:22:04 +01:00
nocturn9x 1af8d35347 In honor of the most beautiful creature I've ever known. (bench 5611448) 2026-10-27 21:17:08 +01:00
nocturn9x 82e6bd251a Switch to tyrfing-v2 (bench 5611448) 2026-10-27 16:20:14 +01:00
nocturn9x a010d9ec3b Fix edge case bugs in MultiPV/searchmoves behavior (partial assistance by GPT 6.1 sol for finding the deduplication and MultiPV bugs) (bench 5551733) 2026-10-20 18:40:57 +02:00
nocturn9xandGPT 6 54df4c8f4e Keep the TUI watch panel stable between turns (bench 5551733)
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>
2026-10-19 18:19:15 +02:00
nocturn9xandGPT 6 111515d6b7 Fix built-in Black engine info in TUI watch mode (bench 5551733)
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>
2026-10-19 18:11:05 +02:00
nocturn9xandGPT 6 da028f273e Recover external UCI engines in TUI watch mode (bench 5551733)
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>
2026-10-19 17:46:00 +02:00
nocturn9xandGPT 6 45e9eb5f10 Use SAN PVs and correct castling notation in the TUI (bench 5551733)
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>
2026-10-14 11:15:36 +02:00
nocturn9xandGPT 6.1 Sol d4149b7149 Switch to tyrfing-12ksn (bench 4979204)
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>
2026-10-12 13:00:32 +02:00
nocturn9xandGPT 6.1 Sol 709abaf119 Fix Android SDK tool discovery on hosted runners (bench 5551733)
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>
2026-10-08 12:05:53 +02:00
nocturn9xandGPT 6.1 Sol 76e2ca366e Add a manual workflow for Android binaries (bench 5551733)
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>
2026-10-08 12:01:10 +02:00
nocturn9xandGPT 6.1 Sol 63f6a211fd Add Android UCI builds, CI and release downloads (bench 5551733)
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>
2026-10-08 11:56:15 +02:00
nocturn9xandGPT 6.1 Sol 243b61e051 Require PGO for release binaries and architecture slices (bench 5551733)
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>
2026-10-05 17:50:57 +02:00
nocturn9x b01abe9bef Add Wasmdall chess website with clocks and engine controls (bench 5551733)
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.
2026-10-04 23:59:21 +02:00
nocturn9x 4bbd4149ec Add browser engine with Wasm SIMD and pthread UCI (bench 5551733)
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.
2026-10-04 20:44:34 +02:00
nocturn9x 90dcf69b3e Fix standalone tests for scalar and 32-bit builds (bench 5551733)
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.
2026-10-04 20:43:22 +02:00
nocturn9xandGPT-6 Astra 51b07a2d18 Document direct executable downloads and Unix permissions (bench 5551733)
Co-authored-by: GPT-6 Astra <codex@openai.com>
1.5.1
2026-09-21 11:51:00 +02:00
nocturn9xandGPT-6 Astra 6cbd68cd01 Make Linux fallback instructions explicit in download documentation (bench 5551733)
Co-authored-by: GPT-6 Astra <codex@openai.com>
2026-09-21 11:46:14 +02:00
nocturn9xandGPT-6 Astra 00871d8699 Publish standalone Linux fallbacks in automatic releases (bench 5551733)
Co-authored-by: GPT-6 Astra <codex@openai.com>
2026-09-21 11:36:06 +02:00
nocturn9xandGPT-6 Astra e71ae8970c Clarify Linux universal builds, fallback downloads and testing (bench 5551733)
Co-authored-by: GPT-6 Astra <codex@openai.com>
2026-09-21 11:35:08 +02:00
nocturn9xandGPT-6 Astra 1a12e3ad71 Ship one Linux universal executable with shared network weights (bench 5551733)
Co-authored-by: GPT-6 Astra <codex@openai.com>
2026-09-21 11:30:12 +02:00
nocturn9x a570d38c2b Pass Microsoft-style syntax when building under MSVC on Windows (bench 5551733) 2026-09-14 22:15:39 +02:00
nocturn9xandGPT 5.6 Luna 12903ac97a Restructure README documentation (bench 5551733)
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>
2026-09-12 22:15:49 +02:00
nocturn9x baa5e82c16 Mark runtime SIMD target declarations as used (bench 5551733) 2026-09-12 22:15:48 +02:00
nocturn9x 14a248638b Respect node limits after verification searches (bench 5551733) 2026-09-12 22:15:48 +02:00
nocturn9x a12eacea82 Guard InvalidCmpOp pragma on older Nim compilers (bench 5551733) 2026-09-12 22:15:48 +02:00
nocturn9x 872dba5219 Explicitly silence or resolve all unnecessary hints/warnings 2026-09-12 19:59:42 +02:00
nocturn9x d602d7e2c1 Clarify universal binaries are available after 1.5 (bench 5551733) 2026-09-12 02:42:08 +02:00
nocturn9x 5dde49ed0c Simplify universal executable selection guide (bench 5551733) 2026-09-12 02:34:11 +02:00
nocturn9x 59699841f5 Add universal runtime SIMD binaries (bench 5551733)
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.
2026-09-12 02:30:32 +02:00
nocturn9xandCodex b182e53f83 Optimize SIMD row updates and NEON dots (bench 5551733)
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>
2026-09-12 01:43:58 +02:00
nocturn9xandCodex 8a812ae6b3 Add Mac targets and independent release jobs (bench 5551733)
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>
2026-09-12 00:13:58 +02:00
nocturn9xandCodex 9e16ed867d Run SIMD correctness CI only on manual dispatch (bench 5551733)
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>
2026-09-11 23:51:12 +02:00
nocturn9xandCodex 660fea4a56 Add SSE2, SSSE3, SSE4.1 and NEON backends (bench 5551733)
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>
2026-09-11 23:50:26 +02:00
nocturn9xandCodex b7bfe4c8e6 Bound history updates without widening tables (bench 5551733)
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>
2026-09-11 09:56:11 +02:00
nocturn9x d72809cf69 Always clamp variation count to the number of legal moves (bench 5247438) 2026-09-11 01:29:27 +02:00
nocturn9x e8a2611a88 Ensure MultiPV searches don't exclude best moves across ID iterations (bench 5247438) 2026-09-11 01:24:52 +02:00
nocturn9x 7c418f2f9b Print lowerbound and upperbound mates correctly (bench 5247438) 2026-09-11 01:18:41 +02:00
nocturn9x 5f2b6dca57 Clean up some of the more inconsequential AI assistance notes (bench 5247438) 2026-09-10 14:20:48 +02:00
nocturn9x 6a313a2c41 Windows is fucking weird bro (bench 5247438) 2026-09-10 10:48:50 +02:00
nocturn9x fa63f28c19 Switch to TI net (tyrfing) (bench 5247438) 2026-09-10 10:35:14 +02:00
nocturn9x 17f8102a9b Finalize TI inference (SIMD & scalar). Currently using pawnocchio's arch (bench 5834033) 2026-09-09 21:53:51 +02:00