From f4d0ea1d4badf2fc973bb93429c1e0432115ee14 Mon Sep 17 00:00:00 2001 From: repo-worker-tmp-code-b Date: Mon, 16 Nov 2026 06:17:37 -0600 Subject: [PATCH] config: workhorse-weighted - document bare weights keys, fix stale route name (#10725) --- .opencode/opencode.jsonc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.opencode/opencode.jsonc b/.opencode/opencode.jsonc index 251636475d..5e86c36b70 100644 --- a/.opencode/opencode.jsonc +++ b/.opencode/opencode.jsonc @@ -4198,7 +4198,7 @@ "health": { "firstTokenTimeoutMs": 60000 } }, "workhorse-weighted": { - "name": "Workhorse weighted - Luna medium/high round-robin (luna-effort-rr), 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)", + "name": "Workhorse weighted - Luna medium/high round-robin (luna-effort-rr), Spark contributor #medium, Gemini 4 Hydrogen #low, Claude Sonnet 5.5 #low, 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. @@ -4353,6 +4353,16 @@ "_antigravity/claude-sonnet-5-5#low" ], "selection": "weighted", + // Weights keys are BARE provider/model ids on purpose + // (code#10725, verified against the fork 2026-11-16): the + // router looks a leaf target weight up by its bare + // provider/model id - the target #effort pin is not part + // of the lookup key (fork packages/core/src/config/plugin/ + // model-routes.ts: attach() receives the leaf key as + // providerID + "/" + model id, no variant suffix). Do NOT + // suffix these keys with #effort to match the targets - + // a suffixed key misses the lookup and the leg silently + // falls back to weight 1. "weights": { "opencode-route/luna-effort-rr": 10, "_muse/muse-spark-1.3-contributor": 10,