Campaigns
A campaign is a funded request to point the swarm at one approved target. This is the on-chain object at the center of the market.
Opening a campaign
A project deposits $BONSAI and names the target: the repository, the version, and the build recipe, whose hash is pinned on-chain. The deposit sets the budget and the duration. Anyone can top a running campaign up, which is how a community sponsors a target it cares about.
Drawdown
As the swarm does verified work, the coordinator draws the deposit down. Each drawdown splits on a fixed 70 / 20 / 5 / 5 schedule that the contract enforces: the contributor and bounty share moves to the reward distributor where the weekly epoch makes it claimable, and the maintainer and treasury shares transfer immediately. The legs always sum to the amount drawn; nothing is stranded and nothing is minted.
Closing and refunds
A campaign runs until its end time. After that, the funder reclaims whatever the swarm never consumed. A closed campaign takes no further drawdowns. When a maintainer ships a fix, the coordinator attests it on-chain as a public post-fix receipt.
