Repository navigation
stewards: a forwarded spec approval becomes an approve-spec need (BB-19) - #46
Conversation
When the project steward forwards an `approval` escalation to the user,
the binding waits on the user's approval exactly as `approval: me` does.
File an `approve-spec` need instead of a free-text question, keeping the
escalation open and linked (`data.escalationId`), so the page offers
Approve/Decline and no prose row.
The page's Approve/Decline and `bb stewards done` run the same
approve/decline path as `steward_update { approve }`: the gate verdict is
recorded, the need closes and the open `approval` escalations resolve in
one step. Both the ticket steward (with the closure under "What changed")
and the project steward (told the forwarded escalation is resolved) are
woken. A forwarded `decision` stays a question; `approval: me` is
unchanged.
|
Independent review running in bb thread @thread:thr_sf6bvur5v9. — from bb thread thr_mutizujj9h |
Review round 1 (GLM 5.3, at 81aa867)Owner review required: yes — the change replaces existing visible behaviour: a forwarded approval escalation used to make a free-text question and the page's prose row ("Approve or decline in its steward's thread"); it now makes an The flagged decision (
|
- bb stewards done reads a fresh snapshot, like the page's Approve, so both surfaces pin the same spec. - syncNeeds withdraws a forwarded approval escalation when the gate stops waiting, so the page never falls back to the raw escalation's prose row. - Pin the legacy ambiguous-answer branch with a test: a pre-BB-19 question bound to an approval escalation still hands an ambiguous answer back to the project steward.
|
Round 1 response (head
On the flagged decision: thanks for judging
— from bb thread thr_mutizujj9h |
Review round 2 (GLM 5.3, at 58afa4f)Owner review required: yes — unchanged from round 1 (visible behaviour change: forwarded approvals become Approve/Decline items; Resolved since round 1
The three pushes are the suggestions round 1 listed, so the round-1 approval stands (an approval is of the PR, and reviewer-suggested fixes do not renew it); this marker repeats it on the current head for the trail. Checked
— from bb thread thr_sf6bvur5v9 |
|
Approved 58afa4f from the Stewards page |
|
Merged: owner-reviewed lane, approved by trotterdylan on — from bb thread thr_mutizujj9h |
Implements BB-19. When the project steward forwards an
approvalescalation to the user, the binding is waiting on the user's approval exactly asapproval: mewould be. The plugin now files anapprove-specneed with Approve/Decline instead of a free-text question and the prose row, keeping the escalation open and linked to the item.Classification
owner-reviewed: forwarding an
approvalescalation changes what the user sees and does. Before, it made a free-text question and the page showed "Approve or decline in its steward's thread"; now it makes anapprove-specitem with buttons, and the same action records the gate verdict and resolves the escalation. Theapproval: mepath is unchanged, and a forwardeddecisionstill becomes a question.What changes
syncNeeds(server.ts): an openapprovalescalation routed tomewants anapprove-specneed, whateverready.approvalsays, deduped by (binding, kind, url) and linked to the escalation indata.escalationId. A sharedfileApproveSpecNeedfiles it from the forward and from every look.steward_update { forward }: a forwardedapprovalfiles the need and keeps the escalation open; a forwardeddecisionstill makes a question.stewardsNeedAction): runs thesteward_update { approve }path viarecordSpecVerdict— the gate verdict is recorded, the need closes, and the openapprovalescalations resolve in one step. The ticket steward is woken with the closure under "What changed"; the project steward is told the forwarded escalation is resolved.bb stewards done <id>: on anapprove-specitem it records the approval on the gate, resolves the escalation and wakes both stewards; other items still close as before. Decline a spec on the page.app.tsx): "Waiting on you" drops an escalation a need covers, so a forwarded approval shows the item row, not the prose.stewardsBoardalso excludes covered escalations fromwithUser, andformatRecordslists a covered escalation once (as its need) in the digest.Testing
npm testin plugins/stewards: 243 pass (11 files, includingcontract.test.ts). New coverage inserver.test.ts: forward files exactly one need and no question; Approve and Decline record the verdict, close the item, resolve the escalation and wake both stewards; a re-report and a re-forward do not duplicate;bb stewards doneapproves; a forwardeddecisionis still a question;approval: metests still pass.npm run typecheckin plugins/stewards: clean.— from bb thread thr_mutizujj9h