pub fn collect_task_ids(tasks: &[&Task]) -> Vec<String>
Collect unique task IDs from a list of tasks.