What changed: renamed, which takes a relay's prefix and a window mark off
an id, knew only ids models.dev lists. A model no catalog lists by its id
— OpenAI's gpt-5.6-cyber, served as gpt-daybreak-red-latest whose
canonical_model_id is openai/gpt-5.6-cyber (23 such ids in today's
api.json) — stayed unknown to the rename, so claude-gpt-5.6-cyber (a
relay's, #1383) had no price, no window, no name and no capabilities,
though #1520 prices the id when asked as given. The rename now reaches
what models.dev knows as an entry's canonical_model_id, and a canonical
id is never taken for another, as a listed one never is: cortecs's
claude-sonnet-4 is claude-sonnet-4-0, and were a catalog to list a
sonnet-4-0 of its own, Claude's model would not become it.
Review (yetone's session): the two tests fail on the old catalog.go
(PricedBy of the three renamed spellings false, ContextOf 0; Drift's 99,
32000 and "Drift Sonnet" for claude-sonnet-4-0) and pass with it. The
23 canonical-only ids were counted in the local models.dev cache
(gpt-5.6-cyber only under openai's gpt-daybreak-red-latest,
claude-sonnet-4-0 under cortecs and requesty). The cortecs fixture was
made literal (name "Claude Sonnet 4 (latest)", pdf input, output 65000)
and the Daybreak Red one given its input limit 272000. A sweep of every
listed and canonical id, plain, with claude- and with [1m], through
PricedBy, ContextOf, OutputOf, Thinks, SeesImages, NameOf, EffortsOf
and Knows on the real catalog: no answer for a listed id changed; only
canonical-only ids and their renames gained one. The full suite, gofmt
and the cross-OS vets were run on the series.
Author's run: the red/green above; go test -tags nogui
./internal/catalog ./internal/usage ./internal/provider green; gofmt -l
clean.
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>