Files
loki/scripts
CatoandClaude Opus 5 dd8a877944 fix(ai): the capacity page said a busy vendor had never served (#770)
* fix(ai): the capacity page said a busy vendor had never served

Opened the page on production and read it. Three things were wrong, and the
first is the SAME false sentence that started this work.

THE GOOGLE ROW WAS THE ORIGINAL COMPLAINT, AGAIN

  google — not measured
  "configured, but it has not served an answer yet"
  "will be measured on the next answer it serves"

Gemini answers most of the traffic. It also publishes no rate-limit headers at
all, so it can never appear in provider_quota — which means BOTH lines were
false, and the second promised a measurement that would never arrive however
long anyone waited. The identical wording about Groq is what got this page
called made-up in the first place; I fixed it there and shipped it here.

Fixable now only because of the ledger added yesterday. Spend is a SECOND
WITNESS: headers answer "how much is left" and go silent for a vendor that
discloses nothing, while spend answers "did this actually run" and never goes
silent, because it is recorded on our side of the call. With two witnesses the
row can say the true and useful thing — "served 14 calls today (9,532 tokens) —
this vendor publishes no limits, so there is nothing left to measure", and a
consequence that admits the headroom is unknowable until it refuses.

Every false claim this page has made has been the same mistake: reporting
ABSENCE OF MEASUREMENT as ABSENCE OF ACTIVITY. Groq "hasn't served" while being
skipped. A minute window "spent" while holding 3,984 tokens. Now this.

TWO SMALLER LIES

  whisper-large-v3-turbo — "~1,999 answers". It serves TRANSCRIPTIONS. A wrong
  unit is how a reader starts distrusting the number beside it.

  Five OpenRouter models each printed "this is the last link — after it, answers
  wait for the reset". The fact is per-PROVIDER; repeating it per model does not
  make it truer, it just buries the rows that say something different. Said once
  per run now, and a consequence that returns after a different one speaks again
  — dedupeConsequences is pure and tested rather than inline in the route.

Quota-view checks 31 -> 37, both directions of each: a vendor nobody has called
still says exactly that, and a chat model keeps "answers".

Full gate green, run in pieces because the box is at 26/31 GB: tsc, lint,
format, design, unit 194/194, home 130, desktop, ops 7/7.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nm2REqtdsVsvjukBU2maCz

* chore: re-trigger CI

Both prior runs for this branch stalled seconds after starting, during a window
when the box was at 26/31 GB and local verify was being OOM-killed too. Branches
that started after the crunch are progressing normally, so this is a fresh run
against a healthier machine rather than a change to the code.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nm2REqtdsVsvjukBU2maCz

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 07:51:39 -07:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00