Feature 05 of 07
Runners and licenses
Buildmill orchestrates and your machines execute. You register your own runners and attach your own Claude licenses, and usage thresholds on each license pause building before a limit is hit.
What it is
A runner is a small daemon on hardware you control. It claims work from the control plane, runs each stage in a git worktree with your own git and agent credentials, uploads artifacts through presigned URLs and posts results back. Each runner has a kind (always-on, workstation or cloud) and exactly one license. A license is the Claude credential pool it spends: a subscription metered by its 5-hour and 7-day windows, or an API key metered in dollars.
Why it matters
Your code and secrets never reach Buildmill's servers: the control plane holds no tenant git credentials and never clones a repo. Spending runs on your own licenses, so the usage limits that matter are yours, and the pause happens when a runner asks for work, not halfway through a build.
How it works
Three kinds
always-on · workstation · cloud. The kind sets leases, heartbeat, token expiry, the offline alarm and auto-update. An always-on or cloud runner that goes silent raises an alarm; a workstation that sleeps does not.
Usage thresholds on the license
Each license sets a usage threshold per window, defaulting to 80% of the 5-hour window and 80% of the 7-day window. When a reading crosses one, the license is paused and its runners stop claiming agent work. A missing or stale reading pauses too, by default.
One meter per account
The usage threshold lives on the license, not the runner, because the account is what the meter measures. Two runners on one account share one reading, and the newest report from any of them governs all of them.
Config from the console
Runner config is layered: kind defaults, then the license's meter, then the runner's own settings, with every field showing where its value came from. Poll interval, active hours, accepted run kinds and per-stage budgets are set in the console, not in an env file.
Where it fits in the loop
- intent
- triage
- refine
- decompose
- build
- review
- release
- observe
Under every agent stage. Runners execute everything an agent does (triage, refine and review at product level, every repo stage in the build, the release merge, and observe sweeps), so the license pause applies to all of it.