Skip to content

Decide: When a backlog-burndown worker merged its group from a temporary standalone clone (the repo-worktree fallback), should the orchestrator remove that clone, or should the worker only report its path? #3742

Closed

Description

@ptr727

Split from #1301 by decision triage. Only this undecided item waits on the maintainer. The rest of #1301 stays there as ordinary work.

Decision needed (decision triage, 2026-11-01)

Question: When a backlog-burndown worker merged its group from a temporary standalone clone (the repo-worktree fallback), should the orchestrator remove that clone, or should the worker only report its path so the clone is removed by hand?

Options, recommended first:

  1. Worker reports the path, orchestrator removes it (recommended): The orchestrator already owns every other post-merge cleanup and already removes a dead worker's tree, and repo-worktree "Listing and Cleanup" specifies the removal ("Confirm the tree is clean, then ... delete the exact <temporary-root>/<Repo>-<task-slug> directory"). Edits "Dispatching a Worker" and "Cleanup Is the Orchestrator's". No work in flight.
  2. Worker reports the path, orchestrator tells the maintainer: Most conservative, but the clone sits in temporary storage no list shows, so every such group leaves residue for hand cleanup. No work in flight.
  3. The worker removes its own clone after merge: A standalone clone shares nothing, so the shared-base-clone reason does not apply, but it adds a second exception to the "worker does no cleanup" override. No work in flight.

Evidence: The second item was resolved per the maintainer's 2026-10-17 comment after #3188. backlog-burndown SKILL.md:302-320: pr_review.py cleanup ... --checkout <base-clone> reaches only registered worktrees; a worktree path comes back only from a worker that cannot dispatch a subagent (~line 279). repo-worktree SKILL.md:136-141: a standalone clone is not in git worktree list and the OS "may reap it"; lines 258-262 give the removal procedure.

Blocks: none

Activity

  1. added
    decision
    on Nov 1, 2026
  2. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer (decision triage, 2026-11-01): Option 1: the worker reports its standalone clone's path, and the orchestrator removes the clone per repo-worktree's removal procedure.

    The answer is carried to #1301, where the work lives. Closing this decision issue, since it held only the question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions