Skip to content

stewards: a malformed reviewer marker closes the PR gate instead of being skipped - #89

Merged
trotterdylan merged 1 commit into
mainfrom
bb/this-needs-you-item-is-for-a-pr-that-hasn-t-rece-thr_ggtznmzhyh
Oct 26, 2026
Merged

trotterdylan merged 1 commit into
mainfrom
bb/this-needs-you-item-is-for-a-pr-that-hasn-t-rece-thr_ggtznmzhyh

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

What

The stewards PR gate (prGate in plugins/stewards/reconcile.ts) only recognised a bb-review marker spelled exactly round= 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 --> (no verdict=, no lane=), the plugin kept round 1's approved, and asked the owner to approve b1ca22b, a head the reviewer had just rejected.

Now any comment whose first line opens a bb-review marker is 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 is approved, so the gate closes and the approve-pr item is withdrawn with "reviewer verdict: changes-requested";
  • a missing lane= is null, which the gate treats as the owner's lane (fail closed) and markerLaneChange does not report as a lane change;
  • a missing or bad round= is 0, a missing sha= is empty.

Tests added in reconcile.test.ts for 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), inside plugins/stewards only. No contract, config or default changes.

Testing

cd plugins/stewards && npm run typecheck && npm test   # 18 files, 523 tests pass

Shipping

Merging moves the bb-plugins pin and builds a new bb-server image, 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

…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>
@trotterdylan
trotterdylan merged commit 7458a5e into main Oct 26, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant