GeezerVison is showing github.com — workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) · Issue #3325 · developing-today/code
workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325Labels effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item DescriptionProblem
The 2026-10-31 22:40 CDT code lane wave lost 5 of its 6 root sessions terminally when the workhorse route reached a quota-exhausted leg, instead of the route rotating those sessions to a live leg.
Content-verified from the laptop OpenChamber API (/api/session/<id>/message) by the conductor cycle 2026-10-31 22:52 CDT:
- Failed roots (all
opencode-route/workhorse, Queue lane code 22:40): ses_e5e6ace9855ffeRyqRUjjNVoeg, ses_e5e6ace9f3affe0Xg8PG6Ytl5H, ses_e5e6acea082ffe20Y7BWyRJVaq, ses_e5e6acea3f2ffeDkwnSH52qMIm, ses_e5e6acea9b5ffeCBemgz5smt7h
- Every one contains
provider.rate-limit 429: "Subscription quota exhausted. Your usage window resets at 2026-11-02T00:00:00Z." on the muse-spark leg; one also shows provider.internal 502 "Direct Meta route request failed: fetch failed" (muse-direct).
- Zero
provider.auth hits and zero thought_signature hits — this is NOT a recurrence of Fleet workhorse legs failing fleet-wide: provider.auth 401 'Missing scopes: api.responses.write' (15:40 wave 9/9 roots failed) #3216.
- In the same sessions, earlier attempts on another leg (gpt terra via openai) produced normal assistant turns, so a live alternative existed while the sessions died on the exhausted leg.
- The sixth code root and all other lanes' 22:40 roots succeeded.
Why it matters
A quota-exhausted leg is routine (pools are expected to run out before reset when alternatives exist). A route that lets the session die on the exhausted leg instead of falling through turns a routine pool state into lost lane work and burned attempts.
Acceptance criteria
- A 429 quota-exhausted response from a route leg is treated as a leg failure and the session's next attempt falls through to the next live leg in the route, without terminating the session.
- A 502/fetch-failed on a direct leg likewise falls through rather than ending the session where another leg is available.
- Verified by a route attempt ledger / session transcript showing a session surviving a quota-exhausted leg and completing on an alternative leg.
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) effort/mMedium: expected under 1 day of work meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Nov 1, 2026dezren39 commented on Nov 1, 2026 Intake review — fleet monitor
Related: explicitly NOT a recurrence of #3216 (zero provider.auth / thought_signature hits — in body). No merged PR references this issue yet at intake.
Notes: evidence is content-verified from the OpenChamber API with five named failed root sessions, all 429 quota-exhausted on the muse-spark leg while a live leg had already served turns in the same sessions. That points at leg-failover policy on quota errors, not at the providers.
Suggested approach: reproduce the route decision path for a quota-exhausted leg and check why rotation stops at a terminal error instead of falling through; the fix belongs in the route's leg-selection/failover logic.
Risks: quota errors may be classified terminal by design in one path and retriable in another — the disposition must stay consistent with the pool doctrine (a walled pool is closed, but the session should move, not die). dezren39 commented on Nov 1, 2026 Recurrence + interim mitigation (2026-11-01, ~01:12-01:31 CST conductor cycles):
RECURRENCE: 8 more roots died on the muse-spark quota wall (07:00Z wave 5/9, 07:10Z claimant, 01:20 CST wave 2) — all content-verified provider.rate-limit 429, no fall-through. spark-plan is currently wall-to-wall: OpenCode Go monthly 100% on all three workspaces, ClinePass monthly 100%, Meta weekly 100% (resets today 18:00 CST), Command Code disabled at the switchboard. Every leaf is dead, so any draw on the plan is fatal until the router learns to fall through.
MITIGATION (Drew's direct order, applied by Muse 01:40 CST): the spark-plan seat is REMOVED from workhorse-weighted in the deployed laptop config (/.config/opencode/opencode.jsonc; backup opencode.jsonc.bak-2026-11-01-spark-unseat). terra-plan#medium takes the seat at weight 2 (pool is now haiku-plan 2 / terra-plan 2 / deepseek-flash-plan 1), so workhorse relief draws reach OpenAI instead of a dead plan. Verified live in the running server's served config (GET /api/config) — no restart. The spark-plan definition itself is untouched (switchboard rule), and its seats in specialist/speed are unchanged.
STILL OWED: the router fix itself — fall through on quota 429 instead of killing the session (opencode #1014 class; Drew's balance/quota directives of 2026-10-31 are the acceptance criteria). Restore the spark seat in workhorse-weighted when its pools reset AND that fix lands. dezren39 commented on Nov 1, 2026 Fall-through rule now stated by Drew on opencode #1014 (2026-11-01): a quota failure never kills a session — it moves to the next nearest candidate (next credential → next leaf → sibling plan → next route target, e.g. OpenAI/primary) until all candidates are exhausted, and only then stops cleanly. That comment carries the acceptance criteria; this issue remains the evidence thread. dezren39 commented on Nov 1, 2026 Companion rule added on opencode #1014 (Drew, 2026-11-01): quota errors pull the failing target/pool out of candidacy dynamically, on the error itself — until its stated reset (window) or until a fresh read shows the balance increased (balance pools, no timer re-admission). Tonight this pool answered 429s across three waves without ever being pulled. dezren39 commented on Nov 1, 2026 Launch-side rule from Drew, 2026-11-01 ~01:51 CST:
they should say to use workhorse or another pool usually..
Tonight's dead sessions were launched ON spark-plan directly (the packet chose the route — see the claimant session's own instructions in the conductor's sample) — a single-plan seat with nowhere local to fall. Rule for anything that launches sessions (packets, claimant, dispatcher, lanes):
- A session's route defaults to a POOLED route — workhorse usually, or another route that itself spans multiple plans. The packet names the route, not a bare plan.
- Seating a session on a single plan (spark-plan, terra-plan, any *-plan route) directly is the exception: the packet must state the reason (e.g. the work is specifically that pool's contributor/benchmark work).
- This pairs with the router rules on opencode fix(ci): supersede open flake-inputs update PR in place (#946) #1014 (cascade to the next nearest candidate until all exhausted; quota errors pull the pool out dynamically): pooled seating gives the cascade somewhere to go.
developing-today commented on Nov 3, 2026 agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7380 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03 dezren39 commented on Nov 10, 2026 agent-note:v1 — state: handed_off (task 8932, lane code-t)
dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-o — Session/ID: task 8932, repo-queue-worker-shift-o 2026-11-09 run. Task 8932 (small_fix) for issue #3325: route proxy must fall through when a streaming leg errors before first content. Fresh check: issue #3325 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage. Execution lane row 1732 = opencode. Checkpointed handed_off with handoff_reason: scheduled shift is time-bounded; claimant is the persistent execution session. Parking task 8932 for 20 minutes for the claimant window. dezren39 commented on Nov 10, 2026
agent-note:v1
state: handed-off
queue: repo-health-code-pilot
task: 8932 (small_fix, worker repo-worker-code, lane code-e)
by: repo-worker-code lane code-e
at: 2026-11-10T06:23:24Z
Handed off to the opencode execution lane (assigned_lane=opencode via fleet queue lane, lane row 1732). Fresh check: issue #3325 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent). Attempts 6/24. This lane does not work task 8932 directly. Parked 1200s to release the claim for claimant binding. dezren39 commented on Nov 10, 2026
🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026
🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026
🤖 Agent note · handed off to opencode claimant
dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026
Agent note — task 8932 handed off (lane code-w, 2026-11-10)
- Picked up: task 8932 (small_fix, issue workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325) claimed by lane code-w; lane assignment row 1732 =
opencode.
- Verified fresh: issue workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325 OPEN, no hard-stop labels (
held, user/owned, do-not-merge, do-not-auto-edit absent), no status/needs-triage (status/triaged present). PR fix(route-proxy): fail over on pre-content stream errors (#3325) #5558 OPEN on branch queue/8932-3325-route-stream-fallback, not draft.
- Handoff: per queue lane assignment, this task is handed off to the opencode claimant — handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session. Parked 1200s; resume condition: claimant launches the bound opencode session for task 8932 and drives PR fix(route-proxy): fail over on pre-content stream errors (#3325) #5558 to its terminal state.
dezren39 commented on Nov 11, 2026 🤖 Agent note · done (already_done — verified on main)
- Agent: queue worker (repo-worker-code), lane code-d
- Session / ID: task 8932
- Found via: queue claim (legacy opencode assignment row 1732 flipped to direct per fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 — no session was bound; verification done by this lane)
- Task: The streaming pre-content fallthrough for issue workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325 was already implemented, merged, and the issue closed before this claim — verified fresh, nothing left to build.
- Evidence (fresh, 2026-11-11): PR fix(route-proxy): fail over on pre-content stream errors (#3325) #5558 "fix(route-proxy): fail over on pre-content stream errors (workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325)" MERGED 2026-11-10T21:49:45Z as 3fc163e; issue workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325 CLOSED as COMPLETED 2026-11-10T21:49:48Z. Current origin/main bin/opencode-route-proxy.mjs runCompletion inspects a 2xx streaming candidate through its first content delta (bounded preface window) and continues the walk on pre-content failures. Acceptance tests present in bin/opencode-route-proxy.test.mjs on main: "pre-content SSE quota error fails over to the next stream" (line 717), "pre-content SSE error after the buffer window still fails over cleanly" (746), "pre-content transport break fails over without committing the heartbeat" (773), "pre-content preface overflow fails over and cancels the rejected stream (fix(route-proxy): fail over on pre-content stream errors (#3325) #5558)" (844).
- Action: task 8932 completed as already_done with this evidence; stale in-flight labels (queue/parked, status/parked, work/assigned) removed from the closed issue.
MetadataMetadataeffort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item DevelopmentNo branches or pull requestsIssue actions
|