fix(#2853): sync .sisyphus state from worktree to main repo before removal

When .sisyphus/ is gitignored, task state written during worktree execution
is lost when the worktree is removed. Fix:

- add worktree-sync.ts: syncSisyphusStateFromWorktree() copies .sisyphus/
  contents from worktree to main repo directory
- update start-work.ts template: documents the sync step as CRITICAL when
  worktree_path is set in boulder.json
- update work-with-pr/SKILL.md: adds explicit sync step before worktree removal
- export from boulder-state index
- test: 5 scenarios covering no-.sisyphus, nested dirs, overwrite stale state
This commit is contained in:
YeonGyu-Kim
2026-03-27 14:11:45 +09:00
parent 670d8ab175
commit 19ab3b5656
5 changed files with 144 additions and 4 deletions
+1
View File
@@ -2,3 +2,4 @@ export * from "./types"
export * from "./constants"
export * from "./storage"
export * from "./top-level-task"
export * from "./worktree-sync"