Skip to content

feat(workflows): pm-scheduled reusable scheduled-agents workflow (#2672) - #2704

Merged
dezren39 merged 1 commit into
mainfrom
feat/2672-pm-scheduled
Oct 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
feat/2672-pm-scheduled

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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_call with three optional string inputs (default ""): schedule, tasks, repo.
  • Exactly one job, run (ubuntu-latest). No permissions declared — a reusable workflow runs with the calling job's token; callers grant id-token: write + contents: read.
  • Step 1 (resolve, bash): resolves the effective repo (input repo, else the caller's github.repository) and the task list:
    • a non-empty (trimmed) tasks input is used verbatim;
    • otherwise schedule is mapped through the SLOT TABLE — a heavily commented bash case in 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):
      • task slots → 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 slots → 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;
      • empty or unknown schedule → bolt,palette,suggestions.
    • Emits repo, tasks, and has_bolt / has_palette / has_suggestions ("true"/"false") outputs for the step gates.
  • THE LIST — one step per task, in order bolt, palette, suggestions, each gated on its resolve output and calling developing-today/code/.github/actions/pm-dispatch-task@main with { task, repo: <resolved repo> }. Adding a common task = its prompt in the pm-dispatch-task library + one step here; zero caller changes.
  • Final step (if: always()): writes each task step's outputs (task_id, session_id, issue_number, issue_url — blank when skipped) to $GITHUB_STEP_SUMMARY under the repo name.

Callers are the thin per-repo agents.yml files 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-scheduled subsection covering what it is, the slot table, how callers pass schedule/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

  • YAML: python3 yaml.safe_load parses the workflow; workflow_call survives as a key (under PyYAML's on: → True artifact) with all three inputs as optional strings defaulting to ""; exactly one job (run, ubuntu-latest), no permissions: key.
  • Resolve bash functionally tested locally (script extracted from the workflow, inputs stubbed via env): 23/23 cases pass — all 11 slot-table entries, empty schedule, unknown schedule, near-miss schedules (1 1 * * *, 0 1 * * 1 → all three, proving the quoted patterns are not glob-matching), explicit tasks override (including beating a slot schedule, whitespace-padded, and bolt, palette with a space), whitespace-only tasks falling through to the slot table, and repo input-wins / caller-fallback.
  • Summary step executed locally with stub outputs: renders the table under the repo heading, with the skipped task's outputs blank.
  • actionlint is not installed (checked on the sandbox and the laptop), so it was not run.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 11:10
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 57108307-ac60-406e-9100-aa4a681fc794
Commits

Reviewing files that changed from the base of the PR and between 98d28b8 and bd5896f.

Files selected for processing: 2
  • .github/workflows/pm-scheduled.yml
  • pm-stack/dispatch/README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dezren39
dezren39 merged commit 761634d into main Oct 30, 2026
1 check passed
@dezren39
dezren39 deleted the feat/2672-pm-scheduled branch October 30, 2026 11:10
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T11:11:48.881728Z bd5896f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant