Watch the PR after handback until it merges or closes in the `pushing-commits-to-the-repo` skill

Merged
DS
1mo ago
+14-1

This pull request was posted by Claude Code using claude-opus-5-5 on behalf of David.

No linked issue.

The pushing-commits-to-the-repo lifecycle ends at handback, so an agent never sees a later merge-queue removal or review. On 2026-11-01 the queue removed #11117 after handback, and no agent saw it. #12160 added the Merge bar paragraph on detecting a removal; this PR adds the step that watches for one.

Two edits to .agents/skills/pushing-commits-to-the-repo/SKILL.md:

  • The Lifecycle: summary now ends → handback → watch until merge or close.
  • A new ## After handback — watch until merge or close section tells the agent to:
    • keep watching until the PR merges or closes, polling its state, timeline, comments and reviews every 30 minutes
    • handle a removal through the Merge bar paragraph
    • triage new comments and reviews through step 4 of the loop
    • restart the loop on a new head
  • It exempts non-interactive runs that exit at handback, such as pydanty and hosted review workflows. An interactive session that ends early says in its last report that nothing watches the PR.

It is a new section rather than more text in ## Before handing the PR back, because prose-only PRs skip that section's subagent steps.

New public surface: none.

User-visible behavior: the skill's Lifecycle: summary now continues past metadata:

-… → required reviews → metadata.
+… → required reviews → metadata → handback → watch until merge or close.

Verification

  • #11117 timeline: added_to_merge_queue at 15:58:38Z, removed_from_merge_queue at 16:11:52Z by github-merge-queue[bot]; the PR is still open.
  • On main at f62e8d627: the Lifecycle: line exists, ## Before handing the PR back ends with "Hand the PR back after these gates settle.", the #12160 paragraph is in ## Merge bar, and loop step 4 triages comments and reviews.
  • No other tracked instruction under .agents/, agent_docs/, AGENTS.md or CLAUDE.md says work ends at handback.
  • The new loop link's anchor matches GitHub's rendered heading id, after-you-push--the-loop.
  • Local pre-push review 1 of 3 returned three findings, dismissed with evidence. Review 2 of 3 returned none.
  • Douwebot approved 7de7fe1e2 with two optional inline notes, the poll cadence and the loop link. Both are adopted. Douwebot then approved 0be49526f with no findings. Decisions below.

What changes for existing users: Nothing; only agents following this skill are affected.

PR decisions

2026-11-02 · pre-push review 1 of 3 at 7de7fe1e291630f4d7c245cf59c1af1d0f0623f7 · iter -

2026-11-02 · pre-push review 1 of 3 at 7de7fe1e291630f4d7c245cf59c1af1d0f0623f7 · iter -

  • Decision: three findings dismissed with evidence; no remediation
  • Why: tree f0be7cb56ea8 unchanged. (1) intro 'Work stops only when' is a necessary condition; the signed-off draft judged it a minimum that does not conflict. (2) cited rule is private global CE, not repo policy; the new last-report line is satisfiable alongside it. (3) poll cadence is method; detection is owned by the Merge bar paragraph and loop step 4; adding it rewords signed-off text
  • Source: https://github.com/pydantic/pydantic-ai/tree/post-handback-watch-step
  • Session: 8e263f72-3ad3-4cf2-8225-a2034f97f289

2026-11-02 · douwebot:review-agent-config authorized at 7de7fe1e291630f4d7c245cf59c1af1d0f0623f7 · iter -

2026-11-02 · douwebot inline notes 4446946719 (cadence) and 4446946726 (loop link): adopted · iter -

  • Decision: David signed off on both proposed texts verbatim: add 'Poll the PR's state, timeline, comments and reviews every 30 minutes.' after the keep-watching line; link step 4's heading as After you push — the loop
  • Why: both change signed-off wording, so David's sign-off was required; cadence converged with local pre-push review 1 finding 3 and matches step 5's 30-minute poll (decider: David)
  • Source: https://github.com/pydantic/pydantic-ai/pull/12252#discussion_r4446946719
  • Session: 8e263f72-3ad3-4cf2-8225-a2034f97f289

2026-11-02 · pre-push review 2 of 3 at 0be49526fe166da81eae7cec6892c540a66ebb25 · iter -

2026-11-02 · pre-push review 2 of 3 at 0be49526fe166da81eae7cec6892c540a66ebb25 · iter -

2026-11-03 · douwebot:review-agent-config authorized at 0be49526fe166da81eae7cec6892c540a66ebb25 · iter -

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
  • PR title is fit for the release changelog.