CultLib/packages/cultnet-rs/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 16432d4b1e Fix the BP-1 findings in the cultnet-rs content plane
A hostile manifest of empty chunks no longer becomes a request flood: fetch_content
refuses a zero-size chunk beside other chunks, and settles the content hash and every
chunk hash (normalised, non-empty) before the first request.

Every bad chunk request is now answered found:false in the reference handler's
validation order, never refused at decode. validate_message no longer refuses content
chunk requests or responses, so a blank message id or hash, a prefix-only hash and a
negative size reach answer_content_chunk_request. The answer follows the reference's
double normalisation (handler, then CreateRecordKey), which fixes the prefix-only
hash spelling to ArgumentException on 'chunkHash'. The cs vectors gain nine
reference-server answers (blank and whitespace id, blank, whitespace and prefix-only
hash, negative size, record-key case, blank record key, double prefix) and a
metadata-order manifest; Rust answers all of them byte-identically.

Manifest metadata is Vec<(String, String)> in wire order and refuses a duplicate key,
replacing the BTreeMap that re-sorted keys.

Tests pin the surviving mutants: unusable chunk sizes, the payload-length and
claimed-size halves of the chunk check, stable sort at equal offsets, the normalised
hash and canonical key actually sent, and the kind/mime defaults never trimming.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 02:12:43 +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 Fix the BP-1 findings in the cultnet-rs content plane 2026-09-29 02:12:43 +02:00
cultnet.rs CultNet selection cut1 fix batch 3, Rust half: R-R, the v0 lowering matches the C# pre-cut server 2026-09-22 19:32:02 +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 A reader returns "nothing" only when nothing is waiting 2026-09-11 01:21:37 +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