Repository navigation
feat(workflows): pm-scheduled reusable scheduled-agents workflow (#2672) - #2704
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Part of #2672
Summary
Adds
.github/workflows/pm-scheduled.yml— the fleet's single scheduled-agents runner (Drew's shape correction) — as a reusable workflow, plus a small docs section for it in the dispatch README.The workflow
on: workflow_callwith three optional string inputs (default""):schedule,tasks,repo.run(ubuntu-latest). No permissions declared — a reusable workflow runs with the calling job's token; callers grantid-token: write+contents: read.resolve, bash): resolves the effective repo (inputrepo, else the caller'sgithub.repository) and the task list:tasksinput is used verbatim;scheduleis mapped through the SLOT TABLE — a heavily commented bashcasein this step, the single place schedule → tasks resolution lives, and where future repo-name/time filtering will be added (the caller repo is available to the case as$repo; cron patterns are quoted so they match literally, not as globs):bolt,palette:0 1 * * *(code),0 2 * * *(openchamber),0 0 * * *(opencode),0 5 * * *(nix + dezren39),30 13 * * *(zettel) — each commented with repo + America/Chicago local time;suggestions:0 13 * * *(code 08:00),0 14 * * *(openchamber 09:00),0 15 * * *(opencode 10:00),0 16 * * *(nix 11:00),0 17 * * *(zettel 12:00),0 18 * * *(dezren39 13:00), all CDT;bolt,palette,suggestions.repo,tasks, andhas_bolt/has_palette/has_suggestions("true"/"false") outputs for the step gates.bolt,palette,suggestions, each gated on its resolve output and callingdeveloping-today/code/.github/actions/pm-dispatch-task@mainwith{ task, repo: <resolved repo> }. Adding a common task = its prompt in the pm-dispatch-task library + one step here; zero caller changes.if: always()): writes each task step's outputs (task_id,session_id,issue_number,issue_url— blank when skipped) to$GITHUB_STEP_SUMMARYunder the repo name.Callers are the thin per-repo
agents.ymlfiles carrying only triggers; they are not part of this PR.Docs
pm-stack/dispatch/README.md, in the existing## GitHub Actions (reusable)section only: a mention alongside the four composite actions plus a### pm-scheduledsubsection covering what it is, the slot table, how callers passschedule/tasks, and how to add a common task. Purely additive (61 insertions, 0 deletions).No changes to
nixos/**,pm-stack/scripts/**,pm-stack/dispatch/src/**,.github/actions/**, or secrets.Validation
python3 yaml.safe_loadparses the workflow;workflow_callsurvives as a key (under PyYAML'son:→Trueartifact) with all three inputs as optional strings defaulting to""; exactly one job (run,ubuntu-latest), nopermissions:key.1 1 * * *,0 1 * * 1→ all three, proving the quoted patterns are not glob-matching), explicittasksoverride (including beating a slot schedule, whitespace-padded, andbolt, palettewith a space), whitespace-onlytasksfalling through to the slot table, and repo input-wins / caller-fallback.actionlintis not installed (checked on the sandbox and the laptop), so it was not run.Need help on this PR? Tag
@codesmith-botwith what you need.