Skip to content

claude.yml: seat pool (load balancing) and retry machinery from byu-vcl - #144

Merged
sgbaird merged 1 commit into
mainfrom
claude/seat-pool
Nov 27, 2026
Merged

sgbaird merged 1 commit into
mainfrom
claude/seat-pool

Conversation

@sgbaird

@sgbaird sgbaird commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Brings byu-vcl's load balancing and retry machinery to this repo's claude.yml (Sterling asked on 2026-11-27 for load balancing on every vertical-cloud-lab repo).

What changes:

  • Seat pool: each run probes the 12 Premium seats in CLAUDE_TOKEN_POOL (org secrets CLAUDE_TOKEN_<NAME>, now shared with this repo). It picks the first seat, in rotation, with the most 5-hour and 7-day headroom. If no seat answers, it falls back to this repo's CLAUDE_CODE_OAUTH_TOKEN.
  • The retry, as in byu-vcl and digital-alloy-lab:
    • a spent allowance or a Fable safeguard flag retries on another seat;
    • the first attempt's revoked token is cleared from git;
    • its uncommitted work is kept on a local branch, with credential-like, cache and large files set aside;
    • the retry may build on the first attempt's own pushes.
  • The rest stays this repo's own: everything before the model selector (triggers, job env, checkout, Tailscale, setup). Where this repo keeps full logs off, they stay off and the log uploads stay commented out.

Built by a script from byu-vcl's main and this repo's main. It checks that the YAML parses and that every step is there.

🤖 Generated with Claude Code

https://claude.ai/code/session_01M9ry69sS6iLWqfVwD7Uh6y

Written by Claude Code from Sterling's prompt

(Context for readers, not part of the task.)

Some of those don't have the load balancing. We should probably get load balancing on all the vertical-cloud-lab ones …

@sgbaird
sgbaird merged commit ece1bd8 into main Nov 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant