CultLib/packages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 6acc414639 cultcache-rs: only a missing store reads as empty; an empty file is not a store
The single-file reads tested `path.exists()` and treated false as an empty
store. `exists()` is also false when the path cannot be inspected, so a
symlink loop, a file where the parent directory should be, or a parent
without permission read as an empty store, and a writer would then replace a
store it never saw. The read now maps only ErrorKind::NotFound to empty;
every other failure stays an io::Error. `pull_all`'s lock-free absence check
gets the same rule.

A store file that exists with zero bytes is Undecodable: no CultCache writer
produces one. `[0x90]` stays an empty store: it is the legacy envelope array
with no envelopes and carries no header, so it claims no format.

Refusal text: an unsupported header names the format found and the one this
runtime reads, and a v1 record with a fifth slot says the file is not a valid
store. Neither suggests a variant-aware runtime; the C# reference refuses the
same v1 bytes.

Tests pin a symlink loop and a file-as-parent on every read, the empty file,
the newer-header truncation boundary (1-19 bytes Undecodable, 20 and up
UnsupportedFormat), the refusal text, and staging cleanup when the rename
fails rather than the write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:02:27 +02:00
..
cultcache-py Prove TypeScript, Python and Rust refuse the C#-written variant store by name 2026-09-29 04:21:59 +02:00
cultcache-rs cultcache-rs: only a missing store reads as empty; an empty file is not a store 2026-09-30 17:02:27 +02:00
cultcache-ts Prove TypeScript, Python and Rust refuse the C#-written variant store by name 2026-09-29 04:21:59 +02:00
cultmath CultMath: Phacelle port moves into MPL-2.0 files; prune cut pinned by boundary points 2026-09-30 00:34:27 +02:00
cultmesh-browser Raise the TypeScript packages' Node floor to 20 2026-09-29 01:21:18 +02:00
cultmesh-kotlin cultmesh-kotlin: the bind self-test observes a wildcard, not its family 2026-09-30 13:52:26 +02:00
cultmesh-py cultnet-py, cultmesh-py: an RUDP client for a remote endpoint binds the unspecified address 2026-09-30 13:44:06 +02:00
cultmesh-rs Ack Cut 1d (Rust): stale generations are duplicates, a stale Connect is answered not obeyed, sessions draw their own sequence 2026-09-30 09:11:51 +02:00
cultmesh-ts cultnet-ts, cultmesh-ts: an RUDP client for a remote endpoint binds the unspecified address 2026-09-30 13:41:44 +02:00
cultnet-py cultnet-py, cultmesh-py: an RUDP client for a remote endpoint binds the unspecified address 2026-09-30 13:44:06 +02:00
cultnet-rs cultnet-rs: an RUDP client for a remote endpoint binds the unspecified address 2026-09-30 13:37:21 +02:00
cultnet-ts cultnet-ts, cultmesh-ts: an RUDP client for a remote endpoint binds the unspecified address 2026-09-30 13:41:44 +02:00