Repository navigation
stewards: post and honour a project-steward approval marker (BB-77) - #118
Conversation
When the project steward resolves an approval escalation for a decide:project entry, post a signed bb-approval marker on the pull request, record its comment id in the store, and wake the PR's worker (or the ticket steward when it has ended). The lane gate reads the marker only when its comment id is recorded, so a hand-typed lookalike never counts; a declined resolution posts the same marker with verdict=declined.
|
Independent review running in bb thread @thread:thr_pbdfp35teh. _— from bb thread |
Review round 1 (GLM 5.3, at 63cfba3)Owner review required: yes — this changes Blockers
Suggestions
Checked
— from bb thread thr_pbdfp35teh |
…er with no sha (BB-77 review) The recorded set dropped declined markers, so a decline at a later sha left an earlier approval's marker as the newest matching one and the gate stayed met. Keep every recorded comment id and let the newest matching marker's verdict decide. Refuse to post a marker when the head sha is not known, rather than naming an empty sha.
|
Round 1 addressed in e21f9f1.
_— from bb thread |
Review round 2 (GLM 5.3, at e21f9f1)Owner review required: yes — this changes Resolved since round 1
Suggestions
Checked
— from bb thread thr_pbdfp35teh |
|
Round 2 suggestion addressed: the PR body now carries the migration note (a pre-image The reviewer approved in the owner-reviewed lane; this now waits on trotterdylan's unsigned approval before merge. _— from bb thread |
|
Approved e21f9f1 from the Stewards page |
|
Merged: owner-reviewed, approved by trotterdylan on e21f9f1 (unsigned comment, 2026-10-27T17:51:24Z); reviewer GLM 5.3 approved e21f9f1; checks green. Any merge to merge commit 22e1ce1 _— from bb thread |
Implements BB-77.
The project steward's approval of a
decide: projectentry lived only in the plugin's store, so the worker's lane gate never saw it and the PR waited for a person. The plugin now posts a signedbb-approvalmarker on the pull request, records its comment id, and reads the marker only when the id matches, so a hand-typed lookalike never satisfies the gate. The newest matching marker's verdict decides, so a decline at a later sha revokes an earlier approval. The worker that posted "Independent review running" is woken to merge; if it has ended, the ticket steward is woken to start a fresh worker at build-tickets section 4c. A decline postsverdict=declinedand is treated as a change request.Classification
owner-reviewed: changes
prGateand the code that records a project-steward approval, whichAGENTS.mdsays is always the user's to approve.What changes
reconcile.ts: render and parse thebb-approvalmarker;prGatetakes the plugin's own records and counts a marker only when its comment id is recorded, with the newest matching marker's verdict deciding (a decline revokes an earlier approval); the survival rule covers a later head. NewreviewWorkerThread.server.ts: on an approval, post the marker, record its comment id, and wake the worker (or the steward); a decline postsverdict=declined. Every lane-gate call site passes the records, and a marker is refused when the head sha is not known.github.ts:commentreturns GitHub's node id, so the marker can be tied to the record.store.ts:project_approvalsgainscomment_idandverdict; newprojectApprovals(bindingId).wake.tsandDESIGN.md: the gate reads the records rather than head shas.Notes
project_approvalsrow written before this image has a nullcomment_idand stops counting once the image rolls, so a project-steward approval in flight at upgrade time is dropped and its pull request falls back to waiting on the owner (fail closed: there is no marker to verify). Re-approve it; the plugin asks again.Testing
npm run typecheckinplugins/stewards: pass.npm testinplugins/stewards: pass (692 tests; the plugin is in the CI matrix).node_idparse is unit-typed; the fake writer returns ids).