A green build is the weakest definition of done — and the one your agent reaches for first.
Write the exact verification step into the feature spec your agent loads, so 'done' means the test passed and the result is on the table — not that the code compiled.