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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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