Repository navigation
feat: route retired ids to their successors (gemini-3.5-flash, o4-mini) - #16
Merged
Merged
Conversation
Owner-approved 2026-11-24. The gateways now redirect these ids before pricing, so a chain that still names one reports a model that does not answer, priced at a rate the gateway no longer charges. Chains: every gemini-3.5-flash rung names gemini-3.6-flash at the same position (auto MEDIUM and premium SIMPLE primaries; auto COMPLEX and REASONING, premium MEDIUM, agentic MEDIUM fallbacks). Where 3.6 already sat in the same chain, the later of the two is dropped, so the order of the models actually served is unchanged. o4-mini -> gpt-5.4-mini in place in auto and premium REASONING. o1 and o3-mini were in no chain. Affinity: every "gemini-3.5-flash" value in portfolio.ts and the evidence pools moves to "gemini-3.6-flash" unchanged. These are carried over from 3.5 (calibrated 2026-07-26/28), not measured on 3.6; a comment above the bands says so. Google has answered the 3.5 name with 3.6 since ~10-10, so the router has in practice been routing 3.6 on these values since then. No probe: both successors already carry tool evidence (probe-tools.json, 2026-08-29) and profiles. Capabilities: the sync against the 2026-11-24 catalog changes only its date. The retired ids are still listed until the gateways ship the redirect. Decision snapshot: 15 of 88 primaries move, all gemini-3.5-flash -> gemini-3.6-flash on the same task, 0 tiers. 64 other rows change only their candidate lists, each exactly the rename plus the dedupe. Two more reorder 3.6 within the scored pool. That is the name-hash artifact: the snapshot prices 3.5 at $3.60/$6.70 and 3.6 at $1.50/$6.70. Re-routing the corpus with the live catalog's real prices (3.5 at $1.5/$9, 3.6 at $0.75/$3.75) moves 27 of 88. 18 are the same 3.5 -> 3.6 rows. 9 move from deepseek-v4-pro ($1.32/$3.96) to 3.6 Flash (reasoning_math x6, reasoning x2, tool_agent_parallel x1), where 3.6 carries 3.5's equal-or-higher band and is now cheaper. Those 27 rows cost 49% less. README: the reasoning example now routes to gemini-3.6-flash (reproduced on the new dist with live prices), and the counts and dist/ are updated. Tests: src/retired-models.test.ts checks that no chain names a retired id or lists a model twice, and that route() never returns a retired id from any profile or request shape (this covers the evidence pools). Test fixtures rename 3.5 -> 3.6. Synthetic prices are kept, and hardening.test.ts uses 3.6's real price.
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Owner-approved 2026-11-24. The gateways (base/sol/arc, PRs in parallel) now redirect these ids before pricing. A chain that still names one reports a model that does not answer, priced at a rate the gateway no longer charges.
Chains (
src/config.ts)google/gemini-3.5-flash→google/gemini-3.6-flashat the same position: the auto MEDIUM and premium SIMPLE primaries, plus fallbacks in auto COMPLEX and REASONING, premium MEDIUM and agentic MEDIUM. Where 3.6 already sat in the same chain (auto MEDIUM, auto COMPLEX, premium SIMPLE, premium MEDIUM), the later of the two copies is dropped. Google has answered the 3.5 name with 3.6 since ~10-10, so the order of the models actually served doesn't change.openai/o4-mini→openai/gpt-5.4-miniin place, in auto and premium REASONING.o1ando3-miniwere in no chain.Affinity (
src/portfolio.ts)Every
"gemini-3.5-flash"band value and evidence-pool entry moves to"gemini-3.6-flash"unchanged. This follows the kimi-k3 → kimi-k3.1-pro precedent (#14). The values are carried from 3.5 (calibrated 2026-07-26/28), not measured on 3.6, and the comment above the bands says so. In practice the router has been routing 3.6 on these values since October.Probe
None needed, $0 spent. Both new primaries/successors already have tool evidence and profiles:
gemini-3.6-flashandgpt-5.4-miniwere tool-probed 2026-08-29.Capabilities sync
node scripts/sync-model-capabilities.mjsagainst the 2026-11-24 catalog changes only the date. The retired ids stay listed until the gateways ship the redirect. The next sync after that drops them, because they are no longer routed.Decision snapshot diff
gemini-3.5-flash → gemini-3.6-flashon the same task. 0 tiers move.deepseek-v4-pro($1.32/$3.96) to 3.6 Flash (reasoning_math ×6, reasoning ×2, tool_agent_parallel ×1): 3.6 carries 3.5's equal-or-higher band and is now the cheaper model. The 27 moved rows cost 49% less. No real-price row picked o4-mini before, so swapping o4-mini changes no decision.Tests
src/retired-models.test.tschecks that no chain names a retired id or lists a model twice, and thatroute()never returns a retired id from any profile or request shape. The last check also covers the evidence pools.hardening.test.tsuses 3.6's real price.npm run check: typecheck, 196/196 tests, and build pass. README (reasoning example re-run on the new dist with live prices, counts, sync date) anddist/are updated.o4-miniback in premium REASONING andgemini-3.5-flashback in the extraction pool fails 2 of the 4 new tests.Stacked child: the
[merge 12-01]Gemini 2.5 PR targets this branch. ClawRouter's router-core pin is not bumped here; that happens after merge.🤖 Generated with Claude Code