[1.4.6] - 2026-12-02
Documentation
- Documented 9/9 platform packages and protocol contract headers in README.
[1.4.5] - 2026-12-02
Fixed
- Windows MinGW64
strlcpy/strlcatShims (include/nd/xy.h): - Added
static inlineBSDstrlcpy/strlcatcompatibility shims under#ifdef _WIN32ininclude/nd/xy.hso all downstreamnd-*game modules callingstrlcpy()compile cleanly on Windows MinGW64 (winget/Scoop).
[1.4.4] - 2026-12-02
Added
- Standalone NeverDark XY Protocol Contract Headers (
include/nd/{region-types,regions,world-types,world,xy-types,xy}.h): - Shipped the pure ISO-C XY hook declaration headers (
<nd/xy.h>,<nd/xy-types.h>,<nd/world.h>,<nd/world-types.h>,<nd/regions.h>,<nd/region-types.h>) alongside<nd/law.h>so all 20 standalonend-*game module packages compile independently on every platform without requiring the in-treend-world/nd-regionsource tree (host C implementation stays 100% pure law). - Added a
_WIN32random()->((long)rand())compatibility macro ininclude/nd/xy.hfor Windows MinGW64 builds of downstreamnd-*modules.
[1.4.3] - 2026-12-02
Added
- Windows (
winget+ Scoop) Port (src/law_io.c,Makefile,.github/workflows/ci.yml): - Guarded
<sys/select.h>under#ifndef _WIN32insrc/law_io.c(<ttypt/axil.h>provides<winsock2.h>andFD_SETSIZE), addedLDLIBS-libaxil-nd-Windows := -lstele -lws2_32andLDFLAGS-libaxil-nd-Windows := -Wl,--export-all-symbols, and enabledwingetin CI (9/9platforms).
[1.4.2] - 2026-12-02
Added
- Arch Linux & Mobile Static Libraries (
.github/workflows/ci.yml): - Enabled Arch Linux (
pacman), Android (android-lib:arm64-v8a,x86_64), and iOS (ios-lib:arm64, simulator, universalaxil-nd.xcframework+ SwiftPM) packaging and publishing.
[1.4.1] - 2026-12-02
Fixed
- Standalone Build & Test Portability (
Makefile): - Fixed
art/.stampshell loop returning exit status 1 when no sibling../nd-*/artdirectories exist, and guarded the monorepotest.shintegration suite inmake testwhen sibling../nd-objis absent.
[1.4.0] - 2026-12-02
Added
- In-RAM
player_ref -> fdHash Map &nd_player_is_ws(src/law_io.c,include/nd/law.h): - Added an in-RAM
player_ref -> fdhash map (pfd_map_*) and O(1)fd_to_player[]lookup fast path infd_player(), avoiding per-callcorm_getlookups on hot I/O paths. - Exported
XY_DECL(int, nd_player_is_ws, unsigned, player_ref)for O(1) RAM checks of whether a player is attached to aDF_WEBSOCKETfile descriptor. - BCP Macro View & Sparsity Protocol (
include/nd/bcp-meta.h,include/nd/bcp-types.h): - Implemented
nd_bcp_pack_macro_viewandnd_bcp_unpack_macro_viewwire serialization. - Defined
ND_BCP_SPARSITYandND_BCP_MACRO_VIEWopcode packets. - Defined
ND_MAP_FLAG_WATER(0x20) flag for submerged tile protocol ininclude/nd/bcp.h.
Changed
- Portable
libstele/mkBuild Modernization (Makefile,Doxyfile): - Migrated to
include ttypt/include.mkvia Make search paths, dropped legacy../mkfallback, adoptedCFLAGS-LIB/CFLAGS-BIN, eliminated duplicate$(shell)/!=forks, and ported Makefiles to OpenBSD + GNU Make (716e3c6,09d9667,1637b80,6d0d655,077cc2b,7348482,6dec3c6). - Expanded Entity & Room Art Fields (
include/nd/bcp-types.h,test.sh): - Expanded
nd_entity_packet_tfrom 128 to 144 bytes (art[48]โart[64], static-asserted at 144 bytes) andnd_room_desc_t.artfrom 48 to 64 bytes to accommodate longer biome-qualified art paths (e.g. 61-char mineral sprites).
Fixed
- DSV Table Column Limit (
include/nd/data.h,src/law_data.c): - Raised
ND_TABLE_MAX_FIELDSfrom16to32to support wide 26-column DSV tables (e.g.nd-plantspecies catalogs) (766c5db). - Entity Art Path Off-by-One NUL Write (
include/nd/bcp-meta.h): - Fixed an off-by-one NUL terminator write on
out->art(out->art[sizeof(out->art) - 1] = '\0') innd_bcp_unpack_entity_msg(). - HTTP Asset Path Buffer Hardening (
src/http.c): - Expanded path buffers in
nd_bare_motd()(ENV_VALUE_LEN + 16),handle_nd(), andnd_serve_art()(ENV_VALUE_LEN * 2 + 2, with%.*slength bound) and updated fallback page HTML scripts and stylesheets.
[1.3.2]
Changed
- Pure Location Hierarchy &
libsteleAlignment (axil-nd.pc,src/): - Purged
ND_EF_CONTAINERin favor of pure location hierarchy (c171cf3), migrated logs tostllogand removed relative traverse paths (3fa1275), and declaredlibisletandlibstelelinks inaxil-nd.pc(b4eef1c).
[1.3.0]
- Packed 144-Byte Binary Entity Wire Contract (
nd_entity_packet_t): - Defined
nd_entity_packet_t(exactly 144 bytes packed, static asserted) for high-performance zero-copy BCP entity transmission. - Expanded
artfield from 48 to 64 bytes to accommodate mineral paths likemineral/temperate_rainforest/ClusterSeixosMolhados_albedo.png(61 chars). - Added $O(1)$ fast-path unmarshaling directly into
nd_entity_desc_t. - Packed Binary Map Grid (
nd_map_data_t) & Regional Layout: - Implemented 400-byte binary map grid
nd_map_data_twith symmetrical pure-C rendering across SSR and WASM. - Added
ND_BCP_REGIONopcode for dynamic driver negotiation. - Pure-C Dynamic Fallback SSR & Canonical BCP Protocol:
- Added declarative Binary Client Protocol framework (
<nd/bcp.h>,<nd/bcp-meta.h>,<nd/bcp-types.h>) for bi-directional binary communication (#bmagic frames). - Standardized core packet schemas:
ND_BCP_ROOM,ND_BCP_ITEM,ND_BCP_GAUGE,ND_BCP_ACTION,ND_BCP_AUTH,ND_BCP_EQUIPMENT,ND_BCP_SPELL_LIST,ND_BCP_SPELL_CAST. - Pluggable Viewports & Renderers (
<nd/viewport.h>): - Multi-viewport architecture supporting simultaneous TTY, Bud DOM, Lamina 2D Canvas, and WebGL isometric 3D scenes.
- Extensible UI Slots & Client Extension Registry (
<nd/ui-slot.h>,<nd/ui-slot-types.h>): - Generic per-session extension slots (
nd_client_ext,nd_client_gauge_set,nd_client_gauge_get) eliminating hardcoded tenant structs. - Harmonized
nd_ui_slotwith universalbud_slotandbud_state, adoptingbud_slot_tandBUD_SLOT_*definitions. - Generic DSV Table Engine (
nd_table_load): - Implemented
nd_table_load(module, table, fn, user)inlaw_data.cenabling tenant modules to load domain DSV tables without engine coupling. - XY Bus Encapsulation & Table Handle Isolation:
- Encapsulated
nd_hds[]behindXY_DECL(unsigned, nd_table_handle, unsigned hd_idx)andXY_DECL(int, nd_table_handle_set, unsigned hd_idx, unsigned val). - Inlined formatted output helpers
nd_writef,nd_owritef,nd_twritefin<nd/law.h>, eliminating globalnd_dwritef. - Typed Game Event Bus (
<nd/event.h>): - First-class typed XY hooks for sound/noise, room transitions, entity spawn/destroy/update, icon changes, and viewport flags.
- Portability & Linker Purity:
- Purged all hardcoded
/home/paths and-Wl,-rpathflags, linking cleanly against system authority (/usr/lib).
[1.2.0]
Added
- Login notice (
motd) and a help-topic index. Every login now ends with
an editable notice read from motd (cwd-relative, installed to the share directory by install-data; a built-in fallback keeps a fresh checkout working) whose default text points a new player at help and at loading/writing game modules. A bare help/man lists every installed help topic by reading man/ at runtime, and the new modules(10) page documents the module install and authoring contract.
- Man pages for the 17 engine commands that had none. Every command in
the engine's table (src/world.c cmds[]) is now documented: connect, ban/unban, teleport, owned, view, man, save, planet/planets, here, loadmod/unloadmod/modlist, release, room, deny. The pages document the real guards: region-ownership gates, the shared st_cmd_region selector dialect (cosmos is not world 0), exact ownership for module loading, the two-phase passworded connect, dispatch-time permanent-until-reboot deny, and root-only save.
- General region attribution:
grant <player> [<width> [point]].
planet claims whole worlds for the caller only; grant attributes any region โ a district inside a planet, a planet for someone else, a region containing many planets, or the cosmos itself (explicit only) โ to any player, bounded by what the granter rules. Region gates (st_can_region/st_region_ruler) now walk every ancestor width instead of the fixed {0,16,32,48,64} set; release and target accept a <width> <point> form (a lone number stays a world); the cosmos cannot be released, only granted. Fresh entities no longer inherit an implicit cosmos default target (ST_SEL_UNSET on creation and on missing-row reads), so a new ruler's commands act on where they stand.
Changed
- Bare
help/manshow the topic index, notbegin.help beginstill
opens the tutorial (the browser client's help button sends exactly that), but help with no subject now lists every topic, so the one command a beginner is most likely to try answers usefully.
- No boot-time module list: region modding is the only module lifecycle.
nd_mods_load() and the mods.load file are gone, with them the AXIL_ND_GLOBAL_MODS override and make mods. Game modules load only via the region system โ in-game loadmod/unloadmod/release/modlist into persisted st rows, restored every boot by st_init() from on_axil_post_chroot(). The flat list caused double module installs in production (the override never reached the daemon; the cwd-relative fallback re-read the embedder's own list), and region rows already covered the whole cosmos. test.sh grants its fixtures with a warm-up loadmod pass instead of a fixture list.
- The sl_hd dlopen registry is gone.
mod_load/_mod_load/mod_load_all/
mod_close, the module_id/mod tables, and the sic_call/sic_last/ sic_areg/sic_get/sic_iter/sic_next/sic_put surface are deleted with their struct nd slots: libxylem is the dispatch and regions are the loader, and nothing called them. sic_adapter_t goes with them; sic_str_t stays (it is the event string type, unrelated to the registry).
- OpenBSD
su -ldiscards daemon environment.rc.subrlaunches daemons
via su -fl, so AXIL_ND_GLOBAL_MODS (and likewise AXIL_ND_DB / AXIL_ND_HTDOCS) exported in /etc/rc.d/axil never reached the process. Only compiled defaults plus cwd apply there; do not rely on rc.d exports.
[1.1.0]
The terminal is gated, the region system is real, and the store survives shutdown. 11 commits since 1.0.0; the suite gained S5.4/S5.5, S6, S7, S8 and S9 and the site gained an e2e round-trip.
Changed
connectis passworded; a name alone never authenticates. Two phases:
connect <name> arms a one-shot password prompt on that descriptor and the next line is the password (consumed as a password, never as a command, and never echoed back). The check goes through axil-auth's exported auth_password_matches, unknown user / wrong password / unconfirmed account answer one uniform Invalid name or password. so the prompt cannot be used to enumerate accounts, and a failed guess costs a reconnect. The old passwordless form is gone. Refusal of the terminal itself happens in axil-tty: a non-zero axil_tty_shell(fd) is the gate bit, and no PTY is born before it.
- Site login completes, and declined
/ndupgrades are closed (G4).
nd_player_login no longer reads axil_auth()'s advisory "no passwd entry" return as an auth rejection โ every axil-auth-registered account has no passwd entry, so logins bailed before mcp_auth_success/actions/view; the descriptor is already authenticated and REMOTE_USER is what established the identity. A declined upgrade (no REMOTE_USER) now sends the close frame and tears the descriptor down, where it used to sit open with nothing on the wire after AUTH_FAILURE โ one lingering fd per probe.
- One region selector dialect and a default target region (CMD_REGION.md).
Seven commands can name a region: six now share st_cmd_region() and wall, which had a private all/world dialect and bypassed the shared parser with no argument, takes the same bare-world-number-or-cosmos token at a fixed argv position. One default resolution everywhere โ explicit selector โ default target โ position โ with the default stored in ENT as (target_id, target_plen) by the new target command (ENT grows 16 โ 24 bytes; ST_SEL_UNSET is the unset sentinel, never returned). do_wall parses its own leading token so wall 3 is still the message 3.
EF_WIZARDis gone; region ownership replaces it (ST.md ยง27.6(1)). The
flag was never set by any path in the port, so every st_is_wiz() gate was dead โ the commands existed and no player could reach them. The concept is removed rather than granted, in two behaviour-proving steps: first delete-and-replace to prove the reads were inert, then open the nine sites.
- The legacy
st_run/sldlopen path is retired.eng_st_run,
st_open/st_put/st_dlclose, the st_get/st_key helpers, the sl table, the st_run PAPI/XY slot and the stchown/streload commands are deleted: symbol dispatch is hook dispatch (nd_scope_dispatch walk), per-shift ownership is per-region ownership (st_can on id/plen rows) and per-shift reload is loadmod/unloadmod over the persisted set.
npm installis JS-only. The rootpostinstall: makehook is gone, and
@tty-pt/axil-tty is bumped to 1.3.2, which drops its own: installing ran make inside node_modules/@tty-pt/axil-tty, whose Makefile gets every rule from -include ./../mk/include.mk โ a path that only exists as a dev sibling checkout, never under node_modules โ so a plain npm i died with make: no target to make (prod hit exactly that). The C side is the system-installed axil stack and the checkout's own make, which is what README "Build from source" documents anyway; nothing consumed the node_modules build.
Added
- Region primitives (NO_WIZ.md ยง4):
st_region_covers()(pure
prefix-containment identity, cosmos included โ plen == 0 masking yields 0, so the root covers everything with no special case), st_in_scope() (the default-scope engine: containment with an explicit selection, the union of the actor's rows without one โ deliberately not st_can_region, which would let one planet claim the address space through the cosmos fallback), st_region_of_obj() (walk containment up to the first TYPE_ROOM, depth-capped at 8) and st_can_region() un-static'd as one loop over the candidate ancestor widths {0,16,32,48,64}. An unmapped room resolves to the void, (0,0,0,0), which is in the cosmos โ players log into unmapped rooms, so "unresolvable" would put them under nobody's authority; NOTFOUND is reserved for a genuinely dead-ending walk.
- Region-owned commands and a region ban table (ST.md 27.6(1)). Every
refusal now names the region that refused it via st_region_ruler + st_refuse_region, so a non-ruler learns who to ask instead of getting silence. eng_controls is the four-case rule โ possession stays authoritative with one exception (a region ruler may move a player standing in their region), rulership is the authority over unowned things โ and eng_look_at lets a ruler inspect entities in their region. Bans are a separate corm table keyed (player, region id, plen), enforced only in eng_enter, the one chokepoint every arrival passes through: the refused mover stays put, is told which region refused them, and cannot route around it. Login is deliberately not refused.
- Room persistence: carved rooms are permanent (
RF_TEMPcleared) so
eng_room_clean does not collect an empty room (ยง27.3), and the room is reported back (room %u at %d %d %d %d (existing)).
Fixed
teleport #<ref> heremoved a bystander โ or killed the daemon.
eng_obj_exists() returned corm_get(...) == NULL, so it was true for an absent row: eng_ematch_absolute() therefore discarded every real ref and accepted every fabricated one, teleport #<valid> here fell through to the contents scan and moved the last object iterated in the room (measured: the dolphin), and an absent ref reached corm_get_copy โ SIGABRT from heap corruption โ any ref a player can type. eng_ematch_at() additionally returned tmp_ref unconditionally ("no match" surfaced as "some bystander"), reassigned where_ref (the range key) mid-iteration, and leaked the iterator. Separately do_teleport() never called eng_nd_flush(), so every refusal and the victim's confirmation sat in the per-fd buffer until the player typed again โ the whole reason the command "wrote nothing". All six return paths flush now, and argv[1] is guarded on the string rather than argc (axil delivers a bare verb as argc == 2 with an empty argv[1]).
- The shutdown store truncation that read as a persist flake. libcorm
saves every file-backed map from a destructor at process exit, so close_all() closing the maps first made the shutdown save recompute the store's size from what was left in corm's file cache and rewrite the file at that size โ 16 bytes with nothing left. The damage varied per run (16/1184/1600/2000/2400/3200 bytes), which is why it read as the old nondeterministic flake, and it became destructive the moment one map was left open โ which is why it looked like a ban-table bug. Measured chain: a correct 8461-byte image, the next SIGTERM rewrote it as 3200 bytes of seeds, the following boot restored nothing. Every path into close_all() exits anyway, so it no longer closes anything.
- Stale contents pairs no longer delete the player.
eng_object_move(old, NOTHING) deleted every row its contents_hd listed without checking, so a stale pair aborted a boot by deleting the player out from under the session (corm_get_copy: no record). Collect-then-delete: gone rows, rows filed elsewhere and self-pairs drop the pair, not the object.
- Two memory bugs ASan found:
noise.c spread()ranp <= nx * CHUNK_M
while each iteration writes two CHUNK_SIZE lines, so the last memcpy started 2432 bytes past chunks_bio and overwrote the bio pointer on every player login; view.c biome_bg() copied 16 bytes out of 6-byte ansi_bg literals and indexed them with an unvalidated biome_skel->bg from a row a missing skel leaves uninitialized.
eng_ent_get()zero-initializes an ENT for a missing row, so an
authorization path no longer reads fields left uninitialized (this is what made EF_WIZARD read as reliably-false only by luck), and do_owned, do_clone, do_create, do_chown, do_ban and do_teleport validate argc โ the short-circuit in the deleted gates was what kept the NULL deref from being live.
- HTTP request bytes are no longer telnet-scanned (S5.5). Chunks opening
with an HTTP request line pass through on_axil_parse untouched: no IAC scan, no slide, no RAW classification โ a 0xFF body byte used to delete the request head and answer the POST with the telnet banner.
- Room-cleanup and login-path guards, plus
test.shbindingPATHand
LD_LIBRARY_PATH to the in-tree build so it tests this checkout instead of stale installed copies.
[1.0.0]
First playable release. The engine port from TinyMUCK/FuzzBall is complete and the release is self-contained: it builds, tests and runs from a fresh clone with no external tree.
Changed
- The module-facing headers install as
<nd/xy.h>. They moved from
include/papi/ to include/nd/ (nd-xy.h โ xy.h, nd-xy-types.h โ xy-types.h, nd-hd.h โ hd.h, nd-hooks.h โ hooks.h; guards renamed to the basename rule) and the Makefile sets mk's FOLDER := nd, so make install puts them in $(PREFIX)/include/nd/. They previously went to $(PREFIX)/include/axil-nd/papi/, a directory no default include path reaches, so every out-of-tree module carried a private -I to find a header the house installs in a plain <ttypt/โฆ>-style location. A module now writes #include <nd/xy.h> and needs no -I beyond the one every build already has. No forwarding headers: the seven module repos get one line each. install-papi is now install-mods and installs only nd-mod.mk, which mk's share set cannot reach; make uninstall now removes it and include/ttypt/axil-nd.h.
Added
- NeverDark engine as an axil module: 16 engine TUs linked into
lib/libaxil-nd.so, with nd_api.c forwarding the 52 XY_IMPL hooks to the eng_* symbols.
- Raw telnet and WebSocket (
GET /nd) play paths, with-Aauto-auth for WS. - Browser client: xterm 6 terminal, biome background art, day/night, room
contents panel, equipment and stats modals, item action bar.
- The 52 in-game help pages, tracked as
man-src/*.10and generated into the
CWD-relative man/ that src/man.c reads at runtime.
make testtarget running the in-tree suite (test.sh).GPL.txtanddocs/COPYING, copied verbatim from the inherited TinyMUCK
tree, with the LICENSE lineage note extended to name both.
Fixed
package.jsoncould not be installed: an invalid@tty-pt/subrange
(^0.x.x), a dev/peer skew on @xterm/*, and lodash missing from external (which crashed scripts build).
- The client template was never wired up: no stylesheet link, no script tag for
the bundle, and no #main / #title. The page loaded and stayed inert.
- Four client boot crashes, including
Avatar.setImageClassdereferencing a
guarded-against-absent value on the following line.
- Two
??precedence bugs that made their guards inert. - CI installed 3 of the 6 libraries the module links.
- The
debpackage could not be built: Tailwind v4's@tailwindcss/oxideneeds
Node >= 20, the ubuntu-builder image ships Node 18, and npm then silently drops the optional native binding. The client CSS is now generated with Tailwind v3, which is pure JS and needs no native addon.
- The
brewpackages could not be built:-Wl,--no-as-neededand
-Wl,--as-needed are GNU ld options and Apple's ld rejects both. They are now emitted on ELF targets only.
- The
brewpackages then failed ininstall:install -Dis GNU coreutils
only, and BSD install has no -D. art/, man/ and nd-mod.mk are now staged with mkdir -p plus a plain install -m 644.
Removed
- Dead
libnd-era files:module.mk,ndcc,.config,axil-cli.js, and the
generated objects-set.mk (now gitignored).
- Absolute
/home/quirinpa/ndand/home/quirinpa/axil-ttypaths from the
build and the test suite.
[0.1.0]
- Initial scaffold for axil-nd (P0): module build skeleton modeled on
axil-tty, include/ttypt/axil-nd.h, stub src/libaxil-nd.c with xy hooks, WS upgrade handler GET:/nd, test.sh.
- License: BSD-2-Clause (quirinpa) with the TinyMUCK/FuzzBall GPL lineage
note.