Roles alone won’t stop two agents picking up the same task, since both can read the role and both can decide the task is theirs. What stops it is one place that hands tasks out and refuses a second dispatch on the same task id (we return a 409) while a live session still holds the first.
In MeshKore the claim is released when that session ends, on process exit or when the progress reaper sees it died, so there is no lease timeout to tune. Ordering lives in the task file as a depends_on field, and dispatch is refused until the upstream tasks are done. The catch is that one daemon per machine does the serialising, so it doesn’t cover the cross-machine case.