fix(skills): check open PRs for in-flight ADR numbers#3610
Conversation
…ring The renumber-adr skill previously only checked the target branch for collisions. If two PRs independently picked the same next-available number, one would need renumbering after the other merged. Now the skill also queries all open PRs targeting the same base branch and treats their ADR numbers as taken. A helper script (inflight-adr-numbers.sh) encapsulates the gh CLI pipeline. Assisted-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Ralph Bean <rbean@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 1:50 PM UTC · Completed 2:03 PM UTC |
PR Summary by QodoCheck open PRs for in-flight ADR number collisions in renumber-adr skill
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Site previewPreview: https://5b3c2bf1-site.fullsend-ai.workers.dev Commit: |
Code Review by Qodo
1.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Review — commentPR: #3610 — Prior findings — resolved
New findings1.
|
- Exclude current PR from gh pr list to prevent self-collision - Add || true after grep to honor the "always exits 0" contract - Add || true after gh pr diff to handle transient failures gracefully - Document intentionally conservative behavior (reports all changes) - Add Requires: header per script convention - Update SKILL.md to document exclude-pr argument Assisted-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Ralph Bean <rbean@redhat.com>
|
🤖 Finished Review · ❌ Failure · Started 2:48 PM UTC · Completed 2:59 PM UTC |
|
🤖 Finished Retro · ✅ Success · Started 7:27 PM UTC · Completed 7:34 PM UTC |
|
PR #3610 added an open-PR collision check to the renumber-adr skill. The review agent performed well: it found 6 legitimate bugs on the initial commit (3 medium-severity correctness issues), all fixed by the author in a follow-up commit. On re-review, it found 2 more medium-severity issues but submitted with COMMENT verdict — the PR merged without addressing them. A notable workflow gap: human reviewer approved the PR 2 minutes before the review agent completed its first analysis, approving code with 3 material bugs. The review agent again omitted a protected-path finding for the skills/ directory (additional evidence for #3710). The re-review run showed Failure status despite posting valid findings (additional evidence for #3548). Qodo and the fullsend review agent independently found the same grep exit-code bug, with fullsend providing significantly deeper coverage overall. Proposals filed
|
Summary
gh pr list+ diff pipeline into a helper script (skills/renumber-adr/scripts/inflight-adr-numbers.sh) since the pipeline is non-trivial.Test plan
inflight-adr-numbers.sh main— found 7 in-flight ADR numbers across open PRs (0024, 0038, 0044, 0057, 0065, 0066, 0068)🤖 Generated with Claude Code