You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Quota analytics marks uninstrumented pools as error, understating the walled count #10684
Observed 2026-11-16 ~03:58 CT: the opendesign pool flipped from walled to error in quota-analytics, dropping the Live Status headline from 10 to 9 of 15 pools walled — but nothing about OpenDesign broke.
Evidence (laptop, 2026-11-16T10:30Z):
quota.json: opendesign state = walled, 7d window 100%, resets 2026-11-17T11:44:41Z; freshness measuredAt 2026-11-16T10:30:22Z, state ok; providerAuth status valid, sessionExpiresAt 2026-11-23.
The same pool's extractionHealth is status intentional / reason uninstrumented (by design, same as deepseek, mistral, openrouter) — OpenDesign has no usage extractor.
quota-analytics.json: pool state = error; the 5h projection reports samples: 0, insufficient-history (fewer than two same-period readings spanning 10 minutes), while the 7d projection still says walled.
So the analytics layer treats 'no extractor samples' as an error state for the pool, overriding the fresh walled state from quota.json. Effect: the walled count in the Live Status headline understates reality by one for every uninstrumented-but-walled pool.
Fix direction: for pools whose extraction is intentional/uninstrumented, analytics should carry the pool state from quota.json (walled/healthy by its windows) instead of error. Reserve error for instrumented pools whose readings actually fail or go stale.
Second instance, 2026-11-16 04:28 CT: Claude Pro flipped walled → error in quota-analytics (7d window still 100%) while opendesign flipped back error → walled in the same run. Net headline unchanged (9 of 15) but the membership is flapping run to run — same root cause: pools without fresh extractor samples get the error label over their real window state. Claude Pro's gatherer state was 'stale' (measuredAt 2026-11-16T10:00:35Z vs 10:30Z tick) in the same quota.json pull, so staleness of samples may be the trigger for instrumented pools too.
Fixed and landed in #10741 (merge commit caec158, merged 2026-11-16T12:41:37Z). Issue closed 2026-11-16T12:41:39Z.
What changed
pm-stack/aggregator/src/quota-current.ts — when a pool's extractionHealth is intentional/uninstrumented (opendesign, deepseek, mistral, openrouter), a gatherer error or stale entry no longer relabels the pool error/stale over its real window state. The 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 — those branches are now gated on the marker, so their pinned tests are untouched.
Regression tests (oracle in the test names)
Added to pm-stack/aggregator/test/quota-current.test.ts:
Uninstrumented pool with a 100% window + an error entry → stays walled (freshness state error, error text preserved), not error.
Retained entry with a leg error on an uninstrumented shell pool → adopted windows stand, state walled, freshness stale.
Stale entry on an uninstrumented walled pool → stays walled.
Control: an instrumented pool with a failed reading → still error.
Verification
bun test test/quota-current.test.ts: 65 pass, 0 fail (226 expect calls).
bunx tsc --noEmit: clean.
origin/main carries the fix: isIntentionallyUninstrumented at quota-current.ts:275/299/316.
The analytics layer copies pool.state verbatim (analytics-store.ts:1068), so the walled count in the Live Status headline now reflects the pool's window state for these pools instead of flapping to error on a failed gatherer tick.
Activity
developing-today commentedon Nov 16, 2026
CODE-3872
dezren39 commentedon Nov 16, 2026
Second instance, 2026-11-16 04:28 CT: Claude Pro flipped walled → error in quota-analytics (7d window still 100%) while opendesign flipped back error → walled in the same run. Net headline unchanged (9 of 15) but the membership is flapping run to run — same root cause: pools without fresh extractor samples get the error label over their real window state. Claude Pro's gatherer state was 'stale' (measuredAt 2026-11-16T10:00:35Z vs 10:30Z tick) in the same quota.json pull, so staleness of samples may be the trigger for instrumented pools too.
fix(quota): keep window state for intentionally uninstrumented pools (#…
Merge pull request #10741 from developing-today/queue/10684-quota-uni…
dezren39 commentedon Nov 16, 2026
Fixed and landed in #10741 (merge commit caec158, merged 2026-11-16T12:41:37Z). Issue closed 2026-11-16T12:41:39Z.
What changed
pm-stack/aggregator/src/quota-current.ts— when a pool'sextractionHealthisintentional/uninstrumented(opendesign, deepseek, mistral, openrouter), a gatherer error or stale entry no longer relabels the poolerror/staleover its real window state. The pool state recomputes from the standing (or adopted) windows viapoolState; the gatherer failure still rides honestly onfreshness. Instrumented pools keep the existing error/stale surfacing, including the #6942/#7033 leg-error conversions — those branches are now gated on the marker, so their pinned tests are untouched.Regression tests (oracle in the test names)
Added to
pm-stack/aggregator/test/quota-current.test.ts:walled(freshness stateerror, error text preserved), noterror.walled, freshnessstale.walled.error.Verification
bun test test/quota-current.test.ts: 65 pass, 0 fail (226 expect calls).bunx tsc --noEmit: clean.origin/maincarries the fix:isIntentionallyUninstrumentedat quota-current.ts:275/299/316.The analytics layer copies
pool.stateverbatim (analytics-store.ts:1068), so the walled count in the Live Status headline now reflects the pool's window state for these pools instead of flapping toerroron a failed gatherer tick.dezren39 commentedon Nov 16, 2026
Left-on-the-ground checker: named proof holds, no fix work required; task completed and will not re-queue.