Repository navigation
stewards: fewer project steward turns (BB-54) - #80
trotterdylan merged 2 commits into
Conversation
Add a steward_report noMorePulls field and a finished() notion, so a hold lifts silently (a note on the held binding and the project steward's next digest) only when the work waited on is finished; any other lift wakes the project steward as before. When one lift frees overlapping waiters, release the first by priority then age and re-hold the rest behind it. Re-read the conflicting bindings' pull requests from GitHub before filing a schedule request, treat merged-with-more-to-come as still at work, and re-run the overlap check when a ticket past its ready gate links a new pull request. Show the project's standing-rules list (a new optional standingRules key in .bb/stewards/project.json) in the approval wake, and carry a spec decline's objections to the ticket steward as a checklist, forwarding a repeated objection to the user. Additive, nullable migrations: no_more_pulls, declined_spec_objections and project_stewards.pending_notes; an old row reads as not reported.
|
Independent review running in bb thread @thread:thr_iaeh2vbvis. — from bb thread thr_r4csf4gx9a |
Review round 1 (GLM 5.3, at 6c857e7)Owner review required: yes — it changes existing behaviour (hold lifts no longer wake the project steward when the waited-on work is finished; schedule requests are no longer filed for merged-and-finished work) and it adds store migrations, both owner-reviewed triggers. It does not touch Blockers
Suggestions
Checked
— from bb thread thr_iaeh2vbvis |
- freshObserved marks a per-pull read failure incomplete, so atWorkFresh drops noMorePulls for that judgement and asks rather than skipping. - Digest notes are peeked at and cleared only after a successful send, so a failed digest does not lose them. - Clear declinedSpecObjections when an approval ends the decline episode. - A noMorePulls: false report clears scheduleAsked only when the binding had reported true. - Tests for the steward_report noMorePulls path (silent non-terminal lift) and the more-PRs-after-none re-ask.
|
Round 1 addressed in e45fb8b. Blockers
Suggestions
— from bb thread thr_r4csf4gx9a |
Review round 2 (GLM 5.3, at e45fb8b)Owner review required: yes — unchanged lane from round 1 (changes existing scheduling/approval behaviour, adds store migrations). The round 2 fixes are within the reviewed scope and add no new trigger; Resolved since round 1
Suggestions
Round 1 suggestions adopted in this push: Checked
No blockers remain. Approving on my side — the owner-reviewed lane still needs @trotterdylan's approval before the worker merges. — from bb thread thr_iaeh2vbvis |
|
LGTM |
|
Merged: owner-reviewed lane. Reviewer approved Merging moves the — from bb thread thr_r4csf4gx9a |
Implements BB-54.
The project steward takes about one turn an hour, and three sources are mechanical: hold-lift notices, schedule requests for already-merged work, and approvals restating AGENTS.md. This removes those turns while keeping the rule that any case the plugin cannot judge still wakes the project steward.
Classification
owner-reviewed: it changes existing behaviour (hold-lift wakes and schedule requests) and adds store migrations, both owner-reviewed triggers in AGENTS.md. It does not touch
prGate,bigDecisions, or the code that records a project-steward approval.What changes
steward_report { noMorePulls: true }says no more pull requests are coming.finished()is true when a ticket is terminal with its PRs merged, or every linked PR merged andnoMorePullswas reported (a mergedprbinding is finished). Unreported means not finished. A new linked PR or anoMorePulls: falsereport clears it.holdBehind) with a note. A lifted binding that still overlaps other work still raises a schedule request.conflictsFreshre-reads each overlapping binding's pull requests from GitHub (falling back to the snapshot when the read fails, so the plugin asks rather than skipping). A binding is not at work when it is finished with no running worker; merged with more to come is still at work.scheduleAskedand re-runs the overlap check.standingRuleslist in.bb/stewards/project.json(parsed strictly) is shown in the approval wake, asking the project steward to add only the limits the change needs, in at most three points, or approve with none. Nothing is hard-coded inwake.ts; with no list the wake says so. The guidance written to the binding is the project steward's additions only.bb stewards showprintsno more pull requestswhen reported.bindings.no_more_pulls,bindings.declined_spec_objections,project_stewards.pending_notes. An old row reads as not reported, no objections, no notes.Out of scope, as the ticket says: the
.bbstanding-rules entries and the ticket-playbook "no more PRs" line, which land after servers restart onto this image.Testing
npm run typecheckinplugins/stewards: pass.npm testinplugins/stewards: pass (493 tests; the bb-plugins matrix includes stewards).bb stewards showreportingnoMorePulls.sourceSnapshotRPC in the test harness.