Kestrel Agent Fleet · page 5 of 7
Where the fleet runs
A few machines with one job each, one box that publishes, and a fake-data mirror in front of the sensitive one.
The fleet runs on a few machines, each with one job. One box runs the schedule and does the publishing; it is the only place anything leaves the fleet for the public. A dev box holds a full copy of the fleet with fake data; its schedule is off and it can’t publish, and that is where work is proven before it goes live. One box is for infrastructure work.
One machine is fenced off for sensitive work. I don’t develop on it directly. I build and test against the fake-data mirror, and only after testing does a change go to the sensitive box.
Two rules that keep it simple
- The test for publishing is a question: after this action, can anyone outside the fleet see it? If so, only the publishing box does it.
- Scheduled jobs run on exactly one box at a time, or each would run twice.
A repository can run itself on a schedule
- A cron line calls a small script. The script takes a lock so a slow run cannot lap itself, starts the agent headless, and writes a receipt: how it ended, how long it took, and how many files were left uncommitted. That last number exists because a run once finished cleanly without ever reaching its commit step.
- A drain command lists what is queued and never starts anything. The engine may specify and validate work. It may not launch it.
- Installing the schedule is careful. It backs up the existing one, checks that every line it did not write survived, and restores if not. That came from an incident where a careless overwrite silently destroyed another job for three days.