chore: make solve-issue.yaml portable + add developer failed exit #509
Reference in New Issue
Block a user
Delete Branch "chore/solve-issue-portable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Make solve-issue.yaml repo-agnostic and add a developer escape hatch.
Why
~/repos/workflow— won't work for other repos~/repos/workflow-worktrees/could conflict across reposChanges
.workflows/solve-issue.yaml— remove all hardcoded paths, use.worktrees/relative to repo root, addfailed → $ENDexit for developer, addworktreeto reviewer rejected variant (caught by semantic validator!)solve-issue-tea-worktree.test.ts— fix path resolution withimport.meta.dirnameValidated
uwf workflow addpasses semantic validation ✅Code Review — 小墨 🖊️
APPROVED ✅
好改动,让 solve-issue workflow 真正可移植了:
.worktrees/相对路径下,跨 repo 不冲突failed→$END出口 + discriminated union frontmatter,符合 #499 的模式worktree字段,developer 回来时知道去哪里改 — 语义验证器的功劳 🍊import.meta.dirname替代process.cwd()拼接,更可靠