diff --git a/.opencode/opencode.jsonc b/.opencode/opencode.jsonc index d4792701ee..57eb9a2de1 100644 --- a/.opencode/opencode.jsonc +++ b/.opencode/opencode.jsonc @@ -30,7 +30,7 @@ // "antigravity-agy" are in disabled_providers below and their proxy // services are retired in home/common/default.nix; their definitions // stay FULL below per the switchboard rule. The Gemini seats moved - // to antigravity-direct (gemini-flash-plan, argon-plan). The Claude + // to antigravity-direct (gemini-hydrogen-plan, argon-plan). The Claude // seats in sonnet-plan and opus-plan still name antigravity-ls: // they are inert while the provider is disabled, until they are // re-pointed or the door is restored. Undo: delete both ids from @@ -2440,8 +2440,8 @@ // level with DeepSeek Flash's) at a higher burn than MiMo, on the // same shared plan meters. The provider blocks // keep listing the GLM models (catalog rule); no route seats them. - "gemini-flash-plan": { - "name": "Gemini Flash - plan providers", + "gemini-hydrogen-plan": { + "name": "Gemini Hydrogen - plan providers", // 2026-10-30 (route audit): this pool is single-door on // antigravity-ls, and that fragility is real — when the ls // proxy was down (2026-10-24/25) every Gemini Flash call @@ -2461,10 +2461,18 @@ // Gemini 3 thought_signature round-trip the objection above was // about), the ls proxy service is retired, and this pool now // rides on the direct door the same way. + // 2026-11-12 (Drew, direct order): the seat moves from Gemini + // 3.8 Flash to Gemini 4 Hydrogen and the route is renamed + // gemini-flash-plan -> gemini-hydrogen-plan (every reference + // in this file updated with it). AA v5.0.1: Hydrogen high + // II 51 at $1.87/task, where Flash high was II 30.8. + // Hydrogen carries a native xhigh tier (II 54), so the + // variants clamp is max -> xhigh only. The Flash-era notes + // above stay as written; they are this pool's history. "targets": [ { - "model": "_antigravity/gemini-3.8-flash", - "variants": { "xhigh": "high", "max": "high" } + "model": "_antigravity/gemini-4-hydrogen", + "variants": { "max": "xhigh" } } ], "selection": "round-robin", @@ -2481,7 +2489,7 @@ // pool is single-live-door on antigravity-ls. antigravity-agy // is deliberately NOT seated as the second door: its proxy // is text-only (no tool-call bridging — see the note in - // gemini-flash-plan). The pool's resilience is the ls proxy + // gemini-hydrogen-plan). The pool's resilience is the ls proxy // plus claude-code's return. // 2026-10-30 (Drew): the seat moved to antigravity-direct — // "only the direct, replace all others". The direct door @@ -2508,7 +2516,7 @@ // 2026-10-30 (route audit): single-live-door on // antigravity-ls, same as sonnet-plan — antigravity-agy is // not seated (text-only proxy, no tool-call bridging; see - // the note in gemini-flash-plan). + // the note in gemini-hydrogen-plan). // 2026-10-30 (Drew): the seat moved to antigravity-direct — // "only the direct, replace all others". The direct door // serves claude-opus-5-5 and bridges tool calls. @@ -2944,7 +2952,7 @@ // first-token failover budget (6 of 23 attempts timed out and // failed over), so the leg mostly produced stalls; Drew // declined raising the budget. The leg is now - // opencode-route/gemini-flash-plan#high + // opencode-route/gemini-hydrogen-plan#high // (antigravity-ls/gemini-3.8-flash -- the tool-capable Gemini // door) at the same weight 2. Argon stays seated in // argon-plan; the 2026-10-29 Argon note above is history. @@ -3056,7 +3064,7 @@ "health": { "firstTokenTimeoutMs": 60000 } }, "workhorse-weighted": { - "name": "Workhorse weighted - Luna #high, Spark contributor #high, Gemini 3.8 Flash #medium, Claude Sonnet 5.5 #medium, all w10: last-tier fallbacks behind the Flash primary (Drew 2026-11-07; Sonnet seat 2026-11-09)", + "name": "Workhorse weighted - Luna #high, Spark contributor #high, Gemini 4 Hydrogen #low, Claude Sonnet 5.5 #medium, all w10: last-tier fallbacks behind the Flash primary (Drew 2026-11-07; Sonnet seat 2026-11-09)", // The weighted half of workhorse's incremental structure: sessions // that fail over (or are demoted off) the Flash primary draw here // by weight. Not addressed by any agent directly. @@ -3067,7 +3075,7 @@ // 2026-10-31 (Drew): Antigravity OUT of the primary path. The // Antigravity Gemini bucket was burning ~95 pts/day organically // and projecting exhaustion a week before its reset, so both - // Antigravity-drawing members leave this pool: gemini-flash-plan + // Antigravity-drawing members leave this pool: gemini-hydrogen-plan // (single-door antigravity-direct/gemini-3.8-flash — the Gemini // bucket) and sonnet-plan (live door antigravity-direct/ // claude-sonnet-5-5, claude-code leaf dormant — the Claude/GPT @@ -3124,7 +3132,7 @@ // 2026-11-07 (Drew, direct order, later still): all members // equalized at weight 10, and Gemini joins as the third // member - _antigravity/gemini-3.8-flash#high as a DIRECT - // leaf (not via the gemini-flash-plan route: that route + // leaf (not via the gemini-hydrogen-plan route: that route // carries no #high variant mapping). Luna stays on the // openai-plan door (openai.main + openai.alternate, 2:1) - // Drew confirmed the plan door after the id check found no @@ -3180,17 +3188,25 @@ // only serving leg in the chain, and the alt door weekly jumped // 81% -> 89% in 30 minutes; Luna is also the lighter model per // request. The other three members are untouched. + // 2026-11-12 (Drew, direct order): the Gemini member swaps + // from Gemini 3.8 Flash #medium to Gemini 4 Hydrogen #low, + // same weight 10. AA v5.0.1: Hydrogen low II 27 at + // $0.29/task, TTFT 5.81s - the cheapest and fastest seat in + // this pool, with minimal draw on the shared Antigravity + // Gemini weekly pool; the Luna #high anchor carries the + // pool's quality. (The Flash seat it replaces read II 30.1 + // at #medium, II 30.8 at #high, on the same AA version.) "targets": [ "openai-plan/gpt-6-luna#high", "_muse/muse-spark-1.3-contributor#high", - "_antigravity/gemini-3.8-flash#medium", + "_antigravity/gemini-4-hydrogen#low", "_antigravity/claude-sonnet-5-5#medium" ], "selection": "weighted", "weights": { "openai-plan/gpt-6-luna": 10, "_muse/muse-spark-1.3-contributor": 10, - "_antigravity/gemini-3.8-flash": 10, + "_antigravity/gemini-4-hydrogen": 10, "_antigravity/claude-sonnet-5-5": 10 }, "autonomy": "rules", @@ -3276,7 +3292,7 @@ "autonomy": "rules" }, "summit": { - "name": "Summit - very complex design only, deliberate use: Fable #low head, then Opus, Argon, Wonder, Sol", + "name": "Summit - very complex design only, deliberate use: Fable #low head, then Opus, Argon, Hydrogen, Wonder, Sol", // 2026-11-11 (Drew, direct order): fable-plan leg low -> medium. // 2026-11-10 (Drew, direct order): Fable #low (fable-plan, // _claude door) takes the HEAD of this chain. AA v5 #low @@ -3300,10 +3316,19 @@ // evidence here), and Meta (Wonder) before it touches OpenAI at // all; the previous order burned Sol ahead of Wonder, backwards // under the reserve rule. + // 2026-11-12 (Drew, direct order): Gemini 4 Hydrogen #high + // joins this chain as a DIRECT _antigravity leaf, after + // argon-plan#high and ahead of the Wonder (Meta) and Sol + // (OpenAI) reserves. AA v5.0.1: Hydrogen high II 51 - + // level with Opus #high (51.8) and edging Argon #high + // (50.4) - at $1.87/task and ~6 min/task against Argon's + // $9.95 and ~30 min: the fast execution seat in the design + // chain, drawing the Antigravity Gemini pool. "targets": [ "opencode-route/fable-plan#medium", "opencode-route/opus-plan#high", "opencode-route/argon-plan#high", + "_antigravity/gemini-4-hydrogen#high", "_muse/muse-wonder-1.0-contributor#xhigh", "opencode-route/sol-plan#xhigh" ], @@ -3329,7 +3354,7 @@ // it is scout's speed, not this tier's. // 2026-10-28 (Job 2): the Spark seat repoints to spark-plan at // the same rung and weight, and Gemini Flash joins at weight 1 - // via gemini-flash-plan — antigravity-ls serves + // via gemini-hydrogen-plan — antigravity-ls serves // gemini-3.8-flash live (AA v5: II 31 at high, // ~311 t/s decode), which clears this pool's bar. // 2026-11-07 (Drew, direct order): the Spark seat leaves @@ -3337,10 +3362,14 @@ // _muse/muse-spark-1.3-contributor#xhigh at the same weight 3. // spark-plan keeps its seats in the deliberate tiers // (workhorse-weighted, specialist) unchanged. + // 2026-11-12 (Drew, direct order): the Gemini leg's route is + // renamed gemini-hydrogen-plan and now seats Gemini 4 + // Hydrogen, so this leg serves Hydrogen #high - AA v5.0.1 + // II 51 at $1.87/task, up from Flash #high II 30.8. "targets": [ "_muse/muse-spark-1.3-contributor#xhigh", "opencode-route/deepseek-flash-plan#high", - "opencode-route/gemini-flash-plan#high", + "opencode-route/gemini-hydrogen-plan#high", "opencode-route/haiku-plan#high" ], "selection": "ordered", diff --git a/bin/sync-models.mjs b/bin/sync-models.mjs index 7ce2f6f4a3..b038e32b4a 100755 --- a/bin/sync-models.mjs +++ b/bin/sync-models.mjs @@ -176,7 +176,9 @@ async function discoverAntigravityModels() { for (const line of lines) { const trimmed = line.trim(); if (!trimmed || trimmed.includes('Fetching available models')) continue; - const parts = trimmed.split(/\s{2,}/); + // agy separates the id and name columns with a single tab + // (older builds used multi-space columns); accept either. + const parts = trimmed.split(/\t|\s{2,}/); if (parts.length >= 2) { const id = parts[0].trim(); const name = parts[1].trim(); @@ -573,7 +575,7 @@ async function run() { } // Group models by base name (matching longest suffix first) - const effortSuffixes = ['-extra-low', '-medium', '-high', '-low']; + const effortSuffixes = ['-extra-low', '-xhigh', '-medium', '-high', '-low', '-extra']; const grouped = {}; for (const m of agyModels) { @@ -586,10 +588,14 @@ async function run() { break; } } + // Antigravity labels the xhigh tier "Extra" in some catalog + // spellings (-extra ids, "(Extra)" names); the fleet's variant + // name for that tier is xhigh. + if (effort === 'extra') effort = 'xhigh'; if (!grouped[baseId]) { defineValue(grouped, baseId, { baseId, - name: m.name.replace(/\s*\((Low|Medium|High|Extra-Low)\)$/i, ''), + name: m.name.replace(/\s*\((Low|Medium|High|XHigh|Extra-Low|Extra)\)$/i, ''), efforts: new Set(), variants: {} }); diff --git a/bin/sync-models.policy.json b/bin/sync-models.policy.json index 8ca90c01ca..aa987b079f 100644 --- a/bin/sync-models.policy.json +++ b/bin/sync-models.policy.json @@ -2,13 +2,14 @@ "families": { "gemini-flash": "^gemini-(\\d+(?:\\.\\d+)?)-flash$", "gemini-argon": "^gemini-(\\d+(?:\\.\\d+)?)-argon$", + "gemini-hydrogen": "^gemini-(\\d+(?:\\.\\d+)?)-hydrogen$", "claude-opus": "^claude-opus-(\\d+(?:-\\d+)?)$", "claude-sonnet": "^claude-sonnet-(\\d+(?:-\\d+)?)$", "claude-haiku": "^claude-haiku-(\\d+(?:-\\d+)?)$" }, "providers": { "_antigravity": { - "keep": ["gemini-flash", "gemini-argon", "claude-opus", "claude-sonnet", "claude-haiku"], + "keep": ["gemini-flash", "gemini-argon", "gemini-hydrogen", "claude-opus", "claude-sonnet", "claude-haiku"], "exclude": [] } } diff --git a/bin/sync-models.test.mjs b/bin/sync-models.test.mjs index 9fec2d1f7e..074ac4b388 100644 --- a/bin/sync-models.test.mjs +++ b/bin/sync-models.test.mjs @@ -255,10 +255,9 @@ test('keeps a standalone comment when removing the following member', () => { // temp target config — never the live config — is the only write candidate. const scriptPath = path.join(binDir, 'sync-models.mjs'); -function runWithTempConfig(args) { +function runWithTempConfig(args, before = '{\n // temp probe config\n "provider": {}\n}\n') { const tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'sync-models-test-home-')); const configPath = path.join(tmpHome, 'opencode.jsonc'); - const before = '{\n // temp probe config\n "provider": {}\n}\n'; fs.writeFileSync(configPath, before); const result = spawnSync(process.execPath, [scriptPath, ...args], { encoding: 'utf-8', @@ -300,7 +299,14 @@ test('rejects a positional argument non-zero and leaves the target config byte-i }); test('--dry-run still exits 0 writing nothing', () => { - const { result, before, after, backupExists } = runWithTempConfig(['--dry-run']); + // The probe carries the sync target section (empty). Without it the + // run is a #7333 absent-provider skip and exits 2 whenever a live + // Antigravity catalog is discoverable from this machine - the probe + // would test the environment instead of the dry-run contract. + const { result, before, after, backupExists } = runWithTempConfig( + ['--dry-run'], + '{\n // temp probe config\n "provider": {\n "_antigravity": {}\n }\n}\n', + ); assert.equal(result.status, 0); assert.equal(after, before); assert.equal(backupExists, false);