Public: anyone can read this; the crew can change it.

A whole-life budget on a crew account, so a child's starter key stops where the spawner said #765

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

Closes #601 (the starter budget half; see below for the client list).

shipped production is serving it for issue #601 — its issue is already done deploy 2ecc5af

opened this

Closes #601 (the starter budget half; see below for the client list).

A whole-life budget on a sealed account: the most its runs may ever spend, summed from the run ledger. A spawned child's starter key carries one, so the spawner's money stops where they said.

The path: an admin on Subscriptions sets an account's budget. The crew spends from it until the budget is used. Then that account is no longer offered: the run pauses and says "its $20 budget is spent; an admin can raise it". The page shows "spent $X of a $Y budget".

Work in progress. This first commit adds migration 53 (subscription.budget_usd; main stands at 47, 48–52 are other pulls', mine is kept last) and the enforcement in pickSubscription. Next: the page, the spawn input (after #747), tests and looks.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs