Repository navigation
stewards: a fixed follow-up ladder with a learned Slack mapping (BB-358) - #396
Conversation
Rung 1 (the comment) is unchanged. Rung 2 (the Slack DM on the owner's
click) now resolves the person in order: the mapping this server learned
from an earlier answer, the roles.json `slack` field (kept accepted,
de-recommended), the source's email, then an exact GitHub login or Linear
name; a fuzzy match never sends. When nothing resolves, the tool's near
matches reopen the need as an ask-once question with the candidates and
Not on Slack; the owner's pick records login/Linear id -> Slack user id in
the store, and `bb stewards show`/`bb stewards forget-person` read and
clear it. Rung 3 is the terminal need ("... has not answered on <PR or
ticket> or Slack since <date>: reach them yourself"), filed immediately
when the Slack rung is skipped and after a further budget when a DM went
unanswered. One DM per person per steward per day, hard-coded. No email is
persisted, logged or displayed. Degrades against a hooks without the email
form or candidates.
|
Independent review running in bb thread @thread:thr_6z54vcjvwq. — from bb thread thr_ctmdfan6gs |
Review round 1 (GLM-5.3, at cb4238e)Owner review required: yes — it changes who a plugin-side DM is routed to (the learned mapping and the not-on-Slack skip decide the recipient) and reshapes BB-354's resolution order and fallback; the approved spec's limit names the owner for both PRs. @trotterdylan, this one needs your approval. The escalation is binding: a project-steward Blockers
Tested
— from bb thread thr_6z54vcjvwq |
Round 1 review: store the person's label on the rung-2 need so the ask-once question and the Not-on-Slack terminal need name the person, and keep the BB-354 generic second-budget wording when a wait has no person to DM (a non-delegate person wait, or the owner's own review).
|
Round 1 addressed in e8cf96f.
— from bb thread thr_ctmdfan6gs |
Review round 2 (GLM-5.3, at e8cf96f)Owner review required: yes — it changes who a plugin-side DM is routed to (the learned mapping and the not-on-Slack skip decide the recipient) and reshapes BB-354's resolution order and fallback; the approved spec's limit names the owner for both PRs. @trotterdylan, this one needs your approval. The escalation is binding: a project-steward Resolved since round 1
Tested
— from bb thread thr_6z54vcjvwq |
|
Approved e8cf96f from the Stewards page |
|
Merged: owner-reviewed lane, reviewer approved e8cf96f, checks green, approved by the owner, escalated by the reviewer to the owner. |
Implements BB-358. A steward waiting on a person now follows one fixed ladder: the comment where the wait lives (unchanged), the Slack DM on the owner's click, then a terminal need asking the owner to reach the person. The Slack rung resolves the person from a mapping this server learned, the
roles.jsonslackfield (kept, de-recommended), the source's email, then an exact login or name; a fuzzy match never sends. When nothing resolves, the tool's near matches become an ask-once question with Not on Slack, and the owner's pick is remembered.bb stewards showlists the mappings andbb stewards forget-person <login>clears one. No email is ever persisted, logged or displayed.Sibling PR: bitcomplete/bb-gate#202 (hooks email lookup and
candidates), merged.Classification
owner-reviewed: it changes who a plugin-side DM is routed to and changes BB-354's resolution order and fallback; the reviewer escalates with
approver=owner.What changes
wait-slack.ts/.test.ts: the ordered resolution (learned mapping,roles.jsonfield, email, exact login/name), the learned-mapping transitions, the ask-once question and choices, and the rung-3 wording.store.ts+migrations.snapshot.json+store.test.ts: an append-onlylearned_slacktable (login/Linear id -> Slack user id, or not-on-slack; no email) and aslack_dmslog for the per-person-per-steward-per-day cap;show/forget-personread and clear it.server.ts/.test.ts: the ladder in the reconcile (rung 2 offer, ask-once fallback, rung 3 terminal need filed immediately when the Slack rung is skipped and after a further budget with no reply), the owner's near-match pick records the mapping and sends, Not on Slack skips the rung, and thebb stewards show/forget-personCLI.templates.ts,skills/stewards/SKILL.md: the fixed DM wording (names the owner's bb, the PR or ticket with a link, since when, asks for a reply in the thread, never assigns) and the rung-3 phrasing.Testing
cd plugins/stewards && npm install --include=dev --legacy-peer-deps --no-audit --no-fund && npm run typecheck && npm test: pass (2113 tests, +13 for BB-358; not in the CI plugin matrix).npx tsc --noEmit: pass.wait-slack.test.ts); the rung-3 filing after a further budget and immediately on a skip, the ask-once reopen and pick, the cap per person per steward, andshow/forget-person(server.test.ts); the migration snapshot (migrations.test.ts).