fix: DeepSeek for the whole weekly run; move timer to Saturday
Follow-up to #43. The upgrader parent (LOOP_MODEL) and hourly supervisor (SUPERVISOR_MODEL) should also use DeepSeek V4.1 Flash, not just the report. So all three launchers and upgrader.env now default to opencode-go/deepseek-v4.1-flash (subagents already did). Also move cc-ci-upgrade-all.timer from Thu 22:00 to Sat 22:00 America/New_York, so the weekly run + the report it launches happen on the weekend and avoid DeepSeek's weekday peak-pricing windows (01:00-04:00 & 06:00-10:00 UTC). Verified: importing each launcher resolves deepseek-v4.1-flash; Python parses clean; 'systemd-analyze calendar' gives next elapse Sun 03:00 UTC (Sat 22:00 ET), which is a weekend. NixOS host rebuilt test->switch to apply the timer.
This commit is contained in:
+12
-11
@@ -95,10 +95,9 @@
|
||||
# UPGRADER_ARGS, …). The leading "-" makes it optional: absent file → the in-code defaults,
|
||||
# which are opencode + LOOP_TIER=go (the only tier with a key on this host; ZEN models are
|
||||
# dead here — the in-code default is 'go' for exactly that reason, see launch-upgrader.py).
|
||||
# Current config: LOOP_TIER=go with LOOP_MODEL / SUPERVISOR_MODEL
|
||||
# opencode-go/glm-5.3-flash (upgrader, supervisor) and REPORT_MODEL
|
||||
# opencode-go/deepseek-v4.1-flash (the public Recipe Report). Subagents bind deepseek via the
|
||||
# cc-ci repo's opencode config. No rebuild needed to switch — the env file is read at each
|
||||
# Current config: LOOP_TIER=go with LOOP_MODEL / REPORT_MODEL / SUPERVISOR_MODEL all
|
||||
# opencode-go/deepseek-v4.1-flash (upgrader, report, supervisor). Subagents use the same
|
||||
# deepseek via the cc-ci repo's opencode config. No rebuild needed to switch — the env file is read at each
|
||||
# timer fire. Holds no secrets (the API key lives in the opencode config / auth.json).
|
||||
EnvironmentFile = "-/srv/cc-ci/upgrader.env";
|
||||
};
|
||||
@@ -111,23 +110,25 @@
|
||||
};
|
||||
|
||||
systemd.timers.cc-ci-upgrade-all = {
|
||||
description = "Weekly trigger for cc-ci-upgrade-all (Thursdays 22:00 America/New_York — Boston 10pm)";
|
||||
description = "Weekly trigger for cc-ci-upgrade-all (Saturdays 22:00 America/New_York — Boston 10pm)";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
# 10pm Thursday Boston time — DST-aware (EDT→02:00 UTC, EST→03:00 UTC) via the tz in OnCalendar.
|
||||
OnCalendar = "Thu *-*-* 22:00:00 America/New_York";
|
||||
# 10pm Saturday Boston time, i.e. the weekly run (and the Recipe Report it launches) happens
|
||||
# on the weekend, avoiding DeepSeek's weekday peak-pricing windows (01:00–04:00 & 06:00–10:00
|
||||
# UTC). DST-aware (EDT→02:00 UTC Sunday, EST→03:00 UTC Sunday) via the tz in OnCalendar.
|
||||
OnCalendar = "Sat *-*-* 22:00:00 America/New_York";
|
||||
Persistent = true; # if the box was down at the scheduled time, run once on next boot
|
||||
};
|
||||
};
|
||||
|
||||
# Hourly SUPERVISOR — a glm-5.2 orchestrator wake-up that keeps the weekly run on track. The
|
||||
# log-idle/429 watchdog only handles opencode-go usage-limit stalls; it does NOT cover a host
|
||||
# Hourly SUPERVISOR — a deepseek-v4.1-flash orchestrator wake-up that keeps the weekly run on track.
|
||||
# The log-idle/429 watchdog only handles opencode-go usage-limit stalls; it does NOT cover a host
|
||||
# disk-full crash (which killed the 2026-07-03 run) or any other environmental wedge. This is a
|
||||
# CHEAP deterministic gate: if the weekly run is complete or actively progressing it does NOTHING
|
||||
# (zero model tokens). Only when a run has stalled/died before completing does it launch a
|
||||
# short-lived glm-5.2 agent that diagnoses the blockage and drives the run to a clean DONE.
|
||||
# short-lived deepseek-v4.1-flash agent that diagnoses the blockage and drives the run to a clean DONE.
|
||||
systemd.services.cc-ci-upgrade-supervisor = {
|
||||
description = "cc-ci hourly weekly-run supervisor (glm-5.2 — drives a stalled /upgrade-all to completion)";
|
||||
description = "cc-ci hourly weekly-run supervisor (deepseek-v4.1-flash — drives a stalled /upgrade-all to completion)";
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
serviceConfig = {
|
||||
|
||||
Reference in New Issue
Block a user