You ask a coding agent to add a feature. It changes the code, writes tests and reports that everything passes.
Then you ask another agent to review the work. It finds a couple of issues. The first agent fixes them. The reviewer approves.
That is a useful workflow. It can also leave an important question unanswered: what did either agent actually establish about the behaviour of your application?
An AI review, by itself, is not enough to establish that a change is correct or ready for production. Its value depends on the requirements it checks, the context it can inspect and the evidence behind its conclusions.
The same applies to a developer who reads the summary and clicks Approve.
What the second review adds
AI review can identify a missing check, question an error path or notice that a test never exercises the behaviour its name describes. Those are useful contributions.
I would keep that review in the workflow.
But its conclusion needs a scope. “No issues found in these changes” does not establish that payments, permissions and deployment configuration work together correctly.
GitHub's own guidance acknowledges that Copilot code review can miss problems, report problems that do not exist and suggest fixes that fail to resolve the original issue. It recommends checking the feedback and supplementing it with careful human review.
That guidance is about a specific product. The engineering question is broader: what information would allow a reviewer to reach a justified conclusion about this change?
A list of modified files is a starting point. The intended behaviour, relevant callers, database rules and failure conditions may matter just as much.
Two reviewers can share one incomplete requirement
Suppose you ask an agent to add the ability to export customer records.
It implements the export. Its tests confirm that the file downloads and contains the expected columns. A second agent checks the query, formatting and error handling.
Neither asks whether every employee should have permission to export those records.
Both agents can do their assigned work competently while the product still allows something it should refuse.
Switching models may help surface different questions. It does not establish that the missing requirement has been supplied or tested. A second reviewer given the same incomplete brief can reach the same incomplete conclusion.
I would give the reviewer the original product request, the agreed access rules and the relevant application context. I would ask it to identify assumptions it cannot verify.
For an export, that might include which company the records belong to, which roles may download them and whether a removed team member should retain access.
This is consistent with OWASP's code-review guidance, which starts with understanding the architecture, business requirements and security requirements.
The useful independence comes from having a basis for challenging the implementation.
A payment feature that works once
Consider an illustrative app where a customer buys 100 usage credits. This is a made-up example, not a finding from a customer audit.
A payment notification arrives. The application verifies it, identifies the customer and adds 100 credits. The test passes. An AI reviewer sees the signature check, error handling and successful test.
Now the same notification arrives again.
Stripe explicitly documents duplicate webhook deliveries. A notification can be delivered more than once, so an integration needs a way to avoid repeating its business effect.
Our example application has passed its test and may still add another 100 credits.
The requirement should have been explicit: one successful purchase grants one credit allocation, including when its notification is retried.
An agent adds a check: look up whether the event has already been processed, then return if it has. A sequential retry test passes.
There is still another question. What happens when two deliveries run at the same time?
Both can check before either has recorded completion. Both can conclude that the event is new. Both can add credits.
For a credit ledger stored in one database, I would inspect how uniqueness and the credit update are enforced together. The design needs to prevent duplicate allocation and avoid recording a purchase as complete when its credits were never saved. The identifier used must represent the purchase being fulfilled, including where several event types can refer to it.
That calls for evidence from the relevant database operations and tests:
| Scenario | Expected result in this example |
|---|---|
| First valid notification | 100 credits are added |
| Same notification delivered again | The total allocation remains 100 |
| Two deliveries overlap | One allocation is committed |
| Processing fails before the credit transaction commits | A retry can complete the allocation without losing or duplicating it |
These are proposed checks, not reported test results.
A test that calls the handler twice in sequence does not exercise the overlapping case. A test that only checks an HTTP success response does not establish the balance stored in the database.
This is where review becomes valuable: someone notices the difference and asks for the missing evidence.
A passing test can preserve the wrong behaviour
AI can write the tests too. Writing tests manually does not, by itself, establish that they check the right behaviour.
The important question is where the expected result came from.
If an agent reads an implementation that grants access to every signed-in user, it may write a test that confirms exactly that behaviour. The test can be accurate about the implementation and wrong about the product.
Expected outcomes need to come from the agreed rules. For an application serving separate companies, that means checking both the permitted action and the corresponding forbidden action.
Use two populated test companies. Confirm that the intended user can retrieve their own data. Then check that another company's user cannot retrieve it through the same path. An empty database tells you very little about whether a filter works.
The identity used by the test matters as well. Supabase documents that its service role can bypass RLS. A test executing with those privileges does not establish what an ordinary customer can access. Check the actual request identity and database role; a client carrying a user's access token can run under that user's policies even when initialized with a privileged key.
I covered the customer-facing checks in the Supabase RLS guide. The broader point applies to any stack: a test needs to exercise the rule you intend to rely on.
“Fixed” should lead to something you can check
When an agent reports that it has fixed a problem, I want to know what changed in the observed behaviour.
For a reproducible defect, a useful sequence is:
- Describe the failure and the expected outcome.
- Create a regression test that fails for the relevant reason on the affected version.
- Apply the correction.
- Run the same test against the corrected version.
- Check that the normal, permitted behaviour still works.
An AI can perform each step. The results still need to be inspectable.
Check which revision was tested, which environment it ran in and what the assertions establish. Check whether the patch changed the test as well as the implementation.
Sometimes a test expectation is wrong and should change. That decision needs its own justification. Removing an assertion because it blocks the patch can make a failing build green while preserving the original defect.
When reproduction is impractical, record the narrower evidence available. A code inspection may support a proposed fix without establishing its runtime behaviour. “Not verified in this environment” is a useful result because it identifies the remaining work.
Give the review a different job
I would separate implementation and acceptance responsibilities, even when AI performs both.
The implementation task is to satisfy the agreed behaviour. The acceptance task is to determine whether the submitted evidence supports that claim and where it falls short.
Give the reviewer access to the relevant code, requirements and actual test output. Ask it to trace the important workflow, challenge assumptions and identify untested cases. A fresh session can be useful, provided it receives enough context to do that work.
Also decide who can change the acceptance rules. An implementer should be able to propose a correction to a requirement or test. Adopting that correction should be a separate decision, with its effect on the original goal made explicit.
A review report can stay short:
- Expected behaviour: the rule being checked.
- Evidence: the relevant code, executed checks and observed state.
- Conclusion: supported within this scope, issue remains, or not verified.
- Limitations: the cases or environments that were not covered.
For the credit example, “sequential retries passed; overlapping deliveries were not tested” is a useful conclusion. It tells the next reviewer exactly what remains uncertain.
Review effort should follow the consequence
A wording change and a payment-ledger change deserve different levels of scrutiny.
For a small, reversible change with a clear requirement and dependable checks, an established automated path may be proportionate. For a change affecting customer data, money, permissions or a destructive migration, the cost of being wrong justifies deeper investigation.
This is a decision about the whole delivery process. A second model's approval alone cannot establish that an automatic release path is dependable.
Human involvement needs to contribute something concrete too: clarifying an ambiguous business rule, inspecting a transaction boundary, challenging a misleading test or deciding whether an unresolved risk is acceptable.
That is the position behind Writing code is optional. Owning the outcome isn't. The developer can delegate implementation, testing and review while remaining responsible for how the results are accepted.
What I would ask before accepting the change
Start with five questions:
- Which requirement was checked? Be specific enough that a test could contradict the implementation.
- What evidence came from the system? Look for executed checks, persisted state or inspected access paths.
- Were relevant failure cases exercised? Depending on the change, these may include the wrong user, a retry, overlapping requests or a partial failure.
- Does the evidence cover the version being released? A result from an earlier revision or a materially different configuration has limits.
- What remains unresolved, and who can accept that risk? Keep uncertainty visible.
These questions are useful whether the reviewer is a person, an AI agent or a combination of both.
You can keep using the same development tool. You can also have it implement the corrections. Independent review adds value when it challenges the assumptions and evaluates the evidence behind the claimed result.
I provide independent AI code audits of agreed code, configuration and existing evidence. The work is read-only, with prioritized findings and recommendations. Your development team owns the changes and release decisions.
The next time an agent says “review complete,” ask it to show which behaviour it checked and what happened. That gives you something you can use to make a release decision.
Sources
Documentation checked on 20 November 2026. The payment example and proposed checks are illustrative.