Skip to content

[Feature]: Durable routines registry for scheduled team operations #98515

Closed as not planned

Description

@steipete

Summary

Add a first-class durable routines registry for named team-operation routines, starting with schedule-backed routines that delegate execution to the existing Gateway cron scheduler.

Problem

OpenClaw already has cron jobs for precise schedules, the task ledger for detached execution history, heartbeat for flexible awareness, and commitments for inferred follow-ups. Operators still need a durable routine object that describes the repeatable operational intent: owner, delivery target, enabled state, trigger, backing scheduler record, last/next run, status, and last error.

Using raw cron jobs alone makes routine management low-level. It also leaves no typed trigger model for future channel-watch, repository-event, or webhook triggers without adding a second subsystem later.

Proposal

Create a typed routine registry in the shared state database with create/list/inspect/enable-disable/delete operations. Implement only the first trigger kind, schedule, and compile it to a canonical cron job instead of duplicating scheduling or execution.

Initial scope:

  • routine identity, name, description, owner agent/session, and delivery target metadata
  • schedule trigger that stores the backing cron job id
  • last/next run, enabled state, status, and error visibility from the backing cron job
  • idempotent create/delete/enable-disable behavior for automation callers
  • CLI or gateway entry point for operators
  • docs and behavior tests

Future triggers should fit the same trigger.kind model, but this issue should not implement channel-watch, repository-event, webhook, or Control UI surfaces unless they are already trivial through existing primitives.

Alternatives Considered

Impact

Operators get a small, durable routine layer for recurring team-operation work while OpenClaw keeps one scheduler, one task ledger, and one execution path. Cron remains responsible for timing and run execution; tasks remain the activity ledger.

Activity

  1. added
    maintainer
    on Jul 1, 2026
  2. clawsweeper commented on Jul 1, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work. Reviewed October 8, 2026, 3:28 PM ET / 19:28 UTC.

    Summary
    Keep this protected maintainer issue open for human disposition. The central schedule-backed workflow is already supported by Automations, and the merged replacement explicitly chose against a separate routines registry.

    Reproducibility: not applicable. This issue proposes a capability rather than reporting a failure; current source and documentation establish the existing schedule-backed workflow.

    Root-cause cluster
    Relationship: superseded
    Canonical: #100480
    Summary: The merged cron-native replacement owns the central schedule-backed capability; the separate registry proposal was explicitly superseded.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    The protected issue remains for human disposition; shipped cron-native capabilities and the settled design leave no focused repair to dispatch.

    Review details

    Best possible solution:

    Keep Automations as the single durable scheduling owner and build any future trigger capabilities on that surface, following the recorded product decision.

    Do we have a high-confidence way to reproduce the issue?

    Not applicable: this issue proposes a capability rather than reporting a failure; current source and documentation establish the existing schedule-backed workflow.

    Is this the best way to solve the issue?

    No: a separate registry would duplicate canonical job state, and the recorded product decision already selected additive cron features.

    AGENTS.md: found and applied where relevant.

    Codex review notes: model internal, reasoning medium; reviewed against 6070074dabf6.

    Label changes

    Label changes:

    No label changes.

    Label justifications:

    • P3: This is a feature proposal whose central operator capability has shipped; no current broken workflow is established.
    Evidence reviewed

    What I checked:

    Likely related people:

    • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  3. added
    P2
    impact:other
    maturity:stable
    issue-rating: 🌊 off-meta tidepool
    clawsweeper:no-new-fix-pr
    clawsweeper:fix-shape-clear
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    on Jul 1, 2026
  4. removed
    maturity:stable
    clawsweeper:fix-shape-clear
    on Jul 31, 2026
  5. added
    P3
    and removed
    P2
    impact:other
    on Aug 14, 2026
  6. added and removed
    clawsweeper:needs-maintainer-review
    on Sep 22, 2026
  7. removed
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-product-decision
    on Oct 8, 2026
  8. steipete commented on Oct 24, 2026

    @steipete
    ContributorAuthor

    Thanks for filing this. We're closing older issues that no longer look actionable on current main.

    Schedule-backed team routines are covered by Automations on top of the cron scheduler, and the replacement work deliberately chose not to add a separate routines registry.

    OpenClaw has changed a lot since this was filed. If this still affects you on the latest release, please open a fresh issue with your version and repro steps (feel free to link back here).

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

    P3issue-rating: 🌊 off-meta tidepoolmaintainer

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions