diff --git a/.opencode/opencode.jsonc b/.opencode/opencode.jsonc index f6c31d2447..45263554b5 100644 --- a/.opencode/opencode.jsonc +++ b/.opencode/opencode.jsonc @@ -6353,15 +6353,25 @@ // tier seats that used to address the meta leaf directly // (workhorse-weighted #xhigh w1, specialist #max, speed // #xhigh w3) now address this pool at unchanged rungs/weights. + // 2026-10-28 (peak-windows pass): converted from round-robin + // to ORDERED with a deliberate burn order — the expiring and + // shared buckets burn first (OpenCode Go Personal, cancelled, + // period ends 2026-11-02; then Go Lab, ends 2026-11-06; then + // the Go base workspace; then Command Code; then ClinePass), + // and the dedicated Meta plan (Muse Code High Usage) sits + // LAST as the reserve: it is the one Spark door whose quota + // is ours alone and does not expire, so it is spent only + // when every shared/expiring bucket ahead of it is walled + // or down. Weights are moot under ordered selection. "targets": [ - "meta/muse-spark-1.3-contributor", - "cline-pass/muse-spark-1.3-contributor", - "commandcode/meta/muse-spark-1.3-contributor", "opencode-go.personal/muse-spark-1.3-contributor", "opencode-go.lab/muse-spark-1.3-contributor", - "opencode-go/muse-spark-1.3-contributor" + "opencode-go/muse-spark-1.3-contributor", + "commandcode/meta/muse-spark-1.3-contributor", + "cline-pass/muse-spark-1.3-contributor", + "meta/muse-spark-1.3-contributor" ], - "selection": "round-robin", + "selection": "ordered", "autonomy": "rules" }, "sol-plan": { @@ -6527,20 +6537,48 @@ // order: DeepSeek Flash at #high first (workhorse-grade when it is // available), then the MiMo pool (the fleet's cheapest burn) for // the bulk. - // PENDING opencode#639 (config-layer time windows, priority/high): - // the full design is a three-stage clock-gated chain — - // 1. deepseek-flash-plan#high, all doors, OFF-PEAK window + // 2026-10-28: the clock-gated chain designed under + // opencode#639 is LIVE (named windows landed in fork PR #649; + // gates are the target `window` field — a window name, or + // { name, invert: true } for the inverse). DeepSeek deductions + // double in the peak windows — Mon-Fri 01:00-04:00 + + // 06:00-10:00 UTC — on Go, and ClinePass's DeepSeek reference + // rates split the same way, so during peak this chain leads + // with MiMo and keeps Flash as the fallback, and off-peak it + // leads with Flash. The shipped Window schema holds ONE + // daily range per named window, so the two peak ranges are + // two named windows (deepseek-peak-early / deepseek-peak-late + // in experimental.model_route_windows below) and the chain + // composes them into exactly three effective stages: + // 1. deepseek-flash-plan#high, all doors, OFF-PEAK // 2. mimo-flash-plan - // 3. deepseek-flash-plan#high, all doors, PEAK window - // (DeepSeek deductions double in the peak windows — Mon-Fri - // 01:00-04:00 + 06:00-10:00 UTC — on Go, and ClinePass's DeepSeek - // reference rates split the same way.) Until named config windows - // land, this chain runs its first two stages ungated; the runtime - // route_adjust tool can approximate the peak demotion meanwhile. + // 3. deepseek-flash-plan#high, all doors, PEAK + // Positions: the two MiMo positions gated ON each peak + // window lead during their window; the Flash position gated + // on the INVERSE of deepseek-peak-early leads in every other + // regime (all off-peak hours, and as the late-peak fallback + // behind the late MiMo position); the Flash position gated + // ON deepseek-peak-early is the early-peak fallback; the + // final ungated MiMo position is the off-peak failover. // No agent defaults here yet — queue workers are repointed as the // follow-up step so the adoption is observable. "targets": [ - "opencode-route/deepseek-flash-plan#high", + { + "model": "opencode-route/mimo-flash-plan", + "window": "deepseek-peak-early" + }, + { + "model": "opencode-route/mimo-flash-plan", + "window": "deepseek-peak-late" + }, + { + "model": "opencode-route/deepseek-flash-plan#high", + "window": { "name": "deepseek-peak-early", "invert": true } + }, + { + "model": "opencode-route/deepseek-flash-plan#high", + "window": "deepseek-peak-early" + }, "opencode-route/mimo-flash-plan" ], "selection": "ordered", @@ -6722,6 +6760,27 @@ "autonomy": "rules", "limit": { "context": 200000 } } + }, + "model_route_windows": { + // Named route windows (fork PR #649, opencode#639). DeepSeek + // peak: Mon-Fri 01:00-04:00 and 06:00-10:00 UTC — deductions + // double on Go in these windows and ClinePass's DeepSeek + // reference rates split the same way. The shipped Window + // schema holds one daily range per named window, so the two + // ranges are two windows; the background route composes them + // (see its comment for the position-by-position reading). + "deepseek-peak-early": { + "daysOfWeek": ["mon", "tue", "wed", "thu", "fri"], + "start": "01:00", + "end": "04:00", + "timezone": "UTC" + }, + "deepseek-peak-late": { + "daysOfWeek": ["mon", "tue", "wed", "thu", "fri"], + "start": "06:00", + "end": "10:00", + "timezone": "UTC" + } } } } \ No newline at end of file diff --git a/flake.lock b/flake.lock index 398353f602..41eacd685f 100644 --- a/flake.lock +++ b/flake.lock @@ -3192,11 +3192,11 @@ "nixpkgs": "nixpkgs_20" }, "locked": { - "lastModified": 1792954829, - "narHash": "sha256-5KgtGYCuLMT+D/tqzSIzycL96rOTRedrBrQl764llgo=", + "lastModified": 1793209014, + "narHash": "sha256-GhbjS5R0CNuVXbTckZrxxzcO/5E+t+z+Qmtt9vulHjc=", "owner": "developing-today", "repo": "opencode", - "rev": "56590c57d084b600f915a9d77a5636b9786d7a56", + "rev": "ad881d2b2634bae38bd07c4c858c8cc4a1f0f71c", "type": "github" }, "original": { @@ -4119,4 +4119,4 @@ }, "root": "root", "version": 7 -} \ No newline at end of file +}