GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(core): pool-shaped quota pull-out and any-error-class escalating bench (#1014 PR3) by dezren39 · Pull Request #1384 · developing-today-forks/opencode Conversation
|
| #1014 item | Status after PR3 |
|---|---|
| 1. Repeated errors remove target, not fixed-interval retry forever | COVERED for the core router — any-class health accounting (this PR) on top of the ordinary bench and PR1 balance/quota gates |
| 2. Removal escalates with recurrence, capped | COVERED — non-quota, non-retryable classes now reach ModelRoute.failed and climb the same doubling, capped ladder |
| 3. Expected resolution (reset / Retry-After) governs removal; auto-restore at reset | COVERED — the ladder already honours Retry-After / quota reset; the pool verdict is derived from that leaf state, so a pool restores at its leaves' stated resets and balance-held pools only on a fresh balance increase |
| 4. Automatic, probed restoration | COVERED — pool re-entry is automatic on bench/gate expiry; #1123 half-open probe behaviour is unchanged and pinned by its existing tests |
| 5. Consistent core + OpenChamber surfaces | Unchanged by this PR — core remainder only; the OpenChamber read-only surface remainder was recorded on #1014 on 2026-10-30 |
| Tests: repeated 402 escalating; quota-reset restoration; recovered re-entry | COVERED — new session-step 402 test; new model-route pool reset/re-entry tests; #1123 probe tests for leaf-level reset restoration |
Still owed on #1014 (separate packets, unchanged): runner policy (issue #1379, task 6191) and the two CodeRabbit follow-ups (issue #1380, task 6192). This PR does not close #1014.
Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…bench (#1014 PR3) - ModelRoute.poolQuotaExhausted: a leaf pool (deepest nested route / provider-route group) is pulled as a whole once two distinct leaves are quota-out (quota bench, credential gate, provider gate or balance hold); derived from live leaf state so it lifts at the stated reset, on balance-increase release, or on recovery - model-resolver: pool-exhausted leaves are excluded from candidacy and hard-excluded from the all-full last resort, so a proven-walled pool is never re-offered; the PR2 cascade looks elsewhere instead - session runner: terminal non-retryable failures (402/billing, 5xx, timeout, other classes outside retryable/Auth/QuotaExceeded) now record ModelRoute.failed health accounting without broadening same-request failover gates; context-overflow stays excluded - Tests: pool pull-out + reset restoration + re-entry (model-route), repeated non-retryable timeout and repeated 402 billing escalation (session-step)
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 36 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 4794119cf5
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const quotaBench = (state: HealthState | undefined, now: number) => | ||
| state !== undefined && | ||
| state.cooldownUntil > now && | ||
| (state.benchReason === "quota" || state.benchReason === "quota retry-after") |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Allow due quota probes through the pool exclusion
When two pool members have quota benches and a trusted reset is learned after those benches were created, armBenchProbe makes them probe-eligible at reset without shortening their cooldowns. This predicate still counts both as quota-out until their original cooldowns expire, so poolQuotaExhausted remains true and the resolver excludes every member, including the due probes, from both normal selection and last resort. This defeats the existing half-open recovery path and can leave a recovered pool unavailable until the escalated cooldown expires (up to 24 hours). Account for due probes when applying the pool exclusion.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const out = new Set<number>() | ||
| for (const leaf of pool.leaves) { | ||
| const target = definition.targets[leaf] | ||
| if (target && quotaOut(target, credentialOf?.(leaf), now)) out.add(leaf) | ||
| } | ||
| return out.size >= POOL_QUOTA_LEAVES |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Avoid counting one shared quota gate as multiple failure signals
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 credentialQuotaBlocked. This loop counts those leaves separately and declares the entire pool exhausted, so the resolver now hard-excludes the healthy B leaf even though neither it nor a second independent quota source has failed. The credential-less provider gate has the same issue. Deduplicate shared quota-gate evidence, or track distinct leaf failures, before using the threshold to remove unrelated healthy members.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Codex findings disposition (queue task 6188 verification, lane A 2026-11-02): this PR was merged with two Codex P2 findings unresolved. Both were re-verified against current main and filed as follow-up issues rather than left on this merged PR:
Task 6188 itself is completed as verified_merged: PR3 acceptance (pool-shaped benching + any-error-class escalating removal, with tests) confirmed on a tree containing this merge — packages/core model-route + session-step + model-resolver suites 205 pass. Issue #1014 stays open for its other routed packets, per the PR body. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
ensure(core+openchamber): repeated errors of ANY class remove a model from rotation for escalating time, or until its expected resolution
There was an error while loading. Please reload this page.