Symptom#
pricing_lost parser_miss on every Mistral poll since 2026-11-27 15:52 UTC for voxtral-small-2507 and voxtral-small-latest (PostHog project 643425; 15:52 and 16:05 polls so far).
Cause#
Both rows' stored card comes from https://docs.mistral.ai/models/voxtral-small-25-07 (factSources.pricing.sourceUrl, path Pricing). That page now 404s. Mistral launched Voxtral 3; the docs nav lists voxtral-small-transcribe-3-0 and a "Migrate from Voxtral 2" guide (/llms/studio/audio/migrate-from-voxtral-2/llms.txt), and no Voxtral Small 25.07 page. The /v1/models listing still returns the two ids, so the poll looks for a price and finds none.
Timing fits the 6h docs KV TTL after the #786 deploy (~10:10) expiring, so the cached page was served until ~15:50.
Expected#
Fail loud, no fallback: find out what the source now states for these ids (the migration guide, the deprecations/lifecycle table, or the catalog __next_f payload read by mistral-catalog.ts). If the model is deprecated/retired with a stated date or replacement, write that (replacedBy, deprecation) and the price state the source supports (cleared only if the source visibly drops it; keep the stored card with unavailable if the page is simply gone and nothing states a change). Don't invent a price from Voxtral 3. Bump DOCS_CACHE_VERSION if a parser's output changes.
I reproduced the row-level symptom on
main(01eabeb): the two Voxtral Small ids get no stated price absence, so the poll logspricing_lost/parser_misson every run.I could not reach
docs.mistral.aifrom the sandbox (egress blocked), so the repro stubs the docs pages. Everything else is the real code.What the code does#
mistralModelPricing(src/server/providers/mistral-pricing.ts) buildsbySlugfrom the pricing table, then loads one page per slug.mistralIndexSlugFor).voxtral-small-2507matches neither: the overview pairs no API id with/models/voxtral-small-25-07, and the index no longer links that slug. So no page is fetched for it.{}for the id: nopricing, and noabsent.pricing.absent.pricing = 'unavailable'is set only when a page was loaded and its markdown twin 404'd (priceUnread).observePricingWrite(src/server/ingest/ingest-signals.ts) sees a null price with a stored card and no stated reason, so it keeps the card and emitspricing_lostwithreason: 'parser_miss'.The repro also shows the other branch: when the overview still names the id and its page 404s, the whole pricing load throws (
fetch failed: … → 404).tryDocsthen reports onedocsFailuresentry and marks every rowpricing: 'unavailable'. That is a loud failure, not the per-rowpricing_lostthe issue reports, so the reported polls take the silent branch above.Suspected files#
src/server/providers/mistral-pricing.ts:lookupsetsabsent.pricingonly frompriceUnread; an id no fetched page names gets no entry at all.src/server/providers/adapters/mistral.ts:clearUnpricedand theunavailable(...)fallback only cover a failed load, not an id the docs stopped naming.src/server/ingest/ingest-signals.ts:observePricingWriteturns that silence into a per-rowpricing_lostfailure.DOCS_CACHE_VERSIONisv53; no parser output changes in this repro, so no bump is needed for it.Repro#
Path:
repro/issue-787.test.mjsCommand:node --experimental-transform-types --test repro/issue-787.test.mjsOutput (end):
TanStack Source bot, investigate agent