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 — route-proxy: a leg failing 100% with provider.auth is never demoted — demotedPairs() counts only quota/RateLimit (3070/3070 failures, 40% of new sessions lost) · Issue #8048 · developing-today/code

route-proxy: a leg failing 100% with provider.auth is never demoted — demotedPairs() counts only quota/RateLimit (3070/3070 failures, 40% of new sessions lost) #8048

New issue
Copy link
New issue
Copy link
Closed
#8196
Closed
route-proxy: a leg failing 100% with provider.auth is never demoted — demotedPairs() counts only quota/RateLimit (3070/3070 failures, 40% of new sessions lost)#8048
#8196
Copy link
Labels
app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/fleet-monitorFiled or driven by the fleet monitor / operator reconciliationstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

Problem

demotedPairs() in bin/opencode-route-proxy.mjs:339 is the route proxy's only leg-health gate (applyDemotion(candidates, demotedPairs()) at line 936). It demotes a (provider, model) pair after ≥3 failures in 4 hours only when the failure carries quota detail or error_tag = 'RateLimit' — the SQL filter at line 347 is literally:

AND (quota IS NOT NULL OR error_tag = 'RateLimit')

A leg failing every attempt with provider.auth is therefore never demoted, never excluded and never reordered: it stays first-choice for new sessions and is handed out indefinitely. Today that leg is openai.main/gpt-6-luna.

Evidence (2026-11-09, laptop route_usage, window 09:18Z–12:18Z)

leaf requests failed tokens
openai.main/gpt-6-luna 3070 3070 (100%) 0
openai.alternate/gpt-6-luna 4 4 (100%) 0
_muse/muse-spark-1.3-contributor 3389 1589 (47%) 95.3M
opencode-go.developing-today-0/deepseek-v4.1-flash 1021 93 (9%) 39.0M
opencode-go.popesdrew/deepseek-v4.1-flash 283 31 (11%) 10.4M

Pool accounting from the same readout: workhorse-weighted offered openai-plan/gpt-6-luna 4706 times and chose it 3074, while the healthy leaves above sat in the same pool and served normally. 234 sessions carried at least one of those 3070 failures.

Session-level consequence (OpenChamber attention feed): the entire 06:00, 06:20 and 06:30 CST waves died at message 3 with the verbatim error Provided authentication token is expired. Please try signing in again. — including the fleet conductor, the main-CI fix trigger, the quota gatherer guardian, the builder's advocate and 8+ code lanes. That is ~40% of new workhorse sessions lost for the day, and the work each of them had claimed evaporated with them.

Why this is not #3325 and not #5558

  • workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325 (and its parked fix task 8932 / open PR fix(route-proxy): fail over on pre-content stream errors (#3325) #5558) is about a session falling through to a live leg after a pre-content stream error. Necessary, but orthogonal: with perfect fall-through the dead leg is still first-choice for every new session and every session still burns its first attempt on it.
  • opencode-route-proxy: known-100% seating gate — exclude legs whose binding quota window is known exhausted until reset (#4370c) #5295 (closed) added the quota-only known-exhausted seating gate — same doctrine, same blind spot.
  • This issue is the demotion predicate itself: a leg that fails 100% of attempts for any non-quota reason is not treated as unhealthy, so route_usage' offered-count for a dead leaf grows without bound.

Distinct code site (demotedPairs() filter), distinct acceptance (below).

Acceptance criteria

  • A (provider, model) pair with a 100% failure run (≥ threshold attempts, zero successes) inside the demotion window is demoted/excluded from candidacy regardless of error class — at minimum for provider.auth — until it records one success. Verified in route_usage: the dead leaf's offered count stops growing while it is failing (today it was 4706 in 3h).
  • Existing quota/RateLimit demotion behaviour is unchanged; its tests still pass.
  • A session whose first attempt lands on an auth-failing leg completes a turn on a fallback leg instead of terminating at message 3 (transcript or route_attempt ledger evidence).

Out of scope

  • Re-signing-in / refreshing the provider credential itself — that is Fleet-stalling: workhorse route auth token expired (42 sessions failed); prompt probe returns 'Insufficient account balance' #7991 and is Drew's action.
  • Pool weights, burn order or model choices for healthy leaves; any paid-route or PAYG switch.

Pointers

  • bin/opencode-route-proxy.mjs:338-347 (demotedPairs), :936 (call site)
  • bin/opencode-route-proxy.test.mjs (existing demotion tests to extend)
  • Triage of workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325, task 14387, lane code-f — workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325 (comment)
  • Recurrence evidence on workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325 (auth leg, three waves lost) — workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325 (comment)

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/needs-triageNot yet triaged; needs a first look
    on Nov 9, 2026
  2. developing-today commented on Nov 9, 2026

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

    CODE-2376

  3. dezren39
    added
    priority/highImportant and time-sensitive
    queue/queuedHas a queued queue task
    source/fleet-monitorFiled or driven by the fleet monitor / operator reconciliation
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 9, 2026
  4. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    Builder's-advocate 2026-11-09 07:00 CST — fix task enqueued: task 14391, repo-health-code-pilot, priority 10, small_fix, 45m, dedupe repo-health:v1:fix:developing-today/code:issue:8048.

    How this issue came to exist (relevant to anyone reading the queue): the triage of #3325 (task 14387, lane code-f, 12:29Z) scoped exactly this fix — it named demotedPairs() at bin/opencode-route-proxy.mjs:339, the quota-only SQL filter at line 347, and proposed a follow-up small_fix with a regression test — and then said 'follow-up small_fix task enqueued by this note's run'. It was not. The follow-up enqueue hit the issue-level fix dedupe key repo-health:v1:fix:developing-today/code:issue:3325, which is already bound to parked task 8932 (the pre-content-stream fall-through work behind open PR #5558), so the broker returned the existing task and the new work evaporated. I re-ran the same enqueue myself and got the identical dedupe hit on 8932, which is how the disappearance was confirmed.

    So the demotion gap had no task and no issue while it was costing ~40% of new workhorse sessions. Both now exist, and the fix task is separate from the parked fall-through task by construction.

    Note on #3325's labels: my 06:40 CST edit (queue/parked → queue/queued) has since been reverted to queue/parked, status/parked by the queue worker's completion flow for task 14387. Its fix path is therefore carried by this issue and task 14391; #3325 remains the umbrella.

    I verified the triage's claim myself before enqueueing: bin/opencode-route-proxy.mjs line 347 really does read AND (quota IS NOT NULL OR error_tag = 'RateLimit'), and line 936 is the only applyDemotion call site.

  5. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-x (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-x run 2026-11-09 06:39 CST; task 14391
    • Found via: queue claim · task 14391
    • Task: task 14391 for issue route-proxy: a leg failing 100% with provider.auth is never demoted — demotedPairs() counts only quota/RateLimit (3070/3070 failures, 40% of new sessions lost) #8048 (small_fix). Fresh check: issue route-proxy: a leg failing 100% with provider.auth is never demoted — demotedPairs() counts only quota/RateLimit (3070/3070 failures, 40% of new sessions lost) #8048 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Execution-lane assignment row 5597 returned opencode — handed off to the opencode claimant, which launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 14391 to a terminal state.
    • Links: task 14391 · issue route-proxy: a leg failing 100% with provider.auth is never demoted — demotedPairs() counts only quota/RateLimit (3070/3070 failures, 40% of new sessions lost) #8048
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 9, 2026
  7. 53 remaining items

  8. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 10, 2026
  9. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    agent-note:v1
    lane: code-o
    task: 14391
    issue: #8048
    stage: claimed
    note: Task 14391 picked up direct by lane code-o under #8187 (lane row 5597 assigned direct). Issue #8048 revalidated fresh: OPEN, no hard-stop labels, no status/needs-triage. Resumed worktree ~/git/code-worktrees/task-14391-8048 (branch queue/14391-8048-auth-demotion): prior uncommitted implementation + tests found, verified fresh — demotedPairs() now counts Authentication failures and a success clears the failure run. Targeted tests pass on the laptop: node --test bin/opencode-route-proxy.test.mjs — 37/37 pass, including the new auth-demotion and RateLimit-regression cases. Next: commit, merge main, push, open PR.

    🤖 Agent note · picked up (direct, #8187)

    • Agent: repo queue worker, lane code-o (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-o run 2026-11-10 13:32 CST; task 14391
    • Links: task 14391 · issue route-proxy: a leg failing 100% with provider.auth is never demoted — demotedPairs() counts only quota/RateLimit (3070/3070 failures, 40% of new sessions lost) #8048
  10. dezren39
    added a commit that references this issue on Nov 10, 2026

    fix(route-proxy): demote legs failing with provider.auth (#8048)

    538bcfd
  11. developing-today
    added
    status:in-review
    on Nov 10, 2026
  12. dezren39
    added a commit that references this issue on Nov 10, 2026

    Merge pull request #8196 from developing-today/queue/14391-8048-auth-…

    d2b3d5b
  13. dezren39
    closed this as completedin #8196on Nov 10, 2026
  14. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 10, 2026
  15. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    agent-note:v1
    lane: code-o
    task: 14391
    issue: #8048
    stage: done
    note: Task 14391 DONE fixed_merged. PR #8196 merged (merge sha d2b3d5b); issue #8048 closed by the merge. demotedPairs() now demotes (provider,model) pairs on Authentication failures as well as quota/RateLimit, counting only the current failure run (a success clears it). Tests: node --test bin/opencode-route-proxy.test.mjs — 37/37 pass on the laptop after merging origin/main, including new auth-demotion and RateLimit-regression cases. Codex review on PR #8196 failed to run (usage limits) with no findings posted; disposition recorded on the PR.

    🤖 Agent note · done

    • Agent: repo queue worker, lane code-o (repo-worker-code)
    • Links: task 14391 · issue route-proxy: a leg failing 100% with provider.auth is never demoted — demotedPairs() counts only quota/RateLimit (3070/3070 failures, 40% of new sessions lost) #8048 · PR fix(route-proxy): demote legs failing 100% on provider.auth (#8048) #8196
  16. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/fleet-monitorFiled or driven by the fleet monitor / operator reconciliationstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    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.