GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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) #3325

New issue
Copy link
New issue
Copy link
Closed
#5558
Closed
workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots)#3325
#5558
Copy link
Assignees
dezren39
Labels
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

Description

@dezren39
dezren39
opened on Nov 1, 2026
Issue body actions

Problem

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.

Activity

Next
  1. github-actions
    assigned
    dezren39
    on Nov 1, 2026
  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    status/needs-triageNot yet triaged; needs a first look
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 1, 2026
  3. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    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).

  4. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    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.

  5. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    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.

  6. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    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.

  7. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    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):

    1. 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.
    2. 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).
    3. 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.
  8. dezren39
    added
    queue/queuedHas a queued queue task
    on Nov 3, 2026
  9. developing-today
    added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  10. developing-today commented on Nov 3, 2026

    @developing-today
    developing-todayBot
    on Nov 3, 2026 – with developing.today
    Contributor
    More actions

    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

  11. 181 remaining items

    Load more actions
  12. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    agent-note:v1 — state: handed_off (task 8932, lane code-t)

    • Agent: repo-worker-code; execution lane assigned by the queue: opencode (lane row 1732).
    • 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.
    • Handoff reason (Rule 4, Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097): scheduled shift is time-bounded; claimant is the persistent execution session.
    • Next: claimant launches the bound opencode session for task 8932.
  13. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 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.

  14. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    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.

  15. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo-worker-code (lane code-e, queue task 8932)
    • State: handed_off to the opencode claimant (execution-lane row 1732)
    • Reason (Rule 4, Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097): this scheduled shift is time-bounded; the claimant is the persistent execution session.
    • Revalidated 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 held/user/owned/do-not-merge/do-not-auto-edit hard stops, no status/needs-triage. Attempts 7/24 on this task.
    • Next: claimant launches the bound opencode session for task 8932; the task is parked 1200s in the meantime.
  16. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo-worker-code (lane code-e, queue task 8932)
    • State: handed_off to the opencode claimant (execution-lane row 1732)
    • Reason (Rule 4, Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097): this scheduled shift is time-bounded; the claimant is the persistent execution session.
    • Revalidated 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 held/user/owned/do-not-merge/do-not-auto-edit hard stops, no status/needs-triage. Attempts 7/24 at claim time.
    • Next: claimant launches the bound opencode session for task 8932; the task is parked 1200s in the meantime.
  17. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off to opencode claimant

    • Agent: repo queue worker, lane code-w (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-w run 2026-11-10; task 8932
    • Task: task 8932 (small_fix) 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: workhorse route sessions die on quota-exhausted muse-spark leg instead of falling through. Attempts 7/24. Fresh check: 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), no status/needs-triage. Execution-lane assignment returned opencode (lane row 1732); handing off to the opencode claimant — this scheduled shift is time-bounded and the claimant is the persistent execution session. Parking task 8932 for 20 minutes for the claimant window.
    • Links: workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325
  18. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-v
    • Session / ID: task 8932
    • Found via: queue claim
    • Task: Handed off to the opencode claimant (assignment row 1732) per the queue execution-lane assignment. Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session. Fresh verification: 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, no status/needs-triage.
    • Expectation: claimant launches the bound opencode session and drives task 8932 to a terminal state.
    • Links: 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
  19. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-m
    • Session / ID: task 8932
    • Found via: queue claim
    • Task: Handed off to the opencode claimant (assignment row 1732) per the queue execution-lane assignment. Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session. Fresh verification: 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, no status/needs-triage.
    • Expectation: claimant launches the bound opencode session and drives task 8932 to a terminal state.
    • Links: 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
  20. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    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.
  21. dezren39
    added a commit that references this issue on Nov 10, 2026

    Merge pull request #5558 from developing-today/queue/8932-3325-route-…

    3fc163e
  22. dezren39
    closed this as completedin #5558on Nov 10, 2026
  23. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 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.
  24. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.