CultLib/packages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens a3e6877945 Move the media wire envelope where both ends can reach it
A media record travels wrapped in cultnet.document_put_raw.v0 with a schema id,
a record key and provenance. Both ends have to agree on that exactly, and until
now only Muninn had it: the producer was Rust in one repository and the consumer
was 6,515 lines of C++ in another, each with its own reading of the same bytes.
Ratatoskr could not decode a real stream without it.

Two things change in the move rather than after it.

The producer namespace is now the caller's. The Muninn implementation hardcoded
"muninn-media:" into every message id and "muninn.media" into every tag, so a
second producer would have had to label its traffic as Muninn's to be understood.
`MediaWireProvenance` carries it instead, and a test asserts the envelope names
no producer the caller did not supply.

The four hand-written wire payload structs are gone. Each restated a record's
entire field list as a positional tuple, in order, kept in step by discipline
alone — and existed for one reason: `#[serde(with = "serde_bytes")]` on the
payload, which cannot be applied to a DatabaseEntry struct because the derive
does not read serde attributes. Now that the records carry
`#[cultcache(key = N, bytes)]` the derive emits bin itself, so the records
serialize directly.

That last part is a wire claim, so it is tested rather than asserted:
`the_derive_reproduces_the_hand_written_wire_payload_byte_for_byte` reconstructs
the legacy struct and compares output byte for byte. It matches, which makes the
deletion a simplification instead of a silent break.

Record key shapes move here too. A consumer parses them to tell a chunk from its
siblings and a retransmission from a new frame, so they are contract and belong
beside the records rather than in whichever producer wrote them first.

Muninn's copies are not removed yet; that is the other half of this move.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 02:00:19 +02:00
..
cultcache-py Publish the non-Rust packages and make the licensing uniform 2026-09-04 04:41:44 +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 Reconcile cultmesh-rs: adopt Odin's lineage, keep CultLib's additions 2026-09-05 17:26:44 +02:00
cultmesh-ts Publish the non-Rust packages and make the licensing uniform 2026-09-04 04:41:44 +02:00
cultnet-rs Move the media wire envelope where both ends can reach it 2026-09-10 02:00:19 +02:00
cultnet-ts Port gamecult.runtime_presence_health.v2 to cultnet-ts 2026-09-07 21:42:54 +02:00