dreamwell_runtime/sync/mod.rs
1//! Sync subsystem — staging and reconciliation of authority events.
2//!
3//! Three-layer state model (API.md §12):
4//! 1. Canonical Truth — owned by authority (spacetime or local)
5//! 2. Client Mirror — read-optimized snapshot for runtime
6//! 3. Presentation — interpolated/render-only state (fabric + gpu)
7//!
8//! Rules:
9//! - Authority updates staged first, applied at tick boundary
10//! - Presentation interpolates through correction
11//! - No direct write from network thread into scene/render data
12
13pub mod reconciliation;
14pub mod stage;
15
16pub use reconciliation::reconcile;
17pub use stage::StagingBuffer;