What problem does it solve?
Pull requests in microsoft/apm stall after automated review because Copilot bot comments, panel follow-ups, lint failures, and CI flakes each require manual iteration. This Skill automates the per-PR convergence loop so a parent orchestrator can drive one PR to a terminal ready-to-merge, advisory-with-deferred, superseded, or blocked state without human babysitting.
Core Features & Use Cases
- Per-PR convergence loop: Classifies copilot-pull-request-reviewer[bot] inline review, runs the apm-review-panel, folds in-scope follow-ups by default, pushes to the head branch or a superseding PR preserving authorship via commit trailers, and watches CI to green under fixed iteration caps.
- Deterministic owner-touch gate: Runs scripts/owner_touch_gate.py to parse the canonical architecture owner table and require executed functional test evidence for every touched owner before a terminal return.
- Cross-PR conflict resolution: Probes mergeability and rebases conflicting PRs with --force-with-lease, faithful conflict resolution, and a trust-but-verify re-probe.
- Use Case: A batch orchestrator like batch-bug-shepherd selects five open PRs, spawns one shepherd-driver subagent per PR, and receives schema-validated completion returns it aggregates into a mergeability table.
Quick Start
Ask the parent orchestrator to spawn a shepherd-driver subagent for PR 1234 with the issue number, author, head repo, head branch, and repo root so it drives that PR to a mergeable terminal state.