GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — implement: fleet OpenCode scheduled-task pattern — systemd timers + opencode run with per-job route · Issue #2232 · developing-today/code

implement: fleet OpenCode scheduled-task pattern — systemd timers + opencode run with per-job route #2232

New issue
Copy link
New issue
Copy link
Closed
Closed
implement: fleet OpenCode scheduled-task pattern — systemd timers + opencode run with per-job route#2232
Copy link
Labels
epic/opencode-platformReprioritization program epic (2026-11-12)priority/highImportant and time-sensitivequeue/claimedQueue worker lifecycle statesource/creatorFiled by the new-issue-creator jobstatus/in-progressQueue worker lifecycle statestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Oct 29, 2026
Issue body actions

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

  1. 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).
  2. 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 list is not).
  3. 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.
  4. Considered and deferred (do not silently switch): adopting the v1 different-ai/opencode-scheduler plugin (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.

Activity

Next
  1. dezren39
    added
    priority/highImportant and time-sensitive
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    developing-todayBot
    on Oct 29, 2026 – with developing.today
    Contributor
    More actions

    CODE-1104

  3. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  4. dezren39
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    status/needs-triageNot yet triaged; needs a first look
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  5. developing-today commented on Nov 3, 2026

    @developing-today
    developing-todayBot
    on Nov 3, 2026 – with developing.today
    Contributor
    More actions

    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

  6. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 4, 2026
  7. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-j
    • Session / ID: task 7314
    • Found via: queue claim
    • Task: task 7314 (triage for issue implement: fleet OpenCode scheduled-task pattern — systemd timers + opencode run with per-job route #2232, fleet OpenCode scheduled-task pattern) claimed and handed off to the opencode execution lane.
    • Expectation: the laptop claimant launches a bound opencode session to perform the triage of issue implement: fleet OpenCode scheduled-task pattern — systemd timers + opencode run with per-job route #2232 and drive task 7314 to a terminal state. Claim labels were already in sync; no GitHub state changed by this lane beyond this note.
    • Links: issue implement: fleet OpenCode scheduled-task pattern — systemd timers + opencode run with per-job route #2232
  8. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane ec118cad-0fd3-4652-91c4-27432f2f2efd
    • Session / ID: queue task 7314
    • Found via: atomic queue claim (resumed from prior handed-off checkpoint)
    • Task: Revalidate implement: fleet OpenCode scheduled-task pattern — systemd timers + opencode run with per-job route #2232 against current main and route the remaining scheduled-task implementation work.
    • Expectation: Triage only; no implementation in this task. I am checking prior handoff artifacts and current linked PRs before deciding whether the issue is done or still needs follow-up.
    • Links: implement: fleet OpenCode scheduled-task pattern — systemd timers + opencode run with per-job route #2232
  9. 89 remaining items

  10. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked — task 9170 (lane oc-code-02)

    • Verified: timer enabled; 19:00 CST scheduled run failed with exit 127; the unit PATH now includes /etc/profiles/per-user/user/bin, and manual invocation at 19:04 CST succeeded. Next hourly firing expected around 20:00 CST.
    • Parked to release the claim while waiting for the real scheduled event. Resume after 20:10 CST and inspect the unit journal and job logs. Existing draft PR docs: record enabled OpenCode quota summary timer #12267 remains canonical; no changes made in this claim. No cadence success is claimed yet.
    • Bookkeeping outside the repo is deferred to fleet reconciliation.
  11. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    Task 9170 progress (2026-11-21): The enabled opencode-quota-freshness-summary.timer completed 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, and history.jsonl records 20261122T020058Z on opencode-route/workhorse. latest.log contains 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.

  12. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    and removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 22, 2026
  13. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    Task 9170 update (2026-11-21): PR #12267 at 546e925913 now 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.

  14. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    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-2232 on 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.

  15. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged — task 18211

    Fresh verification (2026-11-23):

    • PR docs: record enabled OpenCode quota summary timer #12267 is MERGED at 8e8c29f. It adds the per-job OpenCode service/timer package, fixed logs/history, test, and matching fleet schedule registry entry.
    • The hourly quota-freshness-summary timer completed its first scheduled run on 2026-11-21 20:00:58–20:01:17 CST with systemd success/exit 0; the run history and latest log were verified and are recorded on investigate: OpenCode native scheduled tasks — creation, route choice, independence from Muse tokens #2019.
    • investigate: OpenCode native scheduled tasks — creation, route choice, independence from Muse tokens #2019 records the job name, first scheduled run, and zero Muse tokens for the systemd trigger. No comparable historical per-trigger token baseline exists, so no numeric before/after delta is claimed.

    Verdict: the implementation is merged and the fresh disposition is merged_verified. Completing this triage revived follow-on task 21403, now claimed by lane oc-code-02; #2232 remains open for that active queue work. This triage does not duplicate or close that claim.

  16. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions
    \nClosing as implemented (follow-on task 21403, lane oc-code-02). Fresh verification 2026-11-23:\n- PR #12267 MERGED 2026-11-22 (8e8c29f): per-job OpenCode service/timer package, fixed logs/history, regression test, fleet schedule registry entry.\n- Registry row present: `opencode-quota-freshness-summary.timer`, hourly, laptop user systemd (`doc/fleet-schedule-registry.md:395`).\n- First scheduled run 2026-11-21 20:00:58-20:01:17 CST, systemd success/exit 0; recorded on #2019 with zero Muse tokens for the trigger (no historical baseline, so no delta claimed).\nAcceptance met: registry+units committed via PR, route per job in the unit, one real job observed firing on schedule with logs, note on #2019. Closes #2232.
  17. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Closed as implemented.

  18. dezren39
    closed this as completedon Nov 23, 2026
  19. developing-today
    added
    status:done
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic/opencode-platformReprioritization program epic (2026-11-12)priority/highImportant and time-sensitivequeue/claimedQueue worker lifecycle statesource/creatorFiled by the new-issue-creator jobstatus/in-progressQueue worker lifecycle statestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.