Problem
When punk-supervisor dispatches multiple tasks targeting the same project directory, all agents write to the same working copy simultaneously. The last agent to finish overwrites files changed by earlier agents.
Reproduction
- Create 3 tasks for the same project (adjutant):
- Task A: create
src/db.rs + modify src/main.rs
- Task B: create
src/cli.rs + modify src/main.rs
- Task C: create
src/init.rs + modify src/main.rs
- All 3 dispatched in parallel (MAX_SLOTS=5)
- Result: only last agent's
main.rs survives. Other agents' changes to shared files are lost.
Expected
Each task should run in an isolated git worktree. On completion: merge or present diff for review.
Workaround
Don't dispatch parallel tasks to the same repo, or manually sequence them.
Problem
When punk-supervisor dispatches multiple tasks targeting the same project directory, all agents write to the same working copy simultaneously. The last agent to finish overwrites files changed by earlier agents.
Reproduction
src/db.rs+ modifysrc/main.rssrc/cli.rs+ modifysrc/main.rssrc/init.rs+ modifysrc/main.rsmain.rssurvives. Other agents' changes to shared files are lost.Expected
Each task should run in an isolated git worktree. On completion: merge or present diff for review.
Workaround
Don't dispatch parallel tasks to the same repo, or manually sequence them.