Q6-A of docs/cultnet-error-contract-cut.md. message_invalid joins the closed
cultnet.error.v0 code enum (both schema copies), with details.field naming the
request field at fault ("message" when the whole frame cannot be read).
C# ForMessageInvalid, Rust CultNetErrorCode::MessageInvalid, TS
cultNetMessageInvalidError and Python message_invalid_error all write the same
captured bytes (error-vectors.json plus the C# and Rust cases). cultmesh-py and
cultmesh-ts refuse malformed puts and deletes with it; the C# subscription
servers use it for the missing subscriptionId.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1.4 KiB
Changelog
Unreleased (breaking; version 0.x, so the next minor)
-
Added
message_invalidtoCULTNET_ERROR_CODESandmessage_invalid_error(field, reason), byte-identical to the C#ForMessageInvalid.cultmesh-pyrefuses a malformed put or delete with it instead of the out-of-schemamalformed_document_putandmalformed_document_delete, which are removed. -
Added
CultNetRudpSocketTransportServer(cultnet_py.rudp_server): one UDP socket serving many RUDP peers, one session per remote endpoint, ported from the C#CultNetRudpSocketTransportServerand held to its bytes bytests/vectors/rudp-multipeer-server/transcript.txt. The caller drives it (try_receive_once,poll_resends). Like the C# listener it never reaps idle peers.CultNetRudpSessiongainednext_sequence,withdraw_sendandend_with, andCultNetTransportStatsgainedsend_failures. -
Removed
resolve_document_and_schema_id_for_raw_recordfrom the package exports. A raw record resolves to one local schema id, the one its document registers, so there is no wire id to return. Useresolve_document_for_raw_record(documents_by_schema_id, schema_id, record), which returns the document; take the schema id fromdocument.catalog_entry().schema_id. -
apply_raw_document_record,apply_raw_snapshotandapply_shard_log_responsereport and stamp the local schema id, also for a record that arrived under a compatible id or the schema name.