Crew accounts: which one a run spends
An account added under Settings → Subscriptions is in the pool: the crew uses it by default on every repository a forge admin owns. An account someone who is not an admin adds is used for their own repositories only. Allowing an account at a repository or an owner adds it there; limiting it keeps it to the places it is allowed. The server's own token is used only where no account may be.
A run tries, in order: an admin's order first ("use espo-api-key only after espo-corp"); then the accounts allowed at its repository (this agent's before everyone's), then at its owner, then the pool; while those tie, a plan (a sign-in token) before a pay-per-token key, then the one used longest ago. It spends the first that is awake and has budget and room in its week; the next with room is its fallback.
Spend you can see: beside each account, what it spent this week and in all, its budget and what is left, and its newest runs (linked, by repository, only those you read). A budget is a hard stop: an account past it is never picked, and its line says so. The first line says it whole: "The next run for trevato spends espo-corp: it has room this week. espo-api-key is the fallback ($0.07 of $500)."
- Settings → Subscriptions, "Right now": what a run on your repositories spends and why, every account and whether it is used there, and the fix when there is one: "espo-trevato: it is resting until Nov 29; espo-corp has room but is not used here: allow it here", with a one-press Allow.
- Talk and MCP:
crew_accounts { repo?, owner? }reads the same sentence and each account's spend;allowallows an account there (one confirm). A forge admin's MCPsubscriptionsputs one in the pool (everywhere), keeps one to where it is allowed (limit), or tries one only after another (orderwithafter), each after one confirm. - The terminal: the Subscriptions screen says it on its first lines;
Aallows the fix. - Held runs: a run paused for want of an account is released the moment one has room: an account added, allowed, put in the pool, woken, or its budget raised, by any door.
- Who reads what: a repository's or owner's admin reads its accounts; an account someone else added is named only to a forge admin, else "an account of this forge's"; anyone else is told not found.
Proof: test/crew-accounts.test.ts. The rules are core/subscriptions.ts (pickSubscription, scopeAccounts, reachWords) and actions/crew_accounts.ts; the release is crew/recheck_held.ts (recheckHeld(db, { runId } | { repoId, ownerId })) on releasePaused (crew/meter_watch.ts), the one release.