Store readers: a schema is never recovered from a record's payload
The persistence contract requires the catalog to publish every schema its records name and specifies no recovery, so the catalog is the store's own description: Rust, TypeScript and Python stop inferring a schema name from a payload's first field, as C# never did, and a store naming an unpublished schema is unreadable in all four. missing-schema-versioned-v3 pins it with payloads that open with a schema version. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
91d464a038
commit
3a3de56341
6 changed files with 16 additions and 179 deletions
|
|
@ -118,6 +118,10 @@ These are store-level bookkeeping fields, not per-record domain metadata.
|
|||
The store must embed a catalog entry for every schema referenced by the records
|
||||
it contains.
|
||||
|
||||
A reader never recovers a schema from a record's payload: a record whose schema id the
|
||||
catalog does not publish (by id or as a compatible id) makes the store unreadable, whatever
|
||||
the payload's first field says. The catalog is the store's own description of itself.
|
||||
|
||||
This is not decorative paperwork. It is what allows another CultCache
|
||||
implementation to inspect an old store, resolve the schema for each record, and
|
||||
decide whether it can:
|
||||
|
|
|
|||
Loading…
Reference in a new issue