Repository navigation
stewards: one escalation chain, worker → steward → project steward → user (BB-30) - #55
Conversation
|
Independent review running in bb thread @thread:thr_cewrhv4df3. — from bb thread thr_us83nzrcjm |
Review round 1 (GLM 5.3, at 39f12c9)Owner review required: yes — it changes and removes existing behaviour (the I read the acceptance criteria and the six approval limits from the ticket; the Blockers
Suggestions
Checked
— from bb thread thr_cewrhv4df3 |
|
Round 1 addressed in 6977b14. Blockers
Suggestions (taken unless noted)
— from bb thread thr_us83nzrcjm |
Review round 2 (GLM 5.3, at 6977b14)Owner review required: yes — unchanged from round 1 (existing behaviour removed/reshaped, a store migration, and it is the code the no-self-widening rule names). I diffed 6977b14 against 39f12c9, re-ran the suite, and re-traced the Blockers
Suggestions
Resolved since round 1
Checked
— from bb thread thr_cewrhv4df3 |
|
Round 2 addressed in f474afe. Blocker 1 (remaining half): the covering subqueries now count every open question, whatever its resolution, so the Suggestions taken:
— from bb thread thr_us83nzrcjm |
Review round 3 (GLM 5.3, at f474afe)Owner review required: yes — unchanged from rounds 1–2 (existing behaviour removed/reshaped, a store migration, and it is the code the no-self-widening rule names). @trotterdylan, this one is ready for your approval. I diffed f474afe against 6977b14, re-traced the Suggestions
Resolved since round 2
Checked
— from bb thread thr_cewrhv4df3 |
|
Round 3 suggestions in 2843ae9:
The round-3 approval stands (f474afe); this is a follow-up the review asked for. 340 tests and typecheck pass on 2843ae9. — from bb thread thr_us83nzrcjm |
|
LGTM |
Implements BB-30.
Classification
owner-reviewed: it changes existing behaviour (the
questionsand steward-filedneedstables, theask/forward/needstools, the owner-reviewed lane andprGate), it includes a store migration, and it changes the code the decide list's no-self-widening rule names. The reviewer decides the lane.What changes
escalationsgains the envelope (project_id,origin,chain,resolution_kind,url,data,answered_by,forwarded_from,head_sha) and the human-boundary fields.questionsand the steward-fileddecide/configure/provide-secretneeds migrate into it; the old tables are renamedquestions_legacyandneeds_legacy(never dropped), and the plugin-filed gate items (approve-spec,approve-pr,merge) stay in a rebuiltneedstable.stewards/project.jsonbigDecisionsentries are markeddecide: project | userwithpaths; a bare string, an unknown mark, a pull request whose files cannot be read, one that matches noprojectentry path, or a change to the list,bigDecisions,prGateor the approval code is the user's (decisions.ts, no self-widening, matching both workspace- and repo-relative paths).approve-declineescalation to the project steward. It approves aprojectentry withsteward_update { binding, approve, entry }, recording a store-only approval bound to the head sha (a new push voids it, and only the project steward's thread may record one); auserentry is forwarded to the page and satisfied only by the user's unsigned GitHub approval.bb thread tellfor a worker, a wake for a steward). The forward path records each hop. New CLIbb stewards escalate.steward_report { needs }refusesdecide,configureandprovide-secret, pointing atescalate;askand a user-boundforwardrequire aresolution. A resolve prompts for a lesson. DESIGN.md §10/§12/§18, README and the stewards skill describe the one chain.Testing
npm run typecheckin plugins/stewards: pass.npm testin plugins/stewards: pass (340 tests;stewardsis in the CI matrix, and CI runs both).decisions.test.ts(decide list fails closed, self-widening for workspace- and repo-relative paths, unreadable files, entry-path matching), the migration fixture instore.test.ts(questions and each steward-filed need kind carried with answers, old tables renamed), originator-delivery tests instore.test.ts,prGateproject/user/unknown-lane tests inreconcile.test.ts, and server tests for the project-steward approval, the secret/done forward rendering, the page Done button,bb stewards escalate, the required resolution, and a worker-raised escalation forwarded two hops and answered on the page..bbdecide list itself is reviewed in the companion.bbguidance branchguidance-thr_us83nzrcjm(commit 4cf0e0d); the.bbrepo has no GitHub remote here.Round 1 review fixes: the secret/done forward now renders as the page's provide-secret item; the page Done button closes configure/provide-secret escalations; the self-widening guard matches repo-relative GitHub filenames; unreadable files fail closed;
ask/forwardrequire a resolution; the forward path records hops and the two-hop test is in; resolve prompts for a lesson; the wake's lane gate reads the project-steward approval.