CHANGELOGs list the measured public surface against 2.0.1 (apicompat strict): members on their owning types, Id members in Mesh, Networking and Geometry, Rust SchemaConflictError, cultnet-rs register

The Unity list no longer calls MarkFlushSucceeded removed and places HeaderFor and the CacheBackingStore members where apicompat finds them. cultnet-rs gains a CHANGELOG. The store-composition contract moves DecodeDocument to the codec and states that a call's registry serves that call only. Docs only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-23 01:44:57 +02:00
commit a056918be6
5 changed files with 39 additions and 12 deletions

View file

@ -351,17 +351,22 @@ no serialization; a CultMath encoding, if added, uses this shape.
A single-file store file can be read and written without a cache, through public members of `SingleFileBackingStore` (for
example `SingleFileMessagePackBackingStore`): `ReadStoreSnapshot()`, `WriteRecord(record, catalogEntry, holdsIds, registry)`,
`WriteDocument<T>(key, document, storedAt, registry)` and `DecodeDocument<T>(key, payload, registry)`.
and `WriteDocument<T>(key, document, storedAt, registry)`. Decoding a stored payload needs no file, so it is on the codec, not the store:
`CultCodec.DecodeDocument<T>(key, payload)` (`CultCacheMessagePack.CreateCodec(registry)` makes the codec).
- `ReadStoreSnapshot()` reads the file once, under the store's gate, and returns the durable snapshot (records, schema catalog,
format stamp), or null when nothing is at the path. It throws `CultStoreUnreadableException` for a file the reader refuses.
- `WriteRecord` writes one record under the store's lock: the record replaces the one at its key, every other record and catalog
entry is copied forward as stored, and the file is replaced atomically. It takes a payload the caller already encoded, so a
payload it cannot read leaves the header as the file has it (`holdsIds` null).
- `WriteDocument<T>` writes one typed document as a cache write does: it plans element ids, encodes the document with the
registry, and stores it through `WriteRecord`. A failed write gives the minted ids back.
- `DecodeDocument<T>` decodes a payload read from the store as a cache load does: it mints the ids a load mints and refuses what
a cache load refuses.
- `WriteDocument<T>` writes one typed document as a cache write does: it plans element ids, encodes the document as `T` (the type
its schema id and ids are taken from; a derived instance is stored as `T`) with the registry, and stores it as `WriteRecord`
does. A failed write gives the minted ids back.
- `CultCodec.DecodeDocument<T>` decodes a payload read from the store as a cache load does: it mints the ids a load mints and
refuses what a cache load refuses. It reads no file and holds no state.
The `registry` argument of `WriteRecord` and `WriteDocument` serves that one call: the store attaches it under its gate for the call
and keeps none, so the same call decides the same header on a fresh instance and on one that has served other calls.
They share everything with a cache's store and nothing is re-implemented beside it: one reader (the stamp is judged before the
body, and a file the reader refuses is refused by a read and by a write alike), the store's lock, the atomic replace, and the
@ -370,7 +375,7 @@ keeps whatever the file already says). Ownership by declaration binds a cacheles
the written catalog entry does not own or list as compatible is refused with `CultSchemaConflictException`, and the file is left as
it was. Element-id planning (`CultElementIds`) is internal to the library: a caller never plans or marks ids, the store does. A store
attached to a cache refuses `WriteRecord` and `WriteDocument` (write through the cache, whose staged writes land through the
same private write) and `DecodeDocument` (read through the cache) with `InvalidOperationException`. CultMesh's single-file document helpers (`CultMesh.WriteSingleFileDocument`,
same private write) with `InvalidOperationException`. CultMesh's single-file document helpers (`CultMesh.WriteSingleFileDocument`,
`ReadSingleFileDocument` and their payload forms) are built on these members and nothing else of the store.
## Runtime status