TL;DR
When an AI agent changes few files, runs few tests, and says "Done", is it really done? Not always. Things may still break in unexpected places.
I prefer to define a strict definition of "Done", which I call the Task Completion Protocol. It usually lives in AGENTS.md and, in its simplest form, looks like this:
Run the repository's real lint and test commands.
Fix failures and rerun the checks.






