Detect merge-queue removals in the `pushing-commits-to-the-repo` skill
Merged
DS
1mo ago+4+4+0123456789-0-0-0123456789
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_queuetimeline 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_grouprun, 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_queueat 15:58:38Z, thenremoved_from_merge_queueat 16:11:52Z, and the PR is still open. Run 41323933969 hashead_branchgh-readonly-queue/main/pr-11117-133a75127f7b938567b8af7da1d59b95fe5a92fd, conclusionfailure. - #12140 timeline (merged):
removed_from_merge_queueat 16:10:04Z, thenmergedat 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 -
- Decision: reserved: dispatched light tier (Haiku) from policy-base 133a75127
- Why: tree 291c67ea2d36; scope merge-base 133a75127..4dc781c16; first review
- Source: https://github.com/pydantic/pydantic-ai/tree/merge-queue-removal-skill-line
- Session: 88ced004-cbb3-478c-ae0d-558f6c8cf3f2
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 -
- Decision: David authorized one douwebot:review-agent-config review for head 4dc781c16b9f247c3e3327b2acb3956d1d95e9ea only; a later head needs fresh authorization relayed by the manager
- Why: PR edits .agents/; douwebot guard requires maintainer authorization per exact head (decider: David)
- Source: https://github.com/pydantic/pydantic-ai/pull/12160
- Session: 88ced004-cbb3-478c-ae0d-558f6c8cf3f2
2026-11-02 · pre-push review 2 of 3 at 4a3954f46d07bc9692227b4cda85a4e9993a674b · iter -
- Decision: reserved: dispatched light tier (Haiku) from policy-base a0022cd08
- Why: tree 9c209a8bd42b; follow-up scope 4dc781c16..4a3954f46 (reviewed tree 291c67ea2d36); full branch diff as context
- Source: https://github.com/pydantic/pydantic-ai/pull/12160
- Session: 88ced004-cbb3-478c-ae0d-558f6c8cf3f2
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.