remediate workflow never binds its worktree, running the builder with an empty Dir and pushing an empty branch #1354

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

The remediate workflow's in-container resume stage was retired in favour of daemon-side worktree preparation, but no workflow-side stage replaced it that binds TaskContext.Dir/Branch. remediate-build is an AgentStage whose agent.run guard is not hit, so it runs with an empty Dir; remediate-commit-push then calls CommitAll/Push against an empty dir and branch. Fix by adding a mode-aware prepare stage before any agent work that carries the resume target (the task's PR branch) through the workflow Trees seam, mirroring the daemon's mode-aware Prepare.

Close reason

Closed


Imported from beads archie-core-h4tk · GitHub #1397 · type bug · priority P0 · created 2026-10-02 · closed 2026-10-02

The remediate workflow's in-container resume stage was retired in favour of daemon-side worktree preparation, but no workflow-side stage replaced it that binds TaskContext.Dir/Branch. remediate-build is an AgentStage whose agent.run guard is not hit, so it runs with an empty Dir; remediate-commit-push then calls CommitAll/Push against an empty dir and branch. Fix by adding a mode-aware prepare stage before any agent work that carries the resume target (the task's PR branch) through the workflow Trees seam, mirroring the daemon's mode-aware Prepare. ### Close reason Closed --- _Imported from beads `archie-core-h4tk` · GitHub #1397 · type bug · priority P0 · created 2026-10-02 · closed 2026-10-02_
sam added the criticalbug labels 2026-10-27 13:40:03 +00:00
sam self-assigned this 2026-10-27 13:40:03 +00:00
sam closed this issue 2026-10-27 13:40:03 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1354