From 9f0f1c960f57e3a4330481358bbe4454eec22387 Mon Sep 17 00:00:00 2001 From: Dylan Trotter Date: Tue, 24 Nov 2026 02:24:14 +0000 Subject: [PATCH 1/2] stewards: healthy waits never read no wake source (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 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. --- plugins/stewards/DESIGN.md | 21 ++++-- plugins/stewards/README.md | 43 ++++++----- plugins/stewards/assessed-gate.test.ts | 2 +- plugins/stewards/assessment.test.ts | 71 +++++++++++++++++-- plugins/stewards/assessment.ts | 10 ++- .../characterization-assessment.test.ts | 2 +- .../characterization-wait-derivation.test.ts | 7 +- plugins/stewards/characterization.test.ts | 2 +- plugins/stewards/contribution.test.ts | 2 +- plugins/stewards/server.test.ts | 62 +++++++++++----- plugins/stewards/server.ts | 28 +++++--- plugins/stewards/sidebar.test.ts | 41 +++++++---- plugins/stewards/sidebar.ts | 11 ++- plugins/stewards/wake-source.test.ts | 7 ++ plugins/stewards/wake-source.ts | 11 ++- plugins/stewards/wake.ts | 4 +- 16 files changed, 238 insertions(+), 86 deletions(-) diff --git a/plugins/stewards/DESIGN.md b/plugins/stewards/DESIGN.md index 145ab947..8afcfd1f 100644 --- a/plugins/stewards/DESIGN.md +++ b/plugins/stewards/DESIGN.md @@ -467,7 +467,10 @@ Plugin code. No model turn. the worker, since it waits on that result). BB-329: a worker says it is waiting with the `worker_park` tool, not with prose; a finish without that call is a plain finish, archived like any other, whatever its final text - says. And a + says. BB-389: a parked finish stays a quiet note even when the steward's + own `waitingOn` or typed `worker` wait named the worker — the park is not + over, so there is no hand-off prompt; the steward is woken by the worker's + resume or by the pull request changing. And a terminal state the steward's own last report already named ends the binding from the mechanical tier, with the wrap-up written from that report and no wrap-up wake; a terminal state someone else set still wakes. @@ -696,7 +699,10 @@ decide-list mark and the recorded project approvals the `approvals.ts` path omits), the worker state (an explicit `parked`, distinct from `running`) and the liveness (wake source, idle, stall from the observable rows, not the stored `noWakeSource` flag, which only a reconcile writes, for every binding -kind, an ops binding included (BB-375). `compare` +kind, an ops binding included (BB-375). BB-333 made the stored typed `wait` +the source of liveness, judged by its kind; BB-389 made it additive: a live +structured source is never overridden by a non-live wait, and a parked worker +is itself a source. `compare` runs the predicates the assessment will replace and returns every disagreement. - `reconcile.ts` calls it on every binding inside a try/catch that can never @@ -1945,11 +1951,12 @@ it reads after the red phrases and ahead of the other quiet ones); `held behind running` counting only workers whose worker-table status is `running` (a busy steward or reviewer with no running worker falls through, rather than reading `0 workers running`); the lost hand-off when `waitingOn` names a finished -worker or a loud hand-off note is pending (BB-152); `worker finished, next look -