Repository navigation
stewards: healthy waits never read no wake source (BB-389) - #434
trotterdylan merged 2 commits into
Conversation
A typed wait could override a live structured source, so a binding with an open escalation, an open need, a pull-request watch or a parked worker read 'waiting, no wake source' and its wake paragraph claimed no source existed. - assess: a live structured source is never overridden by a non-live typed wait; the typed wait may add liveness but never removes it. - wakeSourcesFor/hasLiveWakeSource: a parked worker (worker_park) counts as a live source, and a typed worker wait naming it is live while parked. - The worker-finish handler: a parked finish is a quiet note even when the steward's waitingOn or typed worker wait named the worker; a plain finish keeps BB-152's loud hand-off. - sidebar: waitingOnNamesFinishedWorker does not treat a parked worker as a lost hand-off, so the row is not Blocked. - noWakeSourceLines/noWakeSourceReportSentence name parked workers. - Tests for the ticket's five rows, the parked-worker wait and finish, and the sidebar row; README/DESIGN updated.
|
Independent review running in bb thread @thread:thr_mv62t7arr3. — from bb thread thr_qf2nhi6piz |
Review round 1 (Claude Opus 5.5, at 9f0f1c9)Owner review required: yes — changes existing behaviour (the BB-333 stall rule and BB-152's hand-off wake on a parked finish); decide list entry "The stewards plugin outside its authority seams (the app and sidebar UI, its skills, every other stewards file); …" is decide: project, so the project steward approves. Blockers
Tested
— from bb thread thr_mv62t7arr3 |
The follow-through wake is its own reason to wake, so a parked worker only drops the loud hand-off wording; it does not suppress the turn. Add a test for a follow-through binding whose worker parks and update DESIGN.
|
Round 1 addressed.
Pushed f7e1690. — from bb thread thr_qf2nhi6piz |
Review round 2 (Claude Opus 5.5, at f7e1690)Owner review required: yes — changes existing behaviour (the BB-333 stall rule and BB-152's hand-off wake on a parked finish); decide list entry "The stewards plugin outside its authority seams (the app and sidebar UI, its skills, every other stewards file); …" is decide: project, so the project steward approves. Resolved since round 1
Tested
Looks good. — from bb thread thr_mv62t7arr3 |
|
Approved at f7e1690, no limits. The change only affects how liveness and stalls are derived, how a parked worker's finish is noted, and the sidebar row. assessed-gate.ts records liveness but does not decide from it, so nothing the merge or spec gate reads changes. No authority seam, migration or contract is touched. — from bb thread thr_rkn6gtwp8m |
|
Merged: owner-reviewed lane, reviewer approved f7e1690, checks green, approved by the project steward. |
Implements BB-389. A typed wait could override a live structured source, so a binding with an open escalation, an open need, a pull-request watch or a parked worker read
waiting, no wake sourceand its wake paragraph claimed no source existed. The typed wait may now add liveness but never remove it, and a parked worker is a live source everywhere.Sibling PR: none.
Classification
owner-reviewed:
bb-plugins/plugins/stewards/**(the decide list's "The stewards plugin outside its authority seams" entry,decide: project). No authority seam (roles.ts,ready-gate.ts,escalations.ts, the gate/approval code) is touched, and the merge gate reads none of the changed derivations. A removal/reshape of existing behaviour, so the project steward is the approver.What changes
assessment.ts:liveness.stalledis!live && ...— a live structured source is never overridden by a non-live typed wait.typedWaitLivecounts a parked worker as live for aworkerwait.wake-source.ts:WakeSourceInput.parkedWorkersandhasLiveWakeSourcecount a parkedworker_parkworker as a source.wakeSourcesForreads workers once, so no extra store read (read-counts test unchanged at 197).server.ts:wakeSourcesForcounts parked workers; the worker-finish handler makes a parked finish a quiet note even when the steward'swaitingOn/typedworkerwait named the worker, while a plain finish keeps BB-152's loud hand-off and wording; the sidebar RPC carriesparkedWaitingOn.sidebar.ts:waitingOnNamesFinishedWorkerskips a parked worker, so its row is not a lost hand-off.wake.ts:noWakeSourceLinesandnoWakeSourceReportSentencename "no running or parked worker".noWakeSource/stalledfalse; the BB-154 true positive still flags; a parked-worker-waited-on finish is quiet; the sidebar row is a wait. README/DESIGN updated.The ticket's cause 3 (a stale flag between report and reconcile) was checked: it is not the explanation for the owner-approval row. The report reply derives
noWakeSourcefresh, and the reconcile patches the stored flag before the wake it sends, so criterion 1 alone clears that row.Testing
npm run typecheck: pass.npm test(vitest run): pass, 2370 tests (stewards is in the CI matrix).npx vitest run server.test.ts: pass, 1034 tests, including the new parked-finish and BB-266 integration tests.sidebar.tsrules are unit tested (waitingOnNamesFinishedWorker,effortSection,effortPhrase).