CultLib/packages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens d3bc6e6604 Keep receiving when fragment sets go stale
A fragment set that lost one fragment was never reclaimed: the buffer map
only shrank on successful reassembly or a payload-size violation. Once 64
sets were stranded, every new fragmented payload returned an error and the
receiver's loop terminated. Any nonzero loss on any fragmenting channel was
therefore a countdown, not a threshold: 3 fragments at 3% loss killed the
receiver at ~700 payloads, 1% at ~2,100. Found by the media load test.

When the bound is hit, evict the set untouched longest and count it via
fragment_sets_evicted(). A stranded set's siblings were delivered long ago;
dropping it is the right call and it was already lost.

Also stop saturating the fragment id. saturating_add parked every set after
the 65,535th on one shared id, and the reassembler stitched them together.
That is the July 2026 eight-minute failure; the id now wraps to 1.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-10 11:59:48 +02:00
..
cultcache-py Bound the Python fragment reassembly map 2026-09-10 11:42:17 +02:00
cultcache-rs Publish the non-Rust packages and make the licensing uniform 2026-09-04 04:41:44 +02:00
cultcache-ts Promote the swarm document catalog into cultcache-ts 2026-09-06 19:40:37 +02: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 Let a caller choose what the media channel does 2026-09-10 01:08:31 +02:00
cultmesh-ts Publish the non-Rust packages and make the licensing uniform 2026-09-04 04:41:44 +02:00
cultnet-rs Keep receiving when fragment sets go stale 2026-09-10 11:59:48 +02:00
cultnet-ts Bound the TypeScript fragment reassembly map 2026-09-10 11:42:13 +02:00