Repository navigation
stewards: a malformed reviewer marker closes the PR gate instead of being skipped - #89
Merged
trotterdylan merged 1 commit intoOct 26, 2026
Conversation
…eing skipped The gate read only a `bb-review` marker spelled exactly `round= sha= verdict= lane=`. On bb-plugins#88 the reviewer's round 2 was `<!-- bb-review round=2 sha=b1ca22b… changes-requested -->`, which the regex did not match, so round 1's `approved` stayed the latest marker and the plugin filed an approve-pr item asking the owner to approve a head the reviewer had just rejected. Any first line that opens a `bb-review` comment is now a round. Keys are parsed in any order; a missing `verdict=` is read from a bare word in the marker (`changes-requested`) or as `unreadable`, neither of which is `approved`; a missing `lane=` is null, which the gate treats as the owner's lane and `markerLaneChange` does not report as a lane change. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The stewards PR gate (
prGateinplugins/stewards/reconcile.ts) only recognised abb-reviewmarker spelled exactlyround= sha= verdict= lane=. Any other spelling was invisible, so the previous round's verdict stood as the latest word.That is what put a wrong "needs you" item on the Stewards page for #88: the reviewer's round 2 marker was
<!-- bb-review round=2 sha=b1ca22b… changes-requested -->(noverdict=, nolane=), the plugin kept round 1'sapproved, and asked the owner to approve b1ca22b, a head the reviewer had just rejected.Now any comment whose first line opens a
bb-reviewmarker is a round:verdict=is read from a bare word in the marker (changes-requested) or asunreadable; neither isapproved, so the gate closes and the approve-pr item is withdrawn with "reviewer verdict: changes-requested";lane=is null, which the gate treats as the owner's lane (fail closed) andmarkerLaneChangedoes not report as a lane change;round=is 0, a missingsha=is empty.Tests added in
reconcile.test.tsfor the #88 marker, an empty marker, key order, and the lane-change rule. DESIGN.md's gate paragraph records the rule.Classification
No-review lane: a narrow bug fix that makes the gate do what it was already meant to do (fail closed on anything but a well-formed
verdict=approved), insideplugins/stewardsonly. No contract, config or default changes.Testing
Shipping
Merging moves the
bb-pluginspin and builds a newbb-serverimage, staging a restart on every developer's server (Restart now, or the 03:00 to 05:00 US Eastern quiet window).🤖 Generated with Claude Code