Whenever you're ready, walk me through how you'd approach this.
How would you design a live, collaborative code sharing application?
Discuss the end-to-end architecture, including real-time document synchronization, ML-powered code assistance, retrieval and ranking of relevant code context, online and batch processing, and operational safeguards. Explain your assumptions, latency and availability targets, evaluation approach, and failure handling.