Detect merge-queue removals in the `pushing-commits-to-the-repo` skill

Merged
DS
1mo ago
+4-0

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

No linked issue.

A merge-queue removal posts no comment and leaves the PR open, so an agent driving the PR has no signal that it happened. On 2026-11-01 the queue removed #11117 (RemovedFromMergeQueueEvent reason failed_checks, merge-group run 41323933969), and no agent watching that PR saw it.

This adds one paragraph at the end of ## Merge bar in .agents/skills/pushing-commits-to-the-repo/SKILL.md. It tells the agent to:

  • detect the removal as a new removed_from_merge_queue timeline event while the PR is still open (a merge logs the same event, so an open state is what tells a removal from a merge)
  • diagnose the failed jobs of the PR's newest merge_group run, using step 2 of "After you push — the loop"
  • never re-enqueue the PR, because a maintainer does that
  • post a PR comment that names each failed job and its cause, and comment that the PR is ready to re-enqueue once its current head meets the merge bar again

New public surface: none.

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

Verification

  • #11117 timeline: added_to_merge_queue at 15:58:38Z, then removed_from_merge_queue at 16:11:52Z, and the PR is still open. Run 41323933969 has head_branch gh-readonly-queue/main/pr-11117-133a75127f7b938567b8af7da1d59b95fe5a92fd, conclusion failure.
  • #12140 timeline (merged): removed_from_merge_queue at 16:10:04Z, then merged at 16:10:05Z. This confirms that a merge also logs the event.
  • Step 2 of "After you push — the loop" still has the fix-if-yours / known-flake / pre-existing-on-main rule that the paragraph points to.
  • Local pre-push reviews 1 and 2 of 3 each returned one finding. Decisions below.
  • Douwebot approved 4dc781c16 with one optional inline note. The PR-comment line answers it.
PR decisions

2026-11-01 · pre-push review 1 of 3 at 4dc781c16b9f247c3e3327b2acb3956d1d95e9ea · iter -

2026-11-01 · pre-push review 1 of 3 at 4dc781c16b9f247c3e3327b2acb3956d1d95e9ea · iter -

  • Decision: one finding; proposed fix refuted, residual gap reported to manager as sibling defect, no remediation
  • Why: tree 291c67ea2d36 unchanged. Finding: no owner schedules the removal check after the merge bar. Its fix (check at step 6 or handback) runs before a maintainer enqueues, so it passes trivially. Post-handback watching is a pre-existing lifecycle boundary outside this PR
  • Source: https://github.com/pydantic/pydantic-ai/tree/merge-queue-removal-skill-line
  • Session: 88ced004-cbb3-478c-ae0d-558f6c8cf3f2

2026-11-02 · douwebot:review-agent-config authorized at 4dc781c16b9f247c3e3327b2acb3956d1d95e9ea · iter -

2026-11-02 · pre-push review 2 of 3 at 4a3954f46d07bc9692227b4cda85a4e9993a674b · iter -

2026-11-02 · pre-push review 2 of 3 at 4a3954f46d07bc9692227b4cda85a4e9993a674b · iter -

  • Decision: one finding (restate attribution for the new PR comment) dismissed; no remediation
  • Why: tree 9c209a8bd42b unchanged. Step 4 thread replies and step 5 escalation comments post to GitHub without restating attribution; only the dismissal reason file passed to a helper does. Attribution is owned by repository and harness instructions
  • Source: https://github.com/pydantic/pydantic-ai/pull/12160
  • Session: 88ced004-cbb3-478c-ae0d-558f6c8cf3f2

2026-11-02 · douwebot inline note 4438633630: tell the maintainer when a removed PR is ready to re-enqueue · iter -

  • Decision: adopted with one change: the ready-to-re-enqueue comment waits until the current head meets the merge bar again
  • Why: a fix push restarts CI and the required review, so the suggestion's immediate ready comment would be premature
  • Source: https://github.com/pydantic/pydantic-ai/pull/12160#discussion_r4438633630
  • Session: 88ced004-cbb3-478c-ae0d-558f6c8cf3f2

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.