# CHRONOGRID P2P - AI CONTEXT & ARCHITECTURAL MANDATES 1. DATA SOVEREIGNTY & LOCAL-FIRST MANDATE: - Never generate code that transmits data to third-party cloud endpoints or SaaS providers. - All network synchronization MUST utilize `crates/chronogrid_net` over libp2p / QUIC with Noise XK encryption. 2. TECH STACK BOUNDARIES: - Presentation: Flutter (Win32 for Windows, GTK3 for Linux, Android NDK). - Core Logic & Storage: Rust (`crates/chronogrid_core`) with SQLCipher & Automerge CRDT. - FFI Bridge: Use `flutter_rust_bridge` C-ABI generation ONLY. 3. SINGLE SOURCE OF TRUTH: - Prior to modifying data structures, consult `docs/API_CONTRACTS/schema.sql` and `docs/ARCHITECTURE/01-OSAD-system-architecture.md`. - Update documentation in `/docs` concurrently with code changes.