Skip to content

punk-supervisor: parallel tasks on same repo overwrite each other (no worktree isolation) #4

@t3chn

Description

@t3chn

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

  1. 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
  2. All 3 dispatched in parallel (MAX_SLOTS=5)
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    admission:close-nowClose now: not for the active core intake lanebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions