Repository navigation
Open
Labels
epic/opencode-platformReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)priority/highImportant and time-sensitiveImportant and time-sensitivequeue/claimedQueue worker lifecycle stateQueue worker lifecycle statesource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus/in-progressQueue worker lifecycle stateQueue worker lifecycle statetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle stateQueue worker lifecycle state
Description
Implement: fleet OpenCode scheduled-task pattern (systemd timers + opencode run, per-job route)
Follow-on from the #2019 investigation (LIST 4a, fleet program #2055). The investigation's verdict: OpenCode has no native scheduler (upstream anomalyco/opencode#41906 still open); the proven pattern is an OS timer firing opencode run --model opencode-route/<tier> — verified live 2026-10-29 with a one-shot systemd user timer on the laptop (fired on schedule, route resolved to opencode-go DeepSeek V4.1 Flash, exit 0, zero Muse tokens in trigger or execution).
Scope
- A small, committable job registry for fleet scheduled OpenCode tasks: one unit (or unit pair) per job under a managed directory, each naming cadence, workdir, prompt/command, and route (
opencode-route/workhorse|specialist|summit|speed). - Per-job run logs in a fixed location, readable by the babysitter/monitor (directory-scoped server-API reads are the reliable session surface;
opencode session listis not). - Migrate ONE real low-risk fleet job as the proof (a quota probe or census refresh — fire-and-forget, failure visible next round), and record the before/after Muse-token cost of its trigger.
- Considered and deferred (do not silently switch): adopting the v1
different-ai/opencode-schedulerplugin (needs a v2 port — the fleet fork cannot run v1 plugins) and waiting for upstream #41906.
Out of scope
- Stall supervision: scheduling is not supervision. The preliminary-babysitter design is design: scheduled OpenCode preliminary babysitter — sweep sessions, fix easy stalls, escalate the rest #2021; this issue only provides the trigger mechanism it can run on.
- The placement-framework decisions (design: task-placement framework v1 — decision rules and a shared-pool efficiency model #2024 synthesis stays gated on its inputs; investigate: OpenCode native scheduled tasks — creation, route choice, independence from Muse tokens #2019's report is one).
Acceptance
- One real fleet job running on the pattern for at least one full cadence cycle, observed firing on schedule with logs.
- Registry + units committed via PR; route per job visible in the unit itself.
- A short note on investigate: OpenCode native scheduled tasks — creation, route choice, independence from Muse tokens #2019 with the migrated job's name and its first observed run.
Program: Drew's 2026-10-28 directive, fleet LIST 4a follow-on. Filed by queue worker task 3338, 2026-10-29.
Metadata
Metadata
Assignees
Labels
epic/opencode-platformReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)priority/highImportant and time-sensitiveImportant and time-sensitivequeue/claimedQueue worker lifecycle stateQueue worker lifecycle statesource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus/in-progressQueue worker lifecycle stateQueue worker lifecycle statetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle stateQueue worker lifecycle state
Activity
developing-today commentedon Oct 29, 2026
CODE-1104
developing-today commentedon Nov 3, 2026
agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7314 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03
dezren39 commentedon Nov 4, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 4, 2026
🤖 Agent note · picked up
84 remaining items
dezren39 commentedon Nov 22, 2026
🤖 Agent note · picked up — task 9170 (lane oc-code-02)
queue/9170-2232-schedule-pilot, with two registry commits and no hard-stop labels. I will not create a competing PR.dezren39 commentedon Nov 22, 2026
🤖 Agent note · parked — task 9170 (lane oc-code-02)
/etc/profiles/per-user/user/bin, and manual invocation at 19:04 CST succeeded. Next hourly firing expected around 20:00 CST.dezren39 commentedon Nov 22, 2026
Task 9170 progress (2026-11-21): The enabled
opencode-quota-freshness-summary.timercompleted its first scheduled hourly run after the PATH correction. It started at 20:00:58 CST and finished at 20:01:17 CST; systemd reports success/exit 0, andhistory.jsonlrecords20261122T020058Zonopencode-route/workhorse.latest.logcontains the summary.The canonical draft PR #12267 now includes the tracked per-job package, service/timer source, strict installer, fake-run test, and updated registry evidence (commit
546e925913). Verification passed: the package test, shell syntax, diff check, and rendered systemd unit verification. The timer was not changed in this pass.Cost evidence: the systemd trigger used zero Muse tokens; the job execution uses the selected OpenCode route. No comparable historical per-trigger Muse-token baseline exists, so no numeric before/after delta is claimed; #2019 records the limitation. CI policy has no PR merge-gating checks. Next: verify fresh PR status, then update queue disposition. The prior picked-up-note guard returned duplicate, so this progress is recorded here and in the queue checkpoint instead of posting another picked-up note.
dezren39 commentedon Nov 22, 2026
Task 9170 update (2026-11-21): PR #12267 at
546e925913now contains the managed job package, strict installer, regression test, registry evidence, and successful scheduled hourly firing from 20:00:58–20:01:17 CST (systemd success/exit 0). It is ready for review; CodeRabbit is rate-limited and Codex review is running. The available checks are skipped/neutral, not failing. The #2019 evidence records that the trigger used 0 Muse tokens and that no comparable historical per-trigger Muse-token baseline exists; therefore no numeric before/after delta is claimed. Queue task is parked briefly for external review/CI disposition; no owner decision is being awaited.dezren39 commentedon Nov 22, 2026
agent-note:v1
state: picked-up
queue: repo-health-code-pilot
task: 9170 (small_fix, worker repo-worker-code, lane any-o)
by: openchamber-scheduled-lane
at: 2026-11-22T02:42:00Z
Fresh revalidation: #2232 remains OPEN; canonical PR #12267 is OPEN, ready for review, and has no hard-stop labels. Its latest Codex review found three actionable issues (strict no-argument contract, standalone latest heartbeat selection, and preserving lapsed provider state). The existing task branch is available at
/home/user/.local/share/opencode/worktree/7c7733/queue-9170-2232on the laptop. Claim labels are synced (work/assigned,queue/claimed,status/in-progress). I will address the findings on the canonical branch, test, push, and re-check CI/reviews before terminalizing or parking.resume: task branch
queue/9170-2232-schedule-pilot; worktree/home/user/.local/share/opencode/worktree/7c7733/queue-9170-2232.