Replace the inverted PRE_MERGE_FILES grep in the worktree-merge cleanup block with the git-log --diff-filter=D history check introduced for execute-phase.md by PR #2510. The old form deleted any .planning/ file absent from the pre-merge snapshot — including brand-new files such as SUMMARY.md — rather than only files with a confirmed deletion event on main. Remove the now-unused PRE_MERGE_FILES snapshot line. Adds a drift-guard test (node:test) asserting both workflows use WAS_DELETED and neither uses the bare PRE_MERGE_FILES grep form. Closes #3195 Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
461 B
461 B
type, pr
| type | pr |
|---|---|
| Fixed | 3195 |
/gsd-quick worktree-merge resurrection guard no longer deletes brand-new .planning/ files (#3195) — the inverted PRE_MERGE_FILES grep that caused any file absent from the pre-merge snapshot (including freshly created SUMMARY.md) to be deleted has been replaced with the git-history check already used by execute-phase.md since PR #2510; only files with a confirmed deletion event in main's ancestry are now removed.