Skip to content

feat(deliver): handle a PR blocked by another open PR - #105

Merged
jtomaszewski merged 1 commit into
mainfrom
feat/deliver-blocked-by-another-pr
Dec 6, 2026
Merged

jtomaszewski merged 1 commit into
mainfrom
feat/deliver-blocked-by-another-pr

Conversation

@jtomaszewski

@jtomaszewski jtomaszewski commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Why

When a PR's CI or merge waited on another open PR (a red-main fix from another session, a fix it builds on), agents watched that PR for 2–4 hours, timed out, and reopened their ask, so the owner clicked again for a move they had already approved. Over 7 days this happened about 10 times in 8 sessions. Deliver's only guidance was the Phase 6 hard stop "a failure in code outside the diff → stop and ask".

What

A new Blocked by another PR section. It reads the blocker once, then picks a case:

  1. Owner's, green, no open finding: merge it as part of the click on the dependent (approving a goal covers the steps it needs). With no click, offer one move that merges both.
  2. Owner's, only red, nobody on it: message its agent, or take it over and fix just the red check.
  3. Anything else (an open finding or "held" note, someone else's PR, a review it can't bypass, QA): ask once, with a concrete move such as "Fix #B's failing test, then merge both".
  4. Wait: one cheap wait. A timeout re-reads the blocker and never re-asks.

It also wires the section into Phase 6's hard stop and Deliver-to-a-level step 6, adds the blocked-on #<b> report, and bumps the version to 3.4.0.

Pilot

Three real past cases, each replayed by a fresh-context agent given only this section:

  • Owner's green one-line fix for a red base: case 1, merged under the click with no ask. Before, it waited about 11h.
  • Owner's green fix with an unresolved "held for a human" review finding: case 3, one ask offering to fix the finding then merge all.
  • Collaborator's red PR: case 3, one ask offering "fix its failing test, then merge both". That is what the owner actually chose after the old flow re-asked.

The first draft failed two of the three: it would have fixed an undecided finding and pushed to a collaborator's branch. I fixed the section, not the outputs, and the reruns above passed.

Effect to measure: the nightly session review counts "watch timed out on a blocker, then re-asked" sightings. Expect them to fall from about 1.4 a day to near 0 within a week of this landing.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

A dependent PR used to watch its blocker for hours, time out, and re-ask
the owner for a click they had already given. The new section reads the
blocker once and acts: merge it under the owner's click when it is the
owner's, green and gate-clean; fix or nudge it when only red; ask once
with a concrete move when it needs a judgement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jtomaszewski
jtomaszewski merged commit 743827b into main Dec 6, 2026
4 checks passed
@jtomaszewski
jtomaszewski deleted the feat/deliver-blocked-by-another-pr branch December 6, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant