Remediate tasks reset the PR branch to base before container resume #1176

Closed
opened 2026-10-27 13:39:19 +00:00 by sam · 0 comments
Owner

In container execution, daemon.prepareWorkspace always calls Manager.Prepare, which refreshes an existing task worktree onto origin/. The remediate workflow later calls StageResumeWorktree, but hybridTrees.Resume is a no-op, so the container never restores origin/<task.Branch>. Route remediate preparation through Manager.Resume using the persisted branch before container acquisition; fail closed if that remote branch is missing. Verify with a real worktree regression covering an existing PR branch whose commit differs from base, and cover dispatch wiring.

Close reason

Closed


Imported from beads archie-core-8li9.7 · GitHub #1425 · type bug · priority P1 · created 2026-09-29 · closed 2026-09-29

In container execution, daemon.prepareWorkspace always calls Manager.Prepare, which refreshes an existing task worktree onto origin/<base>. The remediate workflow later calls StageResumeWorktree, but hybridTrees.Resume is a no-op, so the container never restores origin/<task.Branch>. Route remediate preparation through Manager.Resume using the persisted branch before container acquisition; fail closed if that remote branch is missing. Verify with a real worktree regression covering an existing PR branch whose commit differs from base, and cover dispatch wiring. ### Close reason Closed --- _Imported from beads `archie-core-8li9.7` · GitHub #1425 · type bug · priority P1 · created 2026-09-29 · closed 2026-09-29_
sam added the highbug labels 2026-10-27 13:39:19 +00:00
sam self-assigned this 2026-10-27 13:39:19 +00:00
sam closed this issue 2026-10-27 13:39:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1176