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 — fix(core): pool quota exclusion counts one shared quota gate as multiple distinct leaf failures — a healthy leaf from another provider gets hard-excluded (PR #1384 Codex P2 unaddressed) · Issue #1389 · developing-today-forks/opencode

fix(core): pool quota exclusion counts one shared quota gate as multiple distinct leaf failures — a healthy leaf from another provider gets hard-excluded (PR #1384 Codex P2 unaddressed) #1389

New issue
Copy link
New issue
Copy link
Closed
#1466
Closed
fix(core): pool quota exclusion counts one shared quota gate as multiple distinct leaf failures — a healthy leaf from another provider gets hard-excluded (PR #1384 Codex P2 unaddressed)#1389
#1466
Copy link
Labels
app/corePackage: core (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review job

Description

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

Origin: Codex P2 review finding on PR #1384 (merged 2026-11-02 as f7b4c02), thread on packages/core/src/model-route.ts (line 622 at head 4794119), left unresolved at merge. Verified still present on current main by queue task 6188 (lane A, 2026-11-02).

Problem

poolQuotaExhausted (packages/core/src/model-route.ts, ~line 609) pulls a pool once two distinct leaves are quota-out, but quotaOut (~line 546) counts a leaf as out when its serving credential is quota-gated (credentialQuotaBlocked) or its provider is quota-gated. Those gates are shared evidence: for a nested route containing provider-a/model-1, provider-a/model-2, and a healthy provider-b/model-3, one quota failure on provider A's active credential gates both A leaves through the same credential gate. The loop counts them as two distinct leaf failures and declares the whole pool exhausted, so the resolver hard-excludes the healthy B leaf (including from the all-full last resort) even though no second independent quota source has failed. The credential-less provider gate has the same flaw.

Fix direction (from the Codex finding)

Deduplicate shared quota-gate evidence, or track distinct leaf failures, before applying the POOL_QUOTA_LEAVES threshold: leaves that are out only because of the same credential/provider gate count as one signal; genuinely independent leaf quota benches still count separately.

Acceptance

  • A pool where two leaves share one gated credential/provider and a third leaf is healthy is NOT declared pool-exhausted from that single gate; the healthy leaf stays selectable (including last resort).
  • Two leaves with independent quota benches (distinct credentials/gates) still exhaust the pool (existing PR3 tests keep passing).
  • New regression test beside packages/core/test/model-route.test.ts pool-shaped tests demonstrating the shared-gate case.
  • packages/core model-route + model-resolver suites pass; typecheck clean.

Part of the #1014 PR3 follow-up set; does not reopen #1014's other routed packets.

Acceptance criteria

  • A pool where two leaves share one gated credential/provider and a third leaf is healthy is NOT declared pool-exhausted from that single gate; the healthy leaf stays selectable, including from the all-full last resort.
  • Two leaves with independent quota benches (distinct credentials/gates) still exhaust the pool; existing PR3 tests keep passing.
  • A new regression test beside packages/core/test/model-route.test.ts pool-shaped tests demonstrates the shared-gate case.
  • packages/core model-route and model-resolver suites pass; typecheck is clean.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    source/pr-diff-reviewFiled by the pr-diff-review job
    priority/normalOrdinary priority (the default)
    app/corePackage: core (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Nov 2, 2026
  2. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    Author
    More actions

    Intake review

    Origin: Codex P2 finding on PR #1384 (merged 2026-11-02 as f7b4c02), thread at model-route.ts line 622, left unresolved at merge and verified still present on current main by queue task 6188. Part of the #1014 PR3 follow-up set (sibling: #1390, the due-probe flaw in the same functions). Still live. Risks: one provider's quota wall hard-excludes healthy leaves from other providers, including from last-resort selection. Suggested approach: deduplicate shared quota-gate evidence before applying the POOL_QUOTA_LEAVES threshold — leaves out only via the same gate count as one signal.

    — fleet monitor intake enrichment (protocol §5), 2026-11-02 run. Original body preserved verbatim above the appended acceptance-criteria section.

  3. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    queue/queuedHas a queued task in the Supabase agent queue
    queue/claimedA queue worker has claimed the task for this item
    work/assignedAn agent holds this item via the queue (claimed task)
    status/in-progressActively being worked
    and removed
    status/in-progressActively being worked
    queue/claimedA queue worker has claimed the task for this item
    work/assignedAn agent holds this item via the queue (claimed task)
    on Nov 2, 2026
  4. 10 remaining items

  5. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    Author
    More actions

    🤖 Agent note · queued

    • Agent: issue-sweep-rotating (triage feeder)
    • Session / ID: issue-sweep-rotating cron run 2026-11-02 17:24 CST
    • Found via: open-issue scan — concrete evidenced bug (Codex P2 follow-up), no queue/work labels
    • Task: Enqueued triage packet as queue task 6624 in repo-health-opencode-pilot (dedupe repo-health:v1:triage:developing-today/opencode:issue:1389). Evidence comment was prepared but its post hit a GitHub secondary rate limit this run; it is filed in the fleet action outbox for verbatim posting (text: hidden_files/comment-opencode-1389-evidence.md; verified on main 5724210).
    • Expectation: triage confirms poolQuotaExhausted double-counts one shared quota gate and routes the fix per the issue's acceptance criteria. Sibling fix(core): pool quota exclusion defeats due bench probes — probe-eligible leaves stay excluded until the escalated cooldown expires (PR #1384 Codex P2 unaddressed) #1390 fed separately this run.
    • Links: fix(core): pool quota exclusion defeats due bench probes — probe-eligible leaves stay excluded until the escalated cooldown expires (PR #1384 Codex P2 unaddressed) #1390
  6. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressActively being worked
    on Nov 3, 2026
  7. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    Author
    More actions

    Parked awaiting CI on PR #1466 (shared-gate fix pushed, no workflow runs yet after ~5 min of polling). Resume: read PR check state, merge under standing criteria; branch queue/6641-1389-pool-quota-evidence, worktree ~/git/fleet/6641.

  8. dezren39
    added a commit that references this issue on Nov 3, 2026

    fix(core): remove quotaOut wrapper left dead by the evidence refactor (…

    45310a4
  9. dezren39
    added
    queue/claimedA queue worker has claimed the task for this item
    status/in-progressActively being worked
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 3, 2026
  10. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    Author
    More actions

    Resuming task 6641 (openchamber scheduled lane 3fe37e8a): issue OPEN, no hard-stop labels; PR #1466 open on branch queue/6641-1389-pool-quota-evidence with fix + regression test; duplicate #1462 already closed. Targeted suites verified locally (model-route 119 pass + 2 pre-existing #1423 fails untouched by this diff; model-resolver 75 pass; #1389 test green). Next: merge under standing criteria (mergeable CLEAN, no blocking labels).

  11. dezren39
    closed this as completedin #1466on Nov 3, 2026
  12. dezren39
    removed
    status/in-progressActively being worked
    queue/claimedA queue worker has claimed the task for this item
    work/assignedAn agent holds this item via the queue (claimed task)
    on Nov 3, 2026
  13. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    Author
    More actions

    Done: PR #1466 merged as 8c81dee; issue closed by merge. poolQuotaExhausted now counts distinct quota evidence sources (bench per leaf, credential gate per credential, provider gate/skip per provider) instead of leaves; shared-gate leaves count once so a healthy leaf keeps the pool open, while two independent benches still exhaust it. Tests: model-route 119 pass (+2 pre-existing #1423 fails in untouched describe), #1389 regression + pool-shaped 3/3 green, model-resolver 75/75. In-flight labels cleared; sandbox bookkeeping deferred to fleet reconciliation.

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/corePackage: core (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review job

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — 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.