···22//!
33//! See: https://github.com/bluesky-social/atproto-interop-tests/tree/main/mst
44//!
55-//! ## Current Status (Determinism Bug)
66-//!
77-//! ### Fixed Issues
88-//! 1. **split_around bug**: When split_idx=0 (all entries go right), node.left wasn't being split
99-//! - Fixed in tree.rs:640-649 by checking node.left when left_entries is empty
1010-//! 2. **insert_entry_at_layer bug**: When insert_idx=0 with node.left, left pointer wasn't split
1111-//! - Fixed in tree.rs:520-565 by splitting node.left around new key
1212-//!
1313-//! ### Remaining Issues
1414-//! - **Non-deterministic tree structure**: Forward vs reverse insertion produces different root CIDs
1515-//! - All keys are retrievable (no corruption)
1616-//! - But tree structure differs (different node layouts/pointers)
1717-//! - Fails even with just 10 keys (test_first_10_keys_determinism)
1818-//!
1919-//! ### Next Steps
2020-//! - Compare tree architecture with rsky-repo and atproto implementations
2121-//! - May need to restructure how nodes/splits are handled to match reference implementations
2222-//! - Possible issues: recompress logic, subtree attachment, split handling at different layers
235246use std::sync::Arc;
257