feat: implement issue #821 — Fleet stubs for idea-triage and idea-enhancer - #829
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Dev-Lead — review-changes (no-changes)No changes were needed for this PR. |
|
Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-06-20T06:31:19Z. |
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughBoth ChangesFleet parameterization of idea-triage and idea-enhancer
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
|
Your plan includes PR reviews subject to rate limits. More reviews will be available in 47 minutes and 6 seconds. |
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
There was a problem hiding this comment.
Code Review
This pull request adds integration tests to verify cross-repository parameterization for both the idea enhancer and idea triage workflows. The new tests ensure that when a non-self target repository is specified, candidates are gathered from, and comments or tracking issues are created in, that target repository rather than the default private repository. I have no feedback to provide as there are no review comments.
Dev-Lead — fix-reviews (no-changes)Agent reasoning |
donpetry-bot
left a comment
There was a problem hiding this comment.
Automated review — APPROVED ✓
Risk: LOW
Reviewed commit: 96fc16a350cf24e8fe80bb21da8c5ad272600013
Review mode: triage-approved (single reviewer)
Summary
Parameterizes idea-triage.yml and idea-enhancer.yml on a new optional target_repo workflow_dispatch input so the central workflows can triage/enhance a non-self fleet repo. Concurrency is keyed per target repo, and a TARGET_GH_TOKEN selects GITHUB_TOKEN for the self path or GH_PAT_WORKFLOWS for cross-repo writes (since GITHUB_TOKEN cannot write to other repos). REPO threads through gather/post/upsert scripts and the Claude prompts. Adds bats coverage asserting REPO flows to every gh/GraphQL call for a non-self target, with gh fully stubbed (no network).
Linked issue analysis
Closes #821. AC#1 (target_repo input + cross-repo token) and AC#4 (bats for a non-self target on both workflows) are satisfied here. AC#2 (caller stubs in standards/workflows/) lives in the public petry-projects/.github repo per the issue's two-repo split, so it is correctly out of scope for this PR. AC#3 (queue issue created in the target repo) is exercised by the new upsert-queue bats test; the script already accepts REPO, so no script change was required.
Findings
- Token selection is sound: self path uses GITHUB_TOKEN (job already grants issues:write for the queue upsert), cross-repo uses GH_PAT_WORKFLOWS. Matches the established cross-repo convention.
- target_repo originates from workflow_dispatch (write-access actors only) and is used only in the concurrency-group key, a string-comparison token ternary, and env vars — not interpolated into any run: shell command, so no injection surface.
- Tests stub gh and assert no '.github-private' leakage on non-self runs; they avoid network. Good negative assertions.
- Nit (non-blocking): the inline comments cite initiative-planner.yml as the 'same pattern', but the planner is a self-only, discussion-keyed flow and does not use the identical TARGET_GH_TOKEN ternary. The logic here is nonetheless correct; consider softening the comparison wording.
- MCP run_secret_scanning was not executable in this context (permission not granted); skipped per protocol. No literal secrets in the diff — only Actions secret references and a fake GH_TOKEN=x test value.
CI status
All required checks green: Lint/ShellCheck, bats/unit-tests, CodeQL (actions+python), SonarCloud (Quality Gate passed, 0 new issues), gitleaks, Agent Security Scan, Compile agentic workflows, validate-agent-profiles. Gemini reviewed with no feedback. CodeRabbit and Codex were rate-limited (informational only). mergeStateStatus BLOCKED solely on the required org-leads human review (REVIEW_REQUIRED), which is the expected human gate.
Reviewed automatically by the PR-review agent (single-reviewer agent). Reply if you need a human review.
|
|
Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-06-20T07:49:07Z. |
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
…ancer (#829) Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>



Closes #821
Implemented by dev-lead agent. Please review.
Summary by CodeRabbit
New Features
Tests