provider: agy's Orchestrator (Argon), gemini-pro-orchestrator-g1-pro, is priced as Gemini 4 Argon (mu33410 on X)

mu33410 on X: agy's Orchestrator model showed no cost. 9bcdcfb7d priced
the Antigravity app's Orchestrator ids (gemini-pro-orchestrator-argon,
-carbon, gemini-flash-worker-agy) as the Gemini model each is, but the
agy CLI names Orchestrator (Argon) gemini-pro-orchestrator-g1-pro: the
id `agy models` lists for a Google AI Pro account (agy 1.5.9), kept
verbatim in the agy-cli plugin's test/usage.mjs and test/catalog.mjs.
Its calls, and its rows in Usage and Sessions, had tokens and no price.
It is now in antigravityRoles at gemini-4-argon, the model Antigravity's
docs say Orchestrator (Argon) plans with; at an effort and under an
agy-cli/ route too. Orchestrator (Carbon) is gemini-pro-orchestrator in
agy, already priced as Carbon.

Tests: TestAntigravityOrchestratorIDsPricedAsTheirModel (MakerPrice,
ListPrice, PricedName), TestAntigravityOrchestratorCallsPriced (an agy
call in the ledger, its total and agy's own view) and
TestPriceOfAntigravityOrchestratorRoles take the agy id; g1 and
g1-pro-ultra stay unpriced. Broken by hand: with the old models.go all
three are red on the g1-pro cases, green with the fix (mote).

Run (mica, at this tree on origin/main 074614077): gofmt -l clean;
go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet
./... ok; go test -count=1 -timeout 45m ./... : 103 packages ok, no FAIL.
Rebased on origin/main 7c3e68908 (15 files, none of them pricing): internal/provider,
internal/usage and internal/sessions run again there (mica): ok.
No GUI files changed.

Not tried: a real agy Orchestrator conversation on disk. This Mac's agy
1.5.10 conversations used no Orchestrator, so the id agy writes into a
step's gen_metadata is taken from `agy models`, not seen in a database.
The worker agy records for Orchestrator's Hydrogen handoff is unknown;
gemini-flash-worker-agy (the app's) is the only worker id priced.
This commit is contained in:
yetone
2026-11-17 18:59:48 +08:00
parent 738ede4a70
commit a75a1fffcb
4 changed files with 24 additions and 6 deletions
@@ -53,8 +53,12 @@ func TestAntigravityOrchestratorIDsPricedAsTheirModel(t *testing.T) {
"gemini-pro-orchestrator-argon": "gemini-4-argon",
"gemini-pro-orchestrator-carbon": "gemini-4-carbon",
"gemini-flash-worker-agy": "gemini-4-hydrogen",
// Orchestrator (Carbon) before Argon came
// Orchestrator (Carbon) before Argon came, and in agy
"gemini-pro-orchestrator": "gemini-4-carbon",
// agy's Orchestrator (Argon) (mu33410 on X)
"gemini-pro-orchestrator-g1-pro": "gemini-4-argon",
"agy-cli/gemini-pro-orchestrator-g1-pro": "gemini-4-argon",
"gemini-pro-orchestrator-g1-pro-high": "gemini-4-argon",
// spelled as a route or an effort names them
"Gemini-Pro-Orchestrator-Argon": "gemini-4-argon",
"google/gemini-pro-orchestrator-argon": "gemini-4-argon",
@@ -83,7 +87,7 @@ func TestAntigravityOrchestratorIDsPricedAsTheirModel(t *testing.T) {
}
// a name only like a role is no role
for _, id := range []string{"gemini-pro-orchestrator-neon", "gemini-flash-worker", "gemini-pro-orchestrator-argon-fast",
"my-gemini-pro-orchestrator-argon", "gemini-flash-worker-agy-ultra", "orchestrator", "gpt-5.1-codex-orchestrator"} {
"my-gemini-pro-orchestrator-argon", "gemini-pro-orchestrator-g1", "gemini-pro-orchestrator-g1-ultra", "gemini-flash-worker-agy-ultra", "orchestrator", "gpt-5.1-codex-orchestrator"} {
if pr, ok := MakerPrice(id); ok {
t.Errorf("MakerPrice(%q) = %+v; want unpriced", id, pr)
}
+7 -1
View File
@@ -3326,11 +3326,17 @@ func geminiTrialBase(l string) (string, bool) {
// with no cost). gemini-pro-orchestrator is Orchestrator (Carbon)'s id
// before Argon's came (MODEL_PLACEHOLDER_M667 in the Antigravity Context
// Window Monitor extension 1.17.1, beside M681 for -argon and the shared
// worker M669). Only these ids: no other name is read as one of them.
// worker M669). The agy CLI names Orchestrator (Argon)
// gemini-pro-orchestrator-g1-pro (`agy models` on a Google AI Pro account,
// agy 1.5.9, in the agy-cli plugin's test/usage.mjs; mu33410 on X: agy's
// Orchestrator had no cost) and Orchestrator (Carbon)
// gemini-pro-orchestrator, as the app did before Argon. Only these ids: no
// other name is read as one of them.
var antigravityRoles = map[string]string{
"gemini-pro-orchestrator": "gemini-4-carbon",
"gemini-pro-orchestrator-carbon": "gemini-4-carbon",
"gemini-pro-orchestrator-argon": "gemini-4-argon",
"gemini-pro-orchestrator-g1-pro": "gemini-4-argon",
"gemini-flash-worker-agy": "gemini-4-hydrogen",
}
@@ -26,6 +26,7 @@ func TestPriceOfAntigravityOrchestratorRoles(t *testing.T) {
t.Cleanup(catalog.Reset)
for m, in := range map[string]float64{
"gemini-pro-orchestrator-argon": 2, "gemini-pro-orchestrator-carbon": 2.5, "gemini-flash-worker-agy": 1.5,
"gemini-pro-orchestrator-g1-pro": 2,
} {
if pr, ok := priceOf(settings.Load(), m); !ok || pr.Input != in {
t.Errorf("priceOf(%q) = %+v, %v; want input $%v", m, pr, ok, in)
+10 -3
View File
@@ -38,6 +38,8 @@ func TestAntigravityOrchestratorCallsPriced(t *testing.T) {
{Time: now.Add(-time.Hour), Agent: "antigravity", Session: "a1", Model: "gemini-pro-orchestrator-argon", Tokens: tok},
{Time: now.Add(-2 * time.Hour), Agent: "antigravity", Session: "a2", Model: "gemini-pro-orchestrator-carbon", Tokens: tok},
{Time: now.Add(-3 * time.Hour), Agent: "antigravity", Session: "a2", Model: "gemini-flash-worker-agy", Tokens: tok},
// agy's Orchestrator (Argon) (mu33410 on X)
{Time: now.Add(-4 * time.Hour), Agent: "agy", Session: "g1", Model: "gemini-pro-orchestrator-g1-pro", Tokens: tok},
}
}
t.Cleanup(func() { LogCalls = old })
@@ -47,10 +49,11 @@ func TestAntigravityOrchestratorCallsPriced(t *testing.T) {
"gemini-pro-orchestrator-argon": cost(2, 10, 0.1),
"gemini-pro-orchestrator-carbon": cost(2.5, 12, 0.25),
"gemini-flash-worker-agy": cost(1.5, 7.5, 0.075),
"gemini-pro-orchestrator-g1-pro": cost(2, 10, 0.1),
}
near := func(a, b float64) bool { return math.Abs(a-b) < 1e-9 }
rows, total, _ := Ledger(Month, Filter{})
if len(rows) != 3 {
if len(rows) != 4 {
t.Fatalf("rows %d", len(rows))
}
var sum float64
@@ -65,7 +68,11 @@ func TestAntigravityOrchestratorCallsPriced(t *testing.T) {
}
// the agent's own view
_, agent, _ := Ledger(Month, Filter{Agent: "antigravity"})
if agent.Unpriced != 0 || !near(agent.Cost, sum) {
t.Errorf("antigravity: cost %v unpriced %d, want %v and 0", agent.Cost, agent.Unpriced, sum)
if app := sum - want["gemini-pro-orchestrator-g1-pro"]; agent.Unpriced != 0 || !near(agent.Cost, app) {
t.Errorf("antigravity: cost %v unpriced %d, want %v and 0", agent.Cost, agent.Unpriced, app)
}
_, agy, _ := Ledger(Month, Filter{Agent: "agy"})
if g := want["gemini-pro-orchestrator-g1-pro"]; agy.Unpriced != 0 || !near(agy.Cost, g) {
t.Errorf("agy: cost %v unpriced %d, want %v and 0", agy.Cost, agy.Unpriced, g)
}
}