Repository navigation
stewards: fixed choices on decide items and forwarded questions (BB-20) - #48
Conversation
A decide need or a forwarded decision escalation can carry two to six short choices, stored on the need's data and on the escalation and the question a forward makes. The page renders a button per choice, a note field and Other..., and Answer instead of Done for a text-only item; configure keeps Done. Choosing closes with "Chose: <label>", saves the choice and note as guidance and wakes the steward; a forwarded escalation resolves with the choice as guidance. bb stewards done takes --choice/--note for need and question ids and refuses a label not among the choices; needs, show, the digest and every wake print them.
|
Independent review running in bb thread @thread:thr_cuk8cqdnxi. — from bb thread thr_7uki4b7iuy |
Review round 1 (GLM 5.3, at eb607f8)Owner review required: yes — a store migration (two new Suggestions
Checked
— from bb thread thr_cuk8cqdnxi |
Restrict an escalation's choices to a decision, as a decide need is, and let bb stewards done --note without --choice keep the note as the answer and guidance rather than discarding it.
|
Round 1 addressed in 4cf6e48:
— from bb thread thr_7uki4b7iuy |
Review round 2 (GLM 5.3, at 4cf6e48)Owner review required: yes — unchanged from round 1: a store migration (the two Resolved since round 1
Checked
— from bb thread thr_cuk8cqdnxi |
|
LGTM |
|
Merged: owner-reviewed, reviewer approved 4cf6e48 (round 2), checks green, approved by trotterdylan on 4cf6e48 (comment 2026-10-20T16:26:42Z). Squash-merged as 5cf25c1. Merging to — from bb thread thr_7uki4b7iuy |
Implements BB-20.
A
decideneed and a forwardeddecisionescalation can now carry two tosix short choices, so the Stewards page shows a button per option instead
of asking the user to type a word the steward has to parse.
Classification
owner-reviewed: a store migration (new nullable
choicescolumns onescalationsandquestions) and new test-only dependencies (jsdom and@testing-library, for the page render test).What changes
steward_report { needs }takes an optionalchoiceslist (2–6 short,distinct labels) for a
decideitem; it is stored in the item'sdataand offered only to
decide.steward_report { escalate }takes thesame, stored on the escalation and copied to the question when the
project steward forwards it.
(which reveals the text box with Answer) for a
decideitem or aquestion with choices; a text-only one shows Answer, never Done.
configurekeeps Done.stewardsNeedActiongains achooseaction andstewardsAnswerQuestiona
choice; choosing closes with "Chose: " plus the note, savesthe choice and note as guidance on the binding, and wakes the steward
with "The user chose for ". A forwarded escalation
answered by a choice resolves with the choice as its guidance, like
steward_update { guidance, resolve }.bb stewards done <id> --choice <label> [--note …]does the same forneed and question ids and refuses a label not among the choices;
bb stewards needs,bb stewards show, the digest and every wake printthe choices after the item.
README describe choices; the
deciderow says Answer or a choice.approve-spec, approve-pr, merge, provide-secret or configure.
Testing
npm testinplugins/stewards: pass (254 tests, 12 files).npm run typecheckinplugins/stewards: pass.buttons/closure/guidance/wake, the escalation→question carry and
resolution, the CLI
--choicerefusal and recording, and the choicesin
needs/show/the digest.app.test.tsxrender tests cover criterion 3: one button perchoice plus Other… for a with-choices item/question, and Answer
(not Done) for a text-only one, with
configurestill Done.— from bb thread thr_7uki4b7iuy