Skip to content

Share mailbox decoding and document delivery through the BASIC hosts - #127

Merged
relh merged 15 commits into
mainfrom
mailbox-public-contract-20261120
Nov 21, 2026
Merged

relh merged 15 commits into
mainfrom
mailbox-public-contract-20261120

Conversation

@relh

@relh relh commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Share the BASIC string copy and pop used by GotA, LvD and CTA. GotA and LvD now use one destination-to-inbox ID conversion. LvD reads an incoming chat directly into the tick action from the current packet cursor. Each game retains its routing rules and existing wire format.

The mailbox guide traces local sends, network acknowledgments, authoritative delivery, and BASIC reads. It includes a serial headless workflow. The three-host regression checks public text and ID, a subsequent DM, and an empty pull.

All three targets in the documented workflow passed locally with one compiler worker.

  • tests/test_mailboxes.nim checked invalid lengths, overflow, FIFO wraparound, and Unicode text.
  • tests/test_mailbox_allocations.nim exercised 300 decisions in each game, including CTA range and partial delivery, and checked allocation reuse.
  • games/light_vs_dark/tests/test_replay_chat.nim checked ordered authoritative packets, public and private text, empty messages, atomic batch capacity, replay hashes, and seeks.

The documented workflow peaked at 493,832 KiB (about 482 MiB). The private scratch directory used 31 MiB including staged dependencies. Additional GotA policy replay, two-human relay, and CTA replay tests passed. The largest of those used 913,944 KiB RSS. Observed scratch across the checks stayed at or below 36 MiB.

The changes merge cleanly with the inspected head of #125 (8036d29).

Linux and macOS CI passed. Windows passed release tests and all-game determinism, then failed in Cards and Casters with index -1 not in 0 .. 17716 [IndexDefect]. The base commit produced the same failure. PR job · Base job

@relh
relh merged commit 68256a1 into main Nov 21, 2026
4 checks passed
relh added a commit that referenced this pull request Nov 21, 2026
)

* Verify the local Moss conversation workflow and report failed prompt captures

* Add desktop GotA replay library

* Keep GotA replay saving desktop only

* Add desktop LvD replay library

* Add desktop CaC replay library

* Share desktop replay workflows across games

* Support game styled replay libraries

* Document strict Galcon replay versions

* Standardize runtime screenshot capture across games

* Unify common command line options across games

* Add screen-space shockwave, heat, and shield distortion

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix small replay and resource bars

* Support existing Silky atlas layouts

* Compare CaC reference scripts by line across checkout formats (#129)

* Share mailbox decoding and document delivery through the BASIC hosts (#127)

* Share BASIC mailbox decoding and document game delivery

* Add desktop GotA replay library

* Keep GotA replay saving desktop only

* Add desktop LvD replay library

* Add desktop CaC replay library

* Share desktop replay workflows across games

* Support game styled replay libraries

* Document strict Galcon replay versions

* Standardize runtime screenshot capture across games

* Unify common command line options across games

* Add screen-space shockwave, heat, and shield distortion

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix small replay and resource bars

* Support existing Silky atlas layouts

* Compare CaC reference scripts by line across checkout formats (#129)

---------

Co-authored-by: treeform <starplant@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: treeform <starplant@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants