pub type InstanceKey = (TaskId, i32);
A task instance: its task and map_index (-1: an unmapped task, or a mapped one as a whole).
map_index