GeezerVison is showing github.com — Quota analytics marks uninstrumented pools as error, understating the walled count · Issue #10684 · developing-today/code
Quota analytics marks uninstrumented pools as error, understating the walled count #10684DescriptionObserved 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. Activitydeveloping-today commented on Nov 16, 2026 dezren39 commented on 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. dezren39 commented on 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'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. dezren39 commented on Nov 16, 2026 event: done
worker: repo-worker-code
lane: code-h
session: openchamber-scheduled-lane
task: 17482
outcome: already_done
proof: PR #10741 MERGED 2026-11-16T12:41:37Z merge caec158ffc8de06f388c1a0c6d1cf5daf46fc51a; issue CLOSED 2026-11-16T12:41:39Z (gh read-back)
at: 2026-11-16T13:42:11Z
Left-on-the-ground checker: named proof holds, no fix work required; task completed and will not re-queue.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|