Tests and the gate

D-34

Tests seed the game through the window port, never by editing NetHack: CODEX_SEED sets the seed and a fixed clock, and players keep NetHack's own randomness.

In full

Tests seed the game through the window port, never by editing NetHack: `CODEX_SEED` sets the seed and a fixed clock, and players keep NetHack's own randomness. Seeding without editing NetHack: build.rs recompiles libnh's own libnhmain.c (its sys_random_seed renamed) and calendar.c (its one time() call made codex_time() by a force-included header, csrc/codex_clock.h) from the build copy with the library's flags, and puts them back in the archive. The window port defines sys_random_seed and codex_time: with CODEX_SEED they return the seed and a fixed instant, without it they call the originals (players keep /dev/urandom and per-level reseeding). One mechanism on macOS and Linux, with only the C compiler. Revised 2026-10-29: the first version weakened the two symbols with objcopy, which macOS CI showed cannot work there (Xcode 26 ships no llvm-objcopy, and LLVM's objcopy reports success but does not weaken Mach-O symbols). Rejected: the brief's time-based fallback (changes players' RNG behavior); --redefine-sym (leaves calendar.o's own calls on the real clock); requiring llvm-tools (a step for Mac users, and it still cannot weaken Mach-O). Settled by the director, 2026-11-17 (D-130): kept as decided.

Things it governs

The lexicon names no thing under this decision.