# Stop AI agents from marking their own work as done

Canonical: [Stop AI agents from marking their own work as done](https://contextingo.com/guides/human-review-ai-generated-code)

Locale: en

Purpose: Coding agents say “done” when tests failed or never ran. Contextingo fetches CI itself, shows it next to what the AI claimed, and only a person accepts.

Content updated: 2026-10-26

Source revision: content.ts 2026-10-26

Maintenance owner: the Contextingo site owner

[Topic map](https://contextingo.com/llm/topics/guides.md) · [Complete scoped map](https://contextingo.com/sitemap.md)

A coding agent that says “done” is not proof that the work is done. In Contextingo the AI can only submit. A person decides, in the browser, against a fixed version of the submission and the CI results Contextingo fetched itself.

1. **Give the issue acceptance criteria.** Write them in the GitHub issue body. The AI reads them with `issue_get`, and Contextingo stores a hash of them with every submission.
2. **The AI submits, it does not close.** When the work is done the AI calls `review_submit` with a summary, the changes, the branch, commit or pull request, and the checks it says it ran. The submission is stored as an immutable record and the issue moves to awaiting review.
3. **Contextingo checks CI itself.** For the commit or pull request, Contextingo fetches the CI results from GitHub and shows them next to what the AI reported, so a mismatch is visible at once.
4. **A maintainer accepts or asks for changes.** Only a maintainer can decide, in the browser; no tool lets an AI accept. The decision is refused when a newer submission exists, the acceptance criteria changed, or the pull request got new commits, so nobody accepts a version they did not see. Closing the issue on GitHub never counts as accepted.
5. **Get told where you work.** Under Settings → Webhooks, add a Slack incoming webhook for review.submitted and review.decided. The message names the issue and who submitted or accepted it.

## Reviewing a pull request an AI wrote

- Start from the acceptance criteria, then read the diff: does it do what the issue asks, and nothing the issue did not ask for?
- Trust the checks Contextingo fetched, not the ones the AI listed. A check that is missing, pending or skipped counts as not run.
- Look at what happened to the tests. Deleted or skipped tests, looser assertions, or mocks that replace the code under test make a green run mean little.
- Check every new dependency and API call: the package should exist, be the one you meant, and be needed.
- Read what the session saved, under From this session in the review panel. Confirm the records that are right in the same action as accepting, so they reach every teammate’s AI.
- Go slowly where a mistake costs most: sign-in and permissions, secrets, user input, database queries and shell commands.
- Send it back with a note when something is off. The AI reads the note with `issue_get` before it continues.

## Questions

### My AI says the tests pass. How do I know?

Look at what Contextingo fetched, not at what the AI wrote. For the commit or pull request in the submission, Contextingo gets the CI results from GitHub itself and shows them next to the checks the AI says it ran. A failing, pending or missing check is visible before anyone accepts.

### Can I let CI decide on its own?

Yes, as an option per project: work review “automatic” accepts a submission only when every CI check Contextingo fetched for it passed. Failing, pending or missing CI goes back to a person, and the acceptance is marked as automatic.

### Can a maintainer accept their own work?

Yes. Contextingo does not require a second reviewer.

### Does the AI see why work was sent back?

Yes. The decision and its note are stored with the issue, and the AI reads them with issue_get before it continues.
