A closed issue can still protect behavior you need.
This little shipping example has one wrong character and one guard that must stay. The patch fixes the threshold; all three tests pass, and the TODO remains.
Google’s November 6 report examines agent detours triggered by bug-linked comments. The local example here is a deterministic patch we authored—not an LLM evaluation or a replication of that study. Before an agent edits your repo, write down what must not change.
Source: developers.googleblog.com/agent-distraction#AIEngineering#DeveloperTools#SoftwareTesting