CultLib/contracts/cultmesh
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
..
authority-route-vectors.json Add the shared CultMesh route verifier to cultnet-ts 2026-09-16 15:59:09 +02:00
authority-route-vectors.ts-signed.json Pin the TypeScript-signed direction of the authority parity check 2026-09-16 16:27:06 +02:00
content-vectors.cs-written.json Fix the BP-1 findings in the cultnet-rs content plane 2026-09-29 02:12:43 +02:00
content-vectors.rs-written.json Fix the BP-1 findings in the cultnet-rs content plane 2026-09-29 02:12:43 +02:00
realtime-frame-vectors.json Encode a CultMesh realtime frame in TypeScript 2026-09-16 19:20:41 +02:00
realtime-frame-vectors.ts-written.json Encode a CultMesh realtime frame in TypeScript 2026-09-16 19:20:41 +02:00