pub fn save_tasks(path: &Path, tasks: &[Task]) -> Result<(), String>
Write all tasks to an NDJSON file (full rewrite).