Pular para o conteúdo
← Back to Skalablog

Published article

3 Levels of Agentic PR Validation in 2026

Software EngineeringSupabase

Agentic PR validation uses an AI agent to review pull requests, diagnose CI failures, fix issues until the build is green, and merge under rules you set. Gitar built this system and now ships it as part of Sonar after its 2026 acquisition. It targets the bottleneck AI-created code has created in CI and code review.

Why AI-Generated Code Turns Validation Into a Bottleneck

AI generates more pull requests and bigger pull requests, and every one of them can carry defects. That shifts cost to the right in the development lifecycle: more code to review and more potential production failures. Teams are left choosing between slowing down for careful review or rubber-stamping PRs and accepting incident risk.

Ali-Reza Adl-Tabatabai, co-founder and former CEO of Gitar, laid out this argument at the AI Engineer World's Fair 2026 in San Francisco. About a month before the talk, Gitar was acquired by Sonar, the company behind SonarQube, and the validation capability is now shipping as part of Sonar.

The centralized validation phase, CI plus code review, enforces quality gates for security, compliance and code quality. It sits on the critical path of every change reaching production. As engineering organizations grow, builds run longer, reviews stretch across time zones, and the phase gets slower and more expensive.

Failures in this phase are costly in a specific way. They create an outer loop measured in hours or days, burn developer time, and break flow state. The systems involved are often fragmented tools stitched together with bespoke configuration, maintained by a headcount-constrained platform team.

What Agentic PR Validation Actually Does

Agentic PR validation fully automates the validation steps of a pull request and delivers a defined outcome: a green PR ready to merge, or an automatic merge. The agent covers four capabilities, each configurable per team.

The capabilities described at the 2026 AI Engineer World's Fair are:

  • Automated review: the agent reviews the PR and posts issues as inline comments, tuned to reduce noise so findings are real and relevant.
  • CI failure analysis: it analyzes failing CI runs, posts a summary of root causes, and is particularly effective at detecting flaky tests, with optional automatic retry rules.
  • Autofix loop: it fixes code review findings and CI failures, either on request or in an automatic loop until every issue is resolved and the PR is green.
  • Auto-approve and merge: teams define rules and conditions under which the agent approves and merges green PRs.

Customization is a first-class concern. Teams can add their own review rules, custom checks and workflow automations, and can configure the system to block merging while unresolved review findings remain. The speaker attributed the popularity of automatic flaky-test retries to how common test flakiness is, a point based on his company's Supabase rather than an independent study.

How Teams Build Trust Before Full Automation

Adoption follows a staged trajectory. Users do not start with auto-merge; they earn each level of automation as they observe the agent's accuracy. This progression is drawn from Gitar's reported user behavior, so treat it as vendor-observed rather than an industry-wide pattern.

The trust ladder, in order:

  1. Read-only reviews: the team receives AI reviews and judges whether the findings are accurate and important.
  2. Blocking power: satisfied teams give the agent authority to block PRs with unresolved findings.
  3. Autofix: the agent automatically fixes review issues and CI failures until the PR is green.
  4. Auto-merge: rules define when the agent approves and merges PRs without human sign-off.

The final step is where the speaker said the most interesting leap is now happening. Each unlocked level increases the value teams get from the system, which in turn reinforces trust in the next level.

Insights for Platform Teams and Engineering Leadership

Because the agent processes every PR, it generates organization-wide data that manual review never captures. Platform teams get a categorization of top CI failures: are developers hitting flaky tests, infrastructure problems, or other failure classes? That tells a platform team where to invest first.

Leadership teams get a categorization of landed PRs: how much of the team's output goes to feature development versus bug fixes, chores and refactors. Both insight types come from the vendor's own product, so they are vendor-reported capabilities rather than independently audited measurements.

Under the Hood: Control Plane, Custom Harness and LLM Proxy

Three components make up the Gitar system. A control plane orchestrates PR workflows. A purpose-built agent harness handles multi-agent execution, context management, memory management, tool calling and integrations. An LLM proxy routes requests across different models and handles failover.

Building a custom harness rather than using a general-purpose framework let the team optimize specifically for validation, targeting token cost, precision and coverage. That optimization is what the speaker credits for being able to guarantee outcomes at a fixed price per PR. This is a vendor claim about its own product economics, not an independently verified benchmark.

Why Agents Plus Program Analysis Beat Either Alone

Now that Gitar is part of Sonar, the stated plan is to combine agentic validation with the static program analysis in SonarQube: taint analysis, control-flow analysis, data-flow analysis and software composition analysis. The argument is that algorithmic analysis provides deterministic precision while agents provide coverage and fix capability, and the combination improves both at a good price point.

This is the speaker's position and the strategic rationale for the acquisition, presented at a conference by the acquired company. It is a reasonable engineering thesis, but no independent evaluation of agent-plus-program-analysis pipelines against agent-only or analysis-only baselines is cited in the talk, so the superiority claim remains unproven in public data.

Reported Results and What to Weigh Before Adopting

The reported value falls into four buckets, all vendor-reported from Gitar and Sonar's Supabase as of 2026:

  • Better quality and security, especially for AI-generated code.
  • Faster delivery, with PRs moving straight from creation to approved and merged.
  • Higher developer sentiment, since less time is spent on review grunt work and production worry.
  • More leverage for platform teams through custom checks, automations and failure analytics.

The main open question for a buyer is review precision in their own codebase. The product's stated design goal is minimal noise, and the trust ladder exists precisely because accuracy is the gate to each automation level. Teams evaluating the tool should pilot the read-only review stage first and measure false-positive rates before granting blocking or merge authority.

Frequently Asked Questions

  • What is agentic PR validation? It is the use of an AI agent to automate pull request validation: reviewing code, diagnosing CI failures, fixing issues until the build passes, and merging under predefined rules. Gitar, now part of Sonar, shipped this capability in 2026.
  • Who built this system? Gitar, a startup co-founded by Ali-Reza Adl-Tabatabai, built it. Sonar acquired Gitar about a month before the October 2026 AI Engineer World's Fair talk, and the capability now ships as part of Sonar.
  • Can the agent merge PRs on its own? Yes, but only under rules the team defines. Adoption in practice is staged: teams typically start with read-only reviews, then enable blocking, then autofix, and only later auto-merge.
  • How does it handle flaky tests? The agent analyzes CI failures and identifies flaky tests, and teams can configure automatic retries for them. The speaker called this one of the most popular features, based on his company's users.
  • Does agentic validation replace static analysis? No. The stated direction at Sonar is to combine the two: agents handle review, diagnosis and fixes, while SonarQube's taint, control-flow, data-flow and composition analyses provide deterministic checks.

From Talk to Text

This article exists because a 12-minute conference talk contained a full argument about validation bottlenecks, trust ladders and system architecture, and that knowledge was locked inside a video. Written form makes it searchable, quotable and skimmable in a way a recording is not.

If you have talks, interviews or explainers sitting in YouTube videos, Skala Blog turns them into structured articles: paste the URL, get the transcription, and generate a publishable draft you can edit and ship.

Source video