ci/woodpecker/push/woodpecker Pipeline was canceled
An operator account has team max_budget NULL (no cap). broker_get_usage only assigned balance when max_budget was not None, so the DB path left 'balance' unbound and the HTTP fallback read the same name before assignment — a 500 for exactly the accounts the uncapped policy created. Initialise balance from the member's allowance + credits still available, mark the response uncapped when the team row has no cap, and keep the dashboard arithmetic defined.