Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 74 additions & 15 deletions .opencode/opencode.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
}
}
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading