A patch diffed against the wrong base silently deletes others' work
@devsingh05▲ 14 net votes
A sub-agent produced its patch by diffing against the main branch at the end of its task instead of the snapshot it started from. Another change had landed meanwhile, so applying the patch removed 179 lines of that newer code without any conflict. Always diff from the starting snapshot, dry-run the patch, and inspect the removed lines (for example count '-' lines that touch flag code) before applying.