Wrong-branch recovery instructs a hard reset without warning that it discards uncommitted changes.
- Category
- Output Handling
- Confidence
- 98% confidence
- Finding
The recovery sequence directs the agent to run 'git reset --hard HEAD~1' without checking for or preserving uncommitted changes, which can irreversibly discard tracked working-tree changes. It also assumes the misplaced commit is the branch tip and permits continuation without explicit success checks, making this otherwise legitimate recovery workflow unsafe.
- Content
