A2A Check

TE-02: No check is named before the agent reports a task as done

Area: Test cases · Severity: medium · Catalogue version 1.104.0

Why it matters

The agent reports a task as done and nothing makes it check first.

Before (example)

Example: it reports a bug as fixed, but the tests it never ran fail.

How to fix it

Write one sentence that says which check the agent runs (tests, build, linter or review) before it reports a task as done, or set up a hook at the end of the turn.

After (example)

Run the tests before you report a task as done.

Check it yourself

Read your instruction files and your settings for a step the agent runs before it reports a task as done, such as tests, a build or a review, or for a hook on the end of a turn.

Recognised wording

The check looks in your instruction files for a sentence with one of these wordings (German or English):

These are examples: the check knows 6316 more wordings, also in other word forms and orders (full list: catalog/rule-keywords-1.23.0.yaml).

A negated sentence does not count: “There is no rate limit” or “without approval” does not meet the rule, even though it holds one of these wordings.

A sentence that starts like this counts too: run tests before merging, run tests before pushing, run tests before you say, before merging, run tests, before pushing, run tests, before you say, run tests, run pytest before merging, run pytest before pushing, run tests before you push, before merging, run pytest. And 11137 more sentence starts.

The check reads words, not meaning: a sentence that is right in meaning but holds none of these wordings is not recognised. The list grows with every catalogue version.

All rules