Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 1 min read

Two AI Agents Reviewed the Same PR. Was That Actually Independent?

Imagine this workflow: Agent A writes a patch and opens a pull request. Agent B reviews it and says "LGTM." CI turns green. Two agents, one approved PR. Sounds like independent review. Now change a few details. Bot

Imagine this workflow:

  • Agent A writes a patch and opens a pull request.
  • Agent B reviews it and says "LGTM."
  • CI turns green.

Two agents, one approved PR. Sounds like independent review.

Now change a few details.

Both agents can modify the same workspace. The reviewer relies on the author's generated summary. The tested commit might not be the commit that ultimately gets merged.

Do we still have independent verification, or just two agreeing opinions?

I'm increasingly interested in the boundaries that make a review independent, rather than simply the number of models involved.

For example, a reviewer could use a read-only checkout pinned to an exact commit, inspect the raw diff, and verify which tests actually executed. That gives us evidence the implementing agent cannot simply rewrite.

But how much separation is enough?

I'd love to hear how others handle this:

  1. Is a second AI model with a separate prompt sufficient for low-risk changes?
  2. Do you require separate workspaces, credentials, and immutable artifacts?
  3. What evidence makes you trust an AI-generated review?
  4. Where do you still require human approval?

Share your actual setup, a failure case, or even a simpler approach that works.

I'm especially interested in small, reproducible tests that could challenge our assumptions.

Disclosure: I maintain Agent Role Contracts (ARC), an open-source checker for declared agent responsibilities and task boundaries. Runtime enforcement and independent review require additional controls. This discussion is about what those controls should actually prove.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.