Repository navigation
feat(routines): run a routine now from the Routines list - #25
Merged
Merged
Conversation
activity.run starts a routine at once with the rights, tools, limits, prompt and output of a scheduled run. It records Activity and posts a thread line marked run now. It does not move the routine's last success or last scheduled run, and is not retried when the provider is unavailable. A second run while one is active gets conflict. activity.routines gains running, and the web Routines list gains a Run now button. docs/specs/routines.md records the rules. Coded with deepseek/deepseek-flash.
Contributor
Author
|
Cross-review (cross-review skill): reviewer |
bketelsen
approved these changes
Nov 3, 2026
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Night shift 2026-11-02, line 9 (Brian, T721a). From Irulan's muster proposal (T718, porter item 5).
What
activity.run {name}(schema first:schema/rpc/activity.yaml): starts a routine now, with the rights, tools, limits, prompt (with the last success) and output of a scheduled run. It returns when the run starts, and it runs on the scheduler's context, not on the request's.Routine.running: whether a run of it is active now.notFound(no such routine),conflict(invalid routine, or a run of it is active or waits for its provider),unavailable(no scheduler: no notes token, or porterd stops),invalidParams(empty name).Rules (documented in
docs/specs/routines.md, Run now and Rules)conflict. A scheduled time during a run now is skipped and noted, as before.The running mark is cleared once, before the run's Activity entry, so a view that rereads the routines on the entry sees the run as ended; a new run now that starts in that gap keeps its own mark (tested).
Checks
make check: pass.go test -raceoninternal/routineandcmd/porterd: pass.web/test/activity.test.ts; CI'smake web-checkruns them.Coder model: deepseek/deepseek-flash. Reviewed by Irulan (claude-opus-5.5).