Closed
Labels
engineeringRoutine engineering, non-SR&ED
Description
Description
The xpq-pr-review-cycle skill stalls or blocks on three things that don't match how the repos and the Claude token behave (seen on XP-Quest/xpq-api#129):
- Copilot does not re-review on push. It reviews once, when the PR is opened. Steps 3 and 6 wait for a re-review on each new head that never arrives.
- PRs into
devhave no CI.xpq-api's only workflow (pr-lifecycle.yml) runs on PRs intomain, sogh pr checksreports "no checks". Step 8 resolves threads only on green CI, so a feature → dev PR can never get its threads resolved. - The fine-grained token cannot read check runs. GitHub does not offer a Checks permission for fine-grained personal access tokens, so
gh pr checksfails with "Resource not accessible by personal access token". The README's Credentials list asks for "Checks read", which cannot be granted.
Change:
- Steps 3 and 6: one Copilot review per PR; after fix pushes, go straight to CI. No re-review wait or rounds.
- Step 7: read CI from workflow runs on the head sha (Actions API,
gh run list --commit), excluding the Copilot review run. When no CI workflow runs for the PR's base, the full local test suite passing on the current head stands in, and the report says so. - Step 8: resolve condition uses the Step 7 result.
- README Credentials: replace Checks read with Actions read.
Area
DevOps/Infra (internal tooling)
Acceptance Criteria
- The skill no longer waits for a Copilot re-review after fix pushes.
- Step 7 works with the fine-grained token (no check-runs API).
- A PR with no CI on its base can reach "ready to merge" on a passing local suite, stated in the report.
- README Credentials lists only permissions a fine-grained token can be granted.
-
bash scripts/tests/run_tests.shpasses.
SR&ED Screening
- I have considered whether this involves technological uncertainty and concluded it does not.
Metadata
Metadata
Assignees
Labels
engineeringRoutine engineering, non-SR&ED
Activity
rdcoe commentedon Oct 17, 2026
Commit 8ac5840 (
#74: skill: single Copilot round; read CI from workflow runs):gh pr checksand the check-runs API need a Checks permission that fine-grained tokens cannot be granted. Workflow runs (gh run list --commit) need only Actions read and give the same pass/fail for these repos, which use GitHub Actions only. Runs withevent: dynamicare skipped because the Copilot review shows up as one.xpq-apiruns workflows only on PRs intomain, so a feature → dev PR never gets runs. A passing full local suite on the exact head now stands in, reported as such and not called CI. Ruled out: adding CI ondevPRs (a separate repo decision).#74: skill: re-read headRefOid before reading CI runs
#74: skill: gate on applicable workflows' newest runs
rdcoe commentedon Oct 17, 2026
Review fixes from Copilot on #75 (all in Step 7):
#74: skill: re-read headRefOid before reading CI runs— Step 1'sheadRefOidgoes stale once Step 6 pushes fixes, and the dropped re-review poll was what used to refresh it. Step 7 now re-reads it first, so CI is judged on the fixed commit.#74: skill: gate on applicable workflows' newest runs— listing every run on the sha mixed in unrelated workflows, runs from an earlier base, and superseded runs (pr-lifecycleruns again onedited, so a Step 2 body fix can replace an earlier failure on the same sha). It also inferred "no CI" from no runs appearing within 2 minutes, which a delayed run or a merge conflict would fake. Step 7 now works out which workflows apply from theirpull_requesttriggers (branches,types,paths/paths-ignore), checks the newest run of each withgh run list --workflow <file> --limit 1, and uses the local suite only when no workflow applies. A missing run for an applicable workflow blocks and is reported. Ruled out: a fixed wait time (cannot tell "late" from "never").rdcoe commentedon Oct 17, 2026
3b3e7bc
#74: skill: hand thread resolution to the user— running the skill on #75 showedresolveReviewThreadreturns FORBIDDEN ("Resource not accessible by personal access token") for the fine-grained token with Pull requests read/write. Step 8 now posts the disposition replies and lists each thread's#discussion_r<id>link for the user to resolve; Step 9 treats those listed threads as expected rather than blocking. Ruled out: granting the token whatever the mutation needs, since if that is Contents write the token could merge.#74: skill: hand thread resolution to the user
#74: skill: make the skill the authority for PR review
Merge pull request #75 from XP-Quest/74-review-cycle-ci-rereview