Mesh single-file store: tests for dangling link, directory, zero byte, lock, concurrent replace and the older layout; contract sentence

Behavioural tests through Mesh and CultCache for each rule the cut owns, and the persistence
contract's single-readability paragraph states that one runtime has one reader, lock and replace
and that only nothing at the path is missing. Not yet run: verification follows in one job.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-03 02:02:02 +02:00
commit b1ff2dcbce
5 changed files with 370 additions and 10 deletions

View file

@ -298,8 +298,11 @@ array (a second store appended included), is not an array, has fewer or more tha
(a header alone included), whose first slot is not a header it reads, or whose catalog or
records it cannot decode (a record with more slots than its header allows, a variant record
it does not read). A runtime never skips a slot it does not understand. It refuses on open
and on rewrite alike, because the rewrite asks the same full reader as the open. A missing
file and an empty array are an empty store; a zero-byte file is not a store and is refused as unreadable. A flush or a commit replaces a file only when the
and on rewrite alike, because the rewrite asks the same full reader as the open. Only nothing at the path is a missing
file, and a missing file and an empty array are an empty store; a zero-byte file is not a store and is refused as unreadable.
In C#, a link whose target is gone and a directory at the path are I/O errors, never an empty store. Within a runtime, every
reader and writer of a single-file store shares that one reader, lock and replace (in C#, CultMesh's single-file document
helpers included), and a catalog entry has one layout. A flush or a commit replaces a file only when the
runtime's own reader opens it, so one verdict covers open, flush and commit, and a file the
runtime cannot read is left as it is. Each runtime refuses with one typed error:
`CultStoreUnreadableException` (C#), `CultCacheStoreUnreadable{path, kind}` (Rust, its kind