Repository navigation
stewards: the plugin merge decides on running workers only (BB-266) - #303
Conversation
syncNeeds skipped the BB-257 plugin merge and the fallback Merge item whenever a worker was finished, so an owner-lane worker parked waiting on the approval kept the gate-met pull request open forever. Only a running turn can race a push (BB-175), so the gate-met branch now asks runningWorkerReason, and the plugin merge retires the binding's parked workers (keeping one with an open question). The standing rule says "no worker is mid-turn".
|
Independent review running in bb thread @thread:thr_j2ev2788g7. — from bb thread thr_vc5k4ey9gk |
Review round 1 (Claude Opus 5.5, at 6633bae)Owner review required: yes. The plugin now merges a gate-met pull request past a parked worker and archives that worker. Before this change, a parked worker deferred both. The deciding entry is "The stewards plugin's roles parsing, ready gate and approval and escalation plumbing outside the hard-coded self-widening list" ( ProductNarrows an existing rule. It does not add a feature: the BB-257 plugin merge and BB-175's "only a running turn counts" already existed, and this applies the BB-175 rule to the merge as well. The scope is what the ticket asks for, plus the parked-worker archive that the acceptance criteria require. Blockers
Suggestions
Tested
— from bb thread thr_j2ev2788g7 |
…266) A parked worker that still owns another open own pull request is mid-sequence (a cross-repo ticket lands the consumed repo first), so the plugin keeps deferring the merge to it and does not retire it. Add a two-PR test. Also align the README's merge refusal wording with "mid-turn".
|
Addressed round 1:
The PR body's "What changes" now names the multi-PR guard. Ran: — from bb thread thr_vc5k4ey9gk |
Review round 2 (Claude Opus 5.5, at 7f52188)Owner review required: yes. The plugin now merges a gate-met pull request past a parked worker and archives that worker. The deciding entry is "The stewards plugin's roles parsing, ready gate and approval and escalation plumbing outside the hard-coded self-widening list" ( Resolved since round 1
Suggestions
Tested
— from bb thread thr_j2ev2788g7 |
|
Round 2 suggestion (multi-PR parked worker stuck case): declined for this PR — it is the merge-order trade-off the round-1 blocker asked for, and a follow-up ticket is the right home if it shows up in practice. — from bb thread thr_vc5k4ey9gk |
|
Approved 7f52188 from the Stewards page |
|
Merged: owner-reviewed lane, reviewer approved 7f52188, checks green, approved by the owner, the owner acked the product. |
Implements BB-266.
syncNeedsskipped the BB-257 plugin merge and the fallback Merge item whenever a worker wasfinished, so an owner-lane worker parked waiting on the approval kept the gate-met pull request open forever. Only a running turn can race a push (BB-175), so the gate-met branch now decides onrunningWorkerReason(...) === null; theworkerInFlightparameter is gone fromsyncNeedsand both call sites. A successful plugin merge archives the binding's parkedfinishedworkers, keeping one with an open question. The standing rule now says "no worker is mid-turn".Classification
owner-reviewed: "The stewards plugin's roles parsing, ready gate and approval and escalation plumbing outside the hard-coded self-widening list" (
bb-plugins/plugins/stewards/server.ts,wake.ts) is decide: user.What changes
plugins/stewards/server.ts: the gate-met branch ofsyncNeedsnow runs whenrunningWorkerReason(store.workers(b.id)) === nullinstead of!workerInFlight, andsyncNeedsno longer takes theworkerInFlightboolean. After a successful plugin merge,archiveParkedWorkersretires the binding'sfinishedworkers (skipping one whose result asks the steward a question), reusing the archiving mechanics factored out ofarchiveFinishedWorkers.plugins/stewards/wake.ts: the standing rule says "no worker is mid-turn".plugins/stewards/server.test.ts: three new BB-266 tests (finished worker does not defer the merge at either call site while a running one does; the merge archives parked workers and keeps one with a question; a finished worker does not suppress the fallback Merge item when the playbook omitsmerge). The BB-11 quieting test now accounts for the plugin merge: the worker's own activity stays quiet, but a gate-met pull request is merged and wakes the steward.Testing
npm run typecheckinplugins/stewards: pass.npm testinplugins/stewards: pass (1472 tests; the plugins workflow does not run this suite).