Repository navigation
feat(core): define canonical VersionVector v0 encoding - #217
Merged
Antonov548 merged 11 commits intoSep 11, 2026
Merged
Conversation
marcus-pousette
force-pushed
the
maintenance/remove-version-vector-legacy-serde
branch
from
July 13, 2026 15:48
b3eb407 to
83356d2
Compare
marcus-pousette
force-pushed
the
maintenance/remove-version-vector-legacy-serde
branch
from
September 3, 2026 10:14
83356d2 to
99c19cf
Compare
marcus-pousette
force-pushed
the
maintenance/remove-version-vector-legacy-serde
branch
from
September 3, 2026 10:24
99c19cf to
448c355
Compare
marcus-pousette
force-pushed
the
maintenance/remove-version-vector-legacy-serde
branch
from
September 3, 2026 13:25
448c355 to
09f1c64
Compare
marcus-pousette
force-pushed
the
maintenance/remove-version-vector-legacy-serde
branch
from
September 3, 2026 13:48
09f1c64 to
992283a
Compare
Antonov548
reviewed
Sep 5, 2026
Antonov548
reviewed
Sep 5, 2026
Antonov548
reviewed
Sep 5, 2026
Antonov548
reviewed
Sep 5, 2026
Antonov548
reviewed
Sep 5, 2026
Antonov548
reviewed
Sep 5, 2026
Antonov548
left a comment
Collaborator
There was a problem hiding this comment.
I have added few comments.
Antonov548
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
known_stateis persisted across runtimes and covered by operation signatures in the stacked #157. Its bytes were implicitly defined by Rust JSON serialization; this PR gives them one explicit, canonical encoding.What changed
@treecrdt/wasm/codecloader with synchronous encode/decode methods after loading. Reusewasm-bindgenand Serde for the bridge.known_stateremains opaque bytes in the Protobuf envelope.Encoding
All integers are unsigned and big-endian.
0,u32entry countu32ID length, raw ID,u64frontier,u32range countu64start,u64endDevelopment reset
This is a pre-production reset: development databases and signatures using earlier version-vector encodings must be recreated. There is no legacy decoder or migration layer.
#157 is stacked on this PR and already uses this codec for operation-signature validation.