Skip to content
← Back to writing

October 3, 2026

One error message, six reviews

I capped AI code review at one round after it spent half an hour on a single licence error, then gave the code that touches parity three rounds four hours later.

On Saturday I made a rule about code review at 1:30 in the afternoon and carved a large exception out of it at 5:00. Both calls were right for the code in front of me at the time. The day is worth writing down because the same reviewer produced both of them, and the difference between wasted time and a saved array came down to what the code could break.

The review threads on Eight.ly OS pull request #1875 on 3 October: six Codex findings between 13:05 and 13:29 Eastern, the first five each answered with a fix commit two or three minutes later and the sixth filed as its own ticket, EOS-2499.

The licence sprint

The night before and through the morning I was finishing sprint 6782, the licensing work under epic EOS-2071. That sprint turns the pricing I signed off in September into something the product actually enforces: a Single key covers one node, a Cluster key covers three, a seat comes back when you deactivate, and a retried LemonSqueezy delivery no longer mints and emails a second key. The OS side got PRs like #1868 (release the seat on deactivate), and the licence server, eightly-updates, got five PRs between 1:28 AM and 1:05 PM, each deployed with a backup taken first.

Since the Copilot review quota ran out on 1 October, Codex has been reviewing every pull request. The loop is simple. Open the PR, ask for a review, fix what it finds, ask again, and merge only when a review of the exact head comes back clean with zero open threads.

Six rounds on one message

PR #1875 was EOS-2496. The bug: when you move a seat from one node to another and the local save fails on the box you are standing at, the other node quietly loses its licence and nothing tells you. The fix is an error message that names the node that lost its seat and says how to get it back.

Codex reviewed it at 1:05. It said the message claimed the seat had been given back when that was not yet confirmed. Fair. That was fixed at 1:08 and sent back. At 1:11 it said a box that already held the key would be told it was unactivated. Also fair. Then it said the displaced node has to deactivate before it can reactivate, so the instructions were in the wrong order. Then that a box on key A failing a move for key B keeps key A. Then that a universally unlocked box keeps its licence too. Every one of those findings was correct, and every one of them was about the wording of one error message in pkg/api/license/license.go, for a failure you can only reach when a disk write fails at exactly the wrong moment.

At 1:29, with the fifth fix back in the queue for yet another review, I judged that the process was costing more than it returned. Nothing had shipped since we started it, and a day of work had turned into a queue of PRs waiting on a reviewer that never ran out of slightly narrower things to say.

So I set a rule. One Codex round per pull request. Fix what that round finds, then merge on green checks. The sixth finding on #1875 landed seconds later. It covered a case that needs three failures in a row, so it became its own ticket, EOS-2499, fixed in #1876 an hour later. #1875 merged at 1:54. By 2:55 all 23 tickets in sprint 6782 were done.

Broken things, not features

Then I asked what it would take to finish EOS-1619, the epic called "Storage looks after itself." It sat at 18 of 27 tickets. The answer I got back sorted the remaining nine into two piles, called four of them new features that needed my approval, and said one box needed a second disk that only I could add.

I did not agree with that sorting. These were not features. Growing the cache by adding a drive, adding a hot spare to a ZFS pool, seeing what is eating a disk: those are things the storage screen already promises and does not do. I had no interest in a new drive for os-dev when the host had the space. I said so, and at 3:20 sprint 6783 started with all nine tickets in it. Codex took the code tickets and an agent took the SnapRAID study while I worked the boxes. Within twenty minutes os-dev's disk had grown from 98 to 200 GB.

The SnapRAID study, EOS-2295, was a spike on the new SnapRAID daemon. Its verdict was to keep our own engine and borrow its safety ideas, and it produced ten follow-up tickets, EOS-2500 through EOS-2509. The brief that went to the agent said to file them "in no sprint," an old habit from before the rule changed, so they landed in the backlog while a sprint was running. I caught it at 3:42 and asked whether tickets had really just gone back into the backlog. They moved into sprint 6783 the same minute, and five agents took two each, alongside the three Codex jobs.

Where the extra rounds paid

Those ten tickets were the dangerous part of the week. They covered stopping a parity sync when too many files were deleted, refusing a sync when a disk is missing or swapped, restoring deleted files from parity, repairing damaged blocks, and pausing chosen containers while a sync or scrub runs. A mistake in any of them can overwrite the parity you need to rebuild a dead disk, and you would not find out until the day you needed it.

The first round on #1885, the sync safety checks, came back at 4:54 with three holes. After a disk was replaced, nothing stopped a sync from running before the rebuild finished. A brief failure to read a disk's ID could blank the stored ID, so a later swap would go unnoticed. And the IDs were saved to a file with no database copy.

That was when the morning's rule stopped making sense to me. At 4:59 I said these were dangerous tickets dealing with parity and the reviewer should get more rounds. The rule became two lanes. Screens and read-only views stay at one round. Code that can lose data, which means parity, restore, disk replace, the cache rebuild, wipes and anything that pauses workloads around them, gets up to three rounds and merges only on a clean review of the exact head. Auto-merge came off #1883 and #1884 before they went in.

The next hour justified it. Round two on #1883, restore and repair, found that closing the restore dialog while a restore was running switched Sync and Repair back on, so a second job could start on top of the first. Round three found that a page reload mid-restore did the same thing, that pressing Stop could report the job as still running, and that a restart during a restore left no warning that it never finished. Round two on #1885 found three more ways a sync could overwrite parity a rebuild still needed, including a damaged disk-ID file being read as "no disks recorded" and a failed disk removal throwing away the disk's ID before the removal was final.

The first round on #1886, the PR that converts the NAS's single-drive cache into a two-drive one, found that network shares and the cache mover could still write to the old cache while the final copy ran. Anything written in that window would have been gone once the old drive was erased. The fix stops writes before the final copy and requires a check showing zero differences before the old drive is touched.

Same reviewer, different stakes

By the end of the night #1881, #1882, #1884, #1885 and #1886 had merged, and #1883 was still open. The findings on #1875 and the findings on #1885 came from the same tool, in the same style, on the same afternoon. What differed was the cost of a miss. A slightly wrong sentence in a licence error after a failed disk write is a support email. A sync that runs before a rebuild finishes is a disk you cannot get back.

I set the first rule because the process was costing more than it returned, and I still think it was right for licence wording. The exception came from looking at what the code could destroy, and I would rather pick the lane when a PR opens than find out on round six which kind of PR it was.