This page needs JavaScript. For agents, the same page as Markdown: https://instabox.sh/blog/hundreds-of-pull-requests-a-day-is-a-verification-problem.md (below); the whole site: https://instabox.sh/llms.txt.

# Hundreds of Pull Requests a Day Is a Verification Problem

https://instabox.sh/blog/hundreds-of-pull-requests-a-day-is-a-verification-problem.md

2026-11-20 · Tony Chang · Engineering

Agents open hundreds of pull requests a day for us. Writing code is no longer the limit. Checking that the output makes sense is, and we still do it the way we did when people wrote the code.

I am pretty sure this happened to you today.

Your agent opened a pull request. The review bot said changes requested. The agent fixed it and pushed, and CI ran again for ten minutes or more.

Meanwhile five other pull requests were waiting behind it. When it merged, they were out of date, and some had conflicts. Each one was rebased, and CI ran again on all of them.

Does that really make sense?

The agent wrote the change in minutes. Then it stood in a line. Our agents open hundreds of pull requests a day, and every one stands in that line: the tests, then a reviewer.

![A pull request's path: the agent writes it in minutes, then CI runs, the reviewer requests changes, CI runs again, and it merges, while five pull requests behind it hit merge conflicts and rerun CI](https://instabox.sh/blog/images/2026-11-20-hundreds-of-pull-requests-a-day-is-a-verification-problem/the-line.webp)

CI and code review exist for one reason: to verify that the output makes sense. This post is about how badly we were doing that.

## TL;DR

- Agents open hundreds of pull requests a day for us. They wait on CI and on a reviewer.
- "Use Bun" does nothing for a distributed Go backend. That needs CPU, and tests worth running.
- Our CI took a median of 235 seconds, nearly all of it tests running. Our agents asked a person for approval about 390 times a week, and 5 of 36 deploy stops were real risk.
- With all of that in place we still shipped a sev. A limited blast radius kept it small. No check did.
- CI and review are one problem: verifying output. A unit test for every component is the old way to do it.

## The agents wrote the pipeline too

The same agents that write good application code also wrote our CI workflows and our deploy gates. Those were bad.

I did not notice. We reviewed the pipeline one diff at a time, and each diff looked fine. A workflow that wastes a minute reads exactly like one that does not. You only see it when you watch the whole thing run.

## "Use Bun" is not an answer for a backend

When I went looking for how to make CI faster, the internet had one answer: use Bun.

That helps a frontend build. InstaBox is a distributed backend written in Go: a control plane, node agents on every host, a gateway, and tests that start all of them and make them talk to each other. A faster JavaScript runtime does nothing for a Go test that waits on a real timer.

A backend like that needs CPU. Agents write a lot of logic, and all of it arrives with tests. The suite grows faster than it did when people wrote it, and every test is work for a processor.

Nobody online could tell me where our time went. So we measured it.

## Four minutes, and none of it was waiting

Over 200 runs, a pull request took a median of 235 seconds and 348 at p95. I expected jobs sitting in a queue. The time was in the tests.

One test waited out a real one-minute timer. A one-line fix took it from 60.6 seconds to 0.58. Six test processes per shard instead of three took the slowest process from 92 seconds to 66. And every change to a deploy script ran the dashboard tests, because a UI test happened to mention that script's file name.

![Two CI fixes in seconds: a test that waited on a one-minute timer went from 60.6 to 0.58, and the slowest test process in a shard went from 92 with three processes to 66 with six](https://instabox.sh/blog/images/2026-11-20-hundreds-of-pull-requests-a-day-is-a-verification-problem/test-time.webp)

None of this is clever. Each one sat in plain sight in a file that passed review.

## 390 asks a week

The tests are half the line. The person is the other half.

Our agents asked a person to approve something about 390 times a week. Of 36 deploy stops, 5 were real risk.

![36 deploy stops shown as dots, 5 marked as real risk and 31 as safe, next to about 390 approval asks a week before and a target of 15 to 20](https://instabox.sh/blog/images/2026-11-20-hundreds-of-pull-requests-a-day-is-a-verification-problem/approvals.webp)

When nearly every ask is safe, you stop reading them. The 5 that matter get the same quick yes as the other 31.

## Watching agents fight the pipeline

I run many agent sessions at once. Much of what I watched them do this week was wait.

It is painful, because the agents are not wrong. They follow the pipeline exactly, and it sends them in circles.

Two sessions tried to finish the same release. One kept taking the deploy lock for dry runs, so the real run kept finding it held. One night a single risky merge blocked every safe release behind it, and approved runs were cancelled whenever an unrelated config change merged. Eight sessions polling for CI results used up the hourly API limit on my account, and then every command in every session failed until it reset.

One production deploy was refused four times in a row, each time for a safe reason. Production stayed on a release that was 11 hours old.

Each agent did its job. Put ten of them through a pipeline built for one careful person and it jams.

## It is an output verification problem

A test run and a reviewer answer the same question: does this output make sense?

Agents answer it the traditional way. They write a unit test for every component and every edge case. Then a second agent reads the diff line by line, the way a person would.

Does that really make sense?

That method was built for people. A person writes a little code slowly and pins each piece down with a small test. An agent writes a lot of code fast and writes the tests in the same breath. When one author produces both the code and the tests that pass it, the tests mostly prove that the code does what the code does. And each one costs CPU on every run of every pull request.

More checking did not buy us more safety either. In one day, four changes passed every check and still broke main. We shipped a sev this week with all of it in place.

What kept that small was not a check. It was a canary first, a rollout in small batches and a rollback ready, so a bad change could only reach a little at a time.

![Two ways to ship safely: verifying the output with CI tests, a review bot and approvals, and limiting the blast radius with a canary, small batches and a rollback](https://instabox.sh/blog/images/2026-11-20-hundreds-of-pull-requests-a-day-is-a-verification-problem/verify-and-limit.webp)

I do not have the full answer. I do know the question is no longer how to run this pile of tests faster. It is what we need to see to believe the output is right.

## What we changed

**Measure first.** Before touching a job we split its time into waiting, setup and running, at the median and at p95. We review the result in minutes, dollars, asks and failures. Nobody judges YAML by eye.

**Run less on each pull request.** A pull request runs the tests its diff touches. The full suite runs once, on the merged result.

**Remove tests that verify nothing.** A test that restates the code costs CPU on every run and catches no bug. We still never hide a failure behind a retry or a skip.

**Depend less on outside APIs.** We kept hitting rate limits in strange ways. CI and deploys now make fewer calls and share them: one sweep reads every open pull request, where each session used to poll for its own.

**Ask a person only for real risk.** Everything else deploys itself, with a canary first and a rollback ready. The target is 15 to 20 asks a week, down from about 390.

**Turn on a merge queue.** We switched it on the day I wrote this. Before, when one pull request merged, every one behind it was out of date and ran CI again. In the queue they line up, CI runs on main plus the ones ahead, up to five at a time, and what passes lands in order. Nobody reruns CI because main moved. It also tests changes together before they land, which is exactly how main broke for us. It will not fix two pull requests that edit the same lines.

## Where the speed is

For a team that builds with agents, the model is not the slow part of shipping. The pipeline is. It is also the easiest part to measure, because every run leaves a duration, a cost and a result behind.

One pull request is a code problem. Hundreds a day is a verification problem.

I will write up how the merge queue goes, one approval per deploy and sub-minute CI, with numbers, when we get there.

If you liked this one, tell me, or follow me on [X](https://x.com/tonychang430) or [LinkedIn](https://www.linkedin.com/in/tony-chang-0430/) so you catch the next one.