Verify "done"
verify_doneProve a task is genuinely complete by running the given test command and verifying claimed file changes appear in git. Returns PASS only when tests pass and every claimed path changed.
Instructions
Prove a task is actually complete before trusting an agent's "done" claim. Runs the given test command and, if the directory is a git repo, diffs the actual changes. Returns PASS only if the tests pass (exit 0) and — when expect_changed is provided — every claimed path actually changed. This is the gate between "agent says done" and "I believe it."
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute path to the project directory. Defaults to the server's working directory. | |
| claim | No | The agent's stated 'done' claim, echoed back in the verdict for the human reviewer. | |
| test_command | Yes | The command that proves real behavior, e.g. 'npm test' or 'pytest -q'. Runs in the target directory. | |
| expect_changed | No | Paths the agent claims it changed; verify_done checks each actually appears in git status. | |
| timeout_seconds | No | Max seconds to allow the test command to run before it is killed and the verdict is FAIL. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reasons | Yes | ||
| verdict | Yes | ||
| evidence | Yes | ||
| timed_out | Yes | ||
| test_passed | Yes | ||
| changed_files | Yes | ||
| test_exit_code | Yes | ||
| missing_expected_changes | Yes |