Scion's volume on the Git you already have
Gudjon Gudjonsson · Founder and CEO of OZ · 1 December 2026
bay is a Rust tool of a few MB, under the MIT licence. It merges the changes of a fleet of AI agents on plain Git and on GitHub. We run it at the rate Anthropic reports for Scion: 30,000 changes a day. This post gives every number we have, each with its run and its date. That includes the two numbers that are still red.
Agents broke the merge queue
A coding agent does not wait for a reviewer, and it does not go home at six. Give a team twenty agents, and its repository gets far more merges than a queue for people can carry. Most merge queues serve people: the queue checks one change, merges it, then takes the next. At agent volume, the queue becomes the work. Changes wait longer in line than they took to write.
In October 2026, Anthropic described Scion in Redesigning source control. Anthropic built Scion when Git and a merge queue could no longer keep up with its own agents. Scion merges about 30,000 changes a day in one monorepo. It has no merge queue: a change merges while its tests run. A machine finds and reverts a change that breaks the build. Commits happen on the server, checkouts are virtual, and caches hit more than 99 % of the time.
Scion is an internal tool, and it replaced Git. Most teams cannot do that. Their history, their CI, their reviewers' habits and their GitHub organisation all assume Git.
bay starts from the other end. It keeps Git and adds the parts that make Scion fast. Your repository stays a normal Git repository, and GitHub, or any Git host, stays your origin. bay adds a line that checks changes in batches and merges them in order. It finds a breaking change by bisection. It keeps its own records in Git refs, so you run no database and no server.
What Scion does, and what bay does on Git
Each row puts one part of Scion, as Anthropic describes it, beside what bay does today.
| Scion, from Anthropic's account | bay today | Status |
|---|---|---|
| No merge queue: a change merges while its tests run | Quick checks run before the merge, and long checks run after it, on main | Shipped |
| Automated bisect and revert | Bisection names the change that broke a check, and a runner can undo it if you turn that on | Shipped |
| Many changes for each test run | The line's head checks a batch of up to 16 or 24 changes and merges it in one push | Shipped |
| An API for every query, and agents that are always online | Every command answers with one JSON result, and bay has an hourly audit and a doctor | Shipped |
| Commits and ref moves on the server | bay's own origin makes the merge local, and GitHub becomes a mirror | In progress |
| Refs only for main and releases | bay keeps about 7 live refs for each merge today | Roadmap: a ledger and reftable |
| Cache tiers, each with more than 99 % hits | One asset cache, with no tiers yet | Roadmap |
| Reads with no checkout | A check gets a full working tree | Roadmap |
| Virtual checkouts | Sparse views | Roadmap |
| Agents resolve conflicts after a merge | bay refuses a merge that conflicts, and the agent refreshes its change | Roadmap: bay starts the refresh |
| Approval rules that know a comment from a logic change, and access for each directory | Path rules in the repository policy, and key classes in the push hook | Roadmap |
The test: 30,000 changes a day is 0.35 a second
To learn whether bay keeps up at Scion's volume, we wrote that volume down as a load test. It is part of bay's own test suite.
- A synthetic repository of 4,000 files.
- Changes arrive at 0.35 a second on average, which is 30,000 a day, in bursts up to 1.5 a second.
- Each change touches 1 to 5 files.
- One quick check before the merge, 2 s long, and two checks after it, 30 s and 300 s long.
- One broken change in every run, which bay must find and undo.
- Two runners work the line, and the origin is bay's own, on the same machine.
We grade six rows:
| Row | Target |
|---|---|
| Lead time, from “merge this” to on main | p50 ≤ 20 s and p90 ≤ 60 s |
| Push hook | p99 ≤ 200 ms |
| Live refs | under 5,000 after 30,000 merges |
bay status under load | p50 ≤ 200 ms |
| Census | 0 changes lost, and 0 merged twice |
| Broken change | bisection names it, and a runner undoes it |
bay's next minor release waits until all six rows are green in two counting runs. One runs for two hours at this rate, about 2,500 changes from 200 agents. The other is a history run of 30,000 merges. We have not run either counting run yet. Everything below comes from shorter progress runs, and we say which.
Where bay stands: four of six green
These figures come from the latest progress run, on 1 December 2026. It used a release build of main after 0.7.71, 3 minutes of arrivals, 50 agents and 105 changes.
Here is the full scorecard of that run.
| Row | Measured | Target | Status |
|---|---|---|---|
| Lead time | p50 12.3 s, p90 87.7 s | p50 ≤ 20 s, p90 ≤ 60 s | ✗ red: the p50 meets its target, the p90 does not |
| Push hook | p99 28.5 ms over 671 pushes | p99 ≤ 200 ms | ✓ green |
| Live refs | 750 after 106 merges, and about 211,700 at 30,000 by extrapolation | under 5,000 | ✗ red, by the model |
bay status | p50 7.9 ms under load | p50 ≤ 200 ms | ✓ green |
| Census | 0 lost, 0 merged twice of 105 | 0 and 0 | ✓ green |
| Broken change | named at 253 s, and undone at 272 s | named and undone | ✓ green |
Lead time: 205 s to 12 s in five days
Here is the same test, run by run. Runs 1 and 2 lasted 20 minutes, and run 3 lasted 10. Runs 4 to 7 were 3-minute traced runs.
The same runs as a table:
| Run | Date | bay | Lead p50 | Lead p90 |
|---|---|---|---|---|
| 1 | 27 Nov | 0.7.43 | 205.3 s | 325.2 s |
| 2 | 27 Nov | a 0.7.44 candidate | 90.5 s | 179.4 s |
| 3 | 29 Nov | 0.7.60 | 55.2 s | 99.2 s |
| 4 | 30 Nov | 0.7.70 | 35.9 s | 91.6 s |
| 5 | 30 Nov | 0.7.70 and one fix | 16.5 s | 99.1 s |
| 6 | 30 Nov | 0.7.71 | 13.0 s | 92.8 s |
| 7 | 1 Dec | 0.7.71 and two fixes | 12.3 s | 87.7 s |
The median fell 16x in five days, and it is now under the 20 s target. The p90 fell 3.7x, and it is still red.
One broken change explains the red p90
Each run puts in one broken change. From the moment it merges until bay names it, main is red. Every batch in that window runs the red check again before it merges. In run 7, the broken change merged 74 s into the run, and a runner undid it at 272 s. Here is the same run, split by when each change asked to merge.
Run 7 as a table:
| Window | Changes | Lead p50 | Lead p90 | Max |
|---|---|---|---|---|
| Main green | 73 | 11.2 s | 15.7 s | 21.3 s |
| Main red, before the undo | 31 | 80.5 s | 97.2 s | — |
Every lead over 60 s in that run came from the red window. When main is green, bay merges a change at Scion's rate in about 11 seconds. The slowest tenth takes under 16 seconds.
About a third of a 3-minute run's changes fall in the red window: 31 of 104 in run 7. That is far more than in a long run. In the two-hour counting run, the red window holds about 3 % of the changes. We expect its p90 to sit near the green window's, but that is a prediction. Only that run can show it.
The head cycle: 14.8 s to 5.8 s in under a day
The head of the line takes a batch, checks it, merges it and records it. That cycle sets how fast the line drains. On 30 November it took 14.8 s, and the check was only 2 to 3 s of it. The rest was bay's own bookkeeping: one runner made 11,091 Git calls in a 3-minute run. We traced every call and removed the waste in four steps.
Each step, with the reading that shows its mechanism:
| Step | What changed | Mechanism reading | Head cycle p50 |
|---|---|---|---|
| Before | 0.7.70 | 11,091 Git calls in one runner | 14.8 s |
| a | Cache answers skip the fsync, and a reader asks Git again when a checksum shows a torn write | pauses of 15 to 40 ms after a cached query: 866 → 80 | 8.4 s |
| b | bay wakes when a child process's pipes close, not on a sleep ladder of 1 to 20 ms | wait per Git call, p50: 7.27 → 3.44 ms | 6.4 s |
| c | bay reads refs through its open git cat-file --batch session | spawned rev-parse ref reads: 3,685 → 0 | — |
| d | Commit times come from a memo, not from every queue listing | queue listing time: 10.3 → 5.5 s | 5.8 s, with c |
Steps a and b are in 0.7.71. Steps c and d are in 0.7.72. We measured each step on its own run, one run each. So read the figures as a trend, not as a controlled comparison.
In production, on GitHub
The load test uses bay's own origin. The repository that bay's own team works in uses GitHub. A fleet of AI coding agents merges changes into it all day. It is a monorepo of about 49,000 files with 30 checks. We read its lead time with the same script over bay's change records each time.
The same reads as a table:
| 24 h ending | bay | Merges | Lead p50 / p90 | Wait in line p50 / p90 | Run p50 / p90 |
|---|---|---|---|---|---|
| 24 Nov, 05:20 UTC | 0.6.15x | 334 | 295 / 1,805 s | 63 / 1,294 s | 75 / 503 s |
| 25 Nov, 05:20 UTC | 0.7.x | 377 | 169 / 655 s | 37 / 401 s | 81 / 427 s |
| 1 Dec, 10:23 UTC | 0.7.71 | 161 | 88 / 160 s | 31 / 78 s | 53 / 94 s |
| 72 h ending 1 Dec, 10:23 UTC | 0.7.5x to 0.7.71 | 744 | 115 / 540 s | 38 / 328 s | 55 / 155 s |
Over one week, the median lead fell from about 5 minutes to under 1.5. The p90 fell from 30 minutes to under 3. Read this with two conditions. The last day carried half the merges of the first, and a lighter line is a faster line. Over 72 hours, which include one stalled hour, the p90 is 9 minutes. That is still 3.3x better than on 24 November.
Two things changed that week. bay moved from 0.7.x to 0.7.71, and the repository took up Scion's merge model. On 25 November it ran six checks before the merge, and now it runs two quick guards there. The other 28 of its 30 checks run after the merge, on main. Bisection names the change that breaks one of them. The automatic undo is opt-in: this repository has not turned it on yet, but the load test has it on.
The production numbers are slower than the load test for one main reason. GitHub is the origin, and every merge is a push over the internet. On 25 November, we split the merge floor of 92 s into three parts. The network took 56 s, the checks 26 s and local Git 9 s. The network was the largest piece then, and the next part of the roadmap removes it.
How the numbers moved
Six choices moved them:
- Merge first, check after. Long checks run on main, and bisection names the change that broke one.
- Keep a few guards before the merge. Only checks a revert cannot repair stay there, such as a secret scan.
- Batches that fill the line. The head checks everything ready, up to the cap, and merges it in one push.
- No guessing in the hot path. Each head-cycle fix came from a trace of Git calls, with its own test.
- Reads that cost the same at any load.
bay statusreads rows bay keeps current: 7.9 ms at Scion's rate. - A small push hook. The hook that guards main answers in 28.5 ms at p99.
Small on purpose
bay 0.7.71, read on 1 December 2026:
| Part | bay |
|---|---|
| Binary | one file of a few MB, a release build with LTO |
| Runtime crates | 5: clap, serde, serde_json, sha2 and toml |
| Database | none: bay keeps its records as Git refs under refs/bay/ |
| Server | none required: runners are ordinary processes, and bay's own origin is optional |
| Origin | GitHub or any Git host |
| Code | Rust 2024, with unsafe forbidden and Clippy pedantic |
| Tests | more lines than the 122,639 lines of product code |
| Licence | MIT |
What is still red, and what turns it green
The lead p90 turns on the red window, from a broken merge until bay names its culprit. In run 7, that window lasted about 3 minutes. In 0.7.72, the load test declares which files each check reads. Then a change whose files the red check does not read can pass the head, instead of waiting behind it. bay holds that pass whenever the red check could read the change. The next progress run measures this, and the two-hour run decides whether the row turns green.
Live refs are red by the model: bay keeps about 7 live refs for each merge. They hold the change, its intent, its merge, its place in the line and its requests. At 30,000 merges, that is about 210,000 refs, against a target of 5,000. bay already compacts them into shard indexes in production, but a short run never gets that far. Only the 30,000-merge history run can read this row. If compaction is not enough, a ref ledger in Git's reftable format comes next.
The roadmap
These are the parts of Scion that bay does not have yet, in the order we expect to build them. Each number below is a target, not a result.
Cache tiers come first: every job on a machine will share one object store. An origin on the local network will sit in the middle, and the hosted remote becomes the cold tier. Check results will travel with the commit they checked. bay will reuse a test unit when its binary hash, its crate's directory digest and its path rules all match. The target is more than 99 % hits at each tier, and 25 % less CPU for each merge. That is the CI saving Scion reports.
Reads with no checkout come second, because many checks need only the changed paths, the diff or a few files. With materialize = "none", a check will read them straight from Git objects and never write a working tree. In our production monorepo, a full tree is about 49,000 files and 3 GB. The target is a check that reads only the diff and starts in under 1 second.
Virtual checkouts come third, for a check that needs some files but not all of them. A read-only view, served from Git objects, will fetch each file the first time something opens it. It will also record which paths the check opened. That record gives bay each check's true read set, which makes batching and passing safer. The target is a view that is ready in under 1 second.
Refreshing a change after a conflict comes fourth. Today bay refuses a change that conflicts with what merged before it, and the agent refreshes it with bay start <change>. Next, bay will start that refresh itself and give the agent only the files that conflict. The target is that no change stays refused past its author's next turn.
Review rules come fifth. Approval rules will know a comment-only change from a logic change. Write rules will apply to each directory, by key class. The first lets a change merge when only a comment or a doc changed. The second lets a team give an agent one part of the tree and not the rest.
Alongside these, two pieces close the gap that GitHub opens today. bay's own origin will become the commit point, and GitHub will follow as a mirror. A merge will count once the origin and one peer hold it on disk. That takes the 56 s network leg out of the merge and keeps GitHub for browsing, review and the rest. A change ledger will move bay's records for each change out of live refs. That moves bay toward Scion's model, where only main and release branches have refs.
How we measure
Every number in this post follows these rules:
- The load test is an integration test in bay's repository. Environment variables set its rate and size.
- Each run writes a report with its bay build, its settings and its six rows.
- We grade from reports only, never from a model. A short run is a progress read, not a result.
- Runs share a build machine with other work. Each run waits until the load average is 16 or lower.
- Each run logs the load, and we stop and repeat a counting run that meets heavy outside load.
- Production lead time comes from bay's change records: the request time and the merge time of each change.
Update, 3 December 2026: we no longer run this load test, so the two counting runs will not happen. The figures in this post are the last progress read, and no counting report follows. bay's next minor release now waits for the features on bay's roadmap, not for a load test.
Gudjon Gudjonsson · Founder and CEO of OZ