Skip to content

Conversation

@lodyai
Copy link

@lodyai lodyai bot commented Jan 11, 2026

Follow-up fixes to the encoding docs discovered while reviewing #898.

Changes:

  • Fix xxHash32 LORO-seed test vectors in docs/encoding-xxhash32.md.
  • Document RawTreeMove wire format + clarify ValueKind tag 7/16 in docs/encoding.md.
  • Remove incorrect serde_columnar “row count varint” claims in docs/encoding-container-states.md.

Note: decode_block_range() in crates/loro-internal/src/oplog/change_store/block_encode.rs appears inconsistent with the actual block encoding, but this PR keeps scope to docs only.

…vectors\n- Document RawTreeMove encoding + usage\n- Remove incorrect serde_columnar row-count claims\n\nCo-authored-by: lody <[email protected]>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 05e2d17917

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

- [x] ContainerWrapper encoding/decoding
- [x] Change Block full parsing
- [x] ContainerArena encoding/decoding (serde_columnar)
- [x] ContainerArena encoding/decoding (postcard Vec)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Correct ContainerArena encoding format in checklist

The checklist now says ContainerArena encoding/decoding (postcard Vec), but the implementation uses serde_columnar::to_vec / serde_columnar::from_bytes in crates/loro-internal/src/encoding/arena.rs (lines 94–101). Anyone implementing a decoder from this spec will build the wrong format and fail to parse ContainerArena bytes. The checklist should continue to reference serde_columnar rather than postcard.

Useful? React with 👍 / 👎.

@zxch3n zxch3n closed this Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants