From e171eca32329baa928f4a1d810401a8b4c857029 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 4 Sep 2026 04:15:59 +0200 Subject: [PATCH] Expose what the consumer forks had to reach for Surveying the swarm's vendored copies, the divergence is far smaller than the number of forks suggests. Against CultLib, Epiphany's CultCache holds nothing unique, CodexConnector's holds nothing, VoidBot's CultCache-TS holds nothing, and Ghostlight's CultCache-Py holds nothing. What the forks did hold was mostly reach: things CultLib has but does not expose. raw_document_record_from_envelope was private here and public in every Rust consumer fork. It is public now. A first pass called it missing, which was a visibility difference read as an absence -- a `pub fn` scan cannot tell those apart. CultMesh gains get_all_with_keys and soa, thin delegations to CultCache, which does support both. Those were genuinely absent rather than hidden. cultmesh-rs also needed the media expiry field on its document transports; it was not rebuilt when cultnet-rs grew that field because the earlier pass tested only two of the three Rust packages. cultcache-rs 53, cultnet-rs 107, cultmesh-rs 7. Co-Authored-By: Claude Opus 5 --- packages/cultmesh-rs/src/lib.rs | 12 ++++++++++++ packages/cultnet-rs/src/replication.rs | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/cultmesh-rs/src/lib.rs b/packages/cultmesh-rs/src/lib.rs index 5adbb53f..e460ac78 100644 --- a/packages/cultmesh-rs/src/lib.rs +++ b/packages/cultmesh-rs/src/lib.rs @@ -1,7 +1,9 @@ use anyhow::{Context, Result}; use cultcache_rs::CultCache; use cultcache_rs::CultCacheEnvelope; +use cultcache_rs::CultSoaTable; use cultcache_rs::DatabaseEntry; +use cultcache_rs::SoaDocument; use cultcache_rs::SingleFileMessagePackBackingStore; use cultnet_rs::CultNetDocumentPutOptions; use cultnet_rs::CultNetDocumentRegistry; @@ -637,6 +639,14 @@ impl CultMeshNode { self.cache.get_required::(key) } + pub fn get_all_with_keys(&self) -> Result> { + self.cache.get_all_with_keys::() + } + + pub fn soa(&self) -> Result> { + self.cache.soa::() + } + pub fn put(&mut self, key: impl Into, value: &T) -> Result { self.cache.put(key, value) } @@ -762,6 +772,7 @@ fn request_raw_snapshot_from_rudp_catalog( socket.set_read_timeout(Some(options.poll_interval))?; let mut client = CultNetRudpSocketTransportConnection::new(CultNetRudpSocketTransportOptions { + media_reliable_expire_after_ms: None, runtime_id: options.runtime_id.clone(), socket, mode: cultnet_rs::CultNetRudpSocketMode::Client, @@ -860,6 +871,7 @@ pub fn publish_cultnet_messages_to_rudp_catalog( socket.set_read_timeout(Some(options.poll_interval))?; let mut client = CultNetRudpSocketTransportConnection::new(CultNetRudpSocketTransportOptions { + media_reliable_expire_after_ms: None, runtime_id: options.runtime_id.clone(), socket, mode: cultnet_rs::CultNetRudpSocketMode::Client, diff --git a/packages/cultnet-rs/src/replication.rs b/packages/cultnet-rs/src/replication.rs index d02a141f..7073f1a9 100644 --- a/packages/cultnet-rs/src/replication.rs +++ b/packages/cultnet-rs/src/replication.rs @@ -540,7 +540,7 @@ impl CultNetDocumentRegistry { }) } - fn raw_document_record_from_envelope( + pub fn raw_document_record_from_envelope( &self, envelope: &CultCacheEnvelope, ) -> Result {