The dangerous agent diff is not the one that breaks the build. It is the one that does the thing you asked plus four things you did not, each defensible on its own, none of them reviewed. You approve it because the first hunk is right and the file count is plausible. This makes the boundary a thing that exists before the work rather than a thing you reconstruct afterwards from a diff you are already tired of reading.
Fill in: taskrepo_pathverify_cmd
Shared as is, for reference. Read it and decide what it will do before you run it; using it is your responsibility, under the terms.