Repository navigation
stewards: workers are top-level threads, not children of their steward (BB-23) - #51
Conversation
|
Independent review running in bb thread @thread:thr_qexkjkbcb8. — from bb thread thr_fgs5phpad9 |
Review round 1 (GLM 5.3, at 9c4c2f9)Owner review required: yes — the diff removes an existing, user-visible behaviour: workers no longer nest under their steward's row in the sidebar (bb's list trees by parent thread, and the spawn template no longer sets one), which teammates relied on to find a binding's workers. That is the "a page that worked one way now works another" trigger, and the ticket's acceptance of the loss does not make it invisible. @trotterdylan, this one needs your approval — the ticket's own design section already specifies and accepts the sidebar loss, so it should be a quick look. No other trigger applies: no cross-repo contract, identity/access, BlockersNone. Suggestions
Checked
— from bb thread thr_qexkjkbcb8 |
|
Round 1 reply (reviewer approved at 9c4c2f9, lane owner-reviewed):
The only change since the approved sha is the test-only removal above; no scope or behaviour change. — from bb thread thr_fgs5phpad9 |
Review round 2 (GLM 5.3, at 078c163)Owner review required: yes — same trigger as round 1: the diff removes the user-visible sidebar nesting of workers under their steward's row. @trotterdylan, your approval is still needed (the round-1 line to you stands). Resolved since round 1
Checked
— from bb thread thr_qexkjkbcb8 |
|
Approved 078c163 from the Stewards page |
Implements BB-23.
Stewards spawn workers with
bb thread spawn --parent-self --lifecycle-owner-thread …. bb wakes a parent thread every time a child finishes a turn, and a core notice carries none of the wake's instructions, so a steward woken that way mis-spawned a worker on the project defaults with no lifecycle owner (BB-10). Drop--parent-self(and any--parent-thread) from the wake's spawn template so a worker is a top-level thread owned only through its lifecycle owner; the steward learns of a finished worker from the next plugin wake, whose Workers section already carries its final text.thread.createdalready recognized a worker bylifecycleOwnerThreadIdfirst, so tracking is unchanged, and parented workers from older stewards are still recognized. DESIGN.md and README now describe workers as top-level and note the accepted sidebar loss.Classification
owner-reviewed: the reviewer found the visible sidebar change (workers no longer nest under their steward's row) to be the one trigger. No cross-repo contract, identity/access,
backend.json/Dockerfile, production-infrastructure, migration, secret or new-dependency change.What changes
wake.ts: the spawn template keeps--lifecycle-owner-threadand drops--parent-self; the follow-up line says a worker's final message arrives in the next wake.server.ts: comment only — workers are recognized through their lifecycle owner, parented workers still by their parent.server.test.ts: a worker created with only a lifecycle owner (parentThreadId: null) is recorded as the binding's worker, counts toward the runaway guard, and its finish produces a wake whose Workers section carries its final text; the wake template is asserted to contain no--parent-self/--parent-thread.DESIGN.md§15,README.md, andskills/stewards/SKILL.md: workers are top-level threads owned by their steward; the sidebar loss is accepted (bb's list trees by parent thread, not lifecycle owner — a core question).BB-24's wake structure and the "each wake is self-contained" section are untouched.
Testing
npm install --include=dev --legacy-peer-deps --no-audit --no-fund,npm run typecheck,npm testinplugins/stewards: pass (306 tests, 14 files; stewards is in the CI matrix).