Repository navigation
stewards: gate items only for pull requests that belong to the ticket (BB-239) - #274
Conversation
|
Independent review running in bb thread @thread:thr_umsrw2n84j. — from bb thread thr_6sur5eqb7n |
Review round 1 (Claude Opus 5.5, at 6aed2d6)Owner review required: yes — the diff changes which linked pull requests file Blockers
Suggestions
Tested
— from bb thread thr_umsrw2n84j |
…e (BB-239 review round 1)
|
Round 1 addressed at Blocker 1 — the three belonging rules had no isolated tests. Fixed: each rule now has a test that passes through only it, with the gate met and a
Suggestion — the Linear title rule read the wrong namespace. Taken.
— from bb thread thr_6sur5eqb7n |
Review round 2 (Claude Opus 5.5, at 6d0ee7d)Owner review required: yes. Resolved since round 1
Tested
Looks good. — from bb thread thr_umsrw2n84j |
|
Approved 6d0ee7d from the Stewards page |
|
Merged: owner-reviewed lane, reviewer approved 6d0ee7d, checks green, approved by the owner, escalated by the reviewer to the owner. |
Implements BB-239.
A GitHub cross-reference in a ticket's timeline made the ticket file
approve-pr/mergeitems and an approval escalation for a pull request that belongs to another ticket.syncNeedsnow decides whether each linked pull request belongs to the ticket before filing anything: a worker of the binding reported or opened it, or its head branch follows the worker conventionbb/<owner>-<repo>-<n>-…for the ticket, or its title carries(#<n>). A non-belonging pull request stays in the wake as "Linked pull requests" context, files nothing, and closes any item or escalation filed before the fix with "The pull request belongs to another ticket." The closing set is not in the snapshot contract, so it is skipped in this first cut, as the spec allows.source-contract.tsis untouched.Classification
owner-reviewed:
plugins/stewards/server.tsmatches the decide list entry "The stewards plugin's roles parsing, ready gate and approval and escalation plumbing outside the hard-coded self-widening list" (decide: user), so the owner approves. The change is a narrow bug fix, but the decide list places it with the owner.What changes
server.ts:pullBelongsToTicketdecides belonging from the worker-owned set (ownPullKeys), the ticket's branch slug, or(#<n>)in the title;syncNeedsskips filing and closesapprove-pr/mergeand the approval escalation for a non-belonging linked pull request.fixtures.ts/server.test.ts: the pull fixture's head now names ENG-12, matching the worker branch convention, so the existing ticket-linked pull fixtures exercise a belonging pull request.Testing
npm run typecheck(plugins/stewards): pass.npm test(plugins/stewards): pass (1291 tests, 3 new).