The core loop
A worktree requests a test environment. Baton observes what is already running, reserves an available port and device path, then releases that capacity when the task completes. If the required resource is occupied, the job waits in a queue instead of colliding with another run or giving up.