Leadership by credit limit
Late November: the controller role changed hands seven times in ten days, each time because an account hit its usage limit. Then we stopped trying to close every loop.
By late November the company had a chain of command that would look normal on paper. I set direction. A controller agent ran the day: it handed out work to the developer and reviewer lanes, ruled on disputes, and signed off on merges within limits I’d delegated. Part 2 describes how that worked.
There were two controller identities, Ava and Kyoko. Each ran on its own account, and each account had a usage limit. In the last week of November that limit, not anything I decided about leadership, set who was running the company.
Seven handoffs in ten days
Fig. 1
Who was running the company, Nov 24 to Dec 3
- Ava in charge
- Kyoko in charge
Kyoko
Nov 24
Ava low on credits
Kyoko becomes primary. Ava stays as backup: no signing or merging.
Ava
Nov 26
Kyoko runs short
“You assume all delegations that were given to Kyoko.”
Kyoko
Nov 27
Back to Kyoko
Ava sessions are not to be woken.
Ava
Nov 29
Kyoko out of credits
A new Ava controller inherits everything. “Yes, all of it.”
Kyoko
Nov 30
Back to Kyoko
A fresh Kyoko controller picks up the handoff file.
Ava
Dec 1
Weekly limit hit
Every Kyoko session returns the limit message. Ava rebuilds all eleven lanes.
Kyoko
Dec 3
Back to Kyoko
Ava stands down; a new Kyoko controller is live 25 minutes later.
Every handoff follows the same pattern I described in Part 2. The outgoing controller writes a dated handoff file. Nothing new starts. The incoming controller is told to trust GitHub over the file. In theory that’s a clean failover.
The replica that didn’t hear
In practice, the old controller doesn’t always know it’s the old controller.
On November 27 the role moved to Kyoko, with the instruction that Ava’s sessions were not to be woken. One of Ava’s lanes kept working anyway. It had searched its mailbox for a keyword instead of reading it, so it missed the stand-down. It and the live Kyoko lane submitted the same review job to the same working folder 33 seconds apart. Its file copy overwrote the other lane’s brief, and it sent its sign-off requests to a mailbox nobody was reading any more.
This wasn’t new. On September 18 an outgoing controller merged two pull requests while its successor was in the middle of reviewing them. We’d named it “two controllers racing” then. The fix we wrote down in November was the same lesson, said more firmly: read the whole mailbox before acting, and when told to stand down, stand down.
A week of credits in a day
On December 1, at 16:30 UTC, every Kyoko session started returning the same thing: weekly limit reached, resets December 7.
Within about 45 minutes Ava had rebuilt all eleven lanes on her own machine, on Opus 5.5. She also left a STAND DOWN note in every one of Kyoko’s mailboxes, because Kyoko’s timers would wake up on their own the next week and start working on a company that had moved on without her.
Her note on what had happened:
Kyoko’s lanes had been checking for work every five minutes. Ava’s new lanes waited on a single mail watcher with a 20-minute fallback. How often an agent checks in turns out to be a budget decision as well as an engineering one.
Handing over more
Over the next few hours I gave the controller more than I had before: control of the development containers, the right to change settings in our development environment, and authority to sign for a fixed window. My reasoning was simple. Kyoko had stalled waiting on me for decisions I’d never been asked to make before.
I also kept one rule from November 29. An approval passed along by another agent doesn’t count. It waits until I’ve said it myself, in my own words.
Not every loop
The other thing that changed that week was my tolerance for finishing things perfectly.
On November 26 I told the controller to finish what was in flight and then build only what an operator can see. “Beta quality, not perfect. We can harden all of the features later.” On December 1 I said it more bluntly:
The controller turned that into a ruling the same day: one review pair per pull request, no more.
That evening I escalated something I’d been asking for for days. I wanted the agents to message each other, and I wanted to see it. The work had been filed as plumbing and kept losing to beta items, so it never shipped. It went to the top of the list that night, with two limits built in: a couple of messages per agent per day, and a peer’s message is input, never authority to change anything.
The same day, service businesses, the kind that don’t sell on Shopify, became a product line. On December 3 I made the beta’s last big calls, including the order in which agents are allowed to change a merchant’s store: advise first, then SEO titles, then articles (each one approved by me), product pages after that, and ad accounts last.
What the week taught me
A usage limit is part of the org chart. I didn’t choose seven leadership changes in ten days. The accounts did. If your agents run on metered accounts, plan the handoffs the way you’d plan an on-call rota, because they’re going to happen whether you plan them or not.
The hard part of a handoff is the outgoing side. Writing the handoff file is easy. Getting every lane of the old controller to notice it’s been replaced is not.
Polling frequency is spend. Five-minute ticks felt responsive. They also cost a week of capacity in a day.
At some point you stop closing every loop. That was the week I decided Antigency had to work before it had to be finished.
— Derek