2026-11-25 · The model list checked before it is trusted, and read by the versions installed

2026-11-25 · The model list checked before it is trusted, and read by the versions installed

Context

Every installed copy of Kalamu downloads the model list (crates/catalog/catalog.json) from main at launch and when Settings asks, so each merge reaches them all at once (#279, from the review of 25 November). Until now a copy kept whatever parsed: no limit on the download’s size; no check of sense, so a list with no model, a negative price or a successor naming nothing would be used; a bad list, once cached, won at every launch until one with a later date came, even with refreshing turned off; lists were compared by the text of their date, so a correction made the same day never arrived; and the link to a provider’s key page, opened in the browser, was held to the hosts the bundled list names only by a test of the bundled list, a downloaded one needing no more than https://. The providers’ addresses are constants in the code, so a list cannot send requests elsewhere, but it can change prices, estimates and what New job offers without anyone seeing.

The other direction was untested: Task, ModelStatus, Tier and LanguageHints are read strictly, so one value a build does not know makes it refuse the whole list, said nowhere but in the logs at the info level. The tests read an old list with today’s build, never today’s list with the builds people have.

Decision

Consequences