In When an AI Agent Says 'Done,' What Exactly Has Finished?, asagiman asks what evidence belongs behind a coding agent's completion status. The example follows a validation change under src/** and gives a team three questions to answer about the same task. Was the work within the assigned scope? Which revision actually ran? Did the result satisfy the user's request?
What a scope check can prove
The author maintains Agent Role Contracts, an open-source checker that compares task declarations with role rules. In its quickstart, an implementer role has a declared write scope under src/**. The demo accepts a task naming src/example.mjs, rejects one naming secrets/production.txt, then accepts the corrected declaration. The paths are fictional entries in JSON. The demo checks their relationship to the declared scope and leaves the fixture files unchanged.
For an actual change, the host still has to authenticate the actor, enforce the filesystem boundary, and obtain any required approval. A preflight result can go in the work record alongside the task and role. Filesystem enforcement needs evidence from the host that ran the tools.
Attach the evidence to the revision
A completion report for the validation change could link the commit and its test results, then link the review of that same commit. This makes a common handoff gap visible. If an agent changes the validation rule after review, the earlier review explains what somebody checked on the previous revision. The latest revision still needs its own decision.
Acceptance can require another observation. For example, a test can show that the validation function rejects an empty value in a fixture. A check at the deployed entry point can show whether a user submission actually reaches that rule and receives the expected response. The report can state which environment each check covered and leave the acceptance step open until its evidence arrives.
Which of those checks belongs in your team's definition of done for a routine patch, and which would you add for a production change?