Urgent.News

What's breaking now, across thousands of outlets.

AI

Reviewing AI-generated code at volume: the ceilings per forge

AI code review usually gets evaluated on quality and then deployed into a volume problem. The reviewer that looked sharp on a five-file pull request meets a backlog where an agent opens twelve a day, each one large, each one pushed to three times before it is ready. What breaks first is not the model. It is one of three ceilings that nobody configured deliberately: the forge's API quota, the…

AI code review systems typically assess quality before deploying them to handle large volumes of pull requests. The primary issue arises when an agent opens numerous requests daily, each requiring multiple iterations before completion. The three critical ceilings that cause problems are the forge’s API quota, the vendor’s review quota, and the reviewer’s trigger cadence. These three components are part of different products, owned by separate teams, and fail in various ways that resemble unrelated issues.

The forge’s API quota manifests as an apparent outage, while the vendor's quota appears as a reviewer going quiet. The reviewer’s cadence looks like a reviewer who stops noticing new commits. Each ceiling has set numbers, and for self-managed forges, these numbers are configurable. Forge quota comes first since all other components share it.

An AI reviewer functions as an API client, consuming database, compute, and storage resources with every call, sharing the same quota as other pipeline, script, and dashboard activities.

Azure DevOps provides the most transparent numbers, with throughput units (TSTU) measuring consumption. One TSTU represents a typical user's load over five minutes, with rate limits at 10 TSTU or less for normal activity and up to 100 for larger but less frequent spikes. The global limit is 200 TSTU within a sliding five-minute window.

If usage exceeds this limit, the response code is 429, which resembles a successful request but includes a Retry-After header. This deception leads to recording unexecuted requests, causing confusion between a review that found nothing and one that never occurred.

To avoid this issue, it is crucial to monitor X-RateLimit-Remaining and consider a non-zero delay as a failure. For Bitbucket Data Center, rate limiting is a token bucket per user, defaulting to 60 tokens with a refill rate of 5 tokens per second. It applies to HTTP requests using basic or bearer authentication but not to Git SSH operations.

When a bot misbehaves, two key considerations are providing a specific user an exemption or using a cluster with separate buckets for each user. GitLab's forge-side limits are documented per endpoint, primarily focusing on write endpoints like notes and comments.

The vendor ceiling refers to reviews per hour or credits per month, with CodeRabbit and GitLab offering different metering systems. CodeRabbit meters reviews, with per-developer, per-hour allowances ranging from 1 to 12, depending on the plan. Files per review also have caps, and exceeding them results in failure. GitLab uses credits, with a monthly commitment pool and on-demand usage at $1 per credit.

The billing method varies based on the setup, with self-hosted instances billed as a flat fee under an Enterprise License Agreement.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

The Three Guard Rails Every AI Code Review Rollout Needs

Your bot just sent you an invoice for its own learning curve. Pull up a chair, grab a cup of chai, and listen to this quote. Tom Wilkie, the CTO over at Grafana Labs, put it plainly when they launched Adaptive Telemetry: “The economics of observability break down when every new AI workload just adds more data to store and more noise to…

  • Implement strict instructions for AI review, treating files as formal orders for junior reviewers
  • Roll out AI review system gradually, starting small, monitoring productivity and costs
  • Track signal effectiveness with metrics: genuine issues caught vs. noise comments generated

More from Monday 9 November →