CultLib/packages/cultnet-rs/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens fc3f3ee5ff CultNet Rust: a second type for one schema id is refused, typed
F7 (operator, 2026-09-30): "Schema aliasing sounds like a really bad idea,
I support retiring it." CultNetDocumentRegistry::register inserted into its
type and schema-id maps unconditionally, so the last binding for a schema id
won, as the TypeScript registry did before 9adea366.

- register returns Result and refuses a binding whose type already holds
  another schema id, or whose schema id another type holds, with
  cultcache_rs::SchemaConflictError: the new binding's schema id, both
  document types (a binding carries no schema name), an empty record key.
  Nothing is bound on refusal. Binding a type to the schema id it holds
  again replaces the binding.
- Call sites propagate the refusal: the cultmesh-rs registry macro, the
  interop peer example, and the tests.
- Tests renamed to what they test: raw snapshot replication hydrates the
  receiver's own type for the schema; a reactive document coalesces direct
  member writes.
- New test: both claimant shapes in both orders, the first binding intact
  afterwards, and a same-type rebind replacing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:47:39 +02:00
..
fixtures Bring language packages into CultLib monorepo 2026-05-30 00:39:39 +01:00
byte_slot_migration.rs Measure what adding a bytes slot does to records already written 2026-09-10 00:42:26 +02:00
content.rs CultCache: derived element ids; the CDN chunk ref carries one 2026-09-29 15:03:09 +02:00
cultnet.rs CultNet Rust: a second type for one schema id is refused, typed 2026-09-30 17:47:39 +02:00
error_message.rs Land R-N in Rust: cultnet.error.v0 code/details, matched byte-for-byte 2026-09-22 20:00:37 +02:00
media_channel_delivery.rs Let a caller choose what the media channel does 2026-09-10 01:08:31 +02:00
media_stream_contracts.rs Carry media payloads as bin 2026-09-10 00:31:11 +02:00
media_stream_wire.rs Move the media wire envelope where both ends can reach it 2026-09-10 02:00:19 +02:00
provider_session.rs Add Rust provider session transport 2026-07-19 00:49:53 +01:00
rudp_server_hub.rs cultnet-rs: drop and count packets that belong to no session 2026-09-29 17:38:20 +02:00
rudp_stray_packets.rs cultnet-rs: the reconnect test expects the Accept to have acknowledged the new Connect 2026-09-29 21:37:24 +02:00
schema_discovery_contracts.rs Rust R-AB: make cultnet-rs self-contained enough for cargo-mutants 2026-09-23 02:29:24 +02:00
selection.rs R-AT: pin the row and edge comparators' recordKey/to survivors in Rust 2026-09-23 08:32:06 +02:00
selection_wire_parity.rs R-AX: land the whole-message parity vector, and extend it past all-absent 2026-09-23 08:40:52 +02:00