Draft a migration plan. The current app writes one JSON file per conversation. Each file contains messages, tool call results, compact summaries, and long-term memories. We want a single SQLite database so the desktop app can query recent work quickly, but we need to preserve debuggability.