Dependency PR Solver
When To Use
Use for an approved batch pass over open Dependabot PRs where the agent may mutate branches, post comments, create changesets, validate, and merge high-confidence updates.
Trigger phrases:
- "process all Dependabot PRs"
- "clear the dependency backlog"
- "batch-process dependency PRs"
- "batch-merge safe Dependabot updates"
Hard Gates
- Read
.github/instructions/dependabot-pr.instructions.md before processing any PR.
- Ask for explicit user confirmation before starting the batch and before expanding scope.
- Process only PRs authored by
app/dependabot unless the user overrides with a specific PR.
- Rebase onto the PR base branch; never merge the base branch into a Dependabot branch.
- Do not merge major bumps, failing validation, low-confidence updates, or PRs needing manual code changes.
- Always post research and verdict comments before merging.
Inputs
- Repository owner/name, inferred from workspace when possible.
- PR scope: all open Dependabot PRs or an include/exclude list.
- Mode: normal,
--review-only, or --merge-medium with explicit user approval.
Workflow
- List candidates:
gh pr list --author "app/dependabot" --state open --json number,title,headRefName,baseRefName,mergeable,statusCheckRollup
Show a compact table and get confirmation.
For each confirmed PR:
git fetch origin <base-branch>
gh pr checkout <number>
git rebase origin/<base-branch>
- On conflict, abort, mark
needs-manual-intervention, and continue to the next PR.
- Push rebased branch with
git push --force-with-lease.
Validate dependency state:
- Run
pnpm install --frozen-lockfile.
- If the lockfile must change, run
pnpm install, commit the lockfile-only fix, and push.
Review:
- Delegate analysis to
fusion-dependency-review.
- Capture upstream changes, security notes, existing discussion, impact, and confidence.
- Post research with
assets/research-comment-template.md.
Changesets:
- Follow
.github/instructions/dependabot-pr.instructions.md.
- Create, commit, and push only required changesets.
Validate:
pnpm test && pnpm build && pnpm -w check
Attempt only trivial fixes. Mark anything else for manual intervention.
Decide:
- High confidence: post verdict from
assets/verdict-comment-template.md, then gh pr merge <number> --squash --admin.
- Medium confidence: merge only with
--merge-medium approval; otherwise report.
- Low confidence or failed validation: post verdict and do not merge.
Finish:
- Return to
main.
- Report every PR as merged, skipped, failed, or needs manual intervention.
Expected Output
| PR |
Status |
Confidence |
Action |
#N |
merged/skipped/failed |
high/medium/low |
short reason |
Also include posted-comment status, changeset files, validation results, and manual follow-ups.
Safety
Never merge without validation, comments, and confidence. Never force-push without --force-with-lease. Never continue a conflicted Dependabot rebase by guessing.
1---2name: custom-dependency-pr-solver3description: Batch-processes Dependabot PRs in Fusion Framework: list, confirm, checkout, rebase, review, changeset, validate, comment, and merge high-confidence updates. USE FOR: process all Dependabot PRs, clear dependency backlog, batch-merge safe dependency updates. DO NOT USE FOR: feature PRs, non-Dependabot PRs, single-PR deep review, or updates needing manual code changes.4license: MIT5---67# Dependency PR Solver89## When To Use1011Use for an approved batch pass over open Dependabot PRs where the agent may mutate branches, post comments, create changesets, validate, and merge high-confidence updates.1213Trigger phrases:14- "process all Dependabot PRs"15- "clear the dependency backlog"16- "batch-process dependency PRs"17- "batch-merge safe Dependabot updates"1819## Hard Gates2021- Read `.github/instructions/dependabot-pr.instructions.md` before processing any PR.22- Ask for explicit user confirmation before starting the batch and before expanding scope.23- Process only PRs authored by `app/dependabot` unless the user overrides with a specific PR.24- Rebase onto the PR base branch; never merge the base branch into a Dependabot branch.25- Do not merge major bumps, failing validation, low-confidence updates, or PRs needing manual code changes.26- Always post research and verdict comments before merging.2728## Inputs2930- Repository owner/name, inferred from workspace when possible.31- PR scope: all open Dependabot PRs or an include/exclude list.32- Mode: normal, `--review-only`, or `--merge-medium` with explicit user approval.3334## Workflow35361. List candidates:3738```bash39gh pr list --author "app/dependabot" --state open --json number,title,headRefName,baseRefName,mergeable,statusCheckRollup40```4142Show a compact table and get confirmation.43442. For each confirmed PR:45 - `git fetch origin <base-branch>`46 - `gh pr checkout <number>`47 - `git rebase origin/<base-branch>`48 - On conflict, abort, mark `needs-manual-intervention`, and continue to the next PR.49 - Push rebased branch with `git push --force-with-lease`.50513. Validate dependency state:52 - Run `pnpm install --frozen-lockfile`.53 - If the lockfile must change, run `pnpm install`, commit the lockfile-only fix, and push.54554. Review:56 - Delegate analysis to `fusion-dependency-review`.57 - Capture upstream changes, security notes, existing discussion, impact, and confidence.58 - Post research with `assets/research-comment-template.md`.59605. Changesets:61 - Follow `.github/instructions/dependabot-pr.instructions.md`.62 - Create, commit, and push only required changesets.63646. Validate:6566```bash67pnpm test && pnpm build && pnpm -w check68```6970Attempt only trivial fixes. Mark anything else for manual intervention.71727. Decide:73 - High confidence: post verdict from `assets/verdict-comment-template.md`, then `gh pr merge <number> --squash --admin`.74 - Medium confidence: merge only with `--merge-medium` approval; otherwise report.75 - Low confidence or failed validation: post verdict and do not merge.76778. Finish:78 - Return to `main`.79 - Report every PR as merged, skipped, failed, or needs manual intervention.8081## Expected Output8283| PR | Status | Confidence | Action |84|---|---|---|---|85| `#N` | merged/skipped/failed | high/medium/low | short reason |8687Also include posted-comment status, changeset files, validation results, and manual follow-ups.8889## Safety9091Never merge without validation, comments, and confidence. Never force-push without `--force-with-lease`. Never continue a conflicted Dependabot rebase by guessing.