20 Flask pull requests, 19 integration jobs on GitHub and six on Merget

When several developers or coding agents finish work at once, which pull requests can ship together? We gave GitHub’s merge queue and Merget the same 20 changes and required both to pass Flask’s test suite before landing them.

Both queues landed all 20 changes. Merget used 67.1% less integration runner time and 93.9% fewer tokens for textual conflict fixes. Investigating semantic alerts brought its total model usage to 2.38 million tokens.

MeasuredNovember 30, 2026 UTC
BaseFlask 3.0.3
Median PR size132.5 lines changed

How we set up the comparison

The changes

We backported 20 real upstream pull requests to Flask 3.0.3, including their tests and documentation. They changed how Flask routes requests, loads configuration, signs session cookies and more. The median backport changed 132.5 lines.

The queues

We opened the same 20 branch heads in the same order on fresh benchmark copies. Merget saw all 20 before planning. The workflow had no Actions or dependency cache configured. The model meters include cached input.

The test

Both queues ran the same required GitHub Actions job on Python 3.12. It tested the proposed merge with Flask’s own suite. We recorded the commit each job tested, its start and finish times, and which changes landed.

Six batches used 149 fewer integration runner-seconds

On GitHub, 19 merge-group jobs tested candidate commits. Merget grouped compatible changes into six integration batches and ran the same required Flask tests on each batch commit.

Required integration CI across all 20 changes
MeasureMergetGitHub queue + CodexMerget vs. GitHub
Integration CI jobs61968.4% fewer
Integration runner time73 s222 s67.1% less
Active integration CI time73 s100 s27.0% less

Runner time adds the duration of each job. Active time counts overlapping seconds once. For example, (222 − 73) ÷ 222 = 67.1%. Each reduction uses GitHub as the baseline.

PR-head checks fall outside both integration totals. Merget also ran two checks to verify fixes before batching, adding 22 runner-seconds. Including those checks, its eight queue-branch jobs used 95 runner-seconds. Runner-seconds measure compute use. Billing also depends on the runner and its rate.

What the agents spent tokens on

GitHub’s queue needs an external fix when branches conflict. Codex inspected and edited the branches outside the queue, then the fixes were tested and pushed. Merget resolved conflicting text while preparing the queued changes.

Measured AI tokens by task, including retries
MeasureMergetGitHub queue + CodexMerget vs. GitHub
Textual conflict fixes42,910697,95093.9% fewer
Investigating blocking findings2,332,724No such stage—

The 93.9% figure is (697,950 − 42,910) ÷ 697,950. It applies to textual repairs. Both phases include metered retries.

Why certification used more tokens

Optional semantic review was off. A separate queue check flagged interactions in the combined code before landing. Merget made 51 model requests to investigate blocking alerts, compared with five to fix textual conflicts. The investigations dismissed the alerts without code edits.

Why one PR was investigated twice

On the streaming change (exhibit #14, capture #13), the first investigation used 1,253,523 tokens. GitHub rate-limited Merget after the investigation and before a verification commit was published. Retrying the same PR head used another 376,377 investigation tokens. Both attempts count.

How we counted tokens

We summed provider-reported usage once per meter. Codex input already includes cached input and its output includes reasoning. Merget reports input, cached input, output and reasoning separately. Cached reads account for 2,039,179 of Merget’s tokens and 646,272 of Codex’s. These are token volumes, not invoices.

How long the queues took to land all 20

GitHub took 5 min 31 s. Merget took 45 min 15 s. The clock starts at the first queue admission and stops when the last PR lands. We used the raw timestamps for both queues.

Merget landed 19 changes in 5 min 14 s. The streaming change landed last. During its retry, the queue reported unhealthy planning for 34 min 53 s between observations. A GitHub HTTP 403 confirmed rate limiting during that window. The observations do not identify exactly how much of it was caused by the rate limit, so the full interval stays in the published time.

CI, agent work, queue scheduling and waiting can overlap. Adding the CI and repair times would give a different number from elapsed queue time.

The last PR to open landed in the first batch

The last change to open, exhibit PR #21, improved type checking for deprecated code. Merget identified it as independent and ranked it fourth. It was one of five changes tested on the first batch commit.

One repair finished while another was still running

In a separate rehearsal on the same 20 PRs, one conflict affected Flask’s streaming helper and another affected routing. Merget started the routing repair while it was still working on the streaming code.

Both repairs were active for 12.4 seconds.

How to read thisEach line runs from the start of a fix to its finish on the same clock.

Streaming helperPR #140.0–40.7 s
RoutingPR #1012.8–25.2 s

Together, these two rehearsal repairs took 40.7 seconds of elapsed time and used 17,138 tokens.

What passed after landing

We built a wheel from each final checkout and installed it in a clean environment. Both compiled, passed 498 tests with two skips, and served the expected JSON from a health endpoint. We verified that both final commits included all 20 original PR heads.

Interactive demo

Follow a PR from opening to landing. Explore the earlier recorded run of the same 20 changes, inspect an in-queue fix or try a different priority in your own session.

Open the Flask demo