CultLib/packages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens bac5be88b9 Restore reliable expiry and snapshot compare-exchange to the Rust core
Two capabilities existed only in Odin's vendored forks, which is why the forks
could not be deleted. Both are ported here with tests so Odin can consume
CultLib instead.

cultnet-rs gains reliable send expiry. A reliable packet may now carry a
deadline; past it the packet is dropped instead of retransmitted, and the count
is reported through session and transport stats. Live media tolerates loss but
not lateness -- a frame retransmitted after its moment has passed is worse than
a missing one -- so the media channel takes a 75ms default while state channels
never expire. Handshake packets never expire either: a dropped connect is not a
late frame.

The deadline is fixed when a send is admitted, so time spent waiting in the
backlog spends it exactly as time spent awaiting an acknowledgement does. This
lineage has a queued_reliable backlog that Odin's does not, and a queued packet
promoted after its moment had passed would be as useless as a retransmitted
one. Expiry runs before the window is measured, so an expiring stream is not
refused for a backlog it no longer owns.

cultcache-rs gains compare_exchange_snapshot and a nonblocking
try_compare_exchange_snapshot. CultLib had neither, despite carrying the larger
body -- the two lineages had diverged in both directions. Contention is returned
as data rather than waited on, so the caller keeps retry and scheduling
authority. This is the primitive an admitted-generation CAS needs.

No wire format changes. Expiry is a sender-side policy and compare-exchange is
local storage, so the other four runtimes stay in agreement without matching
these refusals. They are still worth carrying eventually, and the parity ledger
already tracks that this kind of gap does not announce itself.

cultnet-rs: 106 tests. cultcache-rs: 51 tests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 03:21:01 +02:00
..
cultcache-py Finish the sequence-domain split in Python and Kotlin 2026-09-04 00:40:05 +02:00
cultcache-rs Restore reliable expiry and snapshot compare-exchange to the Rust core 2026-09-04 03:21:01 +02:00
cultcache-ts Make TypeScript packages release-packable 2026-07-13 23:47:38 +01:00
cultmath Clarify CultMath and CultGeometry ownership 2026-08-26 17:47:06 +02:00
cultmesh-browser Harden CultMesh route fallback and secure onboarding 2026-08-18 19:41:03 +02:00
cultmesh-kotlin Finish the sequence-domain split in Python and Kotlin 2026-09-04 00:40:05 +02:00
cultmesh-rs Give the Rust CultMesh runtime a home 2026-09-03 23:09:45 +02:00
cultmesh-ts Recover authority-bound CultMesh and atomic generations 2026-08-26 19:01:24 +02:00
cultnet-rs Restore reliable expiry and snapshot compare-exchange to the Rust core 2026-09-04 03:21:01 +02:00
cultnet-ts Separate RUDP reliable and lossy sequence domains 2026-09-04 00:33:16 +02:00