Route CultNet schema messages through database bridge

This commit is contained in:
Meta Vens 2026-05-19 17:03:31 +01:00
commit 6065bb9ad5
7 changed files with 469 additions and 4 deletions

View file

@ -57,6 +57,8 @@ Modern schema-v0 helpers live in:
- `CultNetSchemaMessageSerialization`
- `CultNetSchemaRegistry`
- `CultNetDocumentRegistry`
- `CultNetDatabase`
- `CultNetDatabaseServer`
- `NetPeerExtensions.SendCultNet(...)`
## Main Types
@ -127,6 +129,11 @@ CultNet becomes the distribution model:
- remote subscription fanout
- reconnect resynchronization
The current first slice exposes this as `CultNetDatabase` and wires hosted
servers through `CultNetDatabaseServer`. It handles primary-shard writes, typed
R3 watch streams, raw document puts/deletes, and raw snapshot responses. Remote
subscription messages and shard catalog exchange are the next missing organs.
The first coherent shard policy is primary ownership. Each shard has one
authoritative writer at a time. Clients may connect to any node; a non-owner
node forwards a write to the owner or rejects it honestly when forwarding is