Article chapter 07 of 08
Fan out without letting the workers collide
This week I changed the runbook so one run can keep going while there's work, and can split independent cards across several workers at once. That has made the board move much faster, and it needed some new limits.
The old version worked one batch and stopped, with a rough time limit. The new one keeps draining eligible work in the same run: finish a batch, refresh the board, admit the next one. It can run up to four independent workstreams by default, and it refills a slot when one finishes. There's no fixed card count any more. Actual runtime limits, verification and the column rules all still apply.
What the workers can do on their own is limited. They can investigate a card and prepare the change. The parent agent keeps control of the three things that can collide:
- Writes to the development site.
- Browser verification.
- Card moves and comments on the board.
So two workers can't both save the same page, two browser checks don't compete for one browser that's already short on memory, and there's only one voice on the board. The parent also checkpoints its progress and reconciles unfinished work before admitting more, and a card that's only partly implemented doesn't get dropped back into To do as if nobody had touched it.
I also asked for the goal to be written down as verified completed cards, since that's the number the client sees. It's easy to make a parallel system look busy, and a column full of cards in Doing with nothing checked is worse than the slow version.
One small lesson from this change: updating the runbook didn't update the scheduled job that runs it. The paused scheduler prompt still had the old serial wording with its time limit. The runbook was right, but the job would have run under the old instructions if I'd switched it back on without checking. When you change how an agent should behave, check every place the instructions actually come from.