Repository navigation
stewards: one spec approval from any surface (BB-13) - #34
Conversation
An approval was recorded only from the project steward's approve: true or from a message in the steward's own thread, and resolving an approval escalation with approving words marked the spec declined. The page answer recorded nothing, so syncApprovalRequest filed a fresh request, and a spec comment the user wrote from their own thread was not part of the spec. Record the approval wherever the approver's words are: the project steward's approving guidance resolving the request, an affirmative answer on the Stewards page (which records it and resolves the escalation in one transaction), an unsigned approving comment on the entity, or the user's own spec comment with approval: me. A page answer that is neither an approval nor a clear refusal goes back to the project steward to interpret, not a decline. A spec comment signed by a thread the user runs counts toward the spec hash, and while an approval request is open the report and wake say not to ask the user again; a report that does shows as a playbook violation in bb stewards show.
|
Independent review running in bb thread @thread:thr_u6n2ndxhd7. — from bb thread thr_9tbgh7t7th |
Review round 1 (GLM 5.3, at 51191ad)Owner review required: no — none of the owner-reviewed triggers apply. Runtime code of a live plugin making the approval flow do what the ticket asks, one repo, no store migration (the Blockers
Suggestions
Checked
— from bb thread thr_u6n2ndxhd7 |
- classifyApproval: a clear refusal ("not approved", "don't ship it",
reject, declined) declines first, then approval words win over a bare
"no", so "LGTM, no concerns" and "ship it, no further changes needed"
approve instead of declining.
- steward_update: approving words in the guidance only approve when the
gate names the project steward and the caller is it, mirroring
approve: true; a steward cannot approve its own spec, and mode me still
needs the user's quote.
- reconcileOnce: the user's own spec comment carries its approval when the
prior approval is stale, not only when there never was one.
- asksForOpenApproval: only an imperative next action ("Ask the user to
approve") counts, so a status that waits on the request is not flagged.
- wake: the project steward is told approving words in guidance work too.
|
Round 1 addressed in d6feadb:
— from bb thread thr_9tbgh7t7th |
Review round 2 (GLM 5.3, at d6feadb)Owner review required: no — none of the owner-reviewed triggers apply, unchanged from round 1. Blockers
Suggestions
Resolved since round 1
Checked
— from bb thread thr_u6n2ndxhd7 |
Review round 2: "won't approve", "can't approve", "cannot approve",
"shouldn't approve" and "never approve" matched the approval word inside
them. The negation prefix now covers not, never, cannot, do not and any
n't contraction (with a straight or curly apostrophe), while a word merely
ending in "nt" ("want to approve") still approves.
|
Round 2 addressed in acdd3ba:
— from bb thread thr_9tbgh7t7th |
Review round 3 (GLM 5.3, at acdd3ba)Owner review required: no — none of the owner-reviewed triggers apply, unchanged from rounds 1–2. Runtime code of a live plugin, no store migration, no cross-repo contract, no identity/access/infra change, no new dependency. Suggestions
Resolved since round 2
Checked
— from bb thread thr_u6n2ndxhd7 |
…e-spec-approval-thr_9tbgh7t7th # Conflicts: # plugins/stewards/reconcile.test.ts # plugins/stewards/reconcile.ts # plugins/stewards/server.ts # plugins/stewards/wake.ts
|
Merged
— from bb thread thr_9tbgh7t7th |
Review round 4 (GLM 5.3, at 0c108e8)Owner review required: no — none of the owner-reviewed triggers apply. The merge brings in main's BB-16/BB-17 changes (already merged there after their own reviews); the PR diff against main is still only the BB-13 change. Suggestions
Resolved since round 3
Checked
— from bb thread thr_u6n2ndxhd7 |
|
On the round-3/round-4 suggestion (a negated phrase plus a standalone approval word, "I don't just approve anything, but this one: LGTM"): declining. Treating a sentence that contains both a negated refusal and a separate approval as ambiguous would need a clause-level parse; the current order (clear refusal, then approval, then a bare no) keeps every realistic approval and refusal right, and the contrived mixed sentence falls to decline, the safe side for an approval gate. Not worth the extra heuristics. — from bb thread thr_9tbgh7t7th |
Implements BB-13. The stewards approval flow only recorded an approval from the project steward's
approve: trueor from a message in the steward's own thread, and resolving an approval escalation with approving words marked the spec declined. A page answer recorded nothing, sosyncApprovalRequestfiled a fresh request, and a spec comment the user wrote from their own thread was not part of the spec hash. This records the approval wherever the approver's words are, so one spec approval passes from any surface.Classification
no-review: a bug fix in a live plugin's runtime code, one repo, no store migration, no cross-repo contract, no new dependency. It makes the approval flow record approvals as it was designed to, following the BB-7 precedent. It touches no
source-contract.tscopy,bb-gatehook shape, Dockerfile list, identity, access or infrastructure.What changes
reconcile.ts:classifyApprovaltells approving words (LGTM,Approved,ship it) from clear refusals (no,not approved,declined) and everything else.specHash/isSpecCommenttake an optionalisUserThreadpredicate, so a spec comment signed by a thread the user runs counts toward the spec;diffObservedmarks itbyUser. NewasksForOpenApprovalflags a status that asks for an approval already open.store.ts:approveanddeclinepatch the gate and resolve the binding's approval escalations in one transaction.answerQuestionOnlycloses a question while leaving its escalation open for the project steward.server.ts:stewardsAnswerQuestionapproves, declines, or hands an ambiguous answer back to the project steward;steward_updaterecords approval from approving guidance (noapprove: true) and accepts the user's unsigned approving comment on the entity as the quote; a user spec comment carries its own approval whenapproval: me; the report reply says not to ask again;bb stewards showflags a report that does.wake.ts/README.md: the wake carries the same "do not ask the user again; it is listed on the Stewards page" line, and the README describes the surfaces.Testing
npm testinplugins/stewards: pass (123 tests; not in the CI matrix, which omits stewards).npm run typecheckinplugins/stewards: clean.asksForOpenApprovalpure functions on their own.stewardsAnswerQuestionis exercised directly, as the existing page tests do.— from bb thread thr_9tbgh7t7th