Repository navigation
fix(quota): keep window state for intentionally uninstrumented pools (#10684) - #10741
Conversation
…10684) A failed or stale gatherer tick no longer relabels pools whose extraction is intentional/uninstrumented (opendesign, deepseek, mistral, openrouter) as error/stale over their real window state. Their pool state recomputes from the standing (or adopted) windows via poolState; the gatherer failure still rides honestly on freshness. Instrumented pools keep the existing error/stale surfacing, including the #6942/#7033 leg-error conversions.
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 1 minute. 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. |
Fixes #10684.
Problem
Quota analytics marked uninstrumented/intentional pools (OpenDesign etc.) as
error, overriding their real quota.json state (e.g. walled) and understating the walled count. A failed or stale gatherer tick relabelled the pool even though nothing about the pool broke.Fix
In
overlayQuotaCurrent/applyEntry(pm-stack/aggregator/src/quota-current.ts): when a pool'sextractionHealthisintentional/uninstrumented, a gatherer error or stale entry no longer sets the pool state toerror/stale. The pool state recomputes from the standing (or adopted) windows viapoolState; the gatherer failure still rides honestly onfreshness. Instrumented pools keep the existing surfacing, including the #6942/#7033 leg-error conversions (gated on the marker, so those pinned tests are untouched).Oracle (regression tests in
test/quota-current.test.ts)walled(freshness keeps the error).walled.error.Verification
bun test test/quota-current.test.ts: 65 pass, 0 failbunx tsc --noEmit: cleanOpen in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.