Files
gstack/lib/model-families.ts
T
Garry Tanandcapy-ai[bot] 9a550bca9c gstack picks the newest Opus, Fable, Sol and Astra everywhere (GST-3760) (#4811)
gstack now uses the newest model of each family it picks from: the Codex
second-model review defaults to `gpt-6.2-astra`, plan-review tiers move
to `claude-fable-5-2` and `gpt-6.2-sol`, and eval judges to
`claude-fable-5-2`.

Why: Garry's rule that gstack always uses the latest Astra, Sol, Fable
or Opus; one table now holds each family's newest model, so the next
release is a one-line change.

Nothing to do: models you pinned in your own config keep working.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/outside-voice#1 reader=outside-voice
Review-Finding: p1/adversarial-native#2 reader=adversarial-native
Review-Finding: p1/outside-voice#2 reader=outside-voice
Review-Finding: p1/adversarial-native#1 reader=adversarial-native
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/outside-voice#3 reader=outside-voice
Review-Finding: p1/adversarial-native#4 reader=adversarial-native
Review-Finding: p1/adversarial-native#5 reader=adversarial-native
2026-11-25 02:06:47 +00:00

28 lines
1.7 KiB
TypeScript

/**
* The one table of model families gstack picks from: each family's newest model.
* Every default that names a family's model (the agent preference, the tier
* catalog, eval capture and judge models, the Codex frontier voice, the R95
* fallback reader, Codex setup) reads it here, so a new generation is a one-line
* change. test/model-generation-guard.test.ts fails when runtime code or
* agent-loaded prose names an older generation of opus, fable, sol or astra.
*/
export type ModelFamily = 'opus' | 'fable' | 'sonnet' | 'haiku' | 'astra' | 'sol' | 'luna' | 'terra';
export const MODEL_FAMILIES: ReadonlyArray<Readonly<{ family: ModelFamily; provider: string; model: string }>> = Object.freeze([
{ family: 'opus', provider: 'anthropic', model: 'claude-opus-5-5' },
{ family: 'fable', provider: 'anthropic', model: 'claude-fable-5-2' },
{ family: 'sonnet', provider: 'anthropic', model: 'claude-sonnet-5-5' },
{ family: 'haiku', provider: 'anthropic', model: 'claude-haiku-5-5' },
{ family: 'astra', provider: 'openai', model: 'gpt-6.2-astra' },
{ family: 'sol', provider: 'openai', model: 'gpt-6.2-sol' },
{ family: 'luna', provider: 'openai', model: 'gpt-6-luna' },
{ family: 'terra', provider: 'openai', model: 'gpt-6.1-terra' },
].map(f => Object.freeze(f as { family: ModelFamily; provider: string; model: string })));
export function newestModel(family: ModelFamily): string {
return MODEL_FAMILIES.find(f => f.family === family)!.model;
}
/** Today's frontier models under test (R54, docs/TESTING_INTERNALS.md#frontier-models-under-test); a small-tier plan is re-costed on these. */
export const FRONTIER_MODELS = [newestModel('opus'), newestModel('sol')] as const;