feat(standards): per-repo initiative-driver caller stub (#884) - #523
Conversation
The cross-repo deliverable of petry-projects/.github-private#884 (Phase 2 of the driver fleet-enablement epic #882). dev-lead correctly determined it hands-off (all ACs target the public .github repo it can't write to) and handed off a verified spec; this applies it. - standards/workflows/initiative-driver.yml — thin caller stub. Unlike the planner stub there is NO reusable: the central driver is pure-bash (no claude-code-action), so the stub dispatches the central workflow_dispatch directly via `gh workflow run` with target_repo=<host>. Mirrors the central driver's initiative:auto label filter; PAT-guarded. - ci-standards.md §10 — add the initiative-driver row (Reusable = none/direct). Unblocks #886 (Fleet Monitor coverage) + #887 (docs). Refs #882, #817. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
More reviews will be available in 31 minutes and 43 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Code Review
This pull request introduces a new GitHub Actions workflow, initiative-driver.yml, which acts as a thin caller stub to dispatch a central initiative-driver workflow in a private repository. It also updates the ci-standards.md documentation to reflect this addition. The review feedback suggests two improvements: enabling cancel-in-progress: true in the concurrency configuration to prevent redundant queued runs during a burst of issue events, and adding a workflow_dispatch trigger to allow manual execution of the workflow for testing and troubleshooting.
Dev-Lead — fix-reviews (applied)Changes committed and pushed. |
|
Dev-Lead — review-changes (no-changes)No changes were needed for this PR. |
|
@donpetry-bot please review — code-owner approval needed to merge. CI green, no open threads. |
|
@donpetry-bot review |
1 similar comment
|
@donpetry-bot review |
|
@don-petry I'm on it — starting a fresh review now. Results will appear in a few minutes. |
donpetry-bot
left a comment
There was a problem hiding this comment.
Automated review — APPROVED ✓
Risk: MEDIUM
Reviewed commit: f95636d4f7da8b23aa45cbc51bfc239545b74ef3
Review mode: triage-approved (single reviewer)
Summary
Adds a per-repo initiative-driver.yml thin caller stub (89 lines, new) to standards/workflows/ plus one documentation row in ci-standards.md §10. The stub dispatches the central initiative-driver in petry-projects/.github-private with target_repo= on this repo's issues:[closed, labeled initiative:auto] events plus an off-peak schedule. Confirmation review of the triage-approved low-risk assessment — assessment confirmed.
Linked issue analysis
No GitHub closes-style linked issues (closingIssuesReferences is empty). The PR applies the cross-repo deliverable of petry-projects/.github-private#884 (Phase 2 of epic #882) and refs #886/#887/#817; the acceptance criteria live in the private repo and are not verifiable from here. The PR body and commit message document the linkage and rationale thoroughly, which is appropriate for a template stub that is adoptable (not force-deployed).
Findings
No blocking findings.
- Security (GitHub Actions): clean.
permissions: contents: read(minimal). No untrusted event input is interpolated intorun:steps — the only event field used isgithub.event.label.nameinside anif:comparison (safe), and the dispatch passestarget_repo=${{ github.repository }}, a trusted context value (no script-injection surface). Nopull_request_target, no checkout/execution of untrusted code. GH_PAT_WORKFLOWS is consumed via env and only tested for presence — never echoed. - Robustness:
concurrencygroup is per-repo withcancel-in-progress: true(dedup safe because the central driver sweeps all epics); the jobif:restrictslabeleddispatches to theinitiative:autogate label, preventing fan-out on unrelated label changes; PAT-present guard fails fast with a clear error. - Prior reviewer feedback resolved: gemini-code-assist's two suggestions (enable
cancel-in-progress: true; add aworkflow_dispatchtrigger) are both present in the reviewed SHA. The coderabbitai review was DISMISSED/rate-limited with no actionable findings. - Secret scanning: the
run_secret_scanningMCP tool is not exposed in this environment, so it was not invoked; the gitleaks CI check passed and the diff contains no secrets (only asecrets.GH_PAT_WORKFLOWSreference).
CI status
All checks green or appropriately skipped. SUCCESS: CodeQL (Analyze actions), AgentShield, CI/Lint, CI/ShellCheck, CI/Secret scan (gitleaks), CI/Agent Security Scan, SonarCloud (Quality Gate passed), Dependency audit (Detect ecosystems), dev-lead/dispatch, pr-auto-review. SKIPPED (n/a): dependabot-automerge and the per-ecosystem audit jobs (npm/pnpm/pip/cargo/go). reviewDecision=REVIEW_REQUIRED and mergeStateStatus=BLOCKED reflect the expected code-owner (org-leads) approval gate, not a CI failure.
Reviewed automatically by the PR-review agent (single-reviewer mode: fable 5). Reply if you need a human review.
* feat(standards): add per-repo initiative-driver caller stub (#884) The cross-repo deliverable of petry-projects/.github-private#884 (Phase 2 of the driver fleet-enablement epic #882). dev-lead correctly determined it hands-off (all ACs target the public .github repo it can't write to) and handed off a verified spec; this applies it. - standards/workflows/initiative-driver.yml — thin caller stub. Unlike the planner stub there is NO reusable: the central driver is pure-bash (no claude-code-action), so the stub dispatches the central workflow_dispatch directly via `gh workflow run` with target_repo=<host>. Mirrors the central driver's initiative:auto label filter; PAT-guarded. - ci-standards.md §10 — add the initiative-driver row (Reusable = none/direct). Unblocks #886 (Fleet Monitor coverage) + #887 (docs). Refs #882, #817. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(reviews): address review comments [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>



Summary
Applies the cross-repo deliverable of
petry-projects/.github-private#884(Phase 2 of the driver fleet-enablement epic #882). dev-lead correctly flagged #884 ashands-off— all its ACs target this public repo, which dev-lead (running in.github-private) can't write — and produced a verified spec; this PR applies it.standards/workflows/initiative-driver.yml— thin caller stub. Unlike the planner stub there is no reusable: the central driver is pure-bash (noclaude-code-action), so the stub dispatches the centralworkflow_dispatchdirectly viagh workflow run -R petry-projects/.github-private -f target_repo=<host>. It mirrors the central driver'sinitiative:autolabel filter and keeps the PAT guard (aworkflow_dispatchfired withGITHUB_TOKENnever starts a run).ci-standards.md§10 — adds theinitiative-driverrow (Reusable = none — direct dispatch).Effect
On an enrolled repo's
issues: [closed, labeled] initiative:auto(+ off-peak schedule), this dispatches the central driver for that repo, which releases ready sub-issues of itsinitiative:autoepics to dev-lead — closing the manual-release gap the.githubpilot exposed. Adoptable template (not force-deployed), like the other idea-pipeline stubs.Unblocks #886 (Fleet Monitor coverage) + #887 (docs). Refs #882, #817.
🤖 Generated with Claude Code