Repository navigation
stewards: steward_report { replacedBy } moves a pull-request binding to its replacement - #95
Conversation
…to its replacement A Dependabot bump redone as a worker's own pull request left the deps-prs binding on the closed bot PR: the gate never looked at the replacement, no Merge item was filed for it (the plugin never adopts a PR the signed-in login wrote), and the steward's only ask was a decision escalation whose Merge button merged nothing. A pull-request steward now reports the open replacement and the binding follows it: same id, thread, playbook, guidance, escalations and workers; entity, snapshot and phase become the replacement's; items filed for the old PR are withdrawn; an ending begun by the old PR's close is undone; the thread is retitled and leases refreshed. The deps-prs template now runs the reviewer round on every bump and leaves the merge to the Merge item. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Independent review running in bb thread @thread:thr_8avbxfdkh6. — from bb thread thr_y5jcbn2baq |
Review round 1 (GLM 5.3, at 471dcb6)Owner review required: yes — it changes what the deps-prs flow does for an existing kind of PR: the ask for a mergeable bump changes from a decision escalation to a Merge item, and the playbook template's guidance changes meaning. @trotterdylan, this one needs your approval. (No Blockers
Suggestions
Checked
— from bb thread thr_8avbxfdkh6 |
|
Round 1 addressed in f7752d8.
— from bb thread thr_y5jcbn2baq |
Review round 2 (GLM 5.3, at f7752d8)Owner review required: yes — it changes what the deps-prs flow does for an existing kind of PR (a Merge item replaces the decision escalation). @trotterdylan, this one needs your approval; my verdict below is only the reviewer's half of the gate. Resolved since round 1
Checked
— from bb thread thr_8avbxfdkh6 |
|
Approved f7752d8 from the Stewards page |
|
Merged: owner-reviewed, approved by trotterdylan on f7752d8 (comment 2026-10-26T18:36:05Z); reviewer approved f7752d8, checks green; merge commit 01c39d3. This merge moves the Window noted (round-1 suggestion 3): the — from bb thread thr_y5jcbn2baq |
What changes
A Dependabot bump that cannot merge as is comes back as a worker's own replacement PR (bb-plugins#92 → #93 on 2026-10-26). The deps-prs binding stayed on the closed bot PR: the gate never looked at the replacement, no Merge item was filed for it (the plugin never adopts a PR the signed-in login wrote), and the steward's only ask was a decision escalation whose "Merge" button recorded an answer for a steward that may not merge.
steward_report { replacedBy: "owner/repo#N" }(pull-request stewards): the binding moves to the replacement. Same id, thread, playbook, guidance, escalations and workers; entity, snapshot and phase become the replacement's;approve-pr/mergeitems and approval escalations filed for the old PR are withdrawn; an ending begun by the old PR's close is undone; the thread is retitled and the source leases refreshed; a reconcile is scheduled so the ordinary gate files the replacement's Merge item. Refused unless the replacement is an open PR in the same repository with no steward of its own.entityIdbecomes a patchable binding column.deps-prsplaybook template: every bump gets the pr-reviewer round, the Merge item on the Stewards page is the ask (no more decision escalation for the merge), and a replacement is reported withreplacedBy.The project's
.bbcopy of the playbook,AGENTS.mdand the pr-reviewer skill have already landed on.bbmaster (3dbf032). Until this merges and the image rolls, a steward on the current image reads the new playbook and may sendreplacedBy, which the current build's non-strict schema strips: it gets "Reported." back and the binding still ends on the bot PR's close. Merging and deploying promptly closes that window.Classification
Owner-reviewed: it changes what the deps-prs flow does for an existing kind of PR (a Merge item replaces the decision escalation).
Testing
npm run typecheckandnpm testinplugins/stewards: 542 tests pass. New tests cover the rebind (binding id and thread kept, old key gone, leases follow, the old PR closing no longer ends it, the Merge item is filed on the replacement once its marker is approved on green checks, and a wrap-up report that closes the old PR and then reportsreplacedByin the same turn undoes the ending it began) and the refusals (bad ref, other repo, self, unreadable, closed, already stewarded, and a binding whose own key cannot be read).A merge to
mainrebuilds thebb-serverimage and stages a restart on every developer's server.🤖 Generated with Claude Code