This page captures three things in one place: current data flow, a realistic user journey, and the repo-supported system architecture including the documented Cloudflare R2 model-download path and edge-device execution model.
Current code evidenceRepo-documented architectureGap / wiring riskEdge-device / download path
1. Real Flow Diagram
This is the real current-state flow. The dashboard path writes more directly and is safer than pipeline-dependent flows.
2. User Journey
This journey shows the actual iOS-first experience, plus the optional model-download branch evidenced by the repo’s local model manager and MLX architecture docs.
3. System Architecture
Cloudflare R2 is included because the repo and ML architecture docs explicitly reference an R2-hosted phi-core shard source and a local SLMDownloadManager that downloads those shards onto the device before local model load.
Architecture Notes
What is proven in code
Local SwiftData store
iOS app shell and widgets
Local API on 127.0.0.1:8080
Local model download manager
R2 base URL in download manager
What is documented and repo-supported
Bundled Qwen bootstrap layer
Downloaded Phi reasoning layer from R2
Edge-device execution model
Single-model-in-memory switching constraint
What is still a control risk
Pipeline-dependent flows are not wired as safely as the dashboard path