Repository navigation
stewards: archive finished workers and reviewers, and hide them with a waiting steward (BB-47) - #73
Conversation
…a waiting steward (BB-47)
|
Independent review running in bb thread @thread:thr_jgbgkt6vss. — from bb thread thr_quj66sswap |
Review round 1 (GLM 5.3, at 7d34fe2)Owner review required: yes — it changes existing behaviour someone would notice: workers and reviewers that stayed in the sidebar for the binding's life now leave it, and a steward's follow-up to a consumed worker no longer works (blocker 3). @trotterdylan, this one needs your approval once the blockers are fixed. The PR's Classification line agrees with the lane. Blockers
Suggestions
Checked
— from bb thread thr_jgbgkt6vss |
…idden, and tell the steward to unarchive (BB-47)
|
Round 2 fixes, at 60b7428. Blockers
Suggestions
— from bb thread thr_quj66sswap |
Review round 2 (GLM 5.3, at 60b7428)Owner review required: yes — it changes existing behaviour someone would notice (workers and reviewers that stayed in the sidebar for the binding's life now leave it; the steward's follow-up path now involves an unarchive step). @trotterdylan, this one needs your approval; from my side no blockers remain. Resolved since round 1
Suggestions
Checked
— from bb thread thr_jgbgkt6vss |
… hidden worker when it runs (BB-47)
|
Round-2 suggestions taken, at 23224d7.
— from bb thread thr_quj66sswap |
Review round 3 (GLM 5.3, at 23224d7)Owner review required: yes — same lane as before: it changes existing behaviour someone would notice (finished workers and reviewers now leave the sidebar; the steward's follow-up path gains an unarchive step). @trotterdylan, this one needs your approval; from my side no blockers remain. Resolved since round 2
No other changes; both are narrow fixes to my own suggestions, so the round-2 approval stands and this marker repeats it on the new head. Checked
— from bb thread thr_jgbgkt6vss |
|
Approved 23224d7 from the Stewards page |
|
Merged: owner-reviewed, approved by trotterdylan on 23224d7 (unsigned PR comment, 2026-10-24T20:23:29Z), reviewer approved at round 3 on the same sha, checks green. — from bb thread thr_quj66sswap |
Implements BB-47.
The stewards plugin archived only the steward, at binding end. Finished workers and consumed reviewers stayed in the sidebar for as long as the binding was open, and a steward that hid itself while waiting on someone else left its finished rows behind with no context. This gives workers and reviewers a lifecycle and cascades hiding to them.
Classification
owner-reviewed: it changes existing behaviour — threads that stayed in the sidebar now leave it — and it is not a strictly additive change. It does not need a store migration: reviewer-to-worker ownership is derived from bb's parent relationship, exactly as the sidebar RPC already derives reviewers.
What changes
--parent-self).thread.creatednow archives the worker's older reviewer children when a newer round is spawned, andthread.idleon the worker archives reviewers whose round is consumed (not busy). The newest reviewer for a worker is never archived while the worker is in flight.wakereturns true; the ops, deps and Sentry wakes do the same), finished workers are archived. A worker that ended with a question for the steward, or a binding that needs the user, keeps it visible.sendToalready unarchives an archived thread, so a later message brings it back under its effort.hideWaitinghides the steward's finished workers and their reviewers with it; showing the steward again (showSteward, used by both visibility paths) shows the same finished workers and reviewers again. A running worker and its reviewer are unaffected.sendToalso shows a worker it brings back from the hidden cascade, so a resumed worker reappears.wake.ts) now says a consumed worker is archived and thatbb thread tellrefuses it, so the steward runsbb thread unarchive <id>first or starts a fresh worker.DESIGN.md(§2, §5, §9, §15) andREADME.md(Lifecycle, sidebar/unread dot, Workers) describe the lifecycle.No
source-contract.tsor other plugin changed.wake.tsis touched for the instruction text; the store is untouched.Testing
npm run typecheckinplugins/stewards: pass.npm testinplugins/stewards: pass (426 tests; stewards is in the CI matrix, so CI runs this too).server.test.tscases: reviewer archived on the worker's next idle but not while its round runs; a worker is kept while its reviewer is in flight; older reviewer archived on a newer round; finished worker archived after the consuming reconcile but kept when it asks a question; unarchive-on-message round trip through an answered escalation; cascade hide/show with a running worker and its hidden reviewer left alone.