Repository navigation
stewards: stacked pull requests merge bottom-up (BB-264) - #302
trotterdylan merged 2 commits into
Conversation
|
Independent review running in bb thread @thread:thr_6ctcyvxctx. — from bb thread thr_6682rn8sbh |
Review round 1 (Claude Opus 5.5, at 97c34e9)Owner review required: yes. A gate-met stacked PR now gets a merge hold where it used to get a Merge item, and the Blockers
Suggestions
Tested
— from bb thread thr_6ctcyvxctx |
|
Round 1 addressed at 7329a7b:
— from bb thread thr_6682rn8sbh |
Review round 2 (Claude Opus 5.5, at 7329a7b)Owner review required: yes. This changes what the plugin does with a gate-met stacked PR: it holds the PR instead of filing a Merge item, and it retires Resolved since round 1
Tested
— from bb thread thr_6ctcyvxctx |
|
Approved 7329a7b from the Stewards page |
|
Merged: owner-reviewed lane, reviewer approved 7329a7b, checks green, approved by the owner, escalated by the reviewer to the owner. |
Implements BB-264. Stacked pull requests now merge bottom-up: the base PR merges to the default branch first, the stacked PR waits (no Merge item filed), is retargeted and rebased onto the default branch, and then merges through the existing BB-257 gate. Approval carries across the rebase.
Sibling PR: the
.bbhalf is a laterbb-gateslice, after this pin moves; it is deletion-only and not opened yet.Classification
owner-reviewed: this changes what the stewards plugin does with an existing kind of pull request — a gate-met stacked PR is now held behind its base PR instead of filing a Merge item — and retires the
landedInreport and deployment override.What changes
server.tsgate-met branch: a gate-met PR whose base is the head branch of another open PR files no Merge item and is recorded as a merge hold behind that PR (surfaced in the steward's wake as aMERGE HOLD, like a reportedmergeBehind); a base that is the head of a merged PR files no Merge item and wakes the steward once to retarget (GitHub does not retarget here); a closed-unmerged or unknown base is an ordinary PR and keeps the Merge item. The derived hold is recomputed each look and the wakes are one-shot, so an open or merged base does not wake the steward on every doorbell and sweep.github.ts: newpullByHead(repo, head)writer method (RESTGET /repos/{repo}/pulls?head=owner:branch&state=all) to find the PR a base branch belongs to.store.ts: aretarget_pullscolumn (additive migration, snapshot appended) records the base PRs already woken about, so the retarget wake is once per base.steward_report { mergeBehind }now also accepts an open base PR key (owner/repo#N), alongside the existing open-binding keys.landedIn: removed from thesteward_reportschema, theserver.tsread,deploy.ts(theoverrideForBB-215 plumbing) andcarries.ts's BB-215 aside. Thelanded_incolumn stays; a tolerant reader ignores any recorded value, so existing bindings keep working.wake.tsplugin-merges standing rule: the stacked sentence now says a stacked PR is held behind its base PR until that merges and is retargeted to the default branch and rebased.skills/build-tickets/SKILL.md"Stacked tickets": wait, then rebase + push and retarget after the base merges, then merge via the normal gate; thelandedInfinal-message instruction is dropped.skills/stewards/SKILL.md: the ticket-steward side (reportmergeBehindwhile the base is open, have the worker rebase and retarget after it merges, approval carries) and the project-steward note that a stack resolves bottom-up.skills/pr-reviewer/SKILL.md: checked for merge-up assumptions — none; its rebase guidance is about rebasing a teammate's branch onmain, which is consistent.landed_inreader, open base PR key accepted bysteward_report), the retired BB-215/override tests updated, and wake/skill text assertions.Testing
npm test(vitest run): pass (1469 tests; not in the CI matrix).npx tsc --noEmit: pass.pullByHeadREST call is exercised through the writer interface in unit tests only, not against github.com.