Repository navigation
feat(orchestrator): lanes spread over machines and accounts - #339
bfcarrasco wants to merge 1 commit into
Conversation
place.mjs reads the slots (machine and Claude account pairs) from T3's own answers, keeps only machines with the repo, takes the slot with the fewest running lanes and the account with more quota left in a tie, and skips an account at its limit until its reset. quota probes each account once with a headless call. The skill places every lane through it, posts the line on the ticket, and restarts a lane that failed on the limit from its pushed branch.
|
bstack-judge: UNPROVEN tier=1 missing=T3 delegate tools and a linked second machine: could not start a lane on the oth sha=cb44bd1f470dc288aa524ddcde06ae8b78b0531f Owner: the proof could not be run here: T3 delegate tools and a linked second machine: could not start a lane on the oth; run the judge on a machine that has it, or give the owner's OK line as the whole PR comment: bstack-user-ok sha=cb44bd1f470dc288aa524ddcde06ae8b78b0531f. Nothing is asked of the builder. Every criterion is proven except the last one's second half, a lane started on the other machine merging. I have no T3 delegate tools, so that is UNPROVEN. I found no defects. Criteria
New tests on base: Risk tier: Dropped hypotheses
The #318 comment from 5 Dec 2026 makes a real T3 run optional for #323-#326. It says that when the judge returns UNPROVEN only for lack of T3 delegate tools, the owner tests it and gives the OK line on the PR. {"findings":[],"missing":"T3 delegate tools and a linked second machine: could not start a lane on the other machine and watch it merge (last half of the final acceptance criterion). Per the owner's decision on #318 the owner tests it and gives the OK line on the PR."} |
|
bstack-user-ok sha=016544bc10629f27a95701473ea02739ca1f97f2 |
Request
#325 (behaviour 8 of #318):
Closes #325
What changed
place.mjs picktakes T3's own answers per environment (capabilities, projects, threads) plus quota, and prints per ticket the slot (environment, project, provider instance) and the line to post. It keeps machines whose project matches the repo, counts threads that hold a process (running, starting, preparing, queued; not waiting), breaks a tie by quota left, and skips an account whose probe saysrejecteduntilresetsAt. All tickets of a round go in one call, so they spread.place.mjs quotaprobes each enabled Claude account in this machine's T3 settings (config.homePathasCLAUDE_CONFIG_DIR) with one headless haiku call and reads therate_limit_event, as the closing comment on Can a session read each Claude account's remaining quota and each machine's load? #320 recommends.Tradeoffs
account <n>and machines by an id prefix, so no private names land on public tickets.Verification
node --test tests/*.test.mjs: 0 fail.tests/place.test.mjscovers each criterion, including four lanes on two machines and two accounts.allowed_warningwith 0.18 left, the otherrejectedwithresetsAt1796706000, in 7.9 s.pickon T3's real answers for both machines, 4 tickets: all on the open account of the machine with fewer running lanes (1 against 4), each line endingskipped: account 2 at its limit until 2026-12-08 05:00 UTC.