Skip to content

feat: route retired ids to their successors (gemini-3.5-flash, o4-mini) - #16

Merged
VickyXAI merged 1 commit into
mainfrom
chore/retire-models-now-1124
Nov 24, 2026
Merged

VickyXAI merged 1 commit into
mainfrom
chore/retire-models-now-1124

Conversation

@VickyXAI

Copy link
Copy Markdown
Contributor

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-flash at 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-mini in place, in auto and premium REASONING. o1 and o3-mini were 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-flash and gpt-5.4-mini were tool-probed 2026-08-29.

Capabilities sync

node scripts/sync-model-capabilities.mjs against 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

  • 15 of 88 primaries move, all gemini-3.5-flash → gemini-3.6-flash on the same task. 0 tiers move.
  • 64 rows change only their candidate lists, each exactly the rename plus the dedupe.
  • 2 rows reorder 3.6 within the scored pool. That is the name-hash artifact: the snapshot prices models from a hash of the name, so 3.5 was $3.60/$6.70 and 3.6 is $1.50/$6.70.
  • Real prices: I re-routed the same corpus with live catalog prices (old config with 3.5 at its listed $1.5/$9 and o4-mini at $1.1/$4.4; new config with 3.6 at $0.75/$3.75). 27 of 88 move. 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 ×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

  • New 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. The last check also covers the evidence pools.
  • Fixtures rename 3.5 → 3.6 at their synthetic prices; hardening.test.ts uses 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) and dist/ are updated.
  • Mutation check: putting o4-mini back in premium REASONING and gemini-3.5-flash back 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

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant